合并代码

master
fanluyan 2 years ago
commit 8296da3fd2

@ -114,17 +114,17 @@ export default {
// }, // },
], ],
}, },
{ // {
icon: "el-icon-monitor", // icon: "el-icon-monitor",
index: "/system", // index: "/system",
title: "系统管理", // title: "",
subs: [ // subs: [
{ // {
index: "/userManagement", // index: "/userManagement",
title: "用户管理", // title: "",
}, // },
], // ],
}, // },
], ],
}; };
}, },

@ -70,8 +70,8 @@ export default {
data: function () { data: function () {
return { return {
userInfo: { userInfo: {
username: "", username: "xytest",
password: "", password: "111121",
//verificationCode: "", //verificationCode: "",
}, },
rules: { rules: {

@ -89,7 +89,11 @@ export default {
.then((res) => { .then((res) => {
//this.errorMsg = ""; //this.errorMsg = "";
if (res.code == 200) { if (res.code == 200) {
this.$message.success("添加成功"); this.$message({
showClose: true,
message: "添加成功",
type: "success",
});
this.$parent.deviceList(); this.$parent.deviceList();
this.isShow = false; this.isShow = false;
} else { } else {
@ -98,7 +102,11 @@ export default {
} }
}) })
.catch((err) => { .catch((err) => {
this.$message.error("添加失败"); this.$message({
showClose: true,
message: "添加失败",
type: "error",
});
}); });
} else { } else {
updateChannelapi(this.formdata) updateChannelapi(this.formdata)

@ -135,11 +135,19 @@ export default {
setScheduleRulel({ list: this.parmsList, ruleid: this.selid }) setScheduleRulel({ list: this.parmsList, ruleid: this.selid })
.then((res) => { .then((res) => {
this.isShow = false; this.isShow = false;
this.$message.success("添加成功"); this.$message({
showClose: true,
message: "添加成功",
type: "success",
});
this.$parent.deviceList(); this.$parent.deviceList();
}) })
.catch((err) => { .catch((err) => {
this.$message.error("添加失败"); this.$message({
showClose: true,
message: "添加失败",
type: "error",
});
}); });
}, },
display() { display() {

@ -2,6 +2,7 @@
<div class="camerChannel"> <div class="camerChannel">
<div class="deviceBox"> <div class="deviceBox">
<div class="deviceBtnGroup"> <div class="deviceBtnGroup">
<h4>通道管理</h4>
<el-button <el-button
type="primary" type="primary"
icon="el-icon-plus" icon="el-icon-plus"
@ -183,7 +184,8 @@ export default {
} }
.deviceBtnGroup { .deviceBtnGroup {
display: flex; display: flex;
justify-content: flex-end; justify-content: space-between;
align-items: center;
} }
.deviceTable { .deviceTable {

@ -12,11 +12,7 @@
bigPicPath ? 'backgroundImage:url(' + bigPicPath + '!128x72)' : '' bigPicPath ? 'backgroundImage:url(' + bigPicPath + '!128x72)' : ''
" "
> >
<img <img class="animImg" :src="bigPicPath + '!1280x720'" />
class="animImg"
v-if="bigPicPath !== ''"
:src="bigPicPath + '!1280x720'"
/>
<!-- <p class="mark"> <!-- <p class="mark">
{{ bigPicPath }} {{ bigPicPath }}
<span>{{ this.activeSmall }}</span> <span>{{ this.activeSmall }}</span>

@ -141,11 +141,19 @@ export default {
addScheduleRulel(this.ruleForm) addScheduleRulel(this.ruleForm)
.then((res) => { .then((res) => {
this.isShow = false; this.isShow = false;
this.$message.success("添加成功"); this.$message({
showClose: true,
message: "添加成功",
type: "success",
});
this.$parent.deviceList(); this.$parent.deviceList();
}) })
.catch((err) => { .catch((err) => {
this.$message.error("添加失败"); this.$message({
showClose: true,
message: "添加失败",
type: "error",
});
}); });
} else { } else {
updateScheduleRulel(this.ruleForm) updateScheduleRulel(this.ruleForm)

@ -235,11 +235,17 @@ export default {
}) })
.then((res) => { .then((res) => {
this.isShow = false; this.isShow = false;
this.$message.success("添加成功"); this.$message({
showClose: true,
message: '添加成功',type: 'success'
});;
this.$parent.deviceList(); this.$parent.deviceList();
}) })
.catch((err) => { .catch((err) => {
this.$message.error("添加失败"); this.$message({
showClose: true,
message: '添加失败',type: 'error'
});
}); });
} }
// if (this.parmsList.length == 0) // if (this.parmsList.length == 0)
@ -247,11 +253,17 @@ export default {
// setScheduleRulel({ list: this.parmsList, ruleid: this.selid }) // setScheduleRulel({ list: this.parmsList, ruleid: this.selid })
// .then((res) => { // .then((res) => {
// this.isShow = false; // this.isShow = false;
// this.$message.success(""); // this.$message({
showClose: true,
message: '添加成功',type: 'success'
});;
// this.$parent.deviceList(); // this.$parent.deviceList();
// }) // })
// .catch((err) => { // .catch((err) => {
// this.$message.error(""); // this.$message({
showClose: true,
message: '添加失败',type: 'error'
});
// }); // });
}, },
display() { display() {

@ -198,7 +198,11 @@ export default {
if (this.termidArrNum < this.termidArr.length) { if (this.termidArrNum < this.termidArr.length) {
this.sureSum(); this.sureSum();
} else { } else {
this.$message.success("添加成功"); this.$message({
showClose: true,
message: "添加成功",
type: "success",
});
this.isShow = false; this.isShow = false;
this.$parent.deviceList(); this.$parent.deviceList();
clearTimeout(this.timer); clearTimeout(this.timer);
@ -217,10 +221,17 @@ export default {
scheduleid: this.selid, scheduleid: this.selid,
}) })
.then((res) => { .then((res) => {
// this.$message.success(""); // this.$message({
// showClose: true,
// message: '',type: 'success'
// });;
}) })
.catch((err) => { .catch((err) => {
this.$message.error("添加失败"); this.$message({
showClose: true,
message: "添加失败",
type: "error",
});
}); });
}, },
display() { display() {

@ -2,6 +2,7 @@
<div class="deviceInformation"> <div class="deviceInformation">
<div class="deviceBox"> <div class="deviceBox">
<div class="deviceBtnGroup"> <div class="deviceBtnGroup">
<h4>拍照时间表设置</h4>
<el-button <el-button
type="primary" type="primary"
icon="el-icon-plus" icon="el-icon-plus"
@ -213,7 +214,8 @@ export default {
} }
.deviceBtnGroup { .deviceBtnGroup {
display: flex; display: flex;
justify-content: flex-end; justify-content: space-between;
align-items: center;
} }
.deviceTable { .deviceTable {

@ -164,11 +164,19 @@ export default {
addTerminalJoggle(this.formInfo) addTerminalJoggle(this.formInfo)
.then((res) => { .then((res) => {
this.isShow = false; this.isShow = false;
this.$message.success("添加成功"); this.$message({
showClose: true,
message: "添加成功",
type: "success",
});
this.$parent.terminalList(); // this.$parent.terminalList(); //
}) })
.catch((err) => { .catch((err) => {
this.$message.error("添加失败"); this.$message({
showClose: true,
message: "添加失败",
type: "error",
});
}); });
} else { } else {
this.formInfo = { this.formInfo = {

@ -2,6 +2,7 @@
<div class="photoGraphicDevice"> <div class="photoGraphicDevice">
<div class="photoBox"> <div class="photoBox">
<div class="photoGraphicBtnGroup"> <div class="photoGraphicBtnGroup">
<h4>拍照装置管理</h4>
<el-button type="primary" icon="el-icon-plus" @click="handleAddPhoto()" <el-button type="primary" icon="el-icon-plus" @click="handleAddPhoto()"
>新增</el-button >新增</el-button
> >
@ -47,14 +48,14 @@
<span v-if="scope.row.hasPan == 1"></span> <span v-if="scope.row.hasPan == 1"></span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <!-- <el-table-column
prop="updateTime" prop="updateTime"
label="修改时间" label="修改时间"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
:formatter="dateFormat" :formatter="dateFormat"
width="160px" width="160px"
> >
</el-table-column> </el-table-column> -->
<el-table-column prop="equipName" label="装置名称"> </el-table-column> <el-table-column prop="equipName" label="装置名称"> </el-table-column>
<el-table-column prop="model" label="装置型号"> </el-table-column> <el-table-column prop="model" label="装置型号"> </el-table-column>
<!-- <el-table-column label="经维度"> <!-- <el-table-column label="经维度">
@ -375,7 +376,8 @@ export default {
} }
.photoGraphicBtnGroup { .photoGraphicBtnGroup {
display: flex; display: flex;
justify-content: flex-end; justify-content: space-between;
align-items: center;
} }
.photoGraphicTable { .photoGraphicTable {

@ -96,22 +96,40 @@ export default {
addLineJoggle({ list: formArr }) addLineJoggle({ list: formArr })
.then((res) => { .then((res) => {
this.isShow = false; this.isShow = false;
this.$message.success("添加成功"); this.$message({
showClose: true,
message: "添加成功",
type: "success",
});
this.$parent.lineList(); this.$parent.lineList();
}) })
.catch((err) => { .catch((err) => {
console.log(err); // console.log(err); //
this.$message.error("添加失败"); this.$message({
showClose: true,
message: "添加失败",
type: "error",
});
}); });
} else { } else {
updateLineJoggle(this.formdata) updateLineJoggle(this.formdata)
.then((res) => { .then((res) => {
this.isShow = false; this.isShow = false;
this.$message.success("修改成功"); //this.$message.success("");
this.$message({
showClose: true,
message: "修改成功",
type: "success",
});
this.$parent.lineList(); this.$parent.lineList();
}) })
.catch((err) => { .catch((err) => {
this.$message.error("修改失败"); this.$message({
showClose: true,
message: "修改失败",
type: "error",
});
//this.$message.error("");
}); });
} }
} else { } else {

@ -77,10 +77,18 @@ export default {
}) })
.then((res) => { .then((res) => {
this.isShow = false; this.isShow = false;
this.$message.success("添加成功"); this.$message({
showClose: true,
message: "添加成功",
type: "success",
});
}) })
.catch((err) => { .catch((err) => {
this.$message.error("添加失败"); this.$message({
showClose: true,
message: "添加失败",
type: "error",
});
}); });
} else { } else {
console.log("error submit!!"); console.log("error submit!!");

@ -2,6 +2,7 @@
<div class="lineInformation"> <div class="lineInformation">
<div class="lineBox"> <div class="lineBox">
<div class="lineBtnGroup"> <div class="lineBtnGroup">
<h4>线路信息管理</h4>
<el-button type="primary" icon="el-icon-plus" @click="handleAddLine()" <el-button type="primary" icon="el-icon-plus" @click="handleAddLine()"
>新增</el-button >新增</el-button
> >
@ -199,7 +200,8 @@ export default {
} }
.lineBtnGroup { .lineBtnGroup {
display: flex; display: flex;
justify-content: flex-end; justify-content: space-between;
align-items: center;
} }
.lineTable { .lineTable {

@ -83,22 +83,40 @@ export default {
addTowerApi({ list: formArr }) addTowerApi({ list: formArr })
.then((res) => { .then((res) => {
this.isShow = false; this.isShow = false;
this.$message.success("添加成功"); this.$message({
showClose: true,
message: "添加成功",
type: "success",
});
this.$parent.deviceList(); this.$parent.deviceList();
}) })
.catch((err) => { .catch((err) => {
this.$message.error("添加失败"); this.$message({
showClose: true,
message: "添加失败",
type: "error",
});
}); });
} else { } else {
console.log(this.formdata); console.log(this.formdata);
updateTowerApi(this.formdata) updateTowerApi(this.formdata)
.then((res) => { .then((res) => {
this.isShow = false; this.isShow = false;
this.$message.success("修改成功"); //this.$message.success("");
this.$message({
showClose: true,
message: "修改成功",
type: "success",
});
this.$parent.deviceList(); this.$parent.deviceList();
}) })
.catch((err) => { .catch((err) => {
this.$message.error("修改失败"); //this.$message.error("");
this.$message({
showClose: true,
message: "修改失败",
type: "error",
});
}); });
} }
} else { } else {

@ -2,6 +2,7 @@
<div class="deviceInformation"> <div class="deviceInformation">
<div class="deviceBox"> <div class="deviceBox">
<div class="deviceBtnGroup"> <div class="deviceBtnGroup">
<h4>杆塔信息管理</h4>
<el-button <el-button
type="primary" type="primary"
icon="el-icon-plus" icon="el-icon-plus"
@ -188,7 +189,8 @@ export default {
} }
.deviceBtnGroup { .deviceBtnGroup {
display: flex; display: flex;
justify-content: flex-end; justify-content: space-between;
align-items: center;
} }
.deviceTable { .deviceTable {

@ -427,7 +427,10 @@ export default {
.then((res) => { .then((res) => {
this.isShowset = false; this.isShowset = false;
console.log(res); console.log(res);
//this.$message.success(""); // this.$message({
showClose: true,
message: '添加成功',type: 'success'
});;
console.log(this.checkList); console.log(this.checkList);
// this.$store.commit("SET_CHANNELID", this.checkList); //vuex // this.$store.commit("SET_CHANNELID", this.checkList); //vuex
// this.$store.commit("SET_TERMID", this.deviceListData.zzid); //vuex // this.$store.commit("SET_TERMID", this.deviceListData.zzid); //vuex
@ -435,7 +438,10 @@ export default {
this.deviceList(); this.deviceList();
}) })
.catch((err) => { .catch((err) => {
this.$message.error("添加失败"); this.$message({
showClose: true,
message: '添加失败',type: 'error'
});
}); });
} }
}, },

@ -421,7 +421,10 @@ export default {
.then((res) => { .then((res) => {
this.isShowset = false; this.isShowset = false;
console.log(res); console.log(res);
//this.$message.success(""); // // this.$message({
// showClose: true,
// message: '',type: 'success'
// });;
console.log(this.checkList); console.log(this.checkList);
// this.$store.commit("SET_CHANNELID", this.checkList); //vuex // this.$store.commit("SET_CHANNELID", this.checkList); //vuex
// this.$store.commit("SET_TERMID", this.deviceListData.zzid); //vuex // this.$store.commit("SET_TERMID", this.deviceListData.zzid); //vuex
@ -429,7 +432,11 @@ export default {
this.deviceList(); this.deviceList();
}) })
.catch((err) => { .catch((err) => {
this.$message.error("添加失败"); this.$message({
showClose: true,
message: "添加失败",
type: "error",
});
}); });
} }
}, },

