| | |
| | | <!-- 顶部自定义导航 --> |
| | | <!-- <view class=""> --> |
| | | |
| | | <tn-nav-bar fixed> |
| | | <tn-nav-bar fixed :isBack="false"> |
| | | <text class="page-title">信息</text> |
| | | </tn-nav-bar> |
| | | <!-- </view> --> |
| | |
| | | }, 400) |
| | | }, |
| | | onLoad() { |
| | | console.log(4444444); |
| | | this.lock = false |
| | | |
| | | }, |
| | |
| | | const params = { |
| | | ids: this.checkboxValue1 |
| | | } |
| | | if (this.vuex_is_login) { |
| | | moreprocessingWarn(params).then((res) => { |
| | | if (res.code == 0) { |
| | | this.$refs.refSuccess.showBox({ |
| | |
| | | }); |
| | | } |
| | | }) |
| | | } |
| | | }, |
| | | checkboxChange(n) { |
| | | this.show = true |
| | |
| | | size: data.size, |
| | | company: this.company, |
| | | } |
| | | |
| | | if (this.vuex_is_login) { |
| | | findwarning(params).then((res) => { |
| | | console.log(res); |
| | | |
| | | if (res.code == 0) { |
| | | let list = []; |
| | | setTimeout(() => { |
| | |
| | | }, 1500); |
| | | } |
| | | }) |
| | | }else{ |
| | | callback({ |
| | | list: [], |
| | | total: 0 |
| | | }); |
| | | } |
| | | }, |
| | | handleSearch(data, callback) { |
| | | const params = { |
| | |
| | | objectid: this.keyword, |
| | | company: this.company, |
| | | } |
| | | |
| | | if (this.vuex_is_login) { |
| | | findwarning(params).then((res) => { |
| | | this.list = [] |
| | | if (res.code == 0) { |
| | |
| | | }, 1500); |
| | | } |
| | | }) |
| | | } |
| | | }, |
| | | // 模拟请求数据刷新 |
| | | handleRefresh(data, callback) { |
| | | const params = { |
| | | current: data.page, |
| | | size: data.size, |
| | | objectid: data.objectid, |
| | | company: this.company, |
| | | } |
| | | if (this.vuex_is_login) { |
| | | findwarning(params).then((res) => { |
| | | if (res.code == 0) { |
| | | let list = []; |
| | |
| | | }, 1500); |
| | | } |
| | | }) |
| | | } |
| | | }, |
| | | itemClick(item, index) { |
| | | console.log('点击了', item); |
| | | this.lock = true |
| | | this.warlist = item |
| | | this.warnindex = index |