黑龙江民政考核评分基本完成

This commit is contained in:
aixianling
2022-10-24 18:03:11 +08:00
parent 9ef85056d8
commit e17b089c44
7 changed files with 278 additions and 37 deletions

View File

@@ -36,7 +36,8 @@ export default {
},
isPreview() {
return !!this.$route.query?.preview
}
},
action: v => v.$route.query.action || "appquestionnairetemplate"
},
methods: {
...mapActions(['getCode', 'getToken']),
@@ -45,7 +46,7 @@ export default {
if (this.isPreview) {
this.access = true
} else if (!!this.user.token) {
this.$http.post("/app/appquestionnairetemplate/commitCheck", null, {
this.$http.post(`/app/${this.action}/commitCheck`, null, {
params: {id}
}).then(res => {
if (res?.code == 0) {

View File

@@ -80,7 +80,8 @@ export default {
},
isPreview() {
return !!this.$route.query?.preview
}
},
action: v => v.$route.query.action || "appquestionnairetemplate"
},
data() {
return {
@@ -113,7 +114,7 @@ export default {
...mapMutations(['logout']),
getForm() {
let {id} = this.$route.query
this.$http.post("/app/appquestionnairetemplate/queryDetailById", null, {
this.$http.post(`/app/${this.action}/queryDetailById`, null, {
withoutToken: true,
params: {id}
}).then(res => {
@@ -124,7 +125,7 @@ export default {
},
getResult() {
let {id} = this.$route.query
this.$http.post("/app/appquestionnairetemplate/commitCheck", null, {
this.$http.post(`/app/${this.action}/commitCheck`, null, {
params: {id}
}).then(res => {
if (res?.data) {
@@ -144,7 +145,7 @@ export default {
if (this.validateForm()) {
this.handleScore()
let {avatar: avatarUrl, openId, name: nickName, type: userType, unionId, corpName} = this.openUser
this.$http.post("/app/appquestionnairetemplate/commit", {
this.$http.post(`/app/${this.action}/commit`, {
fields: this.fields.map(e => ({
...e,
fieldInfo: JSON.stringify(e.fieldInfo),