Commit 76e2a8e0 by 李伟康

提交

1 parent 17ca749d
......@@ -773,8 +773,9 @@ export default {
watch: {
'formObj.tencentcloudMediaId': {
handler (nVal, oVal) {
const _target = this.formData.find(item => item.name == 'commerceDescribe')
_target.isHide = !nVal
const { goodsSource } = this.formObj,
_target = this.formData.find(item => item.name == 'commerceDescribe')
_target.isHide = goodsSource == 3 ? true : !nVal
if (!nVal) this.formObj.commerceDescribe = ''
},
deep: true
......@@ -782,10 +783,9 @@ export default {
'formObj.goodsSource' (n) {
const hideList = ['propagateCover', 'productVideo', 'tencentcloudMediaId', 'commerceDescribe']
this.formData.forEach(e => {
if (hideList.includes(e.name)) {
e.isHide = n == 3
}
if (hideList.includes(e.name)) e.isHide = n == 3
})
console.log(this.formData)
this.myRule.deliveryType[0].required = n != 3
this.myRule.expressFee[0].required = n != 3
this.$refs.baseInfoRef.$refs.formRef.clearValidate()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!