装备列表接口对接

This commit is contained in:
zzyuan 2024-11-26 08:58:16 +08:00
parent 9f8650b8cc
commit ce52f40c31
2 changed files with 15 additions and 15 deletions

View File

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

View File

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