From aa2e71d1bbbd05a6eff9f2b1be724291ad4f3bf6 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Thu, 26 Aug 2021 15:43:48 +0800
Subject: [PATCH] 卡片样式
---
src/components/Approval/Approval.vue | 70 +++++++++++++++++------------------
1 files changed, 34 insertions(+), 36 deletions(-)
diff --git a/src/components/Approval/Approval.vue b/src/components/Approval/Approval.vue
index 2ee2e9f..2b63b16 100644
--- a/src/components/Approval/Approval.vue
+++ b/src/components/Approval/Approval.vue
@@ -53,9 +53,28 @@
type: Boolean,
default: false,
},
+ data: {
+ type: Array,
+ default: [],
+ },
},
computed: {
...mapGetters(["ApprovalShow", "userInfo"]),
+ },
+ created() {
+ var d = this.data,
+ b = [];
+ for (var k in d) {
+ // console.log({
+ // label: d[k].menuName,
+ // value: d[k].type + "",
+ // });
+ b.push({
+ label: d[k].menuName,
+ value: d[k].type + "",
+ });
+ }
+ this.option1.column[1].dicData = b;
},
data() {
return {
@@ -102,28 +121,7 @@
label: "许可类型",
prop: "ptype",
type: "select",
- dicData: [
- {
- label: "保安服务公司许可申请",
- value: "0",
- },
- {
- label: "自招保安单位备案",
- value: "1",
- },
- {
- label: "保安培训公司备案",
- value: "2",
- },
- {
- label: "跨区域经营备案",
- value: "3",
- },
- {
- label: "自招保安单位备案撤销",
- value: "6",
- },
- ],
+ dicData: [],
},
{
label: "审批意见",
@@ -189,20 +187,20 @@
Object.assign(params, this.query)
).then((ress) => {
this.data = this.data.concat(ress.data.data.records);
- });
- getListrek(
- page.currentPage,
- page.pageSize,
- Object.assign(params, this.query)
- ).then((resk) => {
- this.data = this.data.concat(resk.data.data.records);
- });
- getListrev(
- page.currentPage,
- page.pageSize,
- Object.assign(params, this.query)
- ).then((resv) => {
- this.data = this.data.concat(resv.data.data.records);
+ getListrek(
+ page.currentPage,
+ page.pageSize,
+ Object.assign(params, this.query)
+ ).then((resk) => {
+ this.data = this.data.concat(resk.data.data.records);
+ getListrev(
+ page.currentPage,
+ page.pageSize,
+ Object.assign(params, this.query)
+ ).then((resv) => {
+ this.data = this.data.concat(resv.data.data.records);
+ });
+ });
});
});
},
--
Gitblit v1.9.3