|
@@ -126,8 +126,8 @@
|
|
|
><a
|
|
><a
|
|
|
v-if="
|
|
v-if="
|
|
|
index == routerinfo.length - 2 &&
|
|
index == routerinfo.length - 2 &&
|
|
|
- item.menu != '' &&
|
|
|
|
|
- item.purview_name != '查看图片'
|
|
|
|
|
|
|
+ item.menu != '' &&
|
|
|
|
|
+ item.purview_name != '查看图片'
|
|
|
"
|
|
"
|
|
|
:href="'/#/index/' + item.menu"
|
|
:href="'/#/index/' + item.menu"
|
|
|
style="cursor: pointer"
|
|
style="cursor: pointer"
|
|
@@ -181,7 +181,7 @@
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
//这里可以导入其他文件(比如:组件,工具js,第三方插件js,json文件,图片文件等等)
|
|
//这里可以导入其他文件(比如:组件,工具js,第三方插件js,json文件,图片文件等等)
|
|
|
-import QRCode from "qrcodejs2";
|
|
|
|
|
|
|
+import QRCode from 'qrcodejs2';
|
|
|
export default {
|
|
export default {
|
|
|
//import引入的组件需要注入到对象中才能使用
|
|
//import引入的组件需要注入到对象中才能使用
|
|
|
components: {},
|
|
components: {},
|
|
@@ -192,89 +192,89 @@ export default {
|
|
|
if (value == this.ruleForm.newpass) {
|
|
if (value == this.ruleForm.newpass) {
|
|
|
callback();
|
|
callback();
|
|
|
} else {
|
|
} else {
|
|
|
- callback(new Error("俩次密码不一致,请重新确认密码!"));
|
|
|
|
|
|
|
+ callback(new Error('俩次密码不一致,请重新确认密码!'));
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
return {
|
|
return {
|
|
|
infodata: [],
|
|
infodata: [],
|
|
|
- username: "",
|
|
|
|
|
|
|
+ username: '',
|
|
|
routerdata: [],
|
|
routerdata: [],
|
|
|
- menuActiveId: "1",
|
|
|
|
|
|
|
+ menuActiveId: '1',
|
|
|
// menuOpeneds:["18"]
|
|
// menuOpeneds:["18"]
|
|
|
routerinfo: [],
|
|
routerinfo: [],
|
|
|
options: [],
|
|
options: [],
|
|
|
- value: "",
|
|
|
|
|
- imgurl: "", //系统logo
|
|
|
|
|
- headline: "", //系统标题
|
|
|
|
|
|
|
+ value: '',
|
|
|
|
|
+ imgurl: '', //系统logo
|
|
|
|
|
+ headline: '', //系统标题
|
|
|
alterpassTF: false, //修改密码框
|
|
alterpassTF: false, //修改密码框
|
|
|
ruleForm: {
|
|
ruleForm: {
|
|
|
- oldpass: "",
|
|
|
|
|
- newpass: "",
|
|
|
|
|
- newpasstrue: "",
|
|
|
|
|
|
|
+ oldpass: '',
|
|
|
|
|
+ newpass: '',
|
|
|
|
|
+ newpasstrue: ''
|
|
|
},
|
|
},
|
|
|
rules: {
|
|
rules: {
|
|
|
oldpass: [
|
|
oldpass: [
|
|
|
- { required: true, message: "请输入原始密码", trigger: "blur" },
|
|
|
|
|
|
|
+ { required: true, message: '请输入原始密码', trigger: 'blur' },
|
|
|
{
|
|
{
|
|
|
min: 6,
|
|
min: 6,
|
|
|
max: 15,
|
|
max: 15,
|
|
|
- message: "长度在 6 到 15 个字符",
|
|
|
|
|
- trigger: "blur",
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ message: '长度在 6 到 15 个字符',
|
|
|
|
|
+ trigger: 'blur'
|
|
|
|
|
+ }
|
|
|
],
|
|
],
|
|
|
newpass: [
|
|
newpass: [
|
|
|
- { required: true, message: "请输入新密码", trigger: "blur" },
|
|
|
|
|
|
|
+ { required: true, message: '请输入新密码', trigger: 'blur' },
|
|
|
{
|
|
{
|
|
|
min: 6,
|
|
min: 6,
|
|
|
max: 15,
|
|
max: 15,
|
|
|
- message: "长度在 6 到 15 个字符",
|
|
|
|
|
- trigger: "blur",
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ message: '长度在 6 到 15 个字符',
|
|
|
|
|
+ trigger: 'blur'
|
|
|
|
|
+ }
|
|
|
],
|
|
],
|
|
|
newpasstrue: [
|
|
newpasstrue: [
|
|
|
- { required: true, message: "请再次输入新密码", trigger: "blur" },
|
|
|
|
|
|
|
+ { required: true, message: '请再次输入新密码', trigger: 'blur' },
|
|
|
{
|
|
{
|
|
|
min: 6,
|
|
min: 6,
|
|
|
max: 15,
|
|
max: 15,
|
|
|
- message: "长度在 6 到 15 个字符",
|
|
|
|
|
- trigger: "blur",
|
|
|
|
|
|
|
+ message: '长度在 6 到 15 个字符',
|
|
|
|
|
+ trigger: 'blur'
|
|
|
},
|
|
},
|
|
|
- { validator: validatePass, trigger: "blur" },
|
|
|
|
|
- ],
|
|
|
|
|
|
|
+ { validator: validatePass, trigger: 'blur' }
|
|
|
|
|
+ ]
|
|
|
},
|
|
},
|
|
|
indexloading: false,
|
|
indexloading: false,
|
|
|
- pur_id: "",
|
|
|
|
|
|
|
+ pur_id: '',
|
|
|
icon: {
|
|
icon: {
|
|
|
- 1: "iconfont icon-minggaoshouye",
|
|
|
|
|
- 4: "iconfont icon-xietongzhihuidaping",
|
|
|
|
|
- 10: "iconfont icon-didian",
|
|
|
|
|
- 20: "iconfont icon-gongzuoguanli-dingdanguanli",
|
|
|
|
|
- 22: "iconfont icon-database-full",
|
|
|
|
|
- 25: "iconfont icon-shezhi1",
|
|
|
|
|
- 45: "iconfont icon-yujing1"
|
|
|
|
|
|
|
+ 1: 'iconfont icon-minggaoshouye',
|
|
|
|
|
+ 4: 'iconfont icon-xietongzhihuidaping',
|
|
|
|
|
+ 10: 'iconfont icon-didian',
|
|
|
|
|
+ 20: 'iconfont icon-gongzuoguanli-dingdanguanli',
|
|
|
|
|
+ 22: 'iconfont icon-database-full',
|
|
|
|
|
+ 25: 'iconfont icon-shezhi1',
|
|
|
|
|
+ 45: 'iconfont icon-yujing1'
|
|
|
},
|
|
},
|
|
|
QRtf: false,
|
|
QRtf: false,
|
|
|
- app_url: "",
|
|
|
|
|
|
|
+ app_url: '',
|
|
|
menunoneele: true,
|
|
menunoneele: true,
|
|
|
- warntf:false
|
|
|
|
|
|
|
+ warntf: false
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
//监听属性 类似于data概念
|
|
//监听属性 类似于data概念
|
|
|
computed: {},
|
|
computed: {},
|
|
|
//监控data中的数据变化
|
|
//监控data中的数据变化
|
|
|
watch: {
|
|
watch: {
|
|
|
- "$route.path": function (newVal) {
|
|
|
|
|
|
|
+ '$route.path': function(newVal) {
|
|
|
console.log(newVal);
|
|
console.log(newVal);
|
|
|
if (
|
|
if (
|
|
|
- newVal == "/index/facilitydistribute" ||
|
|
|
|
|
- newVal == "/index/pestdistribute"
|
|
|
|
|
|
|
+ newVal == '/index/facilitydistribute' ||
|
|
|
|
|
+ newVal == '/index/pestdistribute'
|
|
|
) {
|
|
) {
|
|
|
- console.log("触发");
|
|
|
|
|
|
|
+ console.log('触发');
|
|
|
this.menunone();
|
|
this.menunone();
|
|
|
}
|
|
}
|
|
|
this.routemap(this.routerdata);
|
|
this.routemap(this.routerdata);
|
|
|
// this.menuActiveId = this.$route.path;
|
|
// this.menuActiveId = this.$route.path;
|
|
|
- },
|
|
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
//方法集合
|
|
//方法集合
|
|
|
methods: {
|
|
methods: {
|
|
@@ -287,17 +287,17 @@ export default {
|
|
|
getuserinfo() {
|
|
getuserinfo() {
|
|
|
this.indexloading = true;
|
|
this.indexloading = true;
|
|
|
this.$axios({
|
|
this.$axios({
|
|
|
- method: "POST",
|
|
|
|
|
- url: "/api/api_gateway?method=sysmenage.usermanager.user_info",
|
|
|
|
|
- }).then((res) => {
|
|
|
|
|
|
|
+ method: 'POST',
|
|
|
|
|
+ url: '/api/api_gateway?method=sysmenage.usermanager.user_info'
|
|
|
|
|
+ }).then(res => {
|
|
|
this.indexloading = false;
|
|
this.indexloading = false;
|
|
|
this.app_url = res.data.data.app_url;
|
|
this.app_url = res.data.data.app_url;
|
|
|
this.imgurl = res.data.data.theme_info.logo_url;
|
|
this.imgurl = res.data.data.theme_info.logo_url;
|
|
|
this.headline = res.data.data.theme_info.sys_name;
|
|
this.headline = res.data.data.theme_info.sys_name;
|
|
|
this.routerdata = JSON.parse(JSON.stringify(res.data.data.children));
|
|
this.routerdata = JSON.parse(JSON.stringify(res.data.data.children));
|
|
|
var titleList = [];
|
|
var titleList = [];
|
|
|
- res.data.data.children.forEach((item) => {
|
|
|
|
|
- if (item.purview_name !== "APP") {
|
|
|
|
|
|
|
+ res.data.data.children.forEach(item => {
|
|
|
|
|
+ if (item.purview_name !== 'APP') {
|
|
|
titleList.push(item);
|
|
titleList.push(item);
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
@@ -305,30 +305,30 @@ export default {
|
|
|
this.infodata = titleList;
|
|
this.infodata = titleList;
|
|
|
console.log(this.routerdata);
|
|
console.log(this.routerdata);
|
|
|
// this.infodata.shift();
|
|
// this.infodata.shift();
|
|
|
- localStorage.setItem("userID", res.data.data.im_user_id); // 存储当前登录账号的ID
|
|
|
|
|
|
|
+ localStorage.setItem('userID', res.data.data.im_user_id); // 存储当前登录账号的ID
|
|
|
this.username = res.data.data.username;
|
|
this.username = res.data.data.username;
|
|
|
- localStorage.setItem("username", this.username);
|
|
|
|
|
|
|
+ localStorage.setItem('username', this.username);
|
|
|
this.routemap(this.routerdata);
|
|
this.routemap(this.routerdata);
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
quit(e) {
|
|
quit(e) {
|
|
|
// user.login.logout_user
|
|
// user.login.logout_user
|
|
|
console.log(e);
|
|
console.log(e);
|
|
|
- if (e == "a") {
|
|
|
|
|
|
|
+ if (e == 'a') {
|
|
|
this.alterpassTF = true;
|
|
this.alterpassTF = true;
|
|
|
- } else if (e == "b") {
|
|
|
|
|
|
|
+ } else if (e == 'b') {
|
|
|
this.outsystem();
|
|
this.outsystem();
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
outsystem() {
|
|
outsystem() {
|
|
|
this.$axios({
|
|
this.$axios({
|
|
|
- method: "POST",
|
|
|
|
|
- url: "/api/api_gateway?method=sysmenage.usermanager.user_logout",
|
|
|
|
|
- }).then((res) => {
|
|
|
|
|
|
|
+ method: 'POST',
|
|
|
|
|
+ url: '/api/api_gateway?method=sysmenage.usermanager.user_logout'
|
|
|
|
|
+ }).then(res => {
|
|
|
if (res.data.data) {
|
|
if (res.data.data) {
|
|
|
- localStorage.removeItem("session");
|
|
|
|
|
|
|
+ localStorage.removeItem('session');
|
|
|
// localStorage.removeItem("username");
|
|
// localStorage.removeItem("username");
|
|
|
- this.$router.push("/Login");
|
|
|
|
|
|
|
+ this.$router.push('/Login');
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
@@ -339,40 +339,40 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
submitForm(formName) {
|
|
submitForm(formName) {
|
|
|
- this.$refs[formName].validate((valid) => {
|
|
|
|
|
|
|
+ this.$refs[formName].validate(valid => {
|
|
|
if (valid) {
|
|
if (valid) {
|
|
|
this.$axios({
|
|
this.$axios({
|
|
|
- method: "POST",
|
|
|
|
|
- url: "/api/api_gateway?method=app.my.app_change_pwd",
|
|
|
|
|
|
|
+ method: 'POST',
|
|
|
|
|
+ url: '/api/api_gateway?method=app.my.app_change_pwd',
|
|
|
data: this.qs.stringify({
|
|
data: this.qs.stringify({
|
|
|
old_password: this.ruleForm.oldpass, // 必传 旧密码
|
|
old_password: this.ruleForm.oldpass, // 必传 旧密码
|
|
|
new_password: this.ruleForm.newpass, // 必传 新密码
|
|
new_password: this.ruleForm.newpass, // 必传 新密码
|
|
|
- confirm_password: this.ruleForm.newpasstrue, // 必传 再次确认新密码
|
|
|
|
|
- }),
|
|
|
|
|
- }).then((res) => {
|
|
|
|
|
|
|
+ confirm_password: this.ruleForm.newpasstrue // 必传 再次确认新密码
|
|
|
|
|
+ })
|
|
|
|
|
+ }).then(res => {
|
|
|
if (res.data.data) {
|
|
if (res.data.data) {
|
|
|
this.alterpassTF = false;
|
|
this.alterpassTF = false;
|
|
|
- if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
|
|
|
|
+ if (document.getElementsByClassName('el-message').length == 0) {
|
|
|
this.$message({
|
|
this.$message({
|
|
|
- message: "修改成功!",
|
|
|
|
|
- type: "success",
|
|
|
|
|
|
|
+ message: '修改成功!',
|
|
|
|
|
+ type: 'success'
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
this.outsystem();
|
|
this.outsystem();
|
|
|
} else {
|
|
} else {
|
|
|
- if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
|
|
|
|
+ if (document.getElementsByClassName('el-message').length == 0) {
|
|
|
this.$message({
|
|
this.$message({
|
|
|
- message: "修改失败!" + res.data.data.message,
|
|
|
|
|
- type: "error",
|
|
|
|
|
|
|
+ message: '修改失败!' + res.data.data.message,
|
|
|
|
|
+ type: 'error'
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
} else {
|
|
} else {
|
|
|
- if (document.getElementsByClassName("el-message").length == 0) {
|
|
|
|
|
|
|
+ if (document.getElementsByClassName('el-message').length == 0) {
|
|
|
this.$message({
|
|
this.$message({
|
|
|
- message: "请完成信息填写!",
|
|
|
|
|
- type: "warning",
|
|
|
|
|
|
|
+ message: '请完成信息填写!',
|
|
|
|
|
+ type: 'warning'
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
return false;
|
|
return false;
|
|
@@ -393,17 +393,17 @@ export default {
|
|
|
// text: "http://114.115.147.140:12345"+this.app_url,
|
|
// text: "http://114.115.147.140:12345"+this.app_url,
|
|
|
width: 100,
|
|
width: 100,
|
|
|
height: 100,
|
|
height: 100,
|
|
|
- colorDark: "#000000",
|
|
|
|
|
- colorLight: "#ffffff",
|
|
|
|
|
- correctLevel: QRCode.CorrectLevel.H,
|
|
|
|
|
|
|
+ colorDark: '#000000',
|
|
|
|
|
+ colorLight: '#ffffff',
|
|
|
|
|
+ correctLevel: QRCode.CorrectLevel.H
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
routemap(routerdata) {
|
|
routemap(routerdata) {
|
|
|
var newrouter = this.$route.path;
|
|
var newrouter = this.$route.path;
|
|
|
- var tf = routerdata.filter((item) => {
|
|
|
|
|
- if (item.menu != "") {
|
|
|
|
|
|
|
+ var tf = routerdata.filter(item => {
|
|
|
|
|
+ if (item.menu != '') {
|
|
|
if (newrouter.indexOf(item.menu) != -1) {
|
|
if (newrouter.indexOf(item.menu) != -1) {
|
|
|
// 第一层菜单是否包含当前路由
|
|
// 第一层菜单是否包含当前路由
|
|
|
// var arr = [item.menu,item.pur_id]
|
|
// var arr = [item.menu,item.pur_id]
|
|
@@ -428,24 +428,24 @@ export default {
|
|
|
// this.menuActiveId = tf[0].pur_id.toString();
|
|
// this.menuActiveId = tf[0].pur_id.toString();
|
|
|
this.routerinfo = [];
|
|
this.routerinfo = [];
|
|
|
this.routerinfo.unshift(tf[0]);
|
|
this.routerinfo.unshift(tf[0]);
|
|
|
- var newpath = this.routerdata.filter((item) => {
|
|
|
|
|
|
|
+ var newpath = this.routerdata.filter(item => {
|
|
|
// console.log(item)
|
|
// console.log(item)
|
|
|
if (item.pur_id == tf[0].parent_perm_id) {
|
|
if (item.pur_id == tf[0].parent_perm_id) {
|
|
|
return item.pur_id == tf[0].parent_perm_id;
|
|
return item.pur_id == tf[0].parent_perm_id;
|
|
|
} else {
|
|
} else {
|
|
|
- var newpath2 = item.children.filter((items) => {
|
|
|
|
|
|
|
+ var newpath2 = item.children.filter(items => {
|
|
|
if (items.pur_id == tf[0].parent_perm_id) {
|
|
if (items.pur_id == tf[0].parent_perm_id) {
|
|
|
return items.pur_id == tf[0].parent_perm_id;
|
|
return items.pur_id == tf[0].parent_perm_id;
|
|
|
} else {
|
|
} else {
|
|
|
if (items.children) {
|
|
if (items.children) {
|
|
|
- var newpath3 = items.children.filter((itemsa) => {
|
|
|
|
|
|
|
+ var newpath3 = items.children.filter(itemsa => {
|
|
|
// console.log(itemsa.pur_id,tf[0].parent_perm_id)
|
|
// console.log(itemsa.pur_id,tf[0].parent_perm_id)
|
|
|
if (itemsa.pur_id == tf[0].parent_perm_id) {
|
|
if (itemsa.pur_id == tf[0].parent_perm_id) {
|
|
|
return itemsa.pur_id == tf[0].parent_perm_id;
|
|
return itemsa.pur_id == tf[0].parent_perm_id;
|
|
|
} else {
|
|
} else {
|
|
|
// console.log(itemsa)
|
|
// console.log(itemsa)
|
|
|
if (itemsa.children) {
|
|
if (itemsa.children) {
|
|
|
- var newpath4 = itemsa.children.filter((itemsaa) => {
|
|
|
|
|
|
|
+ var newpath4 = itemsa.children.filter(itemsaa => {
|
|
|
if (itemsaa.pur_id == tf[0].parent_perm_id) {
|
|
if (itemsaa.pur_id == tf[0].parent_perm_id) {
|
|
|
return itemsaa.pur_id == tf[0].parent_perm_id;
|
|
return itemsaa.pur_id == tf[0].parent_perm_id;
|
|
|
} else {
|
|
} else {
|
|
@@ -479,19 +479,19 @@ export default {
|
|
|
} else {
|
|
} else {
|
|
|
// console.log(this.routerinfo);
|
|
// console.log(this.routerinfo);
|
|
|
var obj = {
|
|
var obj = {
|
|
|
- menu: "",
|
|
|
|
|
- parent_perm_id: "88",
|
|
|
|
|
- pur_id: "88",
|
|
|
|
|
- purview_name: "查看详情",
|
|
|
|
|
|
|
+ menu: '',
|
|
|
|
|
+ parent_perm_id: '88',
|
|
|
|
|
+ pur_id: '88',
|
|
|
|
|
+ purview_name: '查看详情'
|
|
|
};
|
|
};
|
|
|
if (this.routerinfo[1] && !this.routerinfo[2]) {
|
|
if (this.routerinfo[1] && !this.routerinfo[2]) {
|
|
|
- if (this.$route.path == "/index/taskRegulatorDetails") {
|
|
|
|
|
|
|
+ if (this.$route.path == '/index/taskRegulatorDetails') {
|
|
|
this.routerinfo.push(obj);
|
|
this.routerinfo.push(obj);
|
|
|
- } else if (this.$route.path == "/index/superviseAdminDetails") {
|
|
|
|
|
|
|
+ } else if (this.$route.path == '/index/superviseAdminDetails') {
|
|
|
this.routerinfo.push(obj);
|
|
this.routerinfo.push(obj);
|
|
|
- } else if (this.$route.path == "/index/superviseDetails") {
|
|
|
|
|
|
|
+ } else if (this.$route.path == '/index/superviseDetails') {
|
|
|
this.routerinfo.push(obj);
|
|
this.routerinfo.push(obj);
|
|
|
- } else if (this.$route.path == "/index/superviseLogDetails") {
|
|
|
|
|
|
|
+ } else if (this.$route.path == '/index/superviseLogDetails') {
|
|
|
this.routerinfo.push(obj);
|
|
this.routerinfo.push(obj);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -500,24 +500,24 @@ export default {
|
|
|
menunone() {
|
|
menunone() {
|
|
|
this.menunoneele = !this.menunoneele;
|
|
this.menunoneele = !this.menunoneele;
|
|
|
},
|
|
},
|
|
|
- towarn(){
|
|
|
|
|
- this.$router.push("/index/warningrecord");
|
|
|
|
|
|
|
+ towarn() {
|
|
|
|
|
+ this.$router.push('/index/warningrecord');
|
|
|
},
|
|
},
|
|
|
- getwarnnum(){
|
|
|
|
|
|
|
+ getwarnnum() {
|
|
|
this.$axios({
|
|
this.$axios({
|
|
|
- method: "POST",
|
|
|
|
|
- url: "/api/api_gateway?method=alert_manage.alert.alert_unread_num",
|
|
|
|
|
- data: this.qs.stringify({}),
|
|
|
|
|
|
|
+ method: 'POST',
|
|
|
|
|
+ url: '/api/api_gateway?method=alert_manage.alert.alert_unread_num',
|
|
|
|
|
+ data: this.qs.stringify({})
|
|
|
})
|
|
})
|
|
|
- .then((res) => {
|
|
|
|
|
|
|
+ .then(res => {
|
|
|
console.log(res);
|
|
console.log(res);
|
|
|
- if (res.data.data.unread_num>0) {
|
|
|
|
|
- this.warntf = true
|
|
|
|
|
|
|
+ if (res.data.data.unread_num > 0) {
|
|
|
|
|
+ this.warntf = true;
|
|
|
} else {
|
|
} else {
|
|
|
- this.warntf = false
|
|
|
|
|
|
|
+ this.warntf = false;
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
- .catch((err) => {
|
|
|
|
|
|
|
+ .catch(err => {
|
|
|
console.log(err);
|
|
console.log(err);
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
@@ -533,20 +533,20 @@ export default {
|
|
|
|
|
|
|
|
// console.log(this.$route.path)
|
|
// console.log(this.$route.path)
|
|
|
if (
|
|
if (
|
|
|
- this.$route.path == "/Index/facilitydistribute" ||
|
|
|
|
|
- this.$route.path == "/Index/pestdistribute"
|
|
|
|
|
|
|
+ this.$route.path == '/Index/facilitydistribute' ||
|
|
|
|
|
+ this.$route.path == '/Index/pestdistribute'
|
|
|
) {
|
|
) {
|
|
|
// console.log("触发")
|
|
// console.log("触发")
|
|
|
this.menunone();
|
|
this.menunone();
|
|
|
}
|
|
}
|
|
|
- this.getwarnnum()
|
|
|
|
|
|
|
+ this.getwarnnum();
|
|
|
// this.menunone()
|
|
// this.menunone()
|
|
|
},
|
|
},
|
|
|
beforeUpdate() {}, //生命周期 - 更新之前
|
|
beforeUpdate() {}, //生命周期 - 更新之前
|
|
|
updated() {}, //生命周期 - 更新之后
|
|
updated() {}, //生命周期 - 更新之后
|
|
|
beforeDestroy() {}, //生命周期 - 销毁之前
|
|
beforeDestroy() {}, //生命周期 - 销毁之前
|
|
|
destroyed() {}, //生命周期 - 销毁完成
|
|
destroyed() {}, //生命周期 - 销毁完成
|
|
|
- activated() {}, //如果页面有keep-alive缓存功能,这个函数会触发
|
|
|
|
|
|
|
+ activated() {} //如果页面有keep-alive缓存功能,这个函数会触发
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|
|
|
<style lang="less" scoped>
|
|
<style lang="less" scoped>
|
|
@@ -556,13 +556,13 @@ p {
|
|
|
.indexbox {
|
|
.indexbox {
|
|
|
// display: flex;
|
|
// display: flex;
|
|
|
}
|
|
}
|
|
|
-.index_out_info{
|
|
|
|
|
|
|
+.index_out_info {
|
|
|
position: relative;
|
|
position: relative;
|
|
|
margin-right: 15px;
|
|
margin-right: 15px;
|
|
|
- i{
|
|
|
|
|
|
|
+ i {
|
|
|
font-size: 18px;
|
|
font-size: 18px;
|
|
|
}
|
|
}
|
|
|
- .dian{
|
|
|
|
|
|
|
+ .dian {
|
|
|
width: 8px;
|
|
width: 8px;
|
|
|
height: 8px;
|
|
height: 8px;
|
|
|
border-radius: 8px;
|
|
border-radius: 8px;
|
|
@@ -616,7 +616,7 @@ p {
|
|
|
position: absolute;
|
|
position: absolute;
|
|
|
top: 50%;
|
|
top: 50%;
|
|
|
margin-top: -64px;
|
|
margin-top: -64px;
|
|
|
- z-index: 9999999;
|
|
|
|
|
|
|
+ z-index: 1999;
|
|
|
transition: all 1s ease;
|
|
transition: all 1s ease;
|
|
|
}
|
|
}
|
|
|
/deep/.el-menu {
|
|
/deep/.el-menu {
|
|
@@ -663,7 +663,7 @@ p {
|
|
|
display: none;
|
|
display: none;
|
|
|
}
|
|
}
|
|
|
/deep/.el-icon-arrow-down:before {
|
|
/deep/.el-icon-arrow-down:before {
|
|
|
- content: "\E6DF";
|
|
|
|
|
|
|
+ content: '\E6DF';
|
|
|
color: #fff;
|
|
color: #fff;
|
|
|
font-size: 16px;
|
|
font-size: 16px;
|
|
|
}
|
|
}
|