Commit b3133195 authored by 耿迪迪's avatar 耿迪迪

Merge branch 'master' of ssh://111.61.77.35:15/gengdidi/gassafety

parents e1e20af9 7aec9f00
...@@ -272,3 +272,23 @@ ...@@ -272,3 +272,23 @@
display: none; display: none;
} }
} }
// 所有的提示框标题
.el-dialog__header{
padding-bottom:0;
padding:0px;
height: 51px;
line-height: 50px;
background-color: #053b6a;
.el-dialog__title{
display: inline-block;
margin-left:22px;
color:#fff;
}
.el-dialog__headerbtn{
i{
color: #fff;
}
}
// background-color: ;
}
\ No newline at end of file
<template> <template>
<el-dialog <el-dialog
title="新增" :title="myTitle"
:visible.sync="dialogVisible" :visible.sync="dialogVisible"
:before-close="handleClose" :before-close="handleClose"
> >
...@@ -9,8 +9,8 @@ ...@@ -9,8 +9,8 @@
:rules="rules" :rules="rules"
ref="editForm" ref="editForm"
:model="editForm" :model="editForm"
label-width="120px" label-width="135px"
size="mini"
> >
<el-col> <el-col>
<el-form-item v-show="false" label="管道id" prop="pipeId"> <el-form-item v-show="false" label="管道id" prop="pipeId">
...@@ -224,6 +224,15 @@ export default { ...@@ -224,6 +224,15 @@ export default {
}, },
}; };
}, },
computed:{
myTitle(){
if(this.editForm.pipeId){
return `修改管道信息`
}else{
return `新增管道信息`
}
}
},
created() { created() {
console.log("lineData", this.lineData, this.lnglatsArr, this.pipeLength); console.log("lineData", this.lineData, this.lnglatsArr, this.pipeLength);
if (this.lineData?.pipeId) { if (this.lineData?.pipeId) {
......
...@@ -602,7 +602,7 @@ class gaodeMap { ...@@ -602,7 +602,7 @@ class gaodeMap {
lineData: { pipeName } lineData: { pipeName }
} = obj.getExtData(); } = obj.getExtData();
vue vue
.$confirm(`是否删除${pipeName}`, "提示", { .$confirm(`是否删除名称为${pipeName}的管道 ?`, "提示", {
// confirmButtonText: "确定", // confirmButtonText: "确定",
// cancelButtonText: "取消", // cancelButtonText: "取消",
type: "warning" type: "warning"
......
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