zhangqun 11 months ago
parent 7e54204a31
commit b45157223e
  1. 11
      pages/index/detail.vue
  2. 4
      pages/index/index.vue
  3. 9
      pages/investigation/index.vue
  4. 37
      pages/map/index.vue

@ -229,11 +229,12 @@ export default {
},
onLoad(options) {
let params = options;
// params.deptId = "3702000000";
// params.id = "37020017609";
// params.sectionId = "37020017609";
// params.roadName = "023";
// params.taskId = "000001";
params.deptId = "3702000000";
params.id = "37020017609";
params.sectionId = "37020017609";
params.roadName = "023县道";
params.taskId = "000001";
params.userId = "admin1";
this.params = params;
let str = "";
if (params.roadName) {

@ -168,7 +168,11 @@
},
handleClick(row) {
console.log(row)
if(row.pcType == 2) {
this.$.open("/pages/investigation/task" + "?id=" + this.businessId);
} else {
this.$.open('/pages/map/index?businessId=' + row.businessId + '&sectionId=' + row.sectionCode + '&deptId=' + row.deptId + '&taskName=' + row.name)
}
},
konw() {
this.$.open('/pages/knowledge/index')

@ -192,11 +192,16 @@
handleClick(row) {
console.log(row)
if (this.tab === 1) {
if(row.pcType == 2) {
this.$.open("/pages/investigation/task" + "?id=" + this.businessId);
} else {
this.$.open('/pages/map/index?businessId=' + row.businessId +
'operator' + row.operator +
'deptId' + row.deptId +
'&operator' + row.operator +
'&deptId' + row.deptId +
'&type=' + (this.tab == 1 ? 'edit' : 'view'))
// this.$.open('/pages/map/index?businessId=' + row.businessId)
}
}else{
this.$.open('/pages/investigation/task?id=' + row.businessId + '&type=' + (this.tab == 1 ? 'edit' : 'view'))
}

@ -183,7 +183,7 @@
</cover-view>
<cover-view class="umodal-line2"></cover-view>
<cover-view class="umodal-btn" @click="handleCheck(2)">
<cover-view class="umodal-btn" @click="handleCheck(2, true)">
确认
</cover-view>
</cover-view>
@ -231,6 +231,7 @@ export default {
show: false,
type:'edit',
show2: false,
pcType: 0
};
},
onLoad(options) {
@ -246,7 +247,12 @@ export default {
this.pageType = 1;
this.initData();
},
onShow() {
if(this.pcType == 2) {
this.pcType = 0
this.backPage()
}
},
onReady() {
// wx
this.getAuthorize()
@ -414,9 +420,8 @@ export default {
// }
// this.data = this.data.concat(data);
},
handleCheck(v) {
handleCheck(v, t) {
this.show = false;
this.show2 = false;
if (v == 1) {
// let json = {
// name: "023",
@ -444,8 +449,32 @@ export default {
);
}
if (v == 2) {
if(t) {
this.$request
.globalRequest(
"/hiddenDanger/highDanger/HighDangerSaveStatus",
{
businessId: this.businessId,
pcType: "2",
},
"GET"
)
.then((res) => {
console.log(res);
if (res.code === 200) {
this.pcType = 2
this.show2 = false;
this.$.open("/pages/investigation/task" + "?id=" + this.businessId);
} else {
this.$.toast(res.message);
}
});
} else {
this.show2 = false;
this.$.open("/pages/investigation/task" + "?id=" + this.businessId);
}
}
// this.$.open(url + "?id=" + 'RX202310210236');
},

Loading…
Cancel
Save