From 2f18d0d7094b10e169b77a0ea741bd101dbbf1f8 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期六, 18 九月 2021 16:01:52 +0800 Subject: [PATCH] Merge branch 'master' of https://gitee.com/y_project/RuoYi-Vue into dev --- ruoyi-ui/src/views/system/dict/data.vue | 26 +++++++++++--------------- 1 files changed, 11 insertions(+), 15 deletions(-) diff --git a/ruoyi-ui/src/views/system/dict/data.vue b/ruoyi-ui/src/views/system/dict/data.vue index 3b8ec4b..6b17756 100644 --- a/ruoyi-ui/src/views/system/dict/data.vue +++ b/ruoyi-ui/src/views/system/dict/data.vue @@ -23,10 +23,10 @@ <el-form-item label="鐘舵��" prop="status"> <el-select v-model="queryParams.status" placeholder="鏁版嵁鐘舵��" clearable size="small"> <el-option - v-for="dict in statusOptions" - :key="dict.dictValue" - :label="dict.dictLabel" - :value="dict.dictValue" + v-for="dict in dict.type.sys_normal_disable" + :key="dict.value" + :label="dict.label" + :value="dict.value" /> </el-select> </el-form-item> @@ -96,7 +96,7 @@ <el-table-column label="瀛楀吀鎺掑簭" align="center" prop="dictSort" /> <el-table-column label="鐘舵��" align="center" prop="status"> <template slot-scope="scope"> - <dict-tag :options="statusOptions" :value="scope.row.status"/> + <dict-tag :options="dict.type.sys_normal_disable" :value="scope.row.status"/> </template> </el-table-column> <el-table-column label="澶囨敞" align="center" prop="remark" :show-overflow-tooltip="true" /> @@ -164,10 +164,10 @@ <el-form-item label="鐘舵��" prop="status"> <el-radio-group v-model="form.status"> <el-radio - v-for="dict in statusOptions" - :key="dict.dictValue" - :label="dict.dictValue" - >{{dict.dictLabel}}</el-radio> + v-for="dict in dict.type.sys_normal_disable" + :key="dict.value" + :label="dict.value" + >{{dict.label}}</el-radio> </el-radio-group> </el-form-item> <el-form-item label="澶囨敞" prop="remark"> @@ -188,6 +188,7 @@ export default { name: "Data", + dicts: ['sys_normal_disable'], data() { return { // 閬僵灞� @@ -239,8 +240,6 @@ label: "鍗遍櫓" } ], - // 鐘舵�佹暟鎹瓧鍏� - statusOptions: [], // 绫诲瀷鏁版嵁瀛楀吀 typeOptions: [], // 鏌ヨ鍙傛暟 @@ -271,9 +270,6 @@ const dictId = this.$route.params && this.$route.params.dictId; this.getType(dictId); this.getTypeList(); - this.getDicts("sys_normal_disable").then(response => { - this.statusOptions = response.data; - }); }, methods: { /** 鏌ヨ瀛楀吀绫诲瀷璇︾粏 */ @@ -392,4 +388,4 @@ } } }; -</script> +</script> \ No newline at end of file -- Gitblit v1.9.3