BUG 28231

This commit is contained in:
aixianling
2022-03-15 16:35:20 +08:00
parent b84577f809
commit c3a517184e
4 changed files with 12 additions and 6 deletions

View File

@@ -208,8 +208,8 @@ export default {
} else { } else {
document.title = '新增人员' document.title = '新增人员'
if (this.$route.query.appId) { if (this.$route.query.appId) {
this.appId = this.$route.query.appId let {appId: value, appName} = this.$route.query
this.typeConfirm([this.$route.query]) this.typeConfirm([{value, label: decodeURIComponent(appName)}])
} }
} }
}, },

View File

@@ -124,7 +124,6 @@ export default {
onShow() { onShow() {
document.title = '新建走访' document.title = '新建走访'
}, },
mounted() {},
methods: { methods: {
realityClick() { realityClick() {
if (this.id) return if (this.id) return
@@ -178,7 +177,6 @@ export default {
this.$http this.$http
.post(`/app/appvisitvondolence/addOrUpdate`, { .post(`/app/appvisitvondolence/addOrUpdate`, {
areaId: this.forms.areaId, areaId: this.forms.areaId,
applicationId: this.forms.applicationId,
name: this.forms.name, name: this.forms.name,
visitTime: this.forms.visitTime, visitTime: this.forms.visitTime,
optionId: this.forms.optionId, optionId: this.forms.optionId,

View File

@@ -176,7 +176,13 @@ export default {
uni.$once("selectType", () => { uni.$once("selectType", () => {
this.getUsers() this.getUsers()
}) })
uni.navigateTo({url: `/apps/AppSpecialPeople/add?appId=${this.appId}&appName=${this.applicationName}`}) let {appId, applicationName: appName} = this
uni.navigateTo({
url: this.$qs.stringifyUrl({
url: "/apps/AppSpecialPeople/add",
query: {appId, appName}
})
})
} }
}, },
} }

View File

@@ -1,5 +1,6 @@
import dict from "./dict"; import dict from "./dict";
import dayjs from './monent'; import dayjs from './monent';
import qs from 'query-string'
const confirm = (content, title, config) => { const confirm = (content, title, config) => {
let ops = {content} let ops = {content}
@@ -275,5 +276,6 @@ export default {
} }
}, },
dayjs, dayjs,
idCardNoUtil idCardNoUtil,
qs
} }