dhy
吕天方 1 year ago
parent 92b9f7f20a
commit cfcaf25a9c

@ -96,7 +96,8 @@ router.beforeEach((to, from, next) => {
next(`/login`) // 否则全部重定向到登录页 next(`/login`) // 否则全部重定向到登录页
} else { } else {
console.log('路由拦截跳转登录页') console.log('路由拦截跳转登录页')
next() // next()
location.href = 'http://180.108.205.123:8090/sso-server/oauth2/login?aid=17847210&cbu=http%3A%2F%2F180.108.205.123%3A13001%2F'
} }
NProgress.done() NProgress.done()
} }

@ -450,7 +450,7 @@ export default {
}) })
} }
}) })
console.log(name) // console.log(name)
return name return name
}, },
// //
@ -831,7 +831,7 @@ export default {
}) })
this.listOne.map((item)=>{ this.listOne.map((item)=>{
if(item.institutionName == dept.deptName) { if(item.institutionName == dept.deptName) {
console.log(item.county) // console.log(item.county)
this.form.subdistrict = item.county this.form.subdistrict = item.county
this.workingArea = item.county this.workingArea = item.county
this.county = true; this.county = true;

@ -117,7 +117,7 @@
header-align="center" header-align="center"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ componendDistrict("0" + scope.row.subdistrict) }}</span> <span>{{ componendDistrict("0" + scope.row.subdistrict) || '/' }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column

@ -4,7 +4,7 @@
* @Author: JC9527 * @Author: JC9527
* @Date: 2023-09-04 10:20:06 * @Date: 2023-09-04 10:20:06
* @LastEditors: JC9527 * @LastEditors: JC9527
* @LastEditTime: 2023-10-09 09:48:01 * @LastEditTime: 2023-10-09 14:10:39
--> -->
<template> <template>
<div class="plan-management"> <div class="plan-management">
@ -57,13 +57,13 @@
row-key="id" row-key="id"
:row-class-name="tableRowClassName" :row-class-name="tableRowClassName"
> >
<el-table-column <!-- <el-table-column
type="selection" type="selection"
reserve-selection reserve-selection
width="55" width="55"
header-align="center" header-align="center"
> >
</el-table-column> </el-table-column> -->
<el-table-column <el-table-column
prop="plannedYear" prop="plannedYear"
label="计划年月" label="计划年月"
@ -246,7 +246,8 @@
isExpandAll: true, isExpandAll: true,
// //
refreshTable: true, refreshTable: true,
county:false county:false,
multipleSelection:[],
} }
}, },
computed: { computed: {
@ -267,7 +268,7 @@
if(!this.disabled) { if(!this.disabled) {
if(Array.isArray(newForm.district)){ if(Array.isArray(newForm.district)){
if(newForm.district.length == 2) { if(newForm.district.length == 2) {
let district = this.form.district[1].slice(1, 11); let district = this.form.district[1].slice(0, 11);
obj = { ...this.pages, ...this.form,district }; obj = { ...this.pages, ...this.form,district };
} else if(newForm.district.length == 1) { } else if(newForm.district.length == 1) {
let district = this.form.district[0].slice(0, 8); let district = this.form.district[0].slice(0, 8);
@ -282,7 +283,7 @@
let district = this.form.district.slice(0, 8); let district = this.form.district.slice(0, 8);
obj = { ...this.pages, ...this.form,district }; obj = { ...this.pages, ...this.form,district };
} else { } else {
let district = this.form.district.slice(1, 11); let district = this.form.district.slice(0, 11);
obj = { ...this.pages, ...this.form,district }; obj = { ...this.pages, ...this.form,district };
} }
} }
@ -335,6 +336,18 @@
}, },
// //
exportFile(){ exportFile(){
// let arr = []
// this.multipleSelection.map((item)=>{
// arr.push(item.enterpriseId)
// })
// this.download(
// "/pharmaceuticals/bPlanEnterprise/exportplan",
// {
// enterpriseId:arr.join(',')
// },
// `.xlsx`
// );
// this.multipleSelection.length > 0 ? `` :
this.$confirm(`确认根据您的搜索条件导出搜索之后的数据吗?`, "警告", { this.$confirm(`确认根据您的搜索条件导出搜索之后的数据吗?`, "警告", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
@ -396,10 +409,10 @@
if(!this.disabled) { if(!this.disabled) {
if(Array.isArray(this.form.district)){ if(Array.isArray(this.form.district)){
if(this.form.district.length == 2) { if(this.form.district.length == 2) {
let district = this.form.district[1].slice(1, 11); let district = this.form.district[1].slice(0, 11);
obj = { ...this.pages, ...this.form,district }; obj = { ...this.pages, ...this.form,district };
} else if(this.form.district.length == 1) { } else if(this.form.district.length == 1) {
let district = this.form.district[0].slice(1, 8); let district = this.form.district[0].slice(0, 8);
obj = { ...this.pages, ...this.form,district }; obj = { ...this.pages, ...this.form,district };
} else { } else {
obj = { ...this.pages, ...this.form}; obj = { ...this.pages, ...this.form};
@ -408,10 +421,10 @@
} else { } else {
// //
if(this.county){ if(this.county){
let district = this.form.district.slice(1, 8); let district = this.form.district.slice(0, 8);
obj = { ...this.pages, ...this.form,district }; obj = { ...this.pages, ...this.form,district };
} else { } else {
let district = this.form.district.slice(1, 11); let district = this.form.district.slice(0, 11);
obj = { ...this.pages, ...this.form,district }; obj = { ...this.pages, ...this.form,district };
} }
} }

Loading…
Cancel
Save