装备列表接口对接
This commit is contained in:
parent
9f8650b8cc
commit
ce52f40c31
|
|
@ -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(() => {})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue