zhangtao
laozt 1 year ago
parent e4dadbc99f
commit af4fb95239

@ -116,7 +116,7 @@
ref="multipleTable" ref="multipleTable"
tooltip-effect="light" tooltip-effect="light"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
row-key="uscCode" row-key="uuitNo"
:row-class-name="tableRowClassName" :row-class-name="tableRowClassName"
> >
<el-table-column <el-table-column
@ -332,7 +332,7 @@ export default {
isPoint: "", isPoint: "",
majorHazardLevel: "", majorHazardLevel: "",
entprColor: "", entprColor: "",
uscCode: "", uuitNo: "",
}, },
form2: { form2: {
plannedYear: "", plannedYear: "",
@ -519,7 +519,7 @@ export default {
isPoint: "", isPoint: "",
majorHazardLevel: "", majorHazardLevel: "",
entprColor: "", entprColor: "",
uscCode: "", uuitNo: "",
}; };
this.pages.pageNum = 1; this.pages.pageNum = 1;
this.pages.pageSize = 10; this.pages.pageSize = 10;
@ -540,7 +540,7 @@ export default {
checkSelectable(row) { checkSelectable(row) {
row["unselected"] = true; row["unselected"] = true;
this.selectList.map((item) => { this.selectList.map((item) => {
if (item.enterpriseId == row.uscCode || row["multipleTable"] == true) { if (item.enterpriseId == row.uuitNo || row["multipleTable"] == true) {
row["unselected"] = false; row["unselected"] = false;
} }
}); });
@ -553,7 +553,7 @@ export default {
let data = await this.$api.yingji.bPlanEnterpriseList(); let data = await this.$api.yingji.bPlanEnterpriseList();
this.selectList = data.data; this.selectList = data.data;
data.data.map((item) => { data.data.map((item) => {
item["uscCode"] = item.enterpriseId; item["uuitNo"] = item.enterpriseId;
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.multipleTable.toggleRowSelection(item, false); this.$refs.multipleTable.toggleRowSelection(item, false);
}); });
@ -637,7 +637,6 @@ export default {
}, },
// / // /
async getTable(pages) { async getTable(pages) {
console.log(pages, "pages");
this.loading = true; this.loading = true;
let data = await this.$api.yingji.basicList(pages); let data = await this.$api.yingji.basicList(pages);
// console.log(data.data.count, ''); // console.log(data.data.count, '');
@ -648,7 +647,7 @@ export default {
// : this.unselected == 0 // : this.unselected == 0
// ? (this.unCount = 0) // ? (this.unCount = 0)
// : (this.unCount = data.data.count - this.unselected); // : (this.unCount = data.data.count - this.unselected);
console.log(data); // console.log(data);
this.total = data.total; this.total = data.total;
// console.log(this.unselected,'this.unselected') // console.log(this.unselected,'this.unselected')
if (data.code == 200) { if (data.code == 200) {
@ -733,8 +732,8 @@ export default {
let keyCount = 0; let keyCount = 0;
this.multipleSelection.map((item) => { this.multipleSelection.map((item) => {
arr.push(item.subdistrict); arr.push(item.subdistrict);
arr2.push(item.uscCode); arr2.push(item.uuitNo);
arr3.push(item.entprName); arr3.push(item.enterpriseName);
if (item.isPoint == "1") { if (item.isPoint == "1") {
keyCount++; keyCount++;
} }

Loading…
Cancel
Save