30704569 by zhen

feat:更新iframe测试用例

1 parent aceda2b9
<template>
<Card>
<Card v-loading="pageLoading">
<h4 class="mb10">产品基本属性</h4>
<el-form
class="count-form"
......@@ -215,7 +215,8 @@ export default {
},
linkRules: {
link: [{ validator: validateLink, trigger: 'blur' }]
}
},
pageLoading: false
}
},
computed: {
......@@ -348,9 +349,9 @@ export default {
this.$router.go(-1)
},
async editOrAdd() {
this.pageLoading = true
const formData = this.constructorFormData()
if (this.idAndCode) {
const formData = this.constructorFormData()
const { code } = await productEdit(formData)
if (code === 0) {
this.$message({
......@@ -369,6 +370,7 @@ export default {
this.$router.push({ path: 'product-infor-management' })
}
}
this.pageLoading = false
},
constructorFormData() {
const formData = new FormData()
......@@ -384,7 +386,8 @@ export default {
this.fileList.forEach(item => {
if (item.file) {
formData.append(`file${item.id}`, item.file)
} else {
}
if (!item.name) {
blackFile.push(item.id)
}
})
......@@ -406,10 +409,10 @@ export default {
code: this.idAndCode.code
})
this.form = {
name: name,
type: type,
code: code,
risk: risk,
name,
type,
code,
risk,
channel: channel.split(',').map(item => item - 0)
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!