黑龙江民政考核评分基本完成
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user