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

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

@ -168,7 +168,11 @@
}, },
handleClick(row) { handleClick(row) {
console.log(row) console.log(row)
this.$.open('/pages/map/index?businessId=' + row.businessId + '&sectionId=' + row.sectionCode + '&deptId=' + row.deptId + '&taskName=' + row.name) 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() { konw() {
this.$.open('/pages/knowledge/index') this.$.open('/pages/knowledge/index')

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

@ -183,7 +183,7 @@
</cover-view> </cover-view>
<cover-view class="umodal-line2"></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>
</cover-view> </cover-view>
@ -231,6 +231,7 @@ export default {
show: false, show: false,
type:'edit', type:'edit',
show2: false, show2: false,
pcType: 0
}; };
}, },
onLoad(options) { onLoad(options) {
@ -246,7 +247,12 @@ export default {
this.pageType = 1; this.pageType = 1;
this.initData(); this.initData();
}, },
onShow() {
if(this.pcType == 2) {
this.pcType = 0
this.backPage()
}
},
onReady() { onReady() {
// wx // wx
this.getAuthorize() this.getAuthorize()
@ -414,9 +420,8 @@ export default {
// } // }
// this.data = this.data.concat(data); // this.data = this.data.concat(data);
}, },
handleCheck(v) { handleCheck(v, t) {
this.show = false; this.show = false;
this.show2 = false;
if (v == 1) { if (v == 1) {
// let json = { // let json = {
// name: "023", // name: "023",
@ -444,7 +449,31 @@ export default {
); );
} }
if (v == 2) { if (v == 2) {
this.$.open("/pages/investigation/task" + "?id=" + this.businessId); 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'); // this.$.open(url + "?id=" + 'RX202310210236');

Loading…
Cancel
Save