master
fanluyan 1 year ago
parent e7a7e876c6
commit 89cb733d62

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.9 KiB

After

Width:  |  Height:  |  Size: 8.8 KiB

@ -51,7 +51,12 @@ export default {
this.isProduction = process.env.NODE_ENV === "production"; this.isProduction = process.env.NODE_ENV === "production";
if (this.isProduction) { if (this.isProduction) {
// 使IP // 使IP
if (window.location.pathname.includes("/cac")) {
this.hostName = window.location.origin + "/cac/";
} else {
this.hostName = window.location.origin; this.hostName = window.location.origin;
}
console.log("aaaaaaaaaaaa"); console.log("aaaaaaaaaaaa");
} else { } else {
// 使 target // 使 target
@ -62,6 +67,7 @@ export default {
watch: {}, watch: {},
methods: { methods: {
linkHome() { linkHome() {
console.log(this.hostName);
window.location.href = this.hostName; window.location.href = this.hostName;
}, },
}, },
@ -90,7 +96,7 @@ export default {
font-size: 14px; font-size: 14px;
margin-right: 32px; margin-right: 32px;
a { a {
color: #6de1ff; color: #fff;
background-image: url(../assets/menu.png); background-image: url(../assets/menu.png);
height: 40px; height: 40px;
line-height: 40px; line-height: 40px;
@ -99,6 +105,9 @@ export default {
background-repeat: no-repeat; background-repeat: no-repeat;
overflow: hidden; overflow: hidden;
} }
.router-link-active {
color: #6de1ff;
}
} }
} }
} }

