From 1befdd4a5c856d99249aa7ff849b8aade0adc164 Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Sun, 21 Mar 2021 13:07:37 +0800
Subject: [PATCH] 在线设备链接
---
src/views/healthcode/healthcode.vue | 75 ++++++++++++++++++++++++-------------
1 files changed, 48 insertions(+), 27 deletions(-)
diff --git a/src/views/healthcode/healthcode.vue b/src/views/healthcode/healthcode.vue
index 9803fcb..07dda7f 100644
--- a/src/views/healthcode/healthcode.vue
+++ b/src/views/healthcode/healthcode.vue
@@ -18,15 +18,7 @@
@size-change="sizeChange"
@refresh-change="refreshChange"
@on-load="onLoad">
- <template slot="menuLeft">
- <el-button type="danger"
- size="small"
- icon="el-icon-delete"
- plain
- v-if="true"
- @click="handleDelete">删 除
- </el-button>
- </template>
+
</avue-crud>
</basic-container>
</template>
@@ -48,6 +40,7 @@
},
selectionList: [],
option: {
+ menu:false,
height:'auto',
calcHeight: 30,
tip: false,
@@ -103,37 +96,65 @@
]
},
{
- label: "行政区",
- searchSpan: 4,
- prop: "addvcd",
+ label: '省份',
+ prop: 'province',
search: true,
- type: "tree",
- dicUrl: "/api/blade-jfpts/district/district/selectd",
+ searchSpan: 3,
+ type: 'select',
props: {
- label: "addvnm",
- value: "addvcds"
- }
+ label: 'name',
+ value: 'name'
+ },
+ cascaderItem: ['city', 'district'],
+ dicUrl: '/api/blade-system/region/select',
+ span: 6,
+ },
+ {
+ label: '地市',
+ prop: 'city',
+ type: 'select',
+ searchSpan: 3,
+ search: true,
+ props: {
+ label: 'name',
+ value: 'name'
+ },
+ dicUrl: '/api/blade-system/region/select?code={{key}}',
+ span: 6,
+ },
+ {
+ label: '区县',
+ searchSpan: 3,
+ search: true,
+ prop: 'district',
+ type: 'select',
+ props: {
+ label: 'name',
+ value: 'name'
+ },
+ dicUrl: '/api/blade-system/region/select?code={{key}}',
+ span: 6,
},
{
label: "健康码颜色",
search: true,
- searchLabelWidth: 120,
+ searchLabelWidth:100,
prop: "type",
- searchSpan: 5,
- width:110,
+ searchSpan: 3,
+ width:210,
type: "select",
dicData: [
{
label: "绿色",
- value: 1
+ value: "1"
},
{
label: "黄色",
- value: 2
+ value: "2"
},
{
label: "红色",
- value: 3
+ value: "3"
}
],
}
@@ -146,10 +167,10 @@
...mapGetters(["permission"]),
permissionList() {
return {
- addBtn: this.vaildData(null, true),
- viewBtn: this.vaildData(null, true),
- delBtn: this.vaildData(null, true),
- editBtn: this.vaildData(null, true)
+ addBtn: this.vaildData(null, false),
+ viewBtn: this.vaildData(null, false),
+ delBtn: this.vaildData(null, false),
+ editBtn: this.vaildData(null, false)
};
},
ids() {
--
Gitblit v1.9.3