zhangtao
laozt 1 year ago
parent e4dadbc99f
commit af4fb95239

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

Loading…
Cancel
Save