|
|
|
@ -422,7 +422,7 @@ export default {
|
|
|
|
|
selectFirm(){
|
|
|
|
|
if(this.$refs.next.innerText == "发布计划"){
|
|
|
|
|
this.nextStep = false;
|
|
|
|
|
this.filtrate(this.dept.ancestors.split(',').length == 3 ? true:false);
|
|
|
|
|
this.filtrate();
|
|
|
|
|
this.nextText = "下一步";
|
|
|
|
|
this.multipleSelection.map((item)=>{
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
@ -462,7 +462,7 @@ export default {
|
|
|
|
|
return arr[0].dictLabel;
|
|
|
|
|
},
|
|
|
|
|
// 搜索
|
|
|
|
|
filtrate(isAncestors) {
|
|
|
|
|
filtrate() {
|
|
|
|
|
// if (this.form.subdistrict) {
|
|
|
|
|
// this.subdistrict = this.trimTrailingZeros(this.form.subdistrict);
|
|
|
|
|
// }
|
|
|
|
@ -504,9 +504,9 @@ export default {
|
|
|
|
|
obj = { ...this.pages, ...this.form,subdistrict:this.subdistrict };
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
console.log(obj)
|
|
|
|
|
// console.log(isAncestors)
|
|
|
|
|
// obj = { ...this.pages, ...this.form,subdistrict:this.subdistrict };
|
|
|
|
|
this.getTable(obj,isAncestors);
|
|
|
|
|
this.getTable(obj);
|
|
|
|
|
},
|
|
|
|
|
// 处理搜索行政区划
|
|
|
|
|
trimTrailingZeros(str) {
|
|
|
|
@ -532,14 +532,19 @@ export default {
|
|
|
|
|
this.pages.pageNum = 1;
|
|
|
|
|
this.pages.pageSize = 10;
|
|
|
|
|
this.$refs.mypagination.defaultPages();
|
|
|
|
|
let obj = {...this.pages,...this.form}
|
|
|
|
|
this.getTable(obj,this.dept.ancestors.split(',').length == 3 ? true:false);
|
|
|
|
|
// let obj = {...this.pages,...this.form}
|
|
|
|
|
if(this.dept.ancestors.split(',').length == 2){
|
|
|
|
|
this.subdistrict = this.workingArea.slice(1, 8);
|
|
|
|
|
} else if(this.dept.ancestors.split(',').length == 3){
|
|
|
|
|
this.subdistrict = this.form.subdistrict.slice(1, 11);
|
|
|
|
|
}
|
|
|
|
|
this.getTable({...this.pages,...this.form,subdistrict:this.subdistrict});
|
|
|
|
|
},
|
|
|
|
|
// 当前行的checkBox是否可以勾选
|
|
|
|
|
checkSelectable(row) {
|
|
|
|
|
row["unselected"] = true;
|
|
|
|
|
this.selectList.map((item) => {
|
|
|
|
|
if (item.enterpriseId == row.uscCode || row["multipleTable"]) {
|
|
|
|
|
if (item.enterpriseId == row.uscCode || row["multipleTable"] == true) {
|
|
|
|
|
row["unselected"] = false;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
@ -578,7 +583,7 @@ export default {
|
|
|
|
|
this.district = data.data
|
|
|
|
|
this.commentData(this.district,dept);
|
|
|
|
|
this.bPlanEnterprise();
|
|
|
|
|
this.filtrate(dept.ancestors.split(',').length == 3 ? true:false)
|
|
|
|
|
this.filtrate()
|
|
|
|
|
if (item == "newlyIncreased") {
|
|
|
|
|
// 判断如若是镇级即将所有重点企业全选
|
|
|
|
|
if(dept.ancestors.split(',').length == 3){
|
|
|
|
@ -635,7 +640,7 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
// 查看/切换页码时的网络请求
|
|
|
|
|
async getTable(pages,isAncestors) {
|
|
|
|
|
async getTable(pages) {
|
|
|
|
|
this.loading = true;
|
|
|
|
|
let data = await this.$api.yingji.basicList(pages);
|
|
|
|
|
// console.log(data.data.count, '重点企业总数');
|
|
|
|
@ -652,7 +657,8 @@ export default {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
}
|
|
|
|
|
this.tableData = data.data.list;
|
|
|
|
|
if(isAncestors) {
|
|
|
|
|
// console.log(isAncestors,'isAncestors')
|
|
|
|
|
if(this.dept.ancestors.split(',').length == 3) {
|
|
|
|
|
this.tableData.forEach((item)=>{
|
|
|
|
|
if(item.isPoint == '1') {
|
|
|
|
|
this.$refs.multipleTable.toggleRowSelection(item);
|
|
|
|
@ -667,18 +673,18 @@ export default {
|
|
|
|
|
// console.log(this.form)
|
|
|
|
|
if(this.dept.ancestors.split(',').length == 2){
|
|
|
|
|
if(Array.isArray(this.form.subdistrict)) {
|
|
|
|
|
this.subdistrict = this.form.subdistrict.slice(1, 8);
|
|
|
|
|
if(this.form.subdistrict.length == 2) {
|
|
|
|
|
this.subdistrict = this.form.subdistrict[1].slice(1, 11);
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
this.subdistrict = this.form.subdistrict;
|
|
|
|
|
this.subdistrict = this.form.subdistrict.slice(1, 8);
|
|
|
|
|
}
|
|
|
|
|
} else if(this.dept.ancestors.split(',').length == 3){
|
|
|
|
|
if(Array.isArray(this.form.subdistrict)) {
|
|
|
|
|
this.subdistrict = this.form.subdistrict.slice(1, 11);
|
|
|
|
|
} else {
|
|
|
|
|
this.subdistrict = this.form.subdistrict;
|
|
|
|
|
}
|
|
|
|
|
this.subdistrict = this.form.subdistrict.slice(1, 11);
|
|
|
|
|
}
|
|
|
|
|
this.getTable({...pages,...this.form,subdistrict:this.subdistrict},this.dept.ancestors.split(',').length == 3 ? true:false);
|
|
|
|
|
// console.log(this.subdistrict,'this.subdistrict')
|
|
|
|
|
// console.log(this.form,'this.form')
|
|
|
|
|
this.getTable({...pages,...this.form,subdistrict:this.subdistrict});
|
|
|
|
|
},
|
|
|
|
|
// 选中的数据
|
|
|
|
|
handleSelectionChange(val) {
|
|
|
|
|