mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-12 10:00:56 +08:00
Compare commits
3 Commits
9240049ab4
...
3f9ecd9714
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3f9ecd9714 | ||
|
|
77f5558ead | ||
|
|
71aaf71186 |
@ -94,7 +94,8 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
newFlow(item) {
|
newFlow(item) {
|
||||||
console.log(item)
|
console.log(item)
|
||||||
this.$router.push(item.url)
|
let _url = item.url.replace('#/', '')
|
||||||
|
this.$router.push(_url)
|
||||||
},
|
},
|
||||||
async _loadData() {
|
async _loadData() {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
|
|||||||
@ -162,19 +162,18 @@ export default {
|
|||||||
routeOptions: [],
|
routeOptions: [],
|
||||||
signTypeOptions: [],
|
signTypeOptions: [],
|
||||||
weekDays: [
|
weekDays: [
|
||||||
this.$t('inspectionPlan.monday'),
|
this.$t('addInspectionPlan.monday'),
|
||||||
this.$t('inspectionPlan.tuesday'),
|
this.$t('addInspectionPlan.tuesday'),
|
||||||
this.$t('inspectionPlan.wednesday'),
|
this.$t('addInspectionPlan.wednesday'),
|
||||||
this.$t('inspectionPlan.thursday'),
|
this.$t('addInspectionPlan.thursday'),
|
||||||
this.$t('inspectionPlan.friday'),
|
this.$t('addInspectionPlan.friday'),
|
||||||
this.$t('inspectionPlan.saturday'),
|
this.$t('addInspectionPlan.saturday'),
|
||||||
this.$t('inspectionPlan.sunday')
|
this.$t('addInspectionPlan.sunday')
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async created() {
|
async created() {
|
||||||
await this.loadDictData()
|
await this.loadDictData()
|
||||||
this.loadRoutes()
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async loadDictData() {
|
async loadDictData() {
|
||||||
@ -187,11 +186,11 @@ export default {
|
|||||||
|
|
||||||
async loadRoutes() {
|
async loadRoutes() {
|
||||||
try {
|
try {
|
||||||
const { data } = await listInspectionRoutes({
|
const { inspectionRoutes } = await listInspectionRoutes({
|
||||||
page: 1,
|
page: 1,
|
||||||
row: 100
|
row: 100
|
||||||
})
|
})
|
||||||
this.routeOptions = data
|
this.routeOptions = inspectionRoutes
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Failed to load routes:', error)
|
console.error('Failed to load routes:', error)
|
||||||
}
|
}
|
||||||
@ -206,6 +205,8 @@ export default {
|
|||||||
workdays: plan.inspectionWorkday ? plan.inspectionWorkday.split(',').map(Number) : []
|
workdays: plan.inspectionWorkday ? plan.inspectionWorkday.split(',').map(Number) : []
|
||||||
}
|
}
|
||||||
this.loadStaffs(plan.inspectionPlanId)
|
this.loadStaffs(plan.inspectionPlanId)
|
||||||
|
this.loadRoutes()
|
||||||
|
|
||||||
this.visible = true
|
this.visible = true
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -48,12 +48,14 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
open(params) {
|
open(params) {
|
||||||
this.pointRouteInfo.inspectionId = params.inspectionId
|
this.pointRouteInfo.inspectionId = params.inspectionId
|
||||||
|
this.pointRouteInfo.inspectionRouteId = params.inspectionRouteId
|
||||||
this._loadPointRouteData()
|
this._loadPointRouteData()
|
||||||
},
|
},
|
||||||
loadData(point) {
|
loadData(point) {
|
||||||
if (!point) return
|
if (!point) return
|
||||||
|
|
||||||
this.pointRouteInfo.inspectionId = point.inspectionId
|
this.pointRouteInfo.inspectionId = point.inspectionId
|
||||||
|
this.pointRouteInfo.inspectionRouteId = point.inspectionRouteId
|
||||||
this._loadPointRouteData()
|
this._loadPointRouteData()
|
||||||
},
|
},
|
||||||
async _loadPointRouteData() {
|
async _loadPointRouteData() {
|
||||||
@ -61,6 +63,7 @@ export default {
|
|||||||
const params = {
|
const params = {
|
||||||
communityId: this.communityId,
|
communityId: this.communityId,
|
||||||
inspectionId: this.pointRouteInfo.inspectionId,
|
inspectionId: this.pointRouteInfo.inspectionId,
|
||||||
|
inspectionRouteId: this.pointRouteInfo.inspectionRouteId,
|
||||||
page: 1,
|
page: 1,
|
||||||
row: 100
|
row: 100
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user