| | |
| | | |
| | | <view v-for="(item, index) in list" :key="index"> |
| | | |
| | | |
| | | <view> |
| | | |
| | | <tn-button class="modal-btn" backgroundColor="#01BEFF" size="sm" |
| | | @click="itemClick(item,index)">删除</tn-button> |
| | | <view style="display: flex;margin-top: 10px;"> |
| | | |
| | | <!-- <u-checkbox-group v-model="item.checked" placement="column" @change="checkboxChange(item)"> |
| | | <u-checkbox :customStyle="{marginTop: '5px'}"> |
| | | </u-checkbox> |
| | |
| | | <view style="margin-left: 23px;margin-bottom: 10px;font-size: 20px;">告警类型:{{item.warntype}} |
| | | </view> |
| | | </view> |
| | | |
| | | <view style="display: flex;"> |
| | | <!-- <view>{{index+1}}</view> |
| | | <view style="margin-left: 15px;margin-bottom: 10px;color: #5e5e5e;">编号:{{item.tagid}} |
| | | </view> |
| | | <view style="margin-left: 23px;margin-bottom: 10px;color: #5e5e5e;">名称:{{item.pname}}</view> --> |
| | | |
| | | <view style="margin-left: 23px;margin-bottom: 10px;color: #5e5e5e;">ID:{{item.tagid}} |
| | | <view style="margin-left: 23px;margin-bottom: 10px;color: #5e5e5e;">触发围栏:{{item.baoliu1}} |
| | | </view> |
| | | </view> |
| | | <view style="display: flex;"> |
| | | <view>{{index+1}}</view> |
| | | <view style="margin-left: 15px;margin-bottom: 10px;color: #5e5e5e;">编号:{{item.tagid}} |
| | | </view> |
| | | <view style="margin-left: 23px;margin-bottom: 10px;color: #5e5e5e;">名称:{{item.pname}}</view> |
| | | |
| | | <view style="margin-left: 23px;margin-bottom: 10px;color: #5e5e5e;">触发围栏:{{item.baoliu1}}</view> |
| | | <!-- <view style="margin-left: 23px;margin-bottom: 10px;color: #5e5e5e;">触发围栏:{{item.baoliu1}} |
| | | </view> --> |
| | | </view> |
| | | <view style="display: flex;"> |
| | | |
| | | <view style="margin-left: 23px;margin-bottom: 10px;color: #5e5e5e;">设备类型:{{item.pbaoliu1}} |
| | | </view> |
| | | <view style="margin-left: 23px;margin-bottom: 10px;color: #5e5e5e;">告警类型:{{item.ptype}}</view> |
| | | <view style="margin-left: 23px;margin-bottom: 10px;color: #5e5e5e;">告警类型:{{item.ptype}} |
| | | </view> |
| | | |
| | | <!-- <view style="margin-left: 23px;margin-bottom: 10px;color: #5e5e5e;">触发围栏:{{item.baoliu1}}</view> --> |
| | | </view> |
| | |
| | | this.lock = true |
| | | }, |
| | | methods: { |
| | | // change(currentPage, type) { // 当前页改变 |
| | | // this.page.currentPage = currentPage; |
| | | // console.log("点击了" + type + ",当前页:" + currentPage); |
| | | // }, |
| | | // sizeChange(pageSize) { // 每页条数改变 |
| | | // this.page.pageSize = pageSize; |
| | | // console.log("每页", pageSize, "条"); |
| | | // }, |
| | | // changeTotal() { // 更改总条数 |
| | | // this.page.total = 555 |
| | | // }, |
| | | // changeCurrentPage() { // 更改当前页 |
| | | // this.page.currentPage = 3 |
| | | // }, |
| | | moreprocessing() { |
| | | const params = { |
| | | ids: this.checkboxValue1 |
| | |
| | | }, |
| | | // 模拟请求加载数据 |
| | | handleLoad(data, callback) { |
| | | console.log(data); |
| | | const params = { |
| | | current: data.page, |
| | | size: data.size, |
| | |
| | | } |
| | | if (this.vuex_is_login) { |
| | | findwarning(params).then((res) => { |
| | | console.log(res); |
| | | if (res.code == 0) { |
| | | let list = []; |
| | | setTimeout(() => { |
| | |
| | | for (var i = 0; i < res.data.records.length; i++) { |
| | | list.push(res.data.records[i]); |
| | | } |
| | | this.list = [] |
| | | // this.list = [] |
| | | this.list = [...this.list, ...list]; |
| | | console.log(this.list); |
| | | callback({ |
| | | list: this.list, |
| | | total: res.data.total |
| | |
| | | } |
| | | if (this.vuex_is_login) { |
| | | findwarning(params).then((res) => { |
| | | console.log(res); |
| | | if (res.code == 0) { |
| | | let list = []; |
| | | setTimeout(() => { |
| | | let list = []; |
| | | console.log(res.data.records.length); |
| | | for (var i = 0; i < res.data.records.length; i++) { |
| | | console.log(111); |
| | | list.push(res.data.records[i]); |
| | | } |
| | | console.log(list); |
| | | this.list = [] |
| | | this.list = [...this.list, ...list]; |
| | | console.log(this.list); |
| | | callback({ |
| | | list: this.list, |
| | | total: res.data.total |