@ -420,6 +420,19 @@ export function bindApi(data) {
data, data,
}); });
} }
//解绑
export function unbindApi(data) {
return request({
url: "/parambind/unbind",
method: "post",
params: data,
headers: {
"Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
},
});
}
export function generateParamindexApi(data) { export function generateParamindexApi(data) {
return request({ return request({
url: "/parambind/generateParamindex", url: "/parambind/generateParamindex",

@ -5,7 +5,7 @@ import router from "../router/index";
const service = axios.create({ const service = axios.create({
// process.env.NODE_ENV === 'development' 来判断是否开发环境 // process.env.NODE_ENV === 'development' 来判断是否开发环境
// easy-mock服务挂了暂时不使用了 // easy-mock服务挂了暂时不使用了
// baseURL: '', //baseURL: "",
// timeout: 5000 // timeout: 5000
baseURL: "/cac-api", //把原来的项目地址改成api解决跨域问题 baseURL: "/cac-api", //把原来的项目地址改成api解决跨域问题
timeout: 30000, timeout: 30000,

@ -44,8 +44,10 @@
<el-form-item label="开始日期"> <el-form-item label="开始日期">
<el-date-picker <el-date-picker
v-model="formdata.starttime" v-model="formdata.starttime"
:picker-options="pickerOptions"
type="date" type="date"
placeholder="开始日期" placeholder="开始日期"
default-time="00:00:00"
> >
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
@ -53,7 +55,9 @@
<el-date-picker <el-date-picker
@change="changedate" @change="changedate"
v-model="formdata.endtime" v-model="formdata.endtime"
:picker-options="pickerOptions"
type="date" type="date"
default-time="23:59:59"
placeholder="结束日期" placeholder="结束日期"
class="ml10" class="ml10"
> >
@ -163,6 +167,11 @@ export default {
components: { lineChart }, components: { lineChart },
data() { data() {
return { return {
pickerOptions: {
disabledDate(date) {
return date.getTime() > Date.now(); //
},
},
filterText: "", // filterText: "", //
treeData: [], // treeData: [], //
defaultExpandedKeys: [], defaultExpandedKeys: [],
@ -308,6 +317,28 @@ export default {
this.formdata.endtime = this.$moment(this.formdata.endtime).format( this.formdata.endtime = this.$moment(this.formdata.endtime).format(
"YYYY-MM-DD HH:mm:ss" "YYYY-MM-DD HH:mm:ss"
); );
console.log(this.formdata.starttime);
console.log(this.formdata.endtime);
if (
this.formdata.starttime == "Invalid date" ||
this.formdata.endtime == "Invalid date"
) {
return this.$message({
duration: 1500,
showClose: true,
message: "请选择开始时间和结束时间",
type: "warning",
});
}
if (this.formdata.starttime > this.formdata.endtime) {
return this.$message({
duration: 1500,
showClose: true,
message: "开始日期不能大于结束日期",
type: "warning",
});
}
console.log(this.tabName); console.log(this.tabName);
if (this.tabName == "dataTab") { if (this.tabName == "dataTab") {
this.getDetailTable( this.getDetailTable(

@ -5,13 +5,14 @@
:title="title" :title="title"
:visible.sync="bdzDialogshow" :visible.sync="bdzDialogshow"
width="520px" width="520px"
:close-on-click-modal="false"
> >
<el-form <el-form
label-position="left" label-position="left"
ref="formInfo" ref="formInfo"
label-width="104px" label-width="104px"
:rules="rules"
:model="formInfo" :model="formInfo"
:rules="rules"
> >
<el-form-item label="名称:" prop="mc"> <el-form-item label="名称:" prop="mc">
<el-input v-model="formInfo.mc"></el-input> <el-input v-model="formInfo.mc"></el-input>
@ -20,11 +21,23 @@
<el-input v-model="formInfo.coordinate"></el-input> <el-input v-model="formInfo.coordinate"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="电压等级:" prop="voltagegrade"> <el-form-item label="电压等级:" prop="voltagegrade">
<el-input v-model="formInfo.voltagegrade"></el-input> <!-- <el-input v-model="formInfo.voltagegrade"></el-input> -->
<el-select
v-model="formInfo.voltagegrade"
placeholder="请选择电压等级"
>
<el-option
v-for="item in volOptions"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item label="规模:" prop="scale"> <!-- <el-form-item label="规模:" prop="scale">
<el-input v-model="formInfo.scale"></el-input> <el-input v-model="formInfo.scale"></el-input>
</el-form-item> </el-form-item> -->
<el-form-item label="描述:" prop="note"> <el-form-item label="描述:" prop="note">
<el-input v-model="formInfo.note"></el-input> <el-input v-model="formInfo.note"></el-input>
</el-form-item> </el-form-item>
@ -43,7 +56,17 @@ export default {
data() { data() {
return { return {
bdzDialogshow: false, bdzDialogshow: false,
formInfo: {}, volOptions: [
{
value: 220,
label: "220Kv",
},
{
value: 500,
label: "500Kv",
},
],
formInfo: "",
rules: { rules: {
mc: [{ required: true, message: "请输入名称", trigger: "blur" }], mc: [{ required: true, message: "请输入名称", trigger: "blur" }],
}, },
@ -56,7 +79,16 @@ export default {
// //
getdataform(val) { getdataform(val) {
console.log(val); console.log(val);
if (val == null) {
this.formInfo = {
mc: "",
coordinate: "",
voltagegrade: "",
note: "",
};
} else {
this.formInfo = JSON.parse(JSON.stringify(val)); this.formInfo = JSON.parse(JSON.stringify(val));
}
}, },
submitForm() { submitForm() {
this.$refs.formInfo.validate((valid) => { this.$refs.formInfo.validate((valid) => {
@ -74,6 +106,13 @@ export default {
}); });
this.hide(); this.hide();
this.$parent.getbdzAllList(); // this.$parent.getbdzAllList(); //
} else {
this.$message({
duration: 1500,
showClose: true,
message: res.errorMsg,
type: "error",
});
} }
}) })
.catch((err) => {}); .catch((err) => {});
@ -89,6 +128,13 @@ export default {
}); });
this.hide(); this.hide();
this.$parent.getbdzAllList(); // this.$parent.getbdzAllList(); //
} else {
this.$message({
duration: 1500,
showClose: true,
message: res.errorMsg,
type: "error",
});
} }
}) })
.catch((err) => {}); .catch((err) => {});
@ -101,17 +147,17 @@ export default {
}, },
display() { display() {
this.bdzDialogshow = true; this.bdzDialogshow = true;
if (this.title == "添加电站") { // if (this.title == "") {
this.formInfo.mc = ""; // this.formInfo.mc = "";
this.formInfo.coordinate = ""; // this.formInfo.coordinate = "";
this.formInfo.voltagegrade = ""; // this.formInfo.voltagegrade = "";
this.formInfo.scale = ""; // this.formInfo.scale = "";
this.formInfo.note = ""; // this.formInfo.note = "";
} // }
}, },
hide() { hide() {
//this.$refs.formInfo.resetFields(); //
this.bdzDialogshow = false; this.bdzDialogshow = false;
this.$refs.formInfo.resetFields(); //
}, },
}, },
}; };
@ -125,6 +171,9 @@ export default {
text-align: left; text-align: left;
} }
} }
.el-select {
width: 374px;
}
.el-input-number.is-controls-right[class*="small"] [class*="decrease"], .el-input-number.is-controls-right[class*="small"] [class*="decrease"],
.el-input-number.is-controls-right[class*="small"] [class*="increase"] { .el-input-number.is-controls-right[class*="small"] [class*="increase"] {
display: none; display: none;

@ -21,7 +21,7 @@
<el-table-column prop="coordinate" label="坐标"></el-table-column> <el-table-column prop="coordinate" label="坐标"></el-table-column>
<el-table-column prop="voltagegrade" label="电压等级"> <el-table-column prop="voltagegrade" label="电压等级">
</el-table-column> </el-table-column>
<el-table-column prop="scale" label="规模"> </el-table-column> <!-- <el-table-column prop="scale" label="规模"> </el-table-column> -->
<el-table-column prop="note" label="描述"> </el-table-column> <el-table-column prop="note" label="描述"> </el-table-column>
<el-table-column label="操作" width="200" class-name="editClass"> <el-table-column label="操作" width="200" class-name="editClass">
<template slot-scope="scope"> <template slot-scope="scope">
@ -83,7 +83,7 @@ export default {
handleAddClick() { handleAddClick() {
this.title = "添加电站"; this.title = "添加电站";
this.$refs.bdzAddRef.display(); this.$refs.bdzAddRef.display();
//this.$refs.bdzAddRef.getdataform(null); this.$refs.bdzAddRef.getdataform(null);
}, },
// //
handleEditClick(data) { handleEditClick(data) {
@ -109,7 +109,12 @@ export default {
}); });
this.getbdzAllList(); // this.getbdzAllList(); //
} else { } else {
this.$message.error(res.data); this.$message({
duration: 1500,
showClose: true,
type: "error",
message: res.errorMsg,
});
} }
}); });
}) })

