电子巡更修改

dev
Tuzki 2 years ago
parent 9caa5fc8bb
commit 146f4ea1a3
  1. 8
      ruoyi-ui/src/views/picture/resource-monitoring/dialog-module/tour-detail.vue
  2. 6
      ruoyi-ui/src/views/picture/resource-monitoring/dialog-module/tourist-detail.vue
  3. 4
      ruoyi-ui/src/views/picture/resource-monitoring/utils/commonRequest.js
  4. 58
      ruoyi-ui/src/views/system/management/electronic-patrol/patrol-task/index.vue
  5. 4
      ruoyi-ui/src/views/system/management/marketing-data/complaint/index.vue

@ -469,7 +469,7 @@
</div>
</el-col>
<el-col :span="12">
<base-card-sub-title title="微信关注度分析1"></base-card-sub-title>
<base-card-sub-title title="微信关注度分析"></base-card-sub-title>
<div style="height: 210px" class="m-t-small">
<base-echarts1
v-if="wxEchartDate.eChartData!=undefined&&wxEchartDate.eChartData.seriesData!=undefined&&wxEchartDate.eChartData.seriesData.length>0"
@ -1089,7 +1089,7 @@ export default {
if (this.dataType == 'fun') {
let params = {
id: this.id,
type: 1
type: 3
}
getOperationStatisticsType(params).then(response => {
this.TypeData.eChartData = response.data
@ -1098,7 +1098,7 @@ export default {
if (this.dataType == 'food') {
let params = {
id: this.id,
type: 2
type: 1
}
getOperationStatisticsType(params).then(response => {
this.TypeData.eChartData = response.data
@ -1107,7 +1107,7 @@ export default {
if (this.dataType == 'shopping') {
let params = {
id: this.id,
type: 3
type: 2
}
getOperationStatisticsType(params).then(response => {
this.TypeData.eChartData = response.data

@ -157,7 +157,7 @@
</el-col>
<el-col :span="10" class="in-line">
<span>饱和度</span>
<dv-percent-pond :config="config" style="width:200px;height:50px;"/>
<dv-percent-pond :config="config" style="width:200px;height:40px;"/>
</el-col>
</el-row>
<el-row class="top-0">
@ -421,11 +421,7 @@ export default {
{name: "区域", type: 'region'},
];
}
//
this.getVehicleStatisticsById()
//
this.getTimePeriodTrafficFlowTrendById()
},
methods: {
format(percentage) {

@ -91,7 +91,11 @@ export default {
this.getFlowHourData();
this.getScenicDayFlow();
}else{
//获取 车流统计 数据
this.getVehicleStatisticsById()
//获取 分时段车流趋势 数据
this.getTimePeriodTrafficFlowTrendById()
}
this.navActive = index

@ -256,6 +256,8 @@ export default {
components: {Transfers},
data() {
return {
//
lineNumber:null,
//id
taskId: null,
//
@ -318,7 +320,7 @@ export default {
{required: true, message: "排序编码不能为空", trigger: "blur"}
],
patrolType: [
{required: true, message: "巡更类型不能为空", trigger: "change"}
{required: true, message: "巡更类型不能为空", trigger: "blur"}
],
taskState: [
{required: true, message: "任务状态 1:未开始2:执行中3:已停止4:已过期不能为空", trigger: "blur"}
@ -561,13 +563,10 @@ export default {
icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-default.png',
position: [val.lang, val.lat],
offset: new AMap.Pixel(-16, -60),
extData:(val)
})
this.myMarker.setExtData(val)
this.map.add(this.myMarker)
this.myMarker.on('click', (e) => {
console.log(e)
})
this.markers.push(this.myMarker)
this.map.setFitView()
},
@ -586,33 +585,42 @@ export default {
deleteEvent(val, num) {
this.form.taskMatter.splice(num, 1)
},
selectPoint(val, index) {
console.log(val, index, this.form.taskMatter, 'jjj')
this.markers.forEach(marker => {
marker.on('click', () => {
selectPoint(val, index1) {
console.log(val, index1, this.form.taskMatter, 'jjj')
this.lineNumber = index1
let obj = {}
this.markers.forEach((item,index) => {
item.on('click', () => {
if (this.selectedMarker) {
this.selectedMarker.setIcon(
"//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-default.png"
);
}
this.selectedMarker = marker
marker.setIcon('//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png')
this.selectedMarker = item
item.setIcon('//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-red.png')
obj = item.getExtData()
this.setData(obj,index1)
});
});
if (this.selectedMarker !== null) {
this.setData(this.selectedMarker, val, index)
} else {
this.$message.warning('选择右侧点位')
}
// if (this.selectedMarker !== null) {
// this.setData(this.selectedMarker, val, index)
// } else {
// this.$message.warning('')
// }
},
setData(point, val, index) {
console.log(point, val, index)
let obj = {
id: point.getExtData().id,
patrolPointName: point.getExtData().patrolPointName
}
this.$nextTick(() => {
this.form.taskMatter[index] = obj
setData(point, index) {
let this_ = this
console.log(point, index,this_.form.taskMatter)
this.$nextTick(()=>{
// if (this_.form.taskMatter[this.lineNumber].patrolPointId==''){
this_.form.taskMatter[this.lineNumber].patrolPointId = point.id
this_.form.taskMatter[this.lineNumber].patrolPointName = point.patrolPointName
this.$forceUpdate()
console.log(point,this_.form.taskMatter)
// }
})
},

@ -263,7 +263,7 @@
</el-form-item>
<el-form-item label="事发地" prop="occurrenceProvince">
<el-select v-model="form.occurrenceProvince" placeholder="请选择" @change="getCity($event)">
<el-select v-model="form.occurrenceProvince" placeholder="请选择" @change="getCity($event,1)">
<el-option
v-for="dict in provinceOptions"
:key="dict.regionId"
@ -272,7 +272,7 @@
/>
</el-select>
<el-select v-model="form.occurrenceCity" placeholder="请选择" @change="getCountry($event)">
<el-select v-model="form.occurrenceCity" placeholder="请选择" @change="getCountry($event,1)">
<el-option
v-for="dict in cityOptionsTwo"
:key="dict.regionId"

Loading…
Cancel
Save