Commit df53c830 authored by 纪泽龙's avatar 纪泽龙

样式调整

parent 41696f61
...@@ -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
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
<el-dialog <el-dialog
:title="title" :title="title"
:visible.sync="dialogVisible" :visible.sync="dialogVisible"
width="80%"
:before-close="handleClose" :before-close="handleClose"
> >
<el-row> <el-row>
......
<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) {
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
<el-dialog <el-dialog
:title="title" :title="title"
:visible.sync="dialogVisible" :visible.sync="dialogVisible"
width="80%"
:before-close="handleClose" :before-close="handleClose"
> >
<el-row> <el-row>
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
<el-dialog <el-dialog
:title="title" :title="title"
:visible.sync="dialogVisible" :visible.sync="dialogVisible"
width="80%"
:before-close="handleClose"> :before-close="handleClose">
<el-row> <el-row>
<el-form ref="form" :model="form" :rules="rules" label-width="135px"> <el-form ref="form" :model="form" :rules="rules" label-width="135px">
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
<el-dialog <el-dialog
:title="title" :title="title"
:visible.sync="dialogVisible" :visible.sync="dialogVisible"
width="80%"
:before-close="handleClose"> :before-close="handleClose">
<el-row> <el-row>
<el-form ref="form" :model="form" :rules="rules" label-width="135px"> <el-form ref="form" :model="form" :rules="rules" label-width="135px">
......
...@@ -601,7 +601,7 @@ class gaodeMap { ...@@ -601,7 +601,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