Commit 957ece0c by zhangxw

bug 修改

1 parent 72feb1ac
...@@ -162,6 +162,7 @@ export default { ...@@ -162,6 +162,7 @@ export default {
applyIdsList: [] applyIdsList: []
} }
], ],
editStatus: false,
configEditFormData: [ configEditFormData: [
{ {
label: '证书串', label: '证书串',
...@@ -203,6 +204,14 @@ export default { ...@@ -203,6 +204,14 @@ export default {
this.jumpH5Path = `${window.location.origin}/scrm-wx-merchant-activity/#/testPayMerchant/index` this.jumpH5Path = `${window.location.origin}/scrm-wx-merchant-activity/#/testPayMerchant/index`
} }
}, },
watch: {
editForm: {
handler(val) {
this.editStatus = true
},
deep: true
}
},
methods: { methods: {
remoteMethod(query) { remoteMethod(query) {
this.queryMerchantName = query this.queryMerchantName = query
...@@ -322,6 +331,26 @@ export default { ...@@ -322,6 +331,26 @@ export default {
} }
}) })
}, },
cancelJump() {
this.$router.push({
path: '/seckillActivity/index'
})
},
handleCancel() {
if (this.editStatus) {
this.$confirm('当前有内容信息未保存,是否继续返回?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
.then(() => {
this.goback()
})
.catch(() => {})
} else {
this.goback()
}
},
handleTestConfirm() { handleTestConfirm() {
this.isShowTestDialog = !this.isShowTestDialog this.isShowTestDialog = !this.isShowTestDialog
}, },
...@@ -428,6 +457,7 @@ export default { ...@@ -428,6 +457,7 @@ export default {
name: file.name, name: file.name,
url: res.data url: res.data
}) })
this.$refs.configEditFormRef.$refs[this.editChildRef].validateField("certificateFile")
} }
if (num == 2) { if (num == 2) {
if (this.fileCertList.length > 1) this.fileCertList = [] if (this.fileCertList.length > 1) this.fileCertList = []
...@@ -435,6 +465,7 @@ export default { ...@@ -435,6 +465,7 @@ export default {
name: file.name, name: file.name,
url: res.data url: res.data
}) })
this.$refs.configEditFormRef.$refs[this.editChildRef].validateField("certificateFile")
} }
} else { } else {
this.$message.error(res.message) this.$message.error(res.message)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!