@ -3,7 +3,7 @@
<div class="searchMain" v-loading="loadingSearch"> <div class="searchMain" v-loading="loadingSearch">
<div class="searchBox"> <div class="searchBox">
<el-form :inline="true" :model="formdata" class="demo-form-inline"> <el-form :inline="true" :model="formdata" class="demo-form-inline">
<el-form-item label="电压名称"> <el-form-item label="电压等级">
<el-select v-model="formdata.dyid" @change="getSearchxl"> <el-select v-model="formdata.dyid" @change="getSearchxl">
<el-option <el-option
v-for="item in dyOptions" v-for="item in dyOptions"
@ -75,17 +75,16 @@
<div class="caption"> <div class="caption">
<p class="infoTop"> <p class="infoTop">
{{ item.linename }};{{ item.displayname }};{{ {{ item.linename }} / {{ item.displayname }}
item.channnelname
}}
</p> </p>
<p class="infoBottom"> <p class="infoBottom">
拍照时间{{ 拍照时间{{
$moment(item.photoTime).format("YYYY-MM-DD HH:mm:ss") $moment(item.photoTime).format("MM-DD HH:mm")
}} }}
上传时间{{ / {{ item.channnelname }}
<!-- 上传时间{{
$moment(item.recvTime).format("YYYY-MM-DD HH:mm:ss") $moment(item.recvTime).format("YYYY-MM-DD HH:mm:ss")
}} }} -->
</p> </p>
</div> </div>
</viewer> </viewer>
@ -99,17 +98,16 @@
></video> ></video>
<div class="caption"> <div class="caption">
<p class="infoTop"> <p class="infoTop">
{{ item.linename }};{{ item.displayname }};{{ {{ item.linename }} / {{ item.displayname }};
item.channnelname
}}
</p> </p>
<p class="infoBottom"> <p class="infoBottom">
拍照时间{{ 拍照时间{{
$moment(item.photoTime).format("YYYY-MM-DD HH:mm:ss") $moment(item.photoTime).format("MM-DD HH:mm")
}} }}
上传时间{{ / {{ item.channnelname }}
<!-- 上传时间{{
$moment(item.recvTime).format("YYYY-MM-DD HH:mm:ss") $moment(item.recvTime).format("YYYY-MM-DD HH:mm:ss")
}} }} -->
</p> </p>
</div> </div>
</div> </div>

