From 41b6b9ba336e6f749774b0110875e8bd20c63bd1 Mon Sep 17 00:00:00 2001
From: clay <20932067@zju.edu.cn>
Date: Fri, 7 Jan 2022 15:06:42 +0800
Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E9=97=A8=E5=AD=97=E5=85=B8=E7=AE=A1?=
=?UTF-8?q?=E7=90=86=E5=AE=8C=E6=88=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
ebts-ui/src/views/sist/articledic/index.vue | 37 +++++
ebts-ui/src/views/sist/dire/index.vue | 32 ++++
ebts-ui/src/views/system/dept/index.vue | 173 +++++++++++++++-----
3 files changed, 203 insertions(+), 39 deletions(-)
diff --git a/ebts-ui/src/views/sist/articledic/index.vue b/ebts-ui/src/views/sist/articledic/index.vue
index db128f6..7101b81 100644
--- a/ebts-ui/src/views/sist/articledic/index.vue
+++ b/ebts-ui/src/views/sist/articledic/index.vue
@@ -20,6 +20,16 @@
/>
+
+
+
+
+
+
+
@@ -146,6 +158,15 @@
>{{dict.dictLabel}}
+
+
+ {{dict.dictLabel}}
+
+
{
this.attribute1Options = response.data;
});
+ this.getDicts("unencrypted_site_type").then(response => {
+ this.attribute2Options = response.data;
+ });
},
methods: {
/** 查询字典数据列表 */
@@ -246,6 +274,14 @@ export default {
statusFormat(row, column) {
return this.selectDictLabel(this.statusOptions, row.status);
},
+ // 数据状态字典翻译
+ attribute1Format(row, column) {
+ return this.selectDictLabel(this.attribute1Options, row.attribute1);
+ },
+ // 数据状态字典翻译
+ attribute2Format(row, column) {
+ return this.selectDictLabel(this.attribute2Options, row.attribute2);
+ },
// 取消按钮
cancel() {
this.open = false;
@@ -260,6 +296,7 @@ export default {
dictSort: 0,
status: "0",
attribute1: "1",
+ attribute2: "1",
remark: undefined
};
this.resetForm("form");
diff --git a/ebts-ui/src/views/sist/dire/index.vue b/ebts-ui/src/views/sist/dire/index.vue
index 432b9d5..b3d55c1 100644
--- a/ebts-ui/src/views/sist/dire/index.vue
+++ b/ebts-ui/src/views/sist/dire/index.vue
@@ -10,6 +10,16 @@
@keyup.enter.native="handleQuery"
/>
+
+
+
+
+
+
@@ -127,6 +138,15 @@
+
+
+ {{dict.dictLabel}}
+
+
{
this.statusOptions = response.data;
});
+ this.getDicts("unencrypted_site_type").then(response => {
+ this.attribute2Options = response.data;
+ });
},
methods: {
/** 查询字典数据列表 */
@@ -220,6 +247,10 @@ export default {
statusFormat(row, column) {
return this.selectDictLabel(this.statusOptions, row.status);
},
+ // 数据状态字典翻译
+ attribute2Format(row, column) {
+ return this.selectDictLabel(this.attribute2Options, row.attribute2);
+ },
// 取消按钮
cancel() {
this.open = false;
@@ -233,6 +264,7 @@ export default {
dictValue: undefined,
dictSort: 0,
status: "0",
+ attribute2: "1",
remark: undefined
};
this.resetForm("form");
diff --git a/ebts-ui/src/views/system/dept/index.vue b/ebts-ui/src/views/system/dept/index.vue
index c51a36f..e2b6698 100644
--- a/ebts-ui/src/views/system/dept/index.vue
+++ b/ebts-ui/src/views/system/dept/index.vue
@@ -35,7 +35,8 @@
size="mini"
@click="handleAdd"
v-hasPermi="['system:dept:add']"
- >新增
+ >新增
+
@@ -63,14 +64,16 @@
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['system:dept:edit']"
- >修改
+ >修改
+
新增
+ >新增
+
删除
+ >删除
+
@@ -89,32 +93,32 @@
-
+
-
+
-
+
-
+
-
+
-
+
@@ -124,10 +128,29 @@
v-for="dict in statusOptions"
:key="dict.dictValue"
:label="dict.dictValue"
- >{{dict.dictLabel}}
+ >{{ dict.dictLabel }}
+
+
+
+
+ 全选/全不选
+ 父子联动
+
+
+
+