Commit 957ece0c by zhangxw

bug 修改

1 parent 72feb1ac
......@@ -162,6 +162,7 @@ export default {
applyIdsList: []
}
],
editStatus: false,
configEditFormData: [
{
label: '证书串',
......@@ -203,6 +204,14 @@ export default {
this.jumpH5Path = `${window.location.origin}/scrm-wx-merchant-activity/#/testPayMerchant/index`
}
},
watch: {
editForm: {
handler(val) {
this.editStatus = true
},
deep: true
}
},
methods: {
remoteMethod(query) {
this.queryMerchantName = query
......@@ -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() {
this.isShowTestDialog = !this.isShowTestDialog
},
......@@ -428,6 +457,7 @@ export default {
name: file.name,
url: res.data
})
this.$refs.configEditFormRef.$refs[this.editChildRef].validateField("certificateFile")
}
if (num == 2) {
if (this.fileCertList.length > 1) this.fileCertList = []
......@@ -435,7 +465,8 @@ export default {
name: file.name,
url: res.data
})
}
this.$refs.configEditFormRef.$refs[this.editChildRef].validateField("certificateFile")
}
} else {
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!