30704569 by zhen

feat:更新iframe测试用例

1 parent aceda2b9
1 <template> 1 <template>
2 <Card> 2 <Card v-loading="pageLoading">
3 <h4 class="mb10">产品基本属性</h4> 3 <h4 class="mb10">产品基本属性</h4>
4 <el-form 4 <el-form
5 class="count-form" 5 class="count-form"
...@@ -215,7 +215,8 @@ export default { ...@@ -215,7 +215,8 @@ export default {
215 }, 215 },
216 linkRules: { 216 linkRules: {
217 link: [{ validator: validateLink, trigger: 'blur' }] 217 link: [{ validator: validateLink, trigger: 'blur' }]
218 } 218 },
219 pageLoading: false
219 } 220 }
220 }, 221 },
221 computed: { 222 computed: {
...@@ -348,9 +349,9 @@ export default { ...@@ -348,9 +349,9 @@ export default {
348 this.$router.go(-1) 349 this.$router.go(-1)
349 }, 350 },
350 async editOrAdd() { 351 async editOrAdd() {
352 this.pageLoading = true
351 const formData = this.constructorFormData() 353 const formData = this.constructorFormData()
352 if (this.idAndCode) { 354 if (this.idAndCode) {
353 const formData = this.constructorFormData()
354 const { code } = await productEdit(formData) 355 const { code } = await productEdit(formData)
355 if (code === 0) { 356 if (code === 0) {
356 this.$message({ 357 this.$message({
...@@ -369,6 +370,7 @@ export default { ...@@ -369,6 +370,7 @@ export default {
369 this.$router.push({ path: 'product-infor-management' }) 370 this.$router.push({ path: 'product-infor-management' })
370 } 371 }
371 } 372 }
373 this.pageLoading = false
372 }, 374 },
373 constructorFormData() { 375 constructorFormData() {
374 const formData = new FormData() 376 const formData = new FormData()
...@@ -384,7 +386,8 @@ export default { ...@@ -384,7 +386,8 @@ export default {
384 this.fileList.forEach(item => { 386 this.fileList.forEach(item => {
385 if (item.file) { 387 if (item.file) {
386 formData.append(`file${item.id}`, item.file) 388 formData.append(`file${item.id}`, item.file)
387 } else { 389 }
390 if (!item.name) {
388 blackFile.push(item.id) 391 blackFile.push(item.id)
389 } 392 }
390 }) 393 })
...@@ -406,10 +409,10 @@ export default { ...@@ -406,10 +409,10 @@ export default {
406 code: this.idAndCode.code 409 code: this.idAndCode.code
407 }) 410 })
408 this.form = { 411 this.form = {
409 name: name, 412 name,
410 type: type, 413 type,
411 code: code, 414 code,
412 risk: risk, 415 risk,
413 channel: channel.split(',').map(item => item - 0) 416 channel: channel.split(',').map(item => item - 0)
414 } 417 }
415 418
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!