陆岛权限接口验证

main
张群 3 years ago
parent 68058beb95
commit 0628017fc7
  1. 5
      pages/water/waterWay/form.vue
  2. 2
      pages/water/waterWay/list.vue

@ -182,7 +182,7 @@
let now = new Date(); let now = new Date();
this.form.reportDate = getDateStr(now, -1); // this.form.reportDate = getDateStr(now, -1); //
this.queryTime(); // this.queryTime(); //
// this.queryLandList();// this.queryLandList();//
} else if (options.item) { } else if (options.item) {
this.form = JSON.parse(options.item); this.form = JSON.parse(options.item);
this.form.bizWaterwayIslandDataSaveOrUpdateDTOList = this.form.bizWaterwayIslandDataVOList; this.form.bizWaterwayIslandDataSaveOrUpdateDTOList = this.form.bizWaterwayIslandDataVOList;
@ -204,7 +204,7 @@
this.$request(getApp().globalData.baseUrl + '/api/biz/bizWaterwayIslandAuthority/list', {}, 'GET').then(res => { this.$request(getApp().globalData.baseUrl + '/api/biz/bizWaterwayIslandAuthority/list', {}, 'GET').then(res => {
let arr = []; let arr = [];
res.data.map(item => { res.data.map(item => {
arr.push(item) arr.push(item.stationId);
}) })
this.landList = arr; this.landList = arr;
this.form.bizWaterwayIslandDataSaveOrUpdateDTOList.map(item => { this.form.bizWaterwayIslandDataSaveOrUpdateDTOList.map(item => {
@ -260,6 +260,7 @@
this.$request(getApp().globalData.baseUrl + '/api/biz/waterwayIslandData/getById/' + id, {}, this.$request(getApp().globalData.baseUrl + '/api/biz/waterwayIslandData/getById/' + id, {},
'GET').then(res => { 'GET').then(res => {
this.form = res.data; this.form = res.data;
this.form.bizWaterwayIslandDataSaveOrUpdateDTOList = this.form.bizWaterwayIslandDataVOList;
this.queryTime(); // this.queryTime(); //
this.queryLandList(); this.queryLandList();
}) })

@ -1,6 +1,6 @@
<template> <template>
<view class="page"> <view class="page">
<view class="list_box" v-for="(item,index) in data" :key="index" @click="goPage('/pages/water/waterWay/form', item)"> <view class="list_box" v-for="(item,index) in data" :key="index" @click="goPage('/pages/water/waterWay/form?id='+item.id)">
<view class="list_top"> <view class="list_top">
<view class="unit_tags">报送时间</view> <view class="unit_tags">报送时间</view>
<view>{{item.reportDate || ''}}<text <view>{{item.reportDate || ''}}<text

Loading…
Cancel
Save