From 977955d716039c91fd6292b159e50e15c62100a1 Mon Sep 17 00:00:00 2001
From: yangdelong <828900aaa>
Date: 星期六, 29 五月 2021 16:25:59 +0800
Subject: [PATCH] 企业应急-事件处置-事件信息页面
---
src/components/base-page/enterprise-emergency/event-handling/ResInfo.vue | 175 +++++++++++++++++++++++++++++++++++-----------------------
1 files changed, 106 insertions(+), 69 deletions(-)
diff --git a/src/components/base-page/enterprise-emergency/event-handling/ResInfo.vue b/src/components/base-page/enterprise-emergency/event-handling/ResInfo.vue
index caf39f4..f0c72f7 100644
--- a/src/components/base-page/enterprise-emergency/event-handling/ResInfo.vue
+++ b/src/components/base-page/enterprise-emergency/event-handling/ResInfo.vue
@@ -1,24 +1,26 @@
<template>
- <el-dialog :visible.sync="isShow" class="effect-vol-calc" title="鍛ㄨ竟璧勬簮淇℃伅" :modal="false" v-dialog-drag
+ <el-dialog :visible.sync="isShow" class="res-info-container" title="鍛ㄨ竟璧勬簮淇℃伅" :modal="false" v-dialog-drag
width="400" >
<el-row>
<el-col :span="3" style="text-align: center;">
- <el-row> <el-button type="primary" size="mini" @click="reSet">搴旀�ュ熀纭�</el-button> </el-row>
-<el-row> <el-button type="primary" size="mini" @click="reSet">鍦ㄧ嚎鐩戞祴</el-button></el-row>
-<el-row> <el-button type="primary" size="mini" @click="reSet">搴旀�ヨ祫婧�</el-button></el-row>
-<el-row> <el-button type="primary" size="mini" @click="reSet">鍛ㄨ竟鐜</el-button></el-row>
-<el-row> <el-button type="primary" size="mini" @click="reSet">绠¢亾淇℃伅</el-button></el-row>
+ <el-row v-for="(item,index) in menuList" :key="index">
+ <el-button type="primary" size="mini" :class="index===btnActive?'hover':''" @click="menuClickHandle(item,index)">{{ item.name }}</el-button>
+ </el-row>
+<!--<el-row> <el-button type="primary" size="mini" @click="menuClickHandle">鍦ㄧ嚎鐩戞祴</el-button></el-row>-->
+<!--<el-row> <el-button type="primary" size="mini" @click="menuClickHandle">搴旀�ヨ祫婧�</el-button></el-row>-->
+<!--<el-row> <el-button type="primary" size="mini" @click="menuClickHandle">鍛ㄨ竟鐜</el-button></el-row>-->
+<!--<el-row> <el-button type="primary" size="mini" @click="menuClickHandle">绠¢亾淇℃伅</el-button></el-row>-->
</el-col>
<el-col :span="21">
<el-row>
- <el-button type="primary" size="mini" @click="reSet">鍐呮帓鍙�(1)</el-button>
- <el-button type="primary" size="mini" @click="reSet">澶栨帓鍙�(1)</el-button>
- <el-button type="primary" size="mini" @click="reSet">闅旀补姹�(1)</el-button>
- <el-button type="primary" size="mini" @click="reSet">鑺傛祦闃�(1)</el-button>
- <el-button type="primary" size="mini" @click="reSet">闃�闂�(1)</el-button>
- <el-button type="primary" size="mini" @click="reSet">闆嗘按姹�(1)</el-button>
- <el-button type="primary" size="mini" @click="reSet">浜嬫晠姘寸绾�(1)</el-button>
- <el-button type="primary" size="mini" @click="reSet">闆ㄦ按绠$嚎(1)</el-button>
+ <el-button v-for="(item,index) in subMenuList" :class="index===subBtnActive?'hover':''" :key="item.name" type="primary" size="mini" @click="subMenuClickHandle(item,index)">{{ item.name }}</el-button>
+<!-- <el-button type="primary" size="mini" @click="subMenuClickHandle">澶栨帓鍙�(1)</el-button>-->
+<!-- <el-button type="primary" size="mini" @click="subMenuClickHandle">闅旀补姹�(1)</el-button>-->
+<!-- <el-button type="primary" size="mini" @click="subMenuClickHandle">鑺傛祦闃�(1)</el-button>-->
+<!-- <el-button type="primary" size="mini" @click="subMenuClickHandle">闃�闂�(1)</el-button>-->
+<!-- <el-button type="primary" size="mini" @click="subMenuClickHandle">闆嗘按姹�(1)</el-button>-->
+<!-- <el-button type="primary" size="mini" @click="subMenuClickHandle">浜嬫晠姘寸绾�(1)</el-button>-->
+<!-- <el-button type="primary" size="mini" @click="subMenuClickHandle">闆ㄦ按绠$嚎(1)</el-button>-->
</el-row>
<el-row>
<el-table
@@ -38,11 +40,16 @@
</template>
<script>
+import ResInfo from '@components/base-page/enterprise-emergency/event-handling/ResInfo'
export default {
name: 'ResInfo',
data () {
return {
isShow: false,
+ btnActive: 0,
+ subBtnActive: 0,
+ menuList: ResInfo.data,
+ subMenuList: ResInfo.data[0].child,
tableData: [
{
id: 1,
@@ -88,58 +95,60 @@
}
],
currentTableData: {
- column: [{
- label: '搴忓彿',
- prop: 'no',
- width: 'auto'
- },
- {
- label: '瀛樻斁鐐瑰悕绉�',
- prop: 'name',
- width: 'auto'
- },
- {
- label: '瀛樻斁鐐圭被鍨�',
- prop: 'type',
- width: 'auto'
- },
- {
- label: '璐熻矗浜�',
- prop: 'master',
- width: 'auto'
- },
- {
- label: '鑱旂郴鐢佃瘽',
- prop: 'phone',
- width: 'auto'
- },
- {
- label: '鐗╄祫鍚嶇О锛堟眹鎬伙級',
- prop: 'total',
- width: '200'
- },
- {
- label: '璺濈',
- prop: 'distance',
- width: 'auto'
- }],
- data: [{
- no: '1',
- name: '閲戦櫟鏃跺�欏簲鎬ョ墿璧勫瓨鏀剧偣',
- type: '搴撴埧瀛樻斁鐐�',
- master: '寮犱笁',
- phone: '1333333333',
- total: '娓呮按娉碉紱缂栫粐琚嬶紱閾侀晲锛涢搧閿癸紱闆ㄨ。锛涢洦闉嬶紱闃叉按鎵嬬數锛涙帰鐓х伅锛涢夯缁�',
- distance: '900m'
- }, {
- no: '2',
- name: '閲戦櫟鏃跺�欏簲鎬ョ墿璧勫瓨鏀剧偣',
- type: '搴撴埧瀛樻斁鐐�',
- master: '寮犱笁涓�',
- phone: '1333333333',
- total: '娓呮按娉碉紱缂栫粐琚嬶紱閾侀晲锛涢搧閿癸紱闆ㄨ。锛涢洦闉嬶紱闃叉按鎵嬬數锛涙帰鐓х伅锛涢夯缁�',
- distance: '900m'
- }]
+ column: [
+ {
+ label: '搴忓彿',
+ prop: 'no',
+ width: 'auto'
+ },
+ {
+ label: '瀛樻斁鐐瑰悕绉�',
+ prop: 'name',
+ width: 'auto'
+ },
+ {
+ label: '瀛樻斁鐐圭被鍨�',
+ prop: 'type',
+ width: 'auto'
+ },
+ {
+ label: '璐熻矗浜�',
+ prop: 'master',
+ width: 'auto'
+ },
+ {
+ label: '鑱旂郴鐢佃瘽',
+ prop: 'phone',
+ width: 'auto'
+ },
+ {
+ label: '鐗╄祫鍚嶇О锛堟眹鎬伙級',
+ prop: 'total',
+ width: '200'
+ },
+ {
+ label: '璺濈',
+ prop: 'distance',
+ width: 'auto'
+ }],
+ data: [
+ {
+ no: '1',
+ name: '閲戦櫟鏃跺�欏簲鎬ョ墿璧勫瓨鏀剧偣',
+ type: '搴撴埧瀛樻斁鐐�',
+ master: '寮犱笁',
+ phone: '1333333333',
+ total: '娓呮按娉碉紱缂栫粐琚嬶紱閾侀晲锛涢搧閿癸紱闆ㄨ。锛涢洦闉嬶紱闃叉按鎵嬬數锛涙帰鐓х伅锛涢夯缁�',
+ distance: '900m'
+ }, {
+ no: '2',
+ name: '閲戦櫟鏃跺�欏簲鎬ョ墿璧勫瓨鏀剧偣',
+ type: '搴撴埧瀛樻斁鐐�',
+ master: '寮犱笁涓�',
+ phone: '1333333333',
+ total: '娓呮按娉碉紱缂栫粐琚嬶紱閾侀晲锛涢搧閿癸紱闆ㄨ。锛涢洦闉嬶紱闃叉按鎵嬬數锛涙帰鐓х伅锛涢夯缁�',
+ distance: '900m'
+ }]
}
}
},
@@ -153,13 +162,41 @@
getVisible () {
return this.isShow
},
- reSet () {
-
+ menuClickHandle (item, index) {
+ this.btnActive = index
+ this.subBtnActive = 0
+ this.subMenuList = item.child
+ },
+ subMenuClickHandle (subItem, index) {
+ this.subBtnActive = index
+ this.currentTableData.column = subItem.column
}
}
}
</script>
-<style scoped>
+<style lang="less">
+.res-info-container{
+ /deep/ .el-dialog {
+ left: 810px;
+ }
+
+ .el-dialog__header {
+ padding: 4px 10px;
+ }
+
+ .el-dialog__headerbtn {
+ top: 10px;
+ }
+ .hover{
+ color: @color-highlight;
+ border-color:@color-highlight;
+ }
+ .el-button:active .el-button--primary.is-active, .el-button--primary:active ,.el-button--primary:focus, .el-button--primary:hover{
+ background: @background-color;
+ color: @color-highlight;
+ border-color:@color-highlight;
+ }
+}
</style>
--
Gitblit v1.8.0