¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div class="box"> |
| | | <el-row :gutter="10"> |
| | | <el-col class="left" :span="4"> |
| | | <div style="padding-top: 20px"> |
| | | <div |
| | | @click="change(item)" |
| | | v-for="(item, index) in dataArr" |
| | | :key="'butBox' + index" |
| | | class="butBox" |
| | | :style="focus == item ? highlightImg : defaultImg" |
| | | > |
| | | {{ item }} |
| | | </div> |
| | | </div> |
| | | </el-col> |
| | | <el-col class="right" :span="20"> |
| | | <div style="height: 100%"> |
| | | <div class="boxTop"> |
| | | <div style="margin:20px 20px"> |
| | | <el-table :data="table1.data"> |
| | | <el-table-column width="100" label="平尿 å¿" prop="logo" align="center" > |
| | | <template><div class="bg"></div></template> |
| | | </el-table-column> |
| | | <el-table-column width="200" label="å¹³å°åç§°" prop="name" align="center" ></el-table-column> |
| | | <el-table-column width="100" label="å¹³å°ç±»å" prop="type" align="center" > |
| | | <template slot-scope="scope"><div class="type">{{scope.row.type}}</div></template> |
| | | </el-table-column> |
| | | <el-table-column min-width="350" label="å¹³å°ä¸»é¡µ" prop="url" align="center" ></el-table-column> |
| | | <el-table-column width="200" label="å¹³å°æè¿°" prop="describe" align="center" ></el-table-column> |
| | | <el-table-column width="100" label="å建è
" prop="create" align="center" ></el-table-column> |
| | | <el-table-column width="180" label="å建æ¶é´" prop="createTime" align="center" ></el-table-column> |
| | | <el-table-column width="100" label="åè¦è®¾ç½®" prop="giveAlarm" align="center" > |
| | | <template slot-scope="scope"> |
| | | <el-switch |
| | | v-model="scope.row.giveAlarm" |
| | | active-color="#0CB8FF" |
| | | inactive-color="#ff4949"> |
| | | </el-switch></template> |
| | | </el-table-column> |
| | | <el-table-column width="80" label="ç¼è¾" align="center"> |
| | | <template slot-scope="scope"> |
| | | <div class="edit" @click="handleClick(scope.row)"></div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="å é¤" width="80" align="center"> |
| | | <template slot-scope="scope"> |
| | | <div class="delete" @click="handleClick(scope.row)"></div> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </div> |
| | | </div> |
| | | <div class="boxBottom"> |
| | | <el-row :gutter="30"> |
| | | <el-col :span="12"> |
| | | <div class="box1"> |
| | | <div class="title">{{focus}}</div> |
| | | <div class="group"> |
| | | <div class="text">å¯åç¶æ</div> |
| | | <div class="status">æ£å¸¸å¯å¨</div> |
| | | </div> |
| | | <div class="group"> |
| | | <div class="text">龿¥ç¶æ</div> |
| | | <div class="status">æ£å¸¸é¾æ¥</div> |
| | | </div> |
| | | <div class="group"> |
| | | <div class="text">æ
éæ¶é´</div> |
| | | <div class="status">æ æ
é</div> |
| | | </div> |
| | | <div class="group"> |
| | | <div class="text">æ´æ°æ¶é´</div> |
| | | <div>2024-11-01 11:08:48</div> |
| | | </div> |
| | | <div class="log"> |
| | | <div class="logTitle">å¼å¸¸æ¥å¿</div> |
| | | <div class="logText">8C-11-C 11:35:(6 00 DE0- bierntomhya;ahi.:mn.nf;, imaint:ga:heåºæ·:famu:"sn,sac:1:</div> |
| | | <div class="logText">8C-11-C 11:35:(6 00 DE0- bierntomhya;ahi.:mn.nf;, imaint:ga:heåºæ·:famu:"sn,sac:1:</div> |
| | | </div> |
| | | </div> |
| | | </el-col> |
| | | <el-col style="overflow:auto;" :span="12"> |
| | | <el-table :data="table2.data"> |
| | | <el-table-column align="center" label="åºå·" type="index" width="60"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | v-for="(item, index) in table2.tableTh" |
| | | :key="index" |
| | | :label="item.label" |
| | | :prop="item.prop" |
| | | align="center" |
| | | > |
| | | </el-table-column> |
| | | <el-table-column label="æä½" min-width="60" align="center"> |
| | | <template slot-scope="scope"> |
| | | <el-button |
| | | type="primary" |
| | | @click="handleClick(scope.row)" |
| | | size="small" |
| | | >æ£éª</el-button |
| | | > |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </el-col> |
| | | </el-row> |
| | | </div> |
| | | </div> |
| | | </el-col> |
| | | </el-row> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | name: "ConditionMonitoring", |
| | | data() { |
| | | return { |
| | | focus: "使æ¦å¿µå¼åä¸éªè¯å¹³å°", |
| | | highlightImg: { |
| | | backgroundImage: `url(${require("@/assets/images/ConditionMonitoring/highlight.png")})`, |
| | | }, |
| | | defaultImg: { |
| | | backgroundImage: `url(${require("@/assets/images/ConditionMonitoring/default.png")})`, |
| | | }, |
| | | dataArr: [ |
| | | "使æ¦å¿µå¼åä¸éªè¯å¹³å°", |
| | | "ä½æç³»ç»è®¾è®¡ä¸è¯ä¼°å¹³å°", |
| | | "ä½ææ¹æ¡æ¨æ¼ä¸åæå¹³å°", |
| | | "ææ³åæ°ä¸ä½æè¿ç¨ç ç©¶å¹³å°", |
| | | "æç¥ç»¼åéæç 讨å
", |
| | | "æå¿æ¾ç¤ºåç³»ç»", |
| | | "综å管æ§åç³»ç»", |
| | | "æ°æ®ç®¡çåç³»ç»", |
| | | "仿çèµæºç®¡çç³»ç»", |
| | | ], |
| | | table2: { |
| | | data: [ |
| | | { |
| | | subsystemName: "使æ¦å¿µå¼åä¸éªè¯å¹³å°", |
| | | interactionStatus: "æ£å¸¸", |
| | | updateTime: "2024-01-26", |
| | | }, |
| | | { |
| | | subsystemName: "ä½æç³»ç»è®¾è®¡ä¸è¯ä¼°å¹³å°", |
| | | interactionStatus: "æ£å¸¸", |
| | | updateTime: "2024-01-26", |
| | | }, |
| | | { |
| | | subsystemName: "ä½ææ¹æ¡æ¨æ¼ä¸åæå¹³å°", |
| | | interactionStatus: "æ£å¸¸", |
| | | updateTime: "2024-01-26", |
| | | }, |
| | | { |
| | | subsystemName: "ææ³åæ°ä¸ä½æè¿ç¨ç ç©¶å¹³å°", |
| | | interactionStatus: "æ£å¸¸", |
| | | updateTime: "2024-01-26", |
| | | }, |
| | | { |
| | | subsystemName: "æç¥ç»¼åéæç 讨å
", |
| | | interactionStatus: "æ£å¸¸", |
| | | updateTime: "2024-01-26", |
| | | }, |
| | | { |
| | | subsystemName: "æå¿æ¾ç¤ºåç³»ç»", |
| | | interactionStatus: "æ£å¸¸", |
| | | updateTime: "2024-01-26", |
| | | }, |
| | | { |
| | | subsystemName: "综å管æ§åç³»ç»", |
| | | interactionStatus: "æ£å¸¸", |
| | | updateTime: "2024-01-26", |
| | | }, |
| | | { |
| | | subsystemName: "æ°æ®ç®¡çåç³»ç»", |
| | | interactionStatus: "æ£å¸¸", |
| | | updateTime: "2024-01-26", |
| | | }, |
| | | { |
| | | subsystemName: "仿çèµæºç®¡çç³»ç»", |
| | | interactionStatus: "æ£å¸¸", |
| | | updateTime: "2024-01-26", |
| | | }, |
| | | ], |
| | | tableTh: [ |
| | | { |
| | | label: "åç³»ç»åç§°", |
| | | prop: "subsystemName", |
| | | }, |
| | | { |
| | | label: "交äºç¶æ", |
| | | prop: "interactionStatus", |
| | | }, |
| | | { |
| | | label: "æ´æ°æ¶é´", |
| | | prop: "updateTime", |
| | | }, |
| | | ], |
| | | }, |
| | | table1: { |
| | | data: [ |
| | | { |
| | | name: "使æ¦å¿µå¼åä¸éªè¯å¹³å°", |
| | | type: "é»è®¤åºç¨", |
| | | url: "http://10.64.33.1859080/imcloud2/e/space/task?id=1762040579103117314", |
| | | describe: "", |
| | | create:"管çå", |
| | | createTime: "2024-02-26 17:03:06", |
| | | giveAlarm: true, |
| | | } |
| | | ], |
| | | }, |
| | | }; |
| | | }, |
| | | methods: { |
| | | change(value) { |
| | | this.focus = value; |
| | | this.table1.data.name = value |
| | | this.table1 = { |
| | | data: [ |
| | | { |
| | | name: value, |
| | | type: "é»è®¤åºç¨", |
| | | url: "http://10.64.33.1859080/imcloud2/e/space/task?id=1762040579103117314", |
| | | describe: "", |
| | | create:"管çå", |
| | | createTime: "2024-02-26 17:03:06", |
| | | giveAlarm: true, |
| | | } |
| | | ], |
| | | } |
| | | }, |
| | | handleClick(row) {}, |
| | | }, |
| | | }; |
| | | </script> |
| | | |
| | | <style lang="less" scoped> |
| | | .box { |
| | | width: 100%; |
| | | height: 100%; |
| | | .el-row { |
| | | height: 100%; |
| | | padding: 0 20px 20px; |
| | | .el-col { |
| | | height: 100%; |
| | | } |
| | | } |
| | | .left { |
| | | background-size: 100% 100%; |
| | | background-image: url("~@/assets/images/ConditionMonitoring/left.png"); |
| | | .butBox { |
| | | width: 90%; |
| | | margin: 0px auto 30px; |
| | | text-align: center; |
| | | height: 40px; |
| | | line-height: 40px; |
| | | font-size: 18px; |
| | | cursor: pointer; |
| | | background-size: 100% 100%; |
| | | color: #fff; |
| | | } |
| | | } |
| | | .right { |
| | | background-image: url("~@/assets/images/ConditionMonitoring/right.png"); |
| | | background-size: 100% 100%; |
| | | .boxTop { |
| | | width: 100%; |
| | | height: 20%; |
| | | // margin-bottom: 20px; |
| | | .type{ |
| | | width: 75px; |
| | | height: 25px; |
| | | line-height: 22px; |
| | | background: #066932; |
| | | color: #22C707; |
| | | box-shadow: 0px 2px 6px 0px rgba(0,0,0,0.35); |
| | | border-radius: 4px; |
| | | border: 1px solid #FFFFFF; |
| | | margin:0 auto; |
| | | } |
| | | .bg{ |
| | | width: 50px; |
| | | height: 50px; |
| | | margin:0 auto; |
| | | background-image: url("~@/assets/images/ConditionMonitoring/bg.png"); |
| | | background-size: 100% 100%; |
| | | } |
| | | .edit{ |
| | | width: 38px; |
| | | height: 38px; |
| | | margin:0 auto; |
| | | background-image: url("~@/assets/images/ConditionMonitoring/edit.png"); |
| | | background-size: 100% 100%; |
| | | } |
| | | .delete{ |
| | | width: 38px; |
| | | height: 38px; |
| | | margin:0 auto; |
| | | background-image: url("~@/assets/images/ConditionMonitoring/delete.png"); |
| | | background-size: 100% 100%; |
| | | } |
| | | } |
| | | .boxBottom { |
| | | width: 100%; |
| | | height: 78%; |
| | | .box1{ |
| | | width: 100%; |
| | | height: 100%; |
| | | background-color: #2D4C9E; |
| | | color: #fff; |
| | | .title{ |
| | | padding-top:20px; |
| | | margin-bottom:10px; |
| | | font-size: 24px; |
| | | margin-left:15px; |
| | | } |
| | | .group{ |
| | | display: flex; |
| | | line-height: 37px; |
| | | height: 37px; |
| | | font-size: 20px; |
| | | font-weight: 400; |
| | | margin-bottom:4px; |
| | | .text{ |
| | | width: 130px; |
| | | text-align: center; |
| | | } |
| | | .status{ |
| | | width: 115px; |
| | | // height:37px; |
| | | text-align: center; |
| | | background-color: #00E572; |
| | | } |
| | | } |
| | | .log{ |
| | | width: 88%; |
| | | height: 56%; |
| | | background-color: #181C40; |
| | | margin:20px auto 0; |
| | | padding:10px 20px; |
| | | .logTitle{ |
| | | width: auto; |
| | | height: 30px; |
| | | // font-family: Source Han Sans SC; |
| | | font-weight: 400; |
| | | font-size: 24px; |
| | | color: #0CB8FF; |
| | | // line-height: 10px; |
| | | } |
| | | .logText{ |
| | | line-height: 30px; |
| | | width: 100%; |
| | | overflow: hidden; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | /deep/ .el-table { |
| | | background-color: rgba(0, 0, 0, 0); |
| | | .computeNode { |
| | | background-image: url("~@/assets/images/InferentialTaskControl/computeNode.png"); |
| | | background-size: 100% 100%; |
| | | width: 35px; |
| | | height: 35px; |
| | | margin: 0 auto; |
| | | } |
| | | thead { |
| | | tr { |
| | | th { |
| | | background-color: #1C305F; |
| | | border-bottom: 0px; |
| | | .cell { |
| | | font-weight: 400; |
| | | font-size: 18px; |
| | | color: #fff; |
| | | text-shadow: 0px 0px 2px #00fbff; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | tbody { |
| | | tr { |
| | | background-color: rgba(0, 0, 0, 0); |
| | | td { |
| | | background-color: #181C40; |
| | | border-bottom: 0px; |
| | | .cell { |
| | | font-size: 16px; |
| | | color: #fff; |
| | | } |
| | | } |
| | | } |
| | | tr:hover { |
| | | // border: 2px solid #4b96dd; |
| | | td { |
| | | background-color: #2d468b; |
| | | .cell { |
| | | color: #fff; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | /deep/ .el-table::before { |
| | | height: 0px; |
| | | } |
| | | </style> |