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

@ -96,7 +96,8 @@ router.beforeEach((to, from, next) => {
next(`/login`) // 否则全部重定向到登录页
} else {
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()
}

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

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

@ -4,7 +4,7 @@
* @Author: JC9527
* @Date: 2023-09-04 10:20:06
* @LastEditors: JC9527
* @LastEditTime: 2023-10-09 09:48:01
* @LastEditTime: 2023-10-09 14:10:39
-->
<template>
<div class="plan-management">
@ -57,13 +57,13 @@
row-key="id"
:row-class-name="tableRowClassName"
>
<el-table-column
<!-- <el-table-column
type="selection"
reserve-selection
width="55"
header-align="center"
>
</el-table-column>
</el-table-column> -->
<el-table-column
prop="plannedYear"
label="计划年月"
@ -137,8 +137,8 @@
:default-expand-all="isExpandAll"
:tree-props="{children: 'children', hasChildren: 'hasChildren'}"
>
<el-table-column prop="district" label="行政区划" header-align="center" show-overflow-tooltip></el-table-column>
<el-table-column prop="amount" label="企业总数" header-align="center"></el-table-column>
<el-table-column prop="district" label="行政区划" header-align="center" show-overflow-tooltip></el-table-column>
<el-table-column prop="amount" label="企业总数" header-align="center"></el-table-column>
<el-table-column prop="planNumb" label="已计划数" header-align="center"></el-table-column>
<el-table-column prop="keyCount" label="已计划省重点数" header-align="center"></el-table-column>
<el-table-column prop="keyCount" label="剩余重点数" header-align="center"></el-table-column>
@ -246,7 +246,8 @@
isExpandAll: true,
//
refreshTable: true,
county:false
county:false,
multipleSelection:[],
}
},
computed: {
@ -267,7 +268,7 @@
if(!this.disabled) {
if(Array.isArray(newForm.district)){
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 };
} else if(newForm.district.length == 1) {
let district = this.form.district[0].slice(0, 8);
@ -282,7 +283,7 @@
let district = this.form.district.slice(0, 8);
obj = { ...this.pages, ...this.form,district };
} else {
let district = this.form.district.slice(1, 11);
let district = this.form.district.slice(0, 11);
obj = { ...this.pages, ...this.form,district };
}
}
@ -335,6 +336,18 @@
},
//
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(`确认根据您的搜索条件导出搜索之后的数据吗?`, "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
@ -396,10 +409,10 @@
if(!this.disabled) {
if(Array.isArray(this.form.district)){
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 };
} 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 };
} else {
obj = { ...this.pages, ...this.form};
@ -408,10 +421,10 @@
} else {
//
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 };
} else {
let district = this.form.district.slice(1, 11);
let district = this.form.district.slice(0, 11);
obj = { ...this.pages, ...this.form,district };
}
}

Loading…
Cancel
Save