|
@@ -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("操作成功")
|