@ -5,6 +5,7 @@
:title="title" :title="title"
:visible.sync="jcsbDialogshow" :visible.sync="jcsbDialogshow"
width="520px" width="520px"
:close-on-click-modal="false"
> >
<el-form <el-form
label-position="left" label-position="left"

@ -117,7 +117,12 @@ export default {
}); });
this.getjcsbAllList(); // this.getjcsbAllList(); //
} else { } else {
this.$message.error(res.data); this.$message({
duration: 1500,
showClose: true,
type: "error",
message: res.errorMsg,
});
} }
}); });
}) })

@ -5,6 +5,7 @@
:title="title" :title="title"
:visible.sync="modevtypeDialogshow" :visible.sync="modevtypeDialogshow"
width="520px" width="520px"
:close-on-click-modal="false"
> >
<el-form <el-form
label-position="left" label-position="left"
@ -17,13 +18,18 @@
<el-input v-model="formInfo.mc"></el-input> <el-input v-model="formInfo.mc"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="选择表名:"> <el-form-item label="选择表名:">
<el-select v-model="formInfo.tablename"> <el-select v-model="formInfo.tablename" @change="changetablename">
<el-option <el-option
v-for="item in tableOptions" v-for="item in tableOptions"
:key="item" :key="item.name"
:label="item" :label="item.name"
:value="item" :value="item.name"
></el-option> >
{{ item.name
}}<span v-if="item.comment != '' && item.comment != null"
>({{ item.comment }})</span
>
</el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -47,6 +53,7 @@ export default {
modevtypeDialogshow: false, modevtypeDialogshow: false,
formInfo: { formInfo: {
mc: "", mc: "",
tablename: "",
}, },
rules: { rules: {
mc: [{ required: true, message: "请输入名称", trigger: "blur" }], mc: [{ required: true, message: "请输入名称", trigger: "blur" }],
@ -63,6 +70,10 @@ export default {
console.log(val); console.log(val);
this.formInfo = JSON.parse(JSON.stringify(val)); this.formInfo = JSON.parse(JSON.stringify(val));
}, },
changetablename(val) {
console.log(val);
this.formInfo.tablename = val;
},
submitForm() { submitForm() {
this.$refs.formInfo.validate((valid) => { this.$refs.formInfo.validate((valid) => {
if (valid) { if (valid) {
@ -126,7 +137,7 @@ export default {
this.tableOptions = res.data; this.tableOptions = res.data;
if (this.title == "添加监测类型") { if (this.title == "添加监测类型") {
console.log(this.formInfo); console.log(this.formInfo);
this.formInfo.tablename = this.tableOptions[0]; this.formInfo.tablename = this.tableOptions[0].name;
this.formInfo.mc = ""; this.formInfo.mc = "";
} }
}) })

@ -109,7 +109,12 @@ export default {
}); });
this.getmodevtypeAllList(); // this.getmodevtypeAllList(); //
} else { } else {
this.$message.error(res.data); this.$message({
duration: 1500,
showClose: true,
type: "error",
message: res.errorMsg,
});
} }
}); });
}) })

