信息处理

main
limingtao 1 year ago
parent 56bdf3e0e0
commit 824f3178e9
  1. 6
      pages/index/index.vue
  2. 6
      pages/investigation/index.vue
  3. 119
      pages/investigation/task.vue

@ -180,11 +180,13 @@
}, },
handleClick(row) { handleClick(row) {
if (row.pcType == 2) { if (row.pcType == 2) {
this.$.open("/pages/investigation/task" + "?id=" + row.businessId); this.$.open("/pages/investigation/task" + "?id=" + row.businessId+ '&sectionId=' + row.sectionCode +
'&operator=' + row.operator + '&deptId=' + row.handleDept + '&taskName=' + row.name +
'&pcType' + row.pcType+'&sectionName='+row.sectionName);
} else { } else {
this.$.open('/pages/map/index?businessId=' + row.businessId + '&sectionId=' + row.sectionCode + this.$.open('/pages/map/index?businessId=' + row.businessId + '&sectionId=' + row.sectionCode +
'&operator=' + row.operator + '&deptId=' + row.handleDept + '&taskName=' + row.name + '&operator=' + row.operator + '&deptId=' + row.handleDept + '&taskName=' + row.name +
'&pcType' + row.pcType) '&pcType' + row.pcType+'&sectionName='+row.sectionName)
} }
}, },
konw() { konw() {

@ -205,13 +205,15 @@
console.log(row) console.log(row)
if (this.tab === 1) { if (this.tab === 1) {
if (row.pcType == 2) { if (row.pcType == 2) {
this.$.open("/pages/investigation/task" + "?id=" + row.businessId); this.$.open("/pages/investigation/task" + "?id=" + row.businessId+ '&sectionId=' + row.sectionCode +
'&operator=' + row.operator + '&deptId=' + row.handleDept + '&taskName=' + row.name +
'&pcType' + row.pcType+'&sectionName='+row.sectionName);
} else { } else {
this.$.open('/pages/map/index?businessId=' + row.businessId + this.$.open('/pages/map/index?businessId=' + row.businessId +
'&operator=' + row.operator + '&operator=' + row.operator +
'&deptId=' + row.handleDept + '&deptId=' + row.handleDept +
'&pcType=' + row.pcType + '&pcType=' + row.pcType +
'&type=' + (this.tab == 1 ? 'edit' : 'view')) '&type=' + (this.tab == 1 ? 'edit' : 'view')+'&sectionName='+row.sectionName)
// this.$.open('/pages/map/index?businessId=' + row.businessId) // this.$.open('/pages/map/index?businessId=' + row.businessId)
} }

@ -33,6 +33,32 @@
</view> </view>
<view class="formBox" v-if="active === 1"> <view class="formBox" v-if="active === 1">
<uni-forms :modelValue="formData" border> <uni-forms :modelValue="formData" border>
<view class="label-box">
<view class="border"></view> {{name}}
</view>
<uni-forms-item label="所属辖区" class="border-top">
<view class="Height100 Flex Flex_end Flex_C_S-Center" style="line-height: 37px; ">
<!-- <input v-if="isEdit" type="text" class="BorderNone Height100 formInput"
v-model="formData.roadType" placeholder="请输入所属辖区" @focus="focus" /> -->
<view class="Height100" :class="formData.xqname?'':'gary'" v-if="isEdit"
@click="openPicker">{{ formData.xqname?formData.xqname:'请选择所属辖区' }} </view>
<view class="Height100" v-else>{{ formData.xqname }}</view>
<view class="Height100"></view>
</view>
</uni-forms-item>
<uni-forms-item label="所属街道" class="border-bottom">
<view class="Height100 Flex Flex_end Flex_C_S-Center" style="line-height: 37px; ">
<view class="Height100" :class="formData.jdname?'':'gary'" v-if="isEdit"
@click="openPicker">{{ formData.jdname?formData.jdname:'请选择所属街道' }} </view>
<view class="Height100" v-else>{{ formData.jdname }}</view>
<view class="Height100"></view>
</view>
</uni-forms-item>
<view class="label-box">
<view class="border"></view> {{sectionName}}
</view>
<uni-forms-item label="道路类型"> <uni-forms-item label="道路类型">
<view class="Height100 Flex Flex_end Flex_C_S-Center" style="line-height: 37px; "> <view class="Height100 Flex Flex_end Flex_C_S-Center" style="line-height: 37px; ">
<input v-if="isEdit" type="text" class="BorderNone Height100 formInput" <input v-if="isEdit" type="text" class="BorderNone Height100 formInput"
@ -49,10 +75,10 @@
<view class="Height100"></view> <view class="Height100"></view>
</view> </view>
</uni-forms-item> </uni-forms-item>
<uni-forms-item label="车数"> <uni-forms-item label="车数">
<view class="Height100 Flex Flex_end Flex_C_S-Center" style="line-height: 37px; "> <view class="Height100 Flex Flex_end Flex_C_S-Center" style="line-height: 37px; ">
<input v-if="isEdit" type="number" class="BorderNone Height100 formInput" <input v-if="isEdit" type="number" class="BorderNone Height100 formInput"
v-model="formData.laneCount" placeholder="请输入车数" @focus="focus"/> v-model="formData.laneCount" placeholder="请输入车数" @focus="focus" />
<view class="Height100" v-else>{{ formData.laneCount }}</view> <view class="Height100" v-else>{{ formData.laneCount }}</view>
<view class="Height100"></view> <view class="Height100"></view>
</view> </view>
@ -102,6 +128,8 @@
<image src="/static/base.jpg" mode="widthFix"></image> <image src="/static/base.jpg" mode="widthFix"></image>
</view> --> </view> -->
</view> </view>
<u-picker :show="showPicker" :columns="columnsPicker" keyName="label" @cancel="pickerCancel"
@confirm="pickerConfirm"></u-picker>
<view class="echarts" v-if="active === 2"> <view class="echarts" v-if="active === 2">
<qiun-data-charts type="area" :opts="opts" :chartData="chartData" /> <qiun-data-charts type="area" :opts="opts" :chartData="chartData" />
</view> </view>
@ -391,14 +419,20 @@
this.boxHeight = uni.getSystemInfoSync().windowHeight; this.boxHeight = uni.getSystemInfoSync().windowHeight;
if (e.id) { if (e.id) {
this.businessId = e.id; this.businessId = e.id;
this.name = e.taskName
this.sectionName = e.sectionName
console.log(e)
this.type = e.type; this.type = e.type;
this.getBaseData(e.id); this.getBaseData(e.id);
this.getStreetCommunity()
} }
}, },
data() { data() {
return { return {
businessId: "", businessId: "",
name: "",
sectionName:'',
$: this.$, $: this.$,
fileList1: [], fileList1: [],
fileList: [], fileList: [],
@ -567,7 +601,11 @@
describeArr: [], describeArr: [],
temporary: '', temporary: '',
type: 'edit', type: 'edit',
boxHeight: 773 boxHeight: 773,
showPicker: false,
columnsPicker: [
],
}; };
}, },
watch: { watch: {
@ -602,6 +640,22 @@
} }
}, },
pickerCancel(e) {
this.showPicker = false
},
pickerConfirm(e) {
console.log(e.value)
this.showPicker = false
this.formData.jdcode = e.value[0].id
this.formData.xqcode = e.value[0].id
this.$set(this.formData, 'jdname', e.value[0].label)
this.$set(this.formData, 'xqname', e.value[0].label)
},
openPicker() {
this.showPicker = true
},
select2(v, list, list2) { select2(v, list, list2) {
list.dangerItems.forEach(item => { list.dangerItems.forEach(item => {
// this.troubleshootingDataitem.idid // this.troubleshootingDataitem.idid
@ -731,7 +785,10 @@
console.error(error) console.error(error)
} }
for (let item of arr) { for (let item of arr) {
this.fileList.push({ url: item, name: '' }) this.fileList.push({
url: item,
name: ''
})
} }
} else { } else {
this.fileList = []; this.fileList = [];
@ -770,6 +827,25 @@
// }; // };
// this.fileList = []; // this.fileList = [];
}, },
getStreetCommunity() {
this.$request
.globalRequest(
"/hiddenDanger/config/getStreetCommunity", {
},
"GET"
)
.then((res) => {
if (res.code === 200) {
console.log(res)
let arr = res.result
for (let item of arr) {
item.label = item.xqname + '-' + item.jdname
}
this.columnsPicker = [arr]
}
});
},
getBaseData(businessId) { getBaseData(businessId) {
this.$request this.$request
.globalRequest( .globalRequest(
@ -959,8 +1035,7 @@
this.troubleshootingData[index].extraConfigs = [] this.troubleshootingData[index].extraConfigs = []
this.$request this.$request
.globalRequest( .globalRequest(
"/hiddenDanger/highDanger/getImportDangerDisplayDetail", "/hiddenDanger/highDanger/getImportDangerDisplayDetail", {
{
dangerId: id, dangerId: id,
businessId: this.businessId, businessId: this.businessId,
}, },
@ -1225,7 +1300,11 @@
if (foundIndex === -1) { if (foundIndex === -1) {
if (item2.checkedSelect) { if (item2.checkedSelect) {
describe.push({ ...item2.checkedSelect, pcType: 1, hdTerm: item2.id, }); describe.push({
...item2.checkedSelect,
pcType: 1,
hdTerm: item2.id,
});
} }
// describehdTermitem2describe // describehdTermitem2describe
@ -1717,4 +1796,28 @@
margin-right: 4px; margin-right: 4px;
font-size: 14px; font-size: 14px;
} }
.gary {
color: #B4BAC9;
}
.label-box {
display: flex;
align-items: center;
height: 110rpx;
font-size: 30rpx;
.border {
background-color: #2663BF;
height: 35rpx;
width: 6rpx;
margin-right: 14rpx;
}
}
.border-bottom {
border-bottom: 1px #eee solid;
}
.border-top {
border-top: 1px #eee solid;
}
</style> </style>
Loading…
Cancel
Save