From 8c6cf205affbbc8ada74f00a7ca25ebca867e9ed Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Mon, 27 Sep 2021 11:44:44 +0800
Subject: [PATCH] 图表颜色
---
src/views/securityUnit/selfRecruitedSecurityGuard.vue | 37 ++++++++++++++++++++++++-------------
1 files changed, 24 insertions(+), 13 deletions(-)
diff --git a/src/views/securityUnit/selfRecruitedSecurityGuard.vue b/src/views/securityUnit/selfRecruitedSecurityGuard.vue
index 6cfc4cf..d404aec 100644
--- a/src/views/securityUnit/selfRecruitedSecurityGuard.vue
+++ b/src/views/securityUnit/selfRecruitedSecurityGuard.vue
@@ -304,7 +304,24 @@
border: true,
selection: true,
- column: column,
+ column: [
+ ...column,
+ {
+ label: "服务区域",
+ labelWidth: 160,
+ prop: "fregion",
+ width: 69,
+ },
+ {
+ label: "服务时间",
+ labelWidth: 160,
+ prop: "ftime",
+ width: 69,
+ type: "date",
+ format: "yyyy-MM-dd",
+ valueFormat: "timestamp",
+ },
+ ],
},
};
},
@@ -319,17 +336,10 @@
},
ids1() {
let ids1 = [];
- this.selectionList1.forEach((ele) => {
- ids1.push(ele.id);
+ this.selectionList.forEach((ele) => {
+ ids1.push(ele.departmentid);
});
return ids1.join(",");
- },
- ids2() {
- let ids2 = [];
- this.selectionList2.forEach((ele) => {
- ids2.push(ele.id);
- });
- return ids2.join(",");
},
haveID() {
return this.obj0.creditcode;
@@ -459,8 +469,8 @@
type: "warning",
})
.then(() => {
- console.log(this.ids);
- // return remove(this.ids);
+ // console.log(this.ids);
+ return remove(this.ids, this.ids1);
})
.then(() => {
this.onLoad(this.page);
@@ -469,7 +479,8 @@
message: "操作成功!",
});
this.$refs.crudrec.toggleSelection();
- });
+ })
+ .catch((res) => {});
},
refreshChange() {
this.onLoad(this.page, this.query);
--
Gitblit v1.9.3