@ -5,6 +5,7 @@
:title="title" :title="title"
:visible.sync="qyjgDialogshow" :visible.sync="qyjgDialogshow"
width="520px" width="520px"
:close-on-click-modal="false"
> >
<el-form <el-form
label-position="left" label-position="left"
@ -76,6 +77,13 @@ export default {
}); });
this.hide(); this.hide();
this.$parent.getAreaAllList(); // this.$parent.getAreaAllList(); //
} else {
this.$message({
duration: 1500,
showClose: true,
message: res.errorMsg,
type: "error",
});
} }
}) })
.catch((err) => {}); .catch((err) => {});
@ -91,6 +99,13 @@ export default {
}); });
this.hide(); this.hide();
this.$parent.getAreaAllList(); // this.$parent.getAreaAllList(); //
} else {
this.$message({
duration: 1500,
showClose: true,
message: res.errorMsg,
type: "error",
});
} }
}) })
.catch((err) => {}); .catch((err) => {});

@ -106,7 +106,12 @@ export default {
}); });
this.getAreaAllList(); // this.getAreaAllList(); //
} else { } else {
this.$message.error(res.data); this.$message({
duration: 1500,
showClose: true,
type: "error",
message: res.errorMsg,
});
} }
}); });
}) })

@ -5,6 +5,7 @@
:title="title" :title="title"
:visible.sync="sblxDialogshow" :visible.sync="sblxDialogshow"
width="520px" width="520px"
:close-on-click-modal="false"
> >
<el-form <el-form
label-position="left" label-position="left"
@ -63,6 +64,13 @@ export default {
}); });
this.hide(); this.hide();
this.$parent.getsblxAllList(); // this.$parent.getsblxAllList(); //
} else {
this.$message({
duration: 1500,
showClose: true,
message: res.errorMsg,
type: "error",
});
} }
}) })
.catch((err) => {}); .catch((err) => {});
@ -78,6 +86,13 @@ export default {
}); });
this.hide(); this.hide();
this.$parent.getsblxAllList(); // this.$parent.getsblxAllList(); //
} else {
this.$message({
duration: 1500,
showClose: true,
message: res.errorMsg,
type: "error",
});
} }
}) })
.catch((err) => {}); .catch((err) => {});

