From ba50073d4aeda7a1e30243e6469be9c2cec472b3 Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@smartai.com> Date: 星期六, 08 十月 2022 18:17:25 +0800 Subject: [PATCH] 修改检索显示的摄像机地址,调整上报页面的查询 --- src/views/dataPush/components/point.vue | 58 ++++++++++++++++++++++++++++++++-------------------------- 1 files changed, 32 insertions(+), 26 deletions(-) diff --git a/src/views/dataPush/components/point.vue b/src/views/dataPush/components/point.vue index 4614ced..9b9be52 100644 --- a/src/views/dataPush/components/point.vue +++ b/src/views/dataPush/components/point.vue @@ -3,7 +3,7 @@ <div class="search"> <div class="left"> <div class="id"> - 鐐逛綅鍚嶇О + 鐐逛綅鍚嶇О/浼佷笟缂栫爜/鍦烘櫙 <el-input v-model="inputText" placeholder="璇疯緭鍏�" clearable></el-input> </div> </div> @@ -17,26 +17,20 @@ <span class="iconfont"></span> <span>娣诲姞鐐逛綅</span> </div> - <!-- <div class="switchBox"> - 鎬荤偣浣嶅紑鍏� - <el-switch - v-model="value1" - width="60" - active-color="#13ce66" - inactive-color="#f0f3f5" - @change="changeAll($event)" - > - </el-switch> - </div> --> </div> - + <div class="switchBox"> + 寮�鍚笂鎶� + <el-table-column prop="Enable" label="寮�鍏�" width="70px" show-overflow-tooltip> + <el-switch v-model="value1" active-color="#0065ff" @change="changeAll($event)"> </el-switch> + </el-table-column> + </div> <div class="table-area"> <el-table id="multipleTable" ref="multipleTable" :data="dataList" :fit="true" - :default-sort="{ prop: 'createTime', order: 'descending' }" + :default-sort="{ prop: 'companyCode', order: 'ascending' }" > <el-table-column prop="cameraName" label="鐐逛綅鍚嶇О" width="130px" show-overflow-tooltip></el-table-column> <el-table-column prop="channelCode" label="鎶ヨ閫氶亾缂栫爜" show-overflow-tooltip></el-table-column> @@ -47,12 +41,7 @@ </el-table-column> <el-table-column prop="Enable" label="寮�鍏�" width="70px" show-overflow-tooltip> <template slot-scope="scope"> - <el-switch - v-model="scope.row.enable" - @change="changeSwitch($event, scope.row)" - active-color="#13ce66" - inactive-color="#f0f3f5" - > + <el-switch v-model="scope.row.enable" @change="changeSwitch($event, scope.row)" active-color="#0065ff"> </el-switch> </template> </el-table-column> @@ -459,7 +448,6 @@ } </script> -<style scoped lang="scss"></style> <style scoped lang="scss"> .sub-account { padding: 20px; @@ -625,10 +613,7 @@ margin: 20px 0; text-align: center; justify-content: space-between; - .switchBox { - display: flex; - align-items: center; - } + .add { margin-right: 20px; width: 126px; @@ -655,7 +640,15 @@ } } } - + .switchBox { + display: flex; + align-items: center; + float: right; + position: absolute; + right: 20px; + top: 130px; + font-size: 14px; + } .el-table ::v-deep { background-color: rgb(233, 235, 238); padding: 1px; @@ -779,4 +772,17 @@ color: #0065ff; border-color: #0065ff; } + +/* .el-switch__core { + width: 40px !important; + height: 20px; +} +.el-switch__core::after { + width: 16px; + height: 16px; + margin-top: -1px; +} +.el-switch.is-checked .el-switch__core::after { + margin-left: -17px; +} */ </style> -- Gitblit v1.8.0