Merge branch 'ma-mall-ui' of http://192.168.0.56:3000/bonus/bonus-ui into ma-mall-ui

This commit is contained in:
jjLv 2024-11-26 13:34:49 +08:00
commit 5a35954dc9
2 changed files with 15 additions and 15 deletions

View File

@ -11,13 +11,13 @@
<el-button v-if="!isView"
type="warning" @click="saveTemp"
icon="el-icon-download"
>草稿</el-button>
>草稿</el-button>
</el-col>
<el-col :span="2">
<el-button v-if="!isView"
type="success" @click="addDev"
icon="el-icon-check"
>上架</el-button>
>保存</el-button>
</el-col>
</el-row>
@ -515,9 +515,9 @@ import { number } from "echarts";
}
},
//
getDevDetailInfo(){
async getDevDetailInfo(){
console.log(this.maId)
getDevDetail(this.maId).then((response) => {
await getDevDetail(this.maId).then((response) => {
console.log(response)
this.formData = response.data;
this.$set(this.formData,"companyId",Number(response.data.companyId))
@ -596,7 +596,7 @@ import { number } from "echarts";
insurancePdf:this.insurancePdf,//
examinationPdf:this.examinationPdf,//
}
this.$modal.confirm('是否确认上架该装备?').then(() => {
this.$modal.confirm('是否确认保存该装备?').then(() => {
// if(this.maId&&this.maId!=""){
// updateDevice(param).then((response) => {
// if(response.code==200){
@ -607,14 +607,14 @@ import { number } from "echarts";
// }
// })
// }else{
// addDevice(param).then((response) => {
// if(response.code==200){
// this.$modal.msgSuccess("");
// this.backList()
// }else{
// this.$modal.msgError(response.msg);
// }
// })
addDevice(param).then((response) => {
if(response.code==200){
this.$modal.msgSuccess("保存成功");
this.backList()
}else{
this.$modal.msgError(response.msg);
}
})
// }
}).catch(() => {})
}

View File

@ -126,7 +126,7 @@
@click="handleUpdate(scope.row)">
编辑
</el-button>
<el-button v-if="scope.row.maStatus == 0||scope.row.maStatus == 1||scope.row.maStatus == 2"
<el-button v-if="scope.row.maStatus == 1||scope.row.maStatus == 2"
size="mini" type="warning">
<span
v-if="scope.row.maStatus == 2"
@ -134,7 +134,7 @@
下架
</span>
<span
v-if="scope.row.maStatus == 0||scope.row.maStatus == 1"
v-if="scope.row.maStatus == 1"
@click="handleUpdateUpDown(scope.row,2)">
上架
</span>