Commit 4f64729b authored by 耿迪迪's avatar 耿迪迪

设备图片上传问题修改 gengdidi

parent 766c1adb
...@@ -5,10 +5,10 @@ ENV = 'development' ...@@ -5,10 +5,10 @@ ENV = 'development'
VUE_APP_BASE_API = '/dev-api' VUE_APP_BASE_API = '/dev-api'
#地图中心 #地图中心
VUE_APP_MAP_CENTER = '石家庄' VUE_APP_MAP_CENTER = '松原'
#代理地址 #代理地址
VUE_APP_TARGET = 'http://36.148.23.59:8901/gassafety' VUE_APP_TARGET = 'http://36.148.1.253:8091/gassafety'
# 路由懒加载 # 路由懒加载
VUE_CLI_BABEL_TRANSPILE_MODULES = true VUE_CLI_BABEL_TRANSPILE_MODULES = true
...@@ -5,9 +5,9 @@ ENV = 'production' ...@@ -5,9 +5,9 @@ ENV = 'production'
VUE_APP_BASE_API = '/prod-api' VUE_APP_BASE_API = '/prod-api'
#地图中心 #地图中心
VUE_APP_MAP_CENTER = '石家庄' VUE_APP_MAP_CENTER = '松原'
#代理地址 #代理地址
VUE_APP_TARGET = 'http://36.148.23.59:8901/gassafety' VUE_APP_TARGET = 'http://36.148.1.253:8091/gassafety'
port = 8091 port = 8091
...@@ -220,7 +220,7 @@ ...@@ -220,7 +220,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="11"> <!--<el-col :span="11">
<el-form-item label="联系人" prop="linkman"> <el-form-item label="联系人" prop="linkman">
<el-input v-model="form.linkman" placeholder="请输入联系人" /> <el-input v-model="form.linkman" placeholder="请输入联系人" />
</el-form-item> </el-form-item>
...@@ -247,7 +247,7 @@ ...@@ -247,7 +247,7 @@
/> />
<el-input v-show="false" disabled v-model="form.iconUrl"></el-input> <el-input v-show="false" disabled v-model="form.iconUrl"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>-->
<el-col> <el-col>
<el-form-item label="安装日期" prop="installationTime"> <el-form-item label="安装日期" prop="installationTime">
...@@ -376,7 +376,7 @@ ...@@ -376,7 +376,7 @@
], ],
/*iotNo: [ /*iotNo: [
{ required: true, message: "请输入物联网编号", trigger: "blur" }, { required: true, message: "请输入物联网编号", trigger: "blur" },
],*/ ],
linkman: [ linkman: [
{ required: true, message: "请输入联系人", trigger: "blur" } { required: true, message: "请输入联系人", trigger: "blur" }
], ],
...@@ -386,7 +386,7 @@ ...@@ -386,7 +386,7 @@
], ],
iconUrl: [ iconUrl: [
{ required: true, message: "请上传图片", trigger: "change" } { required: true, message: "请上传图片", trigger: "change" }
], ],*/
installationTime: [ installationTime: [
{ required: true, message: "请选择日期", trigger: "change" }, { required: true, message: "请选择日期", trigger: "change" },
], ],
......
...@@ -83,11 +83,11 @@ ...@@ -83,11 +83,11 @@
<el-form-item label="最后巡检时间:" prop="inspectionTime"> <el-form-item label="最后巡检时间:" prop="inspectionTime">
<font>{{form.inspectionTime}}</font> <font>{{form.inspectionTime}}</font>
</el-form-item> </el-form-item>
<el-form-item label="设备图片:" prop="iconUrl"> <!--<el-form-item label="设备图片:" prop="iconUrl">
<div style="width: 20%;"> <div style="width: 20%;">
<el-image :src="form.iconUrl" :preview-src-list="[form.iconUrl]" style="width: auto;height: auto;"></el-image> <el-image :src="form.iconUrl" :preview-src-list="[form.iconUrl]" style="width: auto;height: auto;"></el-image>
</div> </div>
</el-form-item> </el-form-item>-->
</el-form> </el-form>
</el-col> </el-col>
<el-col :span="11"> <el-col :span="11">
......
...@@ -201,7 +201,7 @@ ...@@ -201,7 +201,7 @@
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col> <!-- <el-col>
<el-form-item label="管道图片上传" prop="iconUrl"> <el-form-item label="管道图片上传" prop="iconUrl">
<MyFileUpload <MyFileUpload
listType="picture-card" listType="picture-card"
...@@ -211,7 +211,7 @@ ...@@ -211,7 +211,7 @@
/> />
<el-input v-show="false" disabled v-model="form.iconUrl"></el-input> <el-input v-show="false" disabled v-model="form.iconUrl"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>-->
<el-col> <el-col>
<el-form-item label="安装日期" prop="installationTime"> <el-form-item label="安装日期" prop="installationTime">
<el-col :span="11"> <el-col :span="11">
...@@ -337,9 +337,9 @@ ...@@ -337,9 +337,9 @@
coordinates: [ coordinates: [
{ required: true, message: "请选择管道坐标", trigger: "blur" }, { required: true, message: "请选择管道坐标", trigger: "blur" },
], ],
iconUrl: [ /* iconUrl: [
{ required: true, message: "请上传图片", trigger: "change" }, { required: true, message: "请上传图片", trigger: "change" },
], ],*/
installationTime: [ installationTime: [
{ required: true, message: "请选择日期", trigger: "change" }, { required: true, message: "请选择日期", trigger: "change" },
], ],
......
...@@ -69,11 +69,11 @@ ...@@ -69,11 +69,11 @@
<el-form-item label="最后巡检时间:" prop="inspectionTime"> <el-form-item label="最后巡检时间:" prop="inspectionTime">
<font>{{form.inspectionTime}}</font> <font>{{form.inspectionTime}}</font>
</el-form-item> </el-form-item>
<el-form-item label="管道图片:" prop="iconUrl"> <!-- <el-form-item label="管道图片:" prop="iconUrl">
<div style="width: 20%;"> <div style="width: 20%;">
<el-image :src="form.iconUrl" :preview-src-list="[form.iconUrl]" style="width: auto;height: auto;"></el-image> <el-image :src="form.iconUrl" :preview-src-list="[form.iconUrl]" style="width: auto;height: auto;"></el-image>
</div> </div>
</el-form-item> </el-form-item>-->
</el-form> </el-form>
</el-col> </el-col>
<el-col :span="11"> <el-col :span="11">
...@@ -342,7 +342,7 @@ ...@@ -342,7 +342,7 @@
}else{ }else{
tip = '请确认是否删除管道名称为"' + res.pipeName + '"的数据项' tip = '请确认是否删除管道名称为"' + res.pipeName + '"的数据项'
} }
this.$confirm(tip, { this.$confirm(tip, {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment