zhangqun 11 months ago
parent 3ee74fd9a4
commit d04e3a8683
  1. 2
      pages/investigation/components/problem-box.vue
  2. 7
      pages/investigation/index.vue
  3. 2
      pages/investigation/task.vue
  4. 39
      pages/map/index.vue

@ -29,7 +29,7 @@
></u-upload> ></u-upload>
</view> </view>
<view class="detail-item"> <view class="detail-item">
<uni-forms-item label="需采集补充信息" label-position="top" label-width="200px"/> <uni-forms-item label="补充信息" label-position="top" label-width="200px"/>
<u-textarea <u-textarea
placeholder="请输入" placeholder="请输入"
border="none" border="none"

@ -190,9 +190,12 @@
}) })
}, },
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 + '&type=' + (this.tab == 1 ? 'edit' : 'view')) 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) // 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'))

@ -839,7 +839,7 @@
this.$request this.$request
.globalRequest( .globalRequest(
"/hiddenDanger/highDanger/getUserHiddenDangerList", { "/hiddenDanger/highDanger/getUserHiddenDangerList", {
nuserid: this.$.getData("token"), // nuserid: this.$.getData("token"),
pcType: 2, pcType: 2,
businessId businessId
}, },

@ -214,10 +214,14 @@ export default {
faddress: "", faddress: "",
fcoordinate: "", fcoordinate: "",
businessId: "", businessId: "",
operator: "",
deptId: "",
sectionCode: "",
roadName: "",
pointType: "",
pageType1Result: { pageType1Result: {
deadlineType: 3, deadlineType: 3,
}, },
pageType2Result: null,
rname: "", rname: "",
search: "", search: "",
name1: "", name1: "",
@ -233,6 +237,9 @@ export default {
console.log(options); console.log(options);
// this.businessId = "RX202310210238"; // this.businessId = "RX202310210238";
this.businessId = options.businessId; this.businessId = options.businessId;
this.operator = options.operator;
this.deptId = options.deptId;
this.type = options.type; this.type = options.type;
this.pageHeight = uni.getSystemInfoSync().windowHeight; this.pageHeight = uni.getSystemInfoSync().windowHeight;
@ -326,6 +333,9 @@ export default {
if (res.code === 200) { if (res.code === 200) {
if (res.result) { if (res.result) {
this.pageType1Result = res.result; this.pageType1Result = res.result;
this.sectionCode = res.result.sectionCode;
this.roadName = res.result.name;
this.pointType = res.result.pointType;
this.longitude = res.result.coordinateList[0].longitude; //118.787575; this.longitude = res.result.coordinateList[0].longitude; //118.787575;
this.latitude = res.result.coordinateList[0].latitude; //32.05024; this.latitude = res.result.coordinateList[0].latitude; //32.05024;
this.covers = [ this.covers = [
@ -371,7 +381,9 @@ export default {
console.log(res); console.log(res);
if (res.code === 200) { if (res.code === 200) {
this.data = res.result; this.data = res.result;
this.pageType2Result = this.data[0]; this.sectionCode = this.data[0].sectionCode;
this.roadName = this.data[0].name;
this.pointType = this.data[0].type;
this.rname = this.data[0].name; this.rname = this.data[0].name;
this.polyline = [ this.polyline = [
{ {
@ -405,8 +417,6 @@ export default {
handleCheck(v) { handleCheck(v) {
this.show = false; this.show = false;
if (v == 1) { if (v == 1) {
let json =
this.pageType == 1 ? this.pageType1Result : this.pageType2Result;
// let json = { // let json = {
// name: "023", // name: "023",
// operator: "admin1", // operator: "admin1",
@ -417,19 +427,19 @@ export default {
// }; // };
this.$.open( this.$.open(
"/pages/index/detail?taskId=" + "/pages/index/detail?taskId=" +
json.businessId + this.businessId +
"&id=" + "&id=" +
json.sectionCode + this.sectionCode +
"&sectionId=" + "&sectionId=" +
json.sectionCode + this.sectionCode +
"&roadName=" + "&roadName=" +
json.name + this.roadName +
"&userId=" + "&userId=" +
json.operator + this.operator +
"&deptId=" + "&deptId=" +
json.deptId + this.deptId +
"&sectionType=" + "&sectionType=" +
json.pointType this.pointType
); );
} }
if (v == 2) { if (v == 2) {
@ -460,6 +470,9 @@ export default {
console.log(res); console.log(res);
if (res.code === 200) { if (res.code === 200) {
this.show = true; this.show = true;
this.sectionCode = res.sectionCode;
this.roadName = address;
this.pointType = this.ftype;
// this.data = res.result; // this.data = res.result;
// console.log(this.data[0][Object.keys(this.data[0])]) // console.log(this.data[0][Object.keys(this.data[0])])
// this.rname = Object.keys(this.data[0])[0] // this.rname = Object.keys(this.data[0])[0]
@ -482,7 +495,9 @@ export default {
console.log(e); console.log(e);
this.pageType = 2; this.pageType = 2;
this.idx = i; this.idx = i;
this.pageType2Result = e; this.sectionCode = e.sectionCode;
this.roadName = e.name;
this.pointType = e.type;
if (e && e.name && e.position) { if (e && e.name && e.position) {
this.rname = e.name; this.rname = e.name;
this.longitude = e.position[0].longitude; this.longitude = e.position[0].longitude;

Loading…
Cancel
Save