@ -15,15 +15,28 @@
:model="formdata" :model="formdata"
> >
<el-form-item label="用户名:" prop="userName"> <el-form-item label="用户名:" prop="userName">
<el-input placeholder="请输入用户名" v-model="formdata.userName" autocomplete="off"></el-input> <el-input
placeholder="请输入用户名"
v-model="formdata.userName"
autocomplete="off"
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="角色:" prop="role"> <el-form-item label="角色:" prop="role">
<el-select v-model="formdata.role" placeholder="请选择"> <el-select v-model="formdata.role" placeholder="请选择">
<el-option v-for="item in roleoptions" :key="item.value" :label="item.label" :value="item.value"></el-option> <el-option
v-for="item in roleoptions"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="密码:" prop="password"> <el-form-item label="密码:" prop="password">
<el-input placeholder="请输入密码" v-model="formdata.password" show-password></el-input> <el-input
placeholder="请输入密码"
v-model="formdata.password"
show-password
></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
@ -41,18 +54,23 @@ export default {
data() { data() {
return { return {
isShow: false, isShow: false,
roleoptions:[{ roleoptions: [
{
value: 1, value: 1,
label: '管理员' label: "管理员",
}, { },
{
value: 2, value: 2,
label: '用户' label: "用户",
}], },
],
formdata: {}, formdata: {},
rules: { rules: {
userName: [{ required: true, message: "请输入用户名", trigger: "blur" }], userName: [
{ required: true, message: "请输入用户名", trigger: "blur" },
],
role: [{ required: true, message: "请选择角色", trigger: "blur" }], role: [{ required: true, message: "请选择角色", trigger: "blur" }],
password: [{ required: true, message: "请输入密码", trigger: "blur" }] password: [{ required: true, message: "请输入密码", trigger: "blur" }],
}, },
}; };
}, },
@ -75,7 +93,11 @@ export default {
addChannelapi({ list: formArr }) addChannelapi({ list: formArr })
.then((res) => { .then((res) => {
if (res.code == 200) { if (res.code == 200) {
this.$message.success("添加成功"); this.$message({
showClose: true,
message: "添加成功",
type: "success",
});
this.$parent.deviceList(); this.$parent.deviceList();
this.isShow = false; this.isShow = false;
} else { } else {

Loading…
Cancel
Save