mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-23 21:36:37 +08:00
Compare commits
3 Commits
9240049ab4
...
3f9ecd9714
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3f9ecd9714 | ||
|
|
77f5558ead | ||
|
|
71aaf71186 |
@ -94,7 +94,8 @@ export default {
|
||||
methods: {
|
||||
newFlow(item) {
|
||||
console.log(item)
|
||||
this.$router.push(item.url)
|
||||
let _url = item.url.replace('#/', '')
|
||||
this.$router.push(_url)
|
||||
},
|
||||
async _loadData() {
|
||||
this.loading = true
|
||||
|
||||
@ -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