From b3be6406c8105376eef209af3bd6635cb95fa81d Mon Sep 17 00:00:00 2001 From: fuliqi <fuliqi@qq.com> Date: 星期二, 24 九月 2024 12:15:22 +0800 Subject: [PATCH] 增加部级考核标签 --- src/views/system/monitor/recovery/index.vue | 35 +++++++++++++++++++++++++++++------ 1 files changed, 29 insertions(+), 6 deletions(-) diff --git a/src/views/system/monitor/recovery/index.vue b/src/views/system/monitor/recovery/index.vue index fcd5a92..f2de806 100644 --- a/src/views/system/monitor/recovery/index.vue +++ b/src/views/system/monitor/recovery/index.vue @@ -1,13 +1,16 @@ <template> <div class="app-container"> <div - style="display: flex;flex-direction: row;min-width: 158px;max-width: 158px;margin-bottom: 5px;border-radius: 1px; user-select: none" + style="display: flex;flex-direction: row;min-width: 300px;max-width: 300px;margin-bottom: 5px;border-radius: 1px; user-select: none" > <div @click="clickTab(null)" class="tab" - :class="{tabActive: null == queryParams.provinceTag, tabInactive: null != queryParams.provinceTag}">鍏ㄩ儴 + :class="{tabActive: !queryParams.provinceTag && !queryParams.deptTag, tabInactive: queryParams.provinceTag || queryParams.deptTag}">鍏ㄩ儴 </div> <div @click="clickTab(0)" class="tab" - :class="{tabActive: 0 === queryParams.provinceTag, tabInactive: 0 !== queryParams.provinceTag}">鐪佸巺鑰冩牳 + :class="{tabActive: queryParams.provinceTag, tabInactive: !queryParams.provinceTag}">鐪佸巺鑰冩牳 + </div> + <div @click="clickTab(1)" class="tab" + :class="{tabActive: queryParams.deptTag, tabInactive: !queryParams.deptTag}">鍏畨閮ㄨ�冩牳 </div> </div> <el-card class="box-card"> @@ -94,7 +97,13 @@ </el-table-column> <el-table-column label="鏍囩" align="center" width="180px" v-if="columns[0].visible"> <template slot-scope="scope"> - <div>{{ scope.row.provinceTag == 0 ? "鐪佸巺" : "甯傚眬" }}</div> + <div> + {{ + ( + (scope.row.provinceTag ? '鐪佸巺銆�' : '') + + (scope.row.deptTag ? '鍏畨閮ㄣ��' : '')).replace(/銆�$/, '') + }} + </div> </template> </el-table-column> <el-table-column label="鍖哄煙" align="center" prop="area" v-if="columns[1].visible"/> @@ -140,7 +149,12 @@ <el-form-item label="璁惧鍚嶇О锛�">{{ form.name }}</el-form-item> <el-col :span="12"> <el-form-item label="璁惧缂栫爜锛�">{{ form.serialNumber }}</el-form-item> - <el-form-item label="鏍囩锛�">{{ form.provinceTag == 0 ? '鐪佸巺' : '甯傚眬' }}</el-form-item> + <el-form-item label="鏍囩锛�"> + {{ + ((form.provinceTag ? '鐪佸巺銆�' : '') + + (form.deptTag ? '鍏畨閮ㄣ��' : '')).replace(/銆�$/, '') + }} + </el-form-item> <el-form-item label="璁惧鐘舵�侊細"> <div v-if="form.onState === 0">寮傚父</div> <div v-else-if="form.onState === 1">姝e父</div> @@ -313,7 +327,16 @@ return translatedTypes.join(', '); }, clickTab(active) { - this.queryParams.provinceTag = active + if (active === 0) { + this.queryParams.provinceTag = true + this.queryParams.deptTag =null + } else if (active === 1) { + this.queryParams.provinceTag = null + this.queryParams.deptTag = true + }else { + this.queryParams.provinceTag = null + this.queryParams.deptTag = null + } this.getList() this.getVideoCount() }, -- Gitblit v1.8.0