|
|
|
@ -4,7 +4,7 @@
|
|
|
|
|
* @Author: JC9527
|
|
|
|
|
* @Date: 2023-09-04 10:20:06
|
|
|
|
|
* @LastEditors: JC9527
|
|
|
|
|
* @LastEditTime: 2023-09-30 13:44:10
|
|
|
|
|
* @LastEditTime: 2023-09-30 13:57:47
|
|
|
|
|
-->
|
|
|
|
|
<template>
|
|
|
|
|
<div class="plan-management">
|
|
|
|
@ -262,12 +262,10 @@
|
|
|
|
|
this.pages.pageSize = 10;
|
|
|
|
|
this.$refs.mypagination.defaultPages();
|
|
|
|
|
let obj
|
|
|
|
|
// console.log(newForm,'newForm')
|
|
|
|
|
console.log(newForm,'newForm')
|
|
|
|
|
// 如果是苏州市或者是某个区
|
|
|
|
|
if(!this.disabled) {
|
|
|
|
|
console.log('123')
|
|
|
|
|
if(Array.isArray(newForm.district)){
|
|
|
|
|
console.log('456')
|
|
|
|
|
if(newForm.district.length == 2) {
|
|
|
|
|
let district = this.form.district[1].slice(1, 11);
|
|
|
|
|
obj = { ...this.pages, ...this.form,district };
|
|
|
|
@ -390,12 +388,39 @@
|
|
|
|
|
},
|
|
|
|
|
// 新增成功后关闭dialog事件触发
|
|
|
|
|
padlock(){
|
|
|
|
|
let { district} = this.form;
|
|
|
|
|
// let { district} = this.form;
|
|
|
|
|
this.pages.pageNum = 1;
|
|
|
|
|
this.pages.pageSize = 10;
|
|
|
|
|
this.$refs.mypagination.defaultPages();
|
|
|
|
|
let obj = {...this.pages,district}
|
|
|
|
|
console.log('123')
|
|
|
|
|
let obj
|
|
|
|
|
if(!this.disabled) {
|
|
|
|
|
if(Array.isArray(this.form.district)){
|
|
|
|
|
if(this.form.district.length == 2) {
|
|
|
|
|
let district = this.form.district[1].slice(1, 11);
|
|
|
|
|
obj = { ...this.pages, ...this.form,district };
|
|
|
|
|
} else if(this.form.district.length == 1) {
|
|
|
|
|
let district = this.form.district[0].slice(1, 8);
|
|
|
|
|
obj = { ...this.pages, ...this.form,district };
|
|
|
|
|
} else {
|
|
|
|
|
obj = { ...this.pages, ...this.form};
|
|
|
|
|
}
|
|
|
|
|
// 不是数组
|
|
|
|
|
} else {
|
|
|
|
|
// 判断是区县
|
|
|
|
|
if(this.county){
|
|
|
|
|
let district = this.form.district.slice(1, 8);
|
|
|
|
|
obj = { ...this.pages, ...this.form,district };
|
|
|
|
|
} else {
|
|
|
|
|
let district = this.form.district.slice(1, 11);
|
|
|
|
|
obj = { ...this.pages, ...this.form,district };
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
// 不是苏州市是乡镇
|
|
|
|
|
let district = this.form.district;
|
|
|
|
|
obj = { ...this.pages, ...this.form,district };
|
|
|
|
|
}
|
|
|
|
|
// console.log('obj',obj)
|
|
|
|
|
this.getList(obj);
|
|
|
|
|
},
|
|
|
|
|
// 区划级联选择器选择触发
|
|
|
|
|