| | |
| | | <template> |
| | | <div class="sub-account" v-if="!isShowAdd"> |
| | | <div class="search"> |
| | | <div class="left"> |
| | | <div class="id"> |
| | | 点位名称 |
| | | <el-input v-model="inputText" placeholder="请输入" clearable></el-input> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="right"> |
| | | <div class="button searchBtn" @click="checkCamerasList(1)">搜索</div> |
| | | <!-- <div class="button resetBtn" @click="reset">重置</div> --> |
| | | </div> |
| | | </div> |
| | | <div class="btns"> |
| | | <div class="button add" @click="addPoint"> |
| | | <span class="iconfont"></span> |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | query: {}, |
| | | inputText: "", //输入框内容 |
| | | cameraOptions: [], |
| | | scene_nameOptions: [ |
| | | { |
| | |
| | | { |
| | | value: "区域入侵", |
| | | label: "区域入侵" |
| | | }, |
| | | { |
| | | value: "人员撤离", |
| | | label: "人员撤离" |
| | | }, |
| | | { |
| | | value: "人员离岗", |
| | |
| | | total: 0 //总数, |
| | | } |
| | | }, |
| | | created() { |
| | | this.checkCamerasList() |
| | | async created() { |
| | | let query = { pageIndex: this.page, pageSize: this.size, keyword: this.inputText } |
| | | this.query = query |
| | | let res = await camerasList(query) |
| | | this.dataList = res.data |
| | | this.total = res.total |
| | | this.aaaaa() |
| | | }, |
| | | |
| | |
| | | this.checkCamerasList() |
| | | }) |
| | | }, |
| | | async checkCamerasList() { |
| | | let res = await camerasList({ pageIndex: this.page, pageSize: this.size }) |
| | | this.dataList = res.data |
| | | this.total = res.total |
| | | async checkCamerasList(val) { |
| | | if (val === 1) { |
| | | let query = { pageIndex: this.page, pageSize: this.size, keyword: this.inputText } |
| | | this.query = query |
| | | let res = await camerasList(query) |
| | | this.dataList = res.data |
| | | this.total = res.total |
| | | } else { |
| | | let res = await camerasList(this.query) |
| | | this.dataList = res.data |
| | | this.total = res.total |
| | | } |
| | | }, |
| | | resetUser() { |
| | | this.ruleForm = { |