From adb31b71f8c3490b923c8cb6f12b74be6ca3a02d Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期三, 01 九月 2021 09:40:36 +0800 Subject: [PATCH] Merge branch 'master' of https://gitee.com/y_project/RuoYi-Vue into dev --- ruoyi-ui/src/views/system/notice/index.vue | 34 +++++++++++----------------------- 1 files changed, 11 insertions(+), 23 deletions(-) diff --git a/ruoyi-ui/src/views/system/notice/index.vue b/ruoyi-ui/src/views/system/notice/index.vue index 0ffd9d6..b90168c 100644 --- a/ruoyi-ui/src/views/system/notice/index.vue +++ b/ruoyi-ui/src/views/system/notice/index.vue @@ -80,20 +80,16 @@ prop="noticeTitle" :show-overflow-tooltip="true" /> - <el-table-column - label="鍏憡绫诲瀷" - align="center" - prop="noticeType" - :formatter="typeFormat" - width="100" - /> - <el-table-column - label="鐘舵��" - align="center" - prop="status" - :formatter="statusFormat" - width="100" - /> + <el-table-column label="鍏憡绫诲瀷" align="center" prop="noticeType" width="100"> + <template slot-scope="scope"> + <dict-tag :options="typeOptions" :value="scope.row.noticeType"/> + </template> + </el-table-column> + <el-table-column label="鐘舵��" align="center" prop="status" width="100"> + <template slot-scope="scope"> + <dict-tag :options="statusOptions" :value="scope.row.status"/> + </template> + </el-table-column> <el-table-column label="鍒涘缓鑰�" align="center" prop="createBy" width="100" /> <el-table-column label="鍒涘缓鏃堕棿" align="center" prop="createTime" width="100"> <template slot-scope="scope"> @@ -244,14 +240,6 @@ this.loading = false; }); }, - // 鍏憡鐘舵�佸瓧鍏哥炕璇� - statusFormat(row, column) { - return this.selectDictLabel(this.statusOptions, row.status); - }, - // 鍏憡鐘舵�佸瓧鍏哥炕璇� - typeFormat(row, column) { - return this.selectDictLabel(this.typeOptions, row.noticeType); - }, // 鍙栨秷鎸夐挳 cancel() { this.open = false; @@ -336,4 +324,4 @@ } } }; -</script> +</script> \ No newline at end of file -- Gitblit v1.9.3