mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-24 05:46:03 +08:00
v1.9 巡检计划中 修改巡检路线没有选择的问题
This commit is contained in:
parent
71aaf71186
commit
77f5558ead
@ -162,19 +162,18 @@ export default {
|
||||
routeOptions: [],
|
||||
signTypeOptions: [],
|
||||
weekDays: [
|
||||
this.$t('inspectionPlan.monday'),
|
||||
this.$t('inspectionPlan.tuesday'),
|
||||
this.$t('inspectionPlan.wednesday'),
|
||||
this.$t('inspectionPlan.thursday'),
|
||||
this.$t('inspectionPlan.friday'),
|
||||
this.$t('inspectionPlan.saturday'),
|
||||
this.$t('inspectionPlan.sunday')
|
||||
this.$t('addInspectionPlan.monday'),
|
||||
this.$t('addInspectionPlan.tuesday'),
|
||||
this.$t('addInspectionPlan.wednesday'),
|
||||
this.$t('addInspectionPlan.thursday'),
|
||||
this.$t('addInspectionPlan.friday'),
|
||||
this.$t('addInspectionPlan.saturday'),
|
||||
this.$t('addInspectionPlan.sunday')
|
||||
]
|
||||
}
|
||||
},
|
||||
async created() {
|
||||
await this.loadDictData()
|
||||
this.loadRoutes()
|
||||
},
|
||||
methods: {
|
||||
async loadDictData() {
|
||||
@ -187,11 +186,11 @@ export default {
|
||||
|
||||
async loadRoutes() {
|
||||
try {
|
||||
const { data } = await listInspectionRoutes({
|
||||
const { inspectionRoutes } = await listInspectionRoutes({
|
||||
page: 1,
|
||||
row: 100
|
||||
})
|
||||
this.routeOptions = data
|
||||
this.routeOptions = inspectionRoutes
|
||||
} catch (error) {
|
||||
console.error('Failed to load routes:', error)
|
||||
}
|
||||
@ -206,6 +205,8 @@ export default {
|
||||
workdays: plan.inspectionWorkday ? plan.inspectionWorkday.split(',').map(Number) : []
|
||||
}
|
||||
this.loadStaffs(plan.inspectionPlanId)
|
||||
this.loadRoutes()
|
||||
|
||||
this.visible = true
|
||||
},
|
||||
|
||||
|
||||
@ -48,12 +48,14 @@ export default {
|
||||
methods: {
|
||||
open(params) {
|
||||
this.pointRouteInfo.inspectionId = params.inspectionId
|
||||
this.pointRouteInfo.inspectionRouteId = params.inspectionRouteId
|
||||
this._loadPointRouteData()
|
||||
},
|
||||
loadData(point) {
|
||||
if (!point) return
|
||||
|
||||
this.pointRouteInfo.inspectionId = point.inspectionId
|
||||
this.pointRouteInfo.inspectionRouteId = point.inspectionRouteId
|
||||
this._loadPointRouteData()
|
||||
},
|
||||
async _loadPointRouteData() {
|
||||
@ -61,6 +63,7 @@ export default {
|
||||
const params = {
|
||||
communityId: this.communityId,
|
||||
inspectionId: this.pointRouteInfo.inspectionId,
|
||||
inspectionRouteId: this.pointRouteInfo.inspectionRouteId,
|
||||
page: 1,
|
||||
row: 100
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user