@ -105,7 +105,12 @@ export default {
}); });
this.getsblxAllList(); // this.getsblxAllList(); //
} else { } else {
this.$message.error(res.data); this.$message({
duration: 1500,
showClose: true,
type: "error",
message: res.errorMsg,
});
} }
}); });
}) })

@ -5,6 +5,7 @@
:title="title" :title="title"
:visible.sync="zsbDialogshow" :visible.sync="zsbDialogshow"
width="520px" width="520px"
:close-on-click-modal="false"
> >
<el-form <el-form
label-position="left" label-position="left"
@ -105,6 +106,13 @@ export default {
}); });
this.hide(); this.hide();
this.$parent.getzsbAllList(); // this.$parent.getzsbAllList(); //
} else {
this.$message({
duration: 1500,
showClose: true,
message: res.errorMsg,
type: "error",
});
} }
}) })
.catch((err) => {}); .catch((err) => {});
@ -120,6 +128,13 @@ export default {
}); });
this.hide(); this.hide();
this.$parent.getzsbAllList(); // this.$parent.getzsbAllList(); //
} else {
this.$message({
duration: 1500,
showClose: true,
message: res.errorMsg,
type: "error",
});
} }
}) })
.catch((err) => {}); .catch((err) => {});

@ -25,6 +25,7 @@
<template slot-scope="scope"> <template slot-scope="scope">
<el-link <el-link
type="primary" type="primary"
icon="el-icon-monitor"
@click="handlejcsbClick(scope.row)" @click="handlejcsbClick(scope.row)"
size="small" size="small"
>监测设备</el-link >监测设备</el-link
@ -114,7 +115,12 @@ export default {
}); });
this.getzsbAllList(); // this.getzsbAllList(); //
} else { } else {
this.$message.error(res.data); this.$message({
duration: 1500,
showClose: true,
type: "error",
message: res.errorMsg,
});
} }
}); });
}) })

