|
|
@@ -159,11 +159,11 @@
|
|
|
/>
|
|
|
</template>
|
|
|
</el-table-column> -->
|
|
|
- <!-- <el-table-column label="隔离点图片" align="center" prop="pointPicture">-->
|
|
|
- <!-- <template slot-scope="scope">-->
|
|
|
- <!-- <img :src="scope.row.pointPicture" alt="" />-->
|
|
|
- <!-- </template>-->
|
|
|
- <!-- </el-table-column>-->
|
|
|
+ <el-table-column label="隔离点图片" align="center" prop="pointIcon">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <img :src="scope.row.pointIcon" alt="" style="width: 50px;height: 50px"/>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="隔离点类型" align="center" prop="pointType">
|
|
|
<template slot-scope="scope">
|
|
|
<dict-tag
|
|
|
@@ -312,10 +312,10 @@
|
|
|
/>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="隔离点图片" prop="pointPicture">
|
|
|
+ <el-form-item label="隔离点图片" prop="pointIcon">
|
|
|
<ImageUpload
|
|
|
:limit="1"
|
|
|
- :value="form.pointPicture"
|
|
|
+ :value="form.pointIcon"
|
|
|
:fileSize="5"
|
|
|
@onUploaded="handleImgUplaoded"
|
|
|
@onRemoved="handleImgRemoved"
|
|
|
@@ -474,11 +474,11 @@ export default {
|
|
|
},
|
|
|
//图片上传成功
|
|
|
handleImgUplaoded(imgUrl) {
|
|
|
- this.form.pointPicture = imgUrl;
|
|
|
+ this.form.pointIcon = imgUrl;
|
|
|
},
|
|
|
//图片移除
|
|
|
handleImgRemoved(imgUrl) {
|
|
|
- this.form.pointPicture = null;
|
|
|
+ this.form.pointIcon = null;
|
|
|
},
|
|
|
// 取消按钮
|
|
|
cancel() {
|
|
|
@@ -490,7 +490,7 @@ export default {
|
|
|
this.form = {
|
|
|
pointCode: null,
|
|
|
pointName: null,
|
|
|
- pointPicture: null,
|
|
|
+ pointIcon: null,
|
|
|
pointType: null,
|
|
|
powerType: null,
|
|
|
createTime: null,
|
|
|
@@ -560,6 +560,7 @@ export default {
|
|
|
this.getList();
|
|
|
});
|
|
|
} else {
|
|
|
+ console.log(this.form,'新增参数');
|
|
|
addinsertIsIsolationPoint(this.form).then((response) => {
|
|
|
this.$modal.msgSuccess("新增成功");
|
|
|
this.open = false;
|