Browse Source

2024年4月18日17:37:59

纪新园 1 năm trước cách đây
mục cha
commit
c6e201fa32

+ 6 - 3
src/views/tirePartsMall/basicData/brandPage/detailsPage.vue

@@ -137,16 +137,19 @@ export default {
     },
     //是否启用
     enableNot(){
-      const { brandFilesList, ...formWithoutBrandFilesList } = this.form;
+      // const { brandFilesList, ...formWithoutBrandFilesList } = this.form;
+      // const { brandFigureList, ...formWithoutbrandFigureListList } = this.form;
       const loading = this.$loading({
         lock: true,
         text: '加载中',
         spinner: 'el-icon-loading',
         background: 'rgba(255,255,255,0.7)'
       })
+      this.form.enableOrNot=this.form.enableOrNot == 0?1:0
+       delete this.form.brandFigureList
+       delete this.form.brandFilesList
       updateEnableOrNot({
-        ...formWithoutBrandFilesList,
-        enableOrNot:this.form.enableOrNot == 0?1:0
+        ...this.form
       }).then(res=>{
         loading.close()
         this.$message.success("操作成功")