@ -6,6 +6,7 @@
:visible.sync="colDialogshow" :visible.sync="colDialogshow"
width="1020px" width="1020px"
@close="hide" @close="hide"
:close-on-click-modal="false"
> >
<div class="colContain"> <div class="colContain">
<el-table <el-table
@ -155,7 +156,7 @@ export default {
//icd //icd
handleDeleteClick(val) { handleDeleteClick(val) {
console.log(val); console.log(val);
this.$confirm("此操作将永久删除该文件, 是否继续?", "提示", { this.$confirm("删除该类型?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning", type: "warning",
@ -166,13 +167,25 @@ export default {
}) })
.then((res) => { .then((res) => {
console.log(res); console.log(res);
if (res.success) {
this.$message({ this.$message({
duration: 1500, duration: 1500,
showClose: true, showClose: true,
message: "文件删除成功", message: "删除成功",
type: "success", type: "success",
}); });
this.$parent.geticdList(this.colTableData.iedName, this.colIndex); this.$parent.geticdList(
this.colTableData.iedName,
this.colIndex
);
} else {
this.$message({
duration: 1500,
showClose: true,
type: "error",
message: res.errorMsg,
});
}
}) })
.catch((err) => {}); .catch((err) => {});
//this.getactivityList(); //this.getactivityList();

@ -192,7 +192,7 @@ export default {
this.$message({ this.$message({
duration: 1500, duration: 1500,
showClose: true, showClose: true,
message: "文件上传失败,请重新上传", message: res.errorMsg,
type: "error", type: "error",
}); });
this.$refs.upload.clearFiles(); this.$refs.upload.clearFiles();
@ -291,6 +291,7 @@ export default {
}) })
.then((res) => { .then((res) => {
console.log(res); console.log(res);
if (res.success) {
this.$message({ this.$message({
duration: 1500, duration: 1500,
showClose: true, showClose: true,
@ -298,6 +299,14 @@ export default {
type: "success", type: "success",
}); });
this.geticdList(val.iedName); this.geticdList(val.iedName);
} else {
this.$message({
duration: 1500,
showClose: true,
type: "error",
message: res.errorMsg,
});
}
}) })
.catch((err) => {}); .catch((err) => {});
//this.getactivityList(); //this.getactivityList();

@ -18,7 +18,7 @@
:current-node-key="currentNodekey" :current-node-key="currentNodekey"
:expand-on-click-node="true" :expand-on-click-node="true"
@node-click="handleNodeClick" @node-click="handleNodeClick"
accordion default-expand-all
> >
<template class="custom-tree-node" slot-scope="{ node, data }"> <template class="custom-tree-node" slot-scope="{ node, data }">
<!-- <span>{{ data.name || data.mc }}</span> --> <!-- <span>{{ data.name || data.mc }}</span> -->
@ -75,11 +75,21 @@
type="primary" type="primary"
style="margin-left: 16px" style="margin-left: 16px"
> >
保存 绑定
</el-button>
<el-button
@click="unBind"
type="primary"
:disabled="jbFlag"
style="margin-left: 16px"
>
解绑
</el-button> </el-button>
</div> </div>
<el-divider></el-divider> <el-divider></el-divider>
<p class="warnMsg">
<div class="showMsgBox">
<p class="warnMsg" v-if="warnMsg">
<el-tag <el-tag
type="warning" type="warning"
v-for="(item, index) in warnMsg" v-for="(item, index) in warnMsg"
@ -87,7 +97,7 @@
>{{ item }}</el-tag >{{ item }}</el-tag
> >
</p> </p>
<div class="showMsgBox"> <div class="outside">
<p class="outsideLabel" v-for="(item, index) in bindInfoArray"> <p class="outsideLabel" v-for="(item, index) in bindInfoArray">
<span <span
>{{ item.comment }} >{{ item.comment }}
@ -98,7 +108,7 @@
v-for="(item2, index2) in previewData" v-for="(item2, index2) in previewData"
:key="index2" :key="index2"
v-if="item.name == item2.colName" v-if="item.name == item2.colName"
>{{ item2.lastName }}</em >{{ item2.param }}</em
></span ></span
> >
</p> </p>
@ -106,6 +116,7 @@
</div> </div>
</div> </div>
</div> </div>
</div>
</template> </template>
<script> <script>
import { import {
@ -115,6 +126,7 @@ import {
iedListApi, iedListApi,
previewApi, previewApi,
bindApi, bindApi,
unbindApi,
generateParamindexApi, generateParamindexApi,
} from "@/utils/api/index"; } from "@/utils/api/index";
export default { export default {
@ -145,6 +157,7 @@ export default {
defaultShow: true, // defaultShow: true, //
drawer: false, drawer: false,
warnMsg: "", warnMsg: "",
jbFlag: false,
}; };
}, },
watch: {}, watch: {},
@ -191,7 +204,13 @@ export default {
}) })
.then((res) => { .then((res) => {
console.log(res); console.log(res);
console.log("aaaaaaaaaaa");
this.bindInfo = res.data; this.bindInfo = res.data;
if ((res.data.iedName == null) & (res.data.icdid == null)) {
this.jbFlag = true;
} else {
this.jbFlag = false;
}
if (res.data.columnList != null) { if (res.data.columnList != null) {
this.bindInfoArray = res.data.columnList; this.bindInfoArray = res.data.columnList;
this.previewData = res.data.attList; this.previewData = res.data.attList;
@ -222,6 +241,8 @@ export default {
//iedname //iedname
changeIedname(val) { changeIedname(val) {
this.iedName = val; this.iedName = val;
this.ljName = "";
this.warnMsg = "";
console.log(this.iedName); console.log(this.iedName);
console.log(this.iedOptions.find((item) => item === val)); console.log(this.iedOptions.find((item) => item === val));
this.getinstList(); this.getinstList();
@ -251,17 +272,26 @@ export default {
console.log(val); console.log(val);
console.log(this.ljOptions.find((item) => item.paramIndex === val)); console.log(this.ljOptions.find((item) => item.paramIndex === val));
this.icdid = this.ljOptions.find((item) => item.paramIndex === val).id; this.icdid = this.ljOptions.find((item) => item.paramIndex === val).id;
this.warnMsg = "";
previewApi({ previewApi({
eqmid: this.currentNodeKey, eqmid: this.currentNodeKey,
icdid: this.icdid, icdid: this.icdid,
}) })
.then((res) => { .then((res) => {
console.log(res); console.log(res);
if (res.success) {
this.previewData = res.data; this.previewData = res.data;
this.warnMsg = res.warnMsg.split("\n\r"); this.warnMsg = res.warnMsg.split("\n\r");
console.log(this.warnMsg);
console.log(this.bindInfoArray); console.log(this.bindInfoArray);
console.log(this.previewData); console.log(this.previewData);
} else {
this.$message({
showClose: true,
message: res.errorMsg,
type: "error",
});
}
}) })
.catch((err) => { .catch((err) => {
console.log(err); // console.log(err); //
@ -285,7 +315,7 @@ export default {
this.$message({ this.$message({
showClose: true, showClose: true,
message: res.errorMsg, message: res.errorMsg,
type: "warning", type: "error",
}); });
} }
}) })
@ -315,6 +345,32 @@ export default {
console.log(err); // console.log(err); //
}); });
}, },
//
unBind() {
unbindApi({
eqmid: this.currentNodeKey,
})
.then((res) => {
console.log(res);
if (res.success) {
this.$message({
showClose: true,
message: "解绑成功",
type: "success",
});
this.getBindList();
} else {
this.$message({
showClose: true,
message: res.errorMsg,
type: "error",
});
}
})
.catch((err) => {
console.log(err); //
});
},
}, },
}; };
</script> </script>
@ -356,7 +412,7 @@ export default {
} }
.el-tree { .el-tree {
overflow-y: auto; overflow-y: auto;
/* overflow-x: hidden; */ overflow-x: hidden;
height: calc(100% - 40px); height: calc(100% - 40px);
.el-tree-node__content { .el-tree-node__content {
height: 32px; height: 32px;
@ -492,19 +548,24 @@ export default {
.el-divider--horizontal { .el-divider--horizontal {
margin: 12px 0px; margin: 12px 0px;
} }
.warnMsg {
padding: 0px 12px 0px 12px;
.el-tag {
margin-right: 12px;
margin-bottom: 12px;
}
}
.showMsgBox { .showMsgBox {
width: calc(100% - 80px); width: calc(100% - 80px);
max-height: calc(100% - 64px); max-height: calc(100% - 64px);
padding: 0px 40px; padding: 0px 40px;
overflow: auto; overflow: auto;
.warnMsg {
//padding: 0px 12px 0px 12px;
.el-tag {
display: block;
margin-right: 12px;
margin-bottom: 12px;
font-size: 14px;
}
}
.outside {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
flex-wrap: wrap; flex-wrap: wrap;
@ -540,5 +601,6 @@ export default {
} }
} }
} }
}
} }
</style> </style>

@ -2,12 +2,12 @@ const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({ module.exports = defineConfig({
//打包清除console //打包清除console
chainWebpack(config) { // chainWebpack(config) {
config.optimization.minimizer("terser").tap((args) => { // config.optimization.minimizer("terser").tap((args) => {
args[0].terserOptions.compress.drop_console = true; // args[0].terserOptions.compress.drop_console = true;
return args; // return args;
}); // });
}, // },
productionSourceMap: false, // 生产环境是否要生成 sourceMap productionSourceMap: false, // 生产环境是否要生成 sourceMap
publicPath: process.env.PUBLIC_PATH ? process.env.PUBLIC_PATH : "./", // 部署应用包时的基本 URL publicPath: process.env.PUBLIC_PATH ? process.env.PUBLIC_PATH : "./", // 部署应用包时的基本 URL
// assetsPublicPath: process.env.NODE_ENV === "production" ? "" : "/", // assetsPublicPath: process.env.NODE_ENV === "production" ? "" : "/",

Loading…
Cancel
Save