Merge branch 'ehs' of https://e.coding.net/ctcdevteam/ehs/ehs_web into ehs
This commit is contained in:
commit
219047e8a6
|
@ -6,7 +6,7 @@
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||||
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
||||||
<title><%= VUE_APP_TITLE %></title>
|
<title><%= VUE_APP_TITLE %></title>
|
||||||
<script src="./jsmap/jsmap.js"> </script>
|
<!-- <script src="./jsmap/jsmap.js"> </script> -->
|
||||||
<link type="text/css" href="./jsmap/jsmap.css" rel="stylesheet"/>
|
<link type="text/css" href="./jsmap/jsmap.css" rel="stylesheet"/>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
document.write("<script src='config.js?"+new Date().getTime()+"'><\/script>");
|
document.write("<script src='config.js?"+new Date().getTime()+"'><\/script>");
|
||||||
|
|
|
@ -11,6 +11,22 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
dbbackup: {
|
||||||
|
list: {
|
||||||
|
url: `${config.API_URL}/monitor/dbbackup/`,
|
||||||
|
name: "数据库备份",
|
||||||
|
req: async function(data){
|
||||||
|
return await http.get(this.url, data);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
deletes: {
|
||||||
|
url: `${config.API_URL}/monitor/dbbackup/`,
|
||||||
|
name: "数据库备份",
|
||||||
|
req: async function(data){
|
||||||
|
return await http.delete(this.url, data);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
file_logs: {
|
file_logs: {
|
||||||
list: {
|
list: {
|
||||||
url: `${config.API_URL}/monitor/log/`,
|
url: `${config.API_URL}/monitor/log/`,
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -310,12 +310,43 @@ export default {
|
||||||
areaPoints:[],
|
areaPoints:[],
|
||||||
areaFloorId:1,
|
areaFloorId:1,
|
||||||
cate_: { post: "岗位", org: "单位", people: "人员" },
|
cate_: { post: "岗位", org: "单位", people: "人员" },
|
||||||
|
canUseMap:false,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
let that = this;
|
||||||
|
let host = window.location.host;
|
||||||
|
let jsUrl = host.indexOf('localhost')>-1?'http://222.222.144.147:6013/jsmap/jsmap.js':host+'/jsmap/jsmap.js';
|
||||||
|
that.loadScript('mapId',jsUrl, () => {
|
||||||
|
that.canUseMap = true;
|
||||||
|
})
|
||||||
// this.getAccessList();
|
// this.getAccessList();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
loadScript(id, url, callback) {
|
||||||
|
debugger;
|
||||||
|
//如果已经存在这个id,则证明已经加载过,已经有这个js文件了,可以直接执行回调里面的操作
|
||||||
|
if (document.querySelector(`#${id}`)) {
|
||||||
|
callback && callback()
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
//第一次加载,先创建 script 标签
|
||||||
|
const script = document.createElement('script');
|
||||||
|
script.src = url;
|
||||||
|
//创建id属性
|
||||||
|
script.setAttribute('id', id);
|
||||||
|
//获取第一个script标签
|
||||||
|
const firstScript = document.getElementsByTagName('script')[0];
|
||||||
|
//获取第一个script标签的父节点 BODY,在body的第一个script引用之前插入,即把这个动态的js文件放在第一个调用
|
||||||
|
firstScript.parentNode.insertBefore(script, firstScript);
|
||||||
|
//script 一加载就执行
|
||||||
|
script.onload = script.onreadystatechange = function() {
|
||||||
|
// 加载完成
|
||||||
|
if (!this.readyState || this.readyState == 'loaded' || this.readyState == 'complete') {
|
||||||
|
callback && callback()
|
||||||
|
}
|
||||||
|
};
|
||||||
|
},
|
||||||
//添加/编辑区域
|
//添加/编辑区域
|
||||||
handleForm(type, row) {
|
handleForm(type, row) {
|
||||||
this.dialog.save = true;
|
this.dialog.save = true;
|
||||||
|
@ -358,7 +389,12 @@ export default {
|
||||||
}
|
}
|
||||||
this.areaId = row.id;
|
this.areaId = row.id;
|
||||||
this.areaName = row.name;
|
this.areaName = row.name;
|
||||||
|
if(this.canUseMap){
|
||||||
this.dialog.saveRail = true;
|
this.dialog.saveRail = true;
|
||||||
|
}else{
|
||||||
|
this.$message("地图组件加载中,请稍后")
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
//删除区域
|
//删除区域
|
||||||
handleDel(row) {
|
handleDel(row) {
|
||||||
|
|
|
@ -5,17 +5,6 @@
|
||||||
<el-button type="primary" icon="el-icon-refresh" @click="syncData" :syncLoading="syncLoading">同步</el-button>
|
<el-button type="primary" icon="el-icon-refresh" @click="syncData" :syncLoading="syncLoading">同步</el-button>
|
||||||
</div>
|
</div>
|
||||||
<div class="right-panel">
|
<div class="right-panel">
|
||||||
<!-- <el-input
|
|
||||||
v-model="query.code"
|
|
||||||
placeholder="编号"
|
|
||||||
clearable
|
|
||||||
@click="handleQuery"
|
|
||||||
></el-input>
|
|
||||||
<el-button
|
|
||||||
type="primary"
|
|
||||||
icon="el-icon-search"
|
|
||||||
@click="handleQuery"
|
|
||||||
></el-button> -->
|
|
||||||
</div>
|
</div>
|
||||||
</el-header>
|
</el-header>
|
||||||
<el-main class="nopadding">
|
<el-main class="nopadding">
|
||||||
|
@ -96,11 +85,44 @@ export default {
|
||||||
channelName: "",
|
channelName: "",
|
||||||
channelArea: '',
|
channelArea: '',
|
||||||
channelAreas: [],
|
channelAreas: [],
|
||||||
|
canUseMap:false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
mounted(){
|
||||||
|
let that = this;
|
||||||
|
let host = window.location.host;
|
||||||
|
let jsUrl = host.indexOf('localhost')>-1?'http://222.222.144.147:6013/jsmap/jsmap.js':host+'/jsmap/jsmap.js';
|
||||||
|
that.loadScript('mapId',jsUrl, () => {
|
||||||
|
that.canUseMap = true;
|
||||||
|
})
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handlePosition(row) {
|
loadScript(id, url, callback) {
|
||||||
debugger;
|
debugger;
|
||||||
|
//如果已经存在这个id,则证明已经加载过,已经有这个js文件了,可以直接执行回调里面的操作
|
||||||
|
if (document.querySelector(`#${id}`)) {
|
||||||
|
callback && callback()
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
//第一次加载,先创建 script 标签
|
||||||
|
const script = document.createElement('script');
|
||||||
|
script.src = url;
|
||||||
|
//创建id属性
|
||||||
|
script.setAttribute('id', id);
|
||||||
|
//获取第一个script标签
|
||||||
|
const firstScript = document.getElementsByTagName('script')[0];
|
||||||
|
//获取第一个script标签的父节点 BODY,在body的第一个script引用之前插入,即把这个动态的js文件放在第一个调用
|
||||||
|
firstScript.parentNode.insertBefore(script, firstScript);
|
||||||
|
//script 一加载就执行
|
||||||
|
script.onload = script.onreadystatechange = function() {
|
||||||
|
// 加载完成
|
||||||
|
if (!this.readyState || this.readyState == 'loaded' || this.readyState == 'complete') {
|
||||||
|
callback && callback()
|
||||||
|
}
|
||||||
|
};
|
||||||
|
},
|
||||||
|
handlePosition(row) {
|
||||||
|
// debugger;
|
||||||
console.log(row)
|
console.log(row)
|
||||||
if(row.my_info.id&&row.my_info.id!==null){
|
if(row.my_info.id&&row.my_info.id!==null){
|
||||||
this.channelId = row.my_info.id ? row.my_info.id : null;
|
this.channelId = row.my_info.id ? row.my_info.id : null;
|
||||||
|
@ -108,7 +130,11 @@ export default {
|
||||||
this.channelAreas = row.my_info.areas ? row.my_info.areas : [];
|
this.channelAreas = row.my_info.areas ? row.my_info.areas : [];
|
||||||
this.channelLocation = row.my_info.location ? row.my_info.location : {};
|
this.channelLocation = row.my_info.location ? row.my_info.location : {};
|
||||||
this.channelName = row.name;
|
this.channelName = row.name;
|
||||||
|
if(this.canUseMap){
|
||||||
this.dialogSave = true;
|
this.dialogSave = true;
|
||||||
|
}else{
|
||||||
|
this.$message("地图组件加载中,请稍后")
|
||||||
|
}
|
||||||
}else{
|
}else{
|
||||||
this.$message.error("请先完成设备同步");
|
this.$message.error("请先完成设备同步");
|
||||||
}
|
}
|
||||||
|
|
|
@ -148,6 +148,7 @@ export default {
|
||||||
2: "球机",
|
2: "球机",
|
||||||
3: "半球",
|
3: "半球",
|
||||||
},
|
},
|
||||||
|
canUseMap:false,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
@ -159,8 +160,38 @@ export default {
|
||||||
},
|
},
|
||||||
mounted(){
|
mounted(){
|
||||||
this.getArea();
|
this.getArea();
|
||||||
|
let that = this;
|
||||||
|
let host = window.location.host;
|
||||||
|
let jsUrl = host.indexOf('localhost')>-1?'http://222.222.144.147:6013/jsmap/jsmap.js':host+'/jsmap/jsmap.js';
|
||||||
|
that.loadScript('mapId',jsUrl, () => {
|
||||||
|
that.canUseMap = true;
|
||||||
|
})
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
loadScript(id, url, callback) {
|
||||||
|
debugger;
|
||||||
|
//如果已经存在这个id,则证明已经加载过,已经有这个js文件了,可以直接执行回调里面的操作
|
||||||
|
if (document.querySelector(`#${id}`)) {
|
||||||
|
callback && callback()
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
//第一次加载,先创建 script 标签
|
||||||
|
const script = document.createElement('script');
|
||||||
|
script.src = url;
|
||||||
|
//创建id属性
|
||||||
|
script.setAttribute('id', id);
|
||||||
|
//获取第一个script标签
|
||||||
|
const firstScript = document.getElementsByTagName('script')[0];
|
||||||
|
//获取第一个script标签的父节点 BODY,在body的第一个script引用之前插入,即把这个动态的js文件放在第一个调用
|
||||||
|
firstScript.parentNode.insertBefore(script, firstScript);
|
||||||
|
//script 一加载就执行
|
||||||
|
script.onload = script.onreadystatechange = function() {
|
||||||
|
// 加载完成
|
||||||
|
if (!this.readyState || this.readyState == 'loaded' || this.readyState == 'complete') {
|
||||||
|
callback && callback()
|
||||||
|
}
|
||||||
|
};
|
||||||
|
},
|
||||||
getAllVchannel(){
|
getAllVchannel(){
|
||||||
debugger;
|
debugger;
|
||||||
this.$API.am.video.list.req({pageSize:999}).then(res=>{
|
this.$API.am.video.list.req({pageSize:999}).then(res=>{
|
||||||
|
@ -175,20 +206,6 @@ export default {
|
||||||
that.channelCode = row.channelCode;
|
that.channelCode = row.channelCode;
|
||||||
that.channelName = row.channelName;
|
that.channelName = row.channelName;
|
||||||
that.limitedVisible = true;
|
that.limitedVisible = true;
|
||||||
|
|
||||||
// that.$API.am.video.item.req(this.params).then((res) => {
|
|
||||||
// this.url = res.url;
|
|
||||||
// if (flvjs.isSupported()) {
|
|
||||||
// let videoElement = document.getElementById("videoElement");
|
|
||||||
// that.flvPlayer = flvjs.createPlayer({
|
|
||||||
// type: "flv",
|
|
||||||
// url: res.url,
|
|
||||||
// });
|
|
||||||
// that.flvPlayer.attachMediaElement(videoElement);
|
|
||||||
// that.flvPlayer.load();
|
|
||||||
// that.flvPlayer.play();
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
},
|
},
|
||||||
viewClose() {
|
viewClose() {
|
||||||
this.limitedVisible = false;
|
this.limitedVisible = false;
|
||||||
|
@ -208,7 +225,12 @@ export default {
|
||||||
this.channelAreas = row.my_info.areas ? row.my_info.areas : [];
|
this.channelAreas = row.my_info.areas ? row.my_info.areas : [];
|
||||||
this.channelLocation = row.my_info.location ? row.my_info.location : {};
|
this.channelLocation = row.my_info.location ? row.my_info.location : {};
|
||||||
this.channelName = row.channelName;
|
this.channelName = row.channelName;
|
||||||
|
if(this.canUseMap){
|
||||||
this.dialogSave = true;
|
this.dialogSave = true;
|
||||||
|
}else{
|
||||||
|
this.$message("地图组件加载中,请稍后")
|
||||||
|
}
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
this.$message.error("请先完成设备同步");
|
this.$message.error("请先完成设备同步");
|
||||||
}
|
}
|
||||||
|
|
|
@ -773,7 +773,7 @@ export default {
|
||||||
audioList:{},
|
audioList:{},
|
||||||
employeeScroll:0,
|
employeeScroll:0,
|
||||||
searchKeyWord:'',
|
searchKeyWord:'',
|
||||||
|
ElLoading:null
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// created() {
|
// created() {
|
||||||
|
@ -793,6 +793,10 @@ export default {
|
||||||
that.timerTime = setInterval(() => {
|
that.timerTime = setInterval(() => {
|
||||||
that.showTime();
|
that.showTime();
|
||||||
}, 1000);
|
}, 1000);
|
||||||
|
let host = window.location.host;
|
||||||
|
// let jsUrl = host.indexOf('localhost')>-1?'http://222.222.144.147:6013/jsmap/jsmap.js':host+'/jsmap/jsmap.js';
|
||||||
|
let jsUrl = '/jsmap/jsmap.js';
|
||||||
|
that.loadScript('mapId',jsUrl, () => {
|
||||||
window.map = new jsmap.JSMap({
|
window.map = new jsmap.JSMap({
|
||||||
mapType: jsmap.JSMapType.MAP_3D,
|
mapType: jsmap.JSMapType.MAP_3D,
|
||||||
container: 'mapContainer',
|
container: 'mapContainer',
|
||||||
|
@ -968,6 +972,8 @@ export default {
|
||||||
} else {
|
} else {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
})
|
||||||
//左侧数据统计
|
//左侧数据统计
|
||||||
this.getManCount();//人员统计$$
|
this.getManCount();//人员统计$$
|
||||||
this.getWarnings();//报警统计$$
|
this.getWarnings();//报警统计$$
|
||||||
|
@ -1007,6 +1013,43 @@ export default {
|
||||||
clearInterval(this.eventAudioTimer)//事件
|
clearInterval(this.eventAudioTimer)//事件
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
loadScript(id, url, callback) {
|
||||||
|
debugger;
|
||||||
|
let that = this;
|
||||||
|
//如果已经存在这个id,则证明已经加载过,已经有这个js文件了,可以直接执行回调里面的操作
|
||||||
|
if (document.querySelector(`#${id}`)) {
|
||||||
|
that.ElLoading = null;
|
||||||
|
callback && callback()
|
||||||
|
return;
|
||||||
|
}else{
|
||||||
|
that.ElLoading = this.$loading({
|
||||||
|
lock: true,
|
||||||
|
text: '地图资源加载中...',
|
||||||
|
background: 'rgba(0, 0, 0, 0)',
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
//第一次加载,先创建 script 标签
|
||||||
|
const script = document.createElement('script');
|
||||||
|
script.src = url;
|
||||||
|
//创建id属性
|
||||||
|
script.setAttribute('id', id);
|
||||||
|
//获取第一个script标签
|
||||||
|
const firstScript = document.getElementsByTagName('script')[0];
|
||||||
|
//获取第一个script标签的父节点 BODY,在body的第一个script引用之前插入,即把这个动态的js文件放在第一个调用
|
||||||
|
firstScript.parentNode.insertBefore(script, firstScript);
|
||||||
|
//script 一加载就执行
|
||||||
|
script.onload = script.onreadystatechange = function() {
|
||||||
|
that.ElLoading.close();
|
||||||
|
// that.ElLoading = null;
|
||||||
|
|
||||||
|
// 加载完成
|
||||||
|
if (!this.readyState || this.readyState == 'loaded' || this.readyState == 'complete') {
|
||||||
|
callback && callback()
|
||||||
|
|
||||||
|
}
|
||||||
|
};
|
||||||
|
},
|
||||||
//查询某个人员
|
//查询某个人员
|
||||||
searchOne(keyword){
|
searchOne(keyword){
|
||||||
let that = this;
|
let that = this;
|
||||||
|
@ -1034,13 +1077,8 @@ export default {
|
||||||
},
|
},
|
||||||
handleChange(item, check,item2,item3) {
|
handleChange(item, check,item2,item3) {
|
||||||
let that = this;
|
let that = this;
|
||||||
// debugger;
|
|
||||||
// console.log(check)
|
|
||||||
|
|
||||||
this.deptChecked = check.checkedKeys;
|
this.deptChecked = check.checkedKeys;
|
||||||
this.userParams.depts = check.checkedKeys;
|
this.userParams.depts = check.checkedKeys;
|
||||||
// that.userMaskerLayer.removeAllIconTextMark();
|
|
||||||
// this.refreshUserMarker();
|
|
||||||
},
|
},
|
||||||
//人员类型选择
|
//人员类型选择
|
||||||
userFilter() {
|
userFilter() {
|
||||||
|
@ -1055,19 +1093,14 @@ export default {
|
||||||
window.map.addLayer(that.userMaskerLayer);
|
window.map.addLayer(that.userMaskerLayer);
|
||||||
let userListNew = [];
|
let userListNew = [];
|
||||||
that.userList.filter(item=>{
|
that.userList.filter(item=>{
|
||||||
// debugger;
|
|
||||||
// console.log(item);
|
|
||||||
if(checkedKeys.indexOf(item.my_info.employee_.belong_dept_)>-1){
|
if(checkedKeys.indexOf(item.my_info.employee_.belong_dept_)>-1){
|
||||||
// debugger;
|
|
||||||
userListNew.push(item)
|
userListNew.push(item)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
// debugger;
|
|
||||||
that.userList = userListNew;
|
that.userList = userListNew;
|
||||||
console.log(that.userList)
|
console.log(that.userList)
|
||||||
that.showUserMarkers(userListNew);
|
that.showUserMarkers(userListNew);
|
||||||
this.showUserSelect = false;
|
this.showUserSelect = false;
|
||||||
// this.screenUser = true;
|
|
||||||
},
|
},
|
||||||
//
|
//
|
||||||
audioFinished(){
|
audioFinished(){
|
||||||
|
@ -1136,14 +1169,14 @@ export default {
|
||||||
if(item.id==that.audioList.id){
|
if(item.id==that.audioList.id){
|
||||||
}else{
|
}else{
|
||||||
that.audioList = item;
|
that.audioList = item;
|
||||||
that.audioSrc=item.voice_f;
|
that.audioSrc=item.voice;
|
||||||
if(item.location){
|
if(item.location){
|
||||||
window.map.flyToPosition(new jsmap.JSPoint(item.location.longitude, item.location.latitude), { range: 200,duration: 1000 });
|
window.map.flyToPosition(new jsmap.JSPoint(item.location.longitude, item.location.latitude), { range: 200,duration: 1000 });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
that.audioList = item;
|
that.audioList = item;
|
||||||
that.audioSrc = item.voice_f;
|
that.audioSrc = item.voice;
|
||||||
that.music.play();//播放
|
that.music.play();//播放
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2244,7 +2277,6 @@ export default {
|
||||||
},
|
},
|
||||||
speakerPlay(){
|
speakerPlay(){
|
||||||
this.speakerPlayStatus = true;
|
this.speakerPlayStatus = true;
|
||||||
// this.music.src = this.warningData.list[0].voice_f;
|
|
||||||
this.music.play();//播放
|
this.music.play();//播放
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -2289,6 +2321,14 @@ export default {
|
||||||
background: rgba(48, 255, 220, 0.35);
|
background: rgba(48, 255, 220, 0.35);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.el-loading-spinner .el-loading-text{
|
||||||
|
color: #Ffa500;
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-loading-spinner .path{
|
||||||
|
stroke: #Ffa500;
|
||||||
|
}
|
||||||
|
|
||||||
.el-radio.el-radio--small .el-radio__label {
|
.el-radio.el-radio--small .el-radio__label {
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
}
|
}
|
||||||
|
@ -3792,6 +3832,7 @@ export default {
|
||||||
#mapContainer {
|
#mapContainer {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
background-color: #49a1ff;
|
||||||
}
|
}
|
||||||
|
|
||||||
#bigScreenUserTable {
|
#bigScreenUserTable {
|
||||||
|
|
|
@ -94,7 +94,7 @@
|
||||||
<el-table-column label="事件标记" prop="mark">
|
<el-table-column label="事件标记" prop="mark">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-tag v-if="scope.row.mark == 20" type="warning" effect="plain">误报</el-tag>
|
<el-tag v-if="scope.row.mark == 20" type="warning" effect="plain">误报</el-tag>
|
||||||
<el-tag v-else type="success" effect="plain">正常</el-tag>
|
<el-tag v-else type="success" effect="plain">正确</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="处理超时">
|
<el-table-column label="处理超时">
|
||||||
|
|
|
@ -261,7 +261,11 @@ export default {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
onSubmit() {
|
onSubmit() {
|
||||||
this.$API.ecm.event.handle.req(this.form.id, this.form).then((res) => {
|
let params = {};
|
||||||
|
params.mark = this.form.mark;
|
||||||
|
params.handle_desc = this.form.handle_desc;
|
||||||
|
|
||||||
|
this.$API.ecm.event.handle.req(this.form.id, params).then((res) => {
|
||||||
this.$emit("success");
|
this.$emit("success");
|
||||||
this.$message.success("操作成功");
|
this.$message.success("操作成功");
|
||||||
return res;
|
return res;
|
||||||
|
|
|
@ -39,7 +39,8 @@
|
||||||
</div>
|
</div>
|
||||||
-->
|
-->
|
||||||
<div class="login-oauth">
|
<div class="login-oauth">
|
||||||
<el-button type="success" @click="appDown">安卓APP</el-button>
|
<el-button type="success" @click="appDown" style="background-color:#2cd4f9;border-color:#2cd4f9">安卓APP</el-button>
|
||||||
|
<el-button type="primary" @click="MonitorOpen" style="background-color:orange;border-color:orange">监控视频</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -61,6 +62,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import { Monitor } from '@element-plus/icons-vue'
|
||||||
import passwordForm from './components/passwordForm'
|
import passwordForm from './components/passwordForm'
|
||||||
import phoneForm from './components/phoneForm'
|
import phoneForm from './components/phoneForm'
|
||||||
|
|
||||||
|
@ -122,6 +124,9 @@
|
||||||
appDown() {
|
appDown() {
|
||||||
this.showApp = true;
|
this.showApp = true;
|
||||||
},
|
},
|
||||||
|
MonitorOpen(){
|
||||||
|
window.open('http://10.99.5.79:5515/')
|
||||||
|
},
|
||||||
configDark(){
|
configDark(){
|
||||||
this.config.dark = this.config.dark ? false : true
|
this.config.dark = this.config.dark ? false : true
|
||||||
},
|
},
|
||||||
|
|
|
@ -48,6 +48,41 @@
|
||||||
</el-card>
|
</el-card>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
<el-card>
|
||||||
|
<scTable
|
||||||
|
ref="table"
|
||||||
|
:apiObj="apiObj"
|
||||||
|
row-key="id"
|
||||||
|
stripe
|
||||||
|
highlightCurrentRow
|
||||||
|
hidePagination
|
||||||
|
@resetQuery="resetQuery"
|
||||||
|
>
|
||||||
|
<el-table-column label="#" type="index" width="50"></el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
label="文件地址"
|
||||||
|
prop="filepath"
|
||||||
|
min-width="200"
|
||||||
|
></el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
label="大小(MB)"
|
||||||
|
prop="size"
|
||||||
|
min-width="150"
|
||||||
|
></el-table-column>
|
||||||
|
<el-table-column label="操作" align="center" width="80">
|
||||||
|
<template #default="scope">
|
||||||
|
<el-popconfirm
|
||||||
|
title="确定删除吗?"
|
||||||
|
@confirm="table_del(scope.row, scope.$index)"
|
||||||
|
>
|
||||||
|
<template #reference>
|
||||||
|
<el-button type="danger" size="small">删除</el-button>
|
||||||
|
</template>
|
||||||
|
</el-popconfirm>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</scTable>
|
||||||
|
</el-card>
|
||||||
</el-main>
|
</el-main>
|
||||||
</el-container>
|
</el-container>
|
||||||
</template>
|
</template>
|
||||||
|
@ -59,6 +94,8 @@ export default {
|
||||||
cpuData: {},
|
cpuData: {},
|
||||||
diskData: {},
|
diskData: {},
|
||||||
memoryData: {},
|
memoryData: {},
|
||||||
|
apiObj: this.$API.ops.dbbackup.list,
|
||||||
|
query: {},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
@ -79,6 +116,22 @@ export default {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
resetQuery() {
|
||||||
|
this.query = {};
|
||||||
|
},
|
||||||
|
//删除
|
||||||
|
async table_del(row) {
|
||||||
|
this.$API.ops.dbbackup.deletes
|
||||||
|
.req({filepaths: [row.filepath]})
|
||||||
|
.then((res) => {
|
||||||
|
this.$message.success("删除成功");
|
||||||
|
this.$refs.table.refresh();
|
||||||
|
return res;
|
||||||
|
})
|
||||||
|
.catch((err) => {
|
||||||
|
return err;
|
||||||
|
});
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
|
@ -128,7 +128,7 @@
|
||||||
hidePagination
|
hidePagination
|
||||||
hideDo
|
hideDo
|
||||||
stripe
|
stripe
|
||||||
style="height: 300px"
|
style="height: 680px"
|
||||||
>
|
>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="#"
|
label="#"
|
||||||
|
@ -224,7 +224,7 @@
|
||||||
hidePagination
|
hidePagination
|
||||||
hideDo
|
hideDo
|
||||||
stripe
|
stripe
|
||||||
style="height: 300px"
|
style="height: 680px"
|
||||||
>
|
>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="#"
|
label="#"
|
||||||
|
@ -636,8 +636,9 @@ export default {
|
||||||
//提交,创建工单
|
//提交,创建工单
|
||||||
submitTicketCreate(id) {
|
submitTicketCreate(id) {
|
||||||
let ticket = {};
|
let ticket = {};
|
||||||
|
ticket.title = this.rpjform.name;
|
||||||
ticket.workflow = this.initForm.workflow;
|
ticket.workflow = this.initForm.workflow;
|
||||||
ticket.ticket_data = { rpj: this.rpjId };
|
ticket.ticket_data = { rpj: this.rpjId ,name:this.rpjform.name};
|
||||||
ticket.transition = id;
|
ticket.transition = id;
|
||||||
this.$API.wf.ticket.create.req(ticket).then((res) => {
|
this.$API.wf.ticket.create.req(ticket).then((res) => {
|
||||||
this.$message.success("提交成功");
|
this.$message.success("提交成功");
|
||||||
|
|
|
@ -130,7 +130,7 @@
|
||||||
link
|
link
|
||||||
size="small"
|
size="small"
|
||||||
@click="formSetting(scope.row)"
|
@click="formSetting(scope.row)"
|
||||||
v-auth="'user.create'"
|
v-auth="'user.update'"
|
||||||
>
|
>
|
||||||
设置
|
设置
|
||||||
</el-button>
|
</el-button>
|
||||||
|
|
|
@ -90,7 +90,7 @@
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="来访单位"
|
label="来访单位"
|
||||||
prop="company"
|
prop="company"
|
||||||
min-width="180"
|
min-width="220"
|
||||||
fixed="left"
|
fixed="left"
|
||||||
></el-table-column>
|
></el-table-column>
|
||||||
<el-table-column label="项目状态" prop="state" min-width="80">
|
<el-table-column label="项目状态" prop="state" min-width="80">
|
||||||
|
|
|
@ -244,7 +244,7 @@
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :md="12" :sm="12" :xs="24">
|
<el-col :md="12" :sm="12" :xs="24">
|
||||||
<el-form-item label="来源地" prop="come_place">
|
<el-form-item label="来源地" prop="come_place">
|
||||||
<el-input v-model="formpeople.come_place" type="text" clearable></el-input>
|
<sc-address :Address="formpeople.come_place" @selectedAddress="selectedAddress"></sc-address>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :md="12" :sm="12" :xs="24">
|
<el-col :md="12" :sm="12" :xs="24">
|
||||||
|
@ -252,6 +252,11 @@
|
||||||
<el-input v-model="formpeople.trip_desc" type="text" clearable></el-input>
|
<el-input v-model="formpeople.trip_desc" type="text" clearable></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
<el-col :md="12" :sm="12" :xs="24">
|
||||||
|
<el-form-item label="详细地址" prop="come_place_detail">
|
||||||
|
<el-input v-model="formpeople.come_place_detail" type="text" clearable></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
<el-col :md="12" :sm="12" :xs="24">
|
<el-col :md="12" :sm="12" :xs="24">
|
||||||
<el-form-item label="管控措施" prop="measure">
|
<el-form-item label="管控措施" prop="measure">
|
||||||
<el-select v-model="formpeople.measure" style="width:100%" placeholder="选择来访事由">
|
<el-select v-model="formpeople.measure" style="width:100%" placeholder="选择来访事由">
|
||||||
|
@ -340,6 +345,7 @@
|
||||||
</style>
|
</style>
|
||||||
<script>
|
<script>
|
||||||
import { genTree } from "@/utils/verificate";
|
import { genTree } from "@/utils/verificate";
|
||||||
|
import scAddress from "@/components/scAddress/SelectAddress.vue";
|
||||||
|
|
||||||
const defaultformworker = {
|
const defaultformworker = {
|
||||||
duty: "",
|
duty: "",
|
||||||
|
@ -348,6 +354,9 @@ const defaultformworker = {
|
||||||
};
|
};
|
||||||
export default {
|
export default {
|
||||||
name: "vistoradd",
|
name: "vistoradd",
|
||||||
|
components:{
|
||||||
|
scAddress
|
||||||
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
measureOptions: ['集中隔离','居家隔离','居家健康检测','排除风险'],
|
measureOptions: ['集中隔离','居家隔离','居家健康检测','排除风险'],
|
||||||
|
@ -367,6 +376,7 @@ export default {
|
||||||
search: {
|
search: {
|
||||||
keyword: null,
|
keyword: null,
|
||||||
},
|
},
|
||||||
|
come_place:'',
|
||||||
dialog: {
|
dialog: {
|
||||||
save: false,
|
save: false,
|
||||||
permission: false,
|
permission: false,
|
||||||
|
@ -382,6 +392,7 @@ export default {
|
||||||
visitor: '',
|
visitor: '',
|
||||||
return_date: '',
|
return_date: '',
|
||||||
come_place: '',
|
come_place: '',
|
||||||
|
come_place_detail:'',
|
||||||
trip_desc: '',
|
trip_desc: '',
|
||||||
test_date:'',
|
test_date:'',
|
||||||
measure: '',
|
measure: '',
|
||||||
|
@ -403,6 +414,7 @@ export default {
|
||||||
visitor: [{ required: true, message: "请选择来访人员" }],
|
visitor: [{ required: true, message: "请选择来访人员" }],
|
||||||
return_date: [{ required: true, message: "请选择返乡日期" }],
|
return_date: [{ required: true, message: "请选择返乡日期" }],
|
||||||
come_place: [{ required: true, message: "请填写来源地" }],
|
come_place: [{ required: true, message: "请填写来源地" }],
|
||||||
|
come_place_detail: [{ required: true, message: "请填写来源地详细地址" }],
|
||||||
trip_desc: [{ required: true, message: "请填写行程轨迹" }],
|
trip_desc: [{ required: true, message: "请填写行程轨迹" }],
|
||||||
test_date: [{ required: true, message: "请选择核酸日期" }],
|
test_date: [{ required: true, message: "请选择核酸日期" }],
|
||||||
measure: [{ required: true, message: "请选择管控措施" }],
|
measure: [{ required: true, message: "请选择管控措施" }],
|
||||||
|
@ -425,6 +437,11 @@ export default {
|
||||||
this.getvisitorlist();
|
this.getvisitorlist();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
selectedAddress(data){
|
||||||
|
// debugger;
|
||||||
|
console.log(data)
|
||||||
|
this.formpeople.come_place=data;
|
||||||
|
},
|
||||||
//访问项目基本信息
|
//访问项目基本信息
|
||||||
getRpj() {
|
getRpj() {
|
||||||
this.$API.vm.visit.read.req(this.visitid).then((res) => {
|
this.$API.vm.visit.read.req(this.visitid).then((res) => {
|
||||||
|
@ -516,6 +533,15 @@ this.$API.vm.visit.update
|
||||||
submitpeople() {
|
submitpeople() {
|
||||||
let that = this;
|
let that = this;
|
||||||
that.formpeople.visit = this.visitid;
|
that.formpeople.visit = this.visitid;
|
||||||
|
let addressObj = that.formpeople.come_place;
|
||||||
|
let addressStr = '';
|
||||||
|
that.formpeople.come_place = '';
|
||||||
|
for(let key in addressObj){
|
||||||
|
addressStr =addressStr+addressObj[key];
|
||||||
|
}
|
||||||
|
that.formpeople.come_place = addressStr;
|
||||||
|
// debugger;
|
||||||
|
console.log(addressStr)
|
||||||
that.$refs.formpeople.validate((valid) => {
|
that.$refs.formpeople.validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
that.isSaveing = true;
|
that.isSaveing = true;
|
||||||
|
@ -552,8 +578,9 @@ this.$API.vm.visit.update
|
||||||
//提交工单
|
//提交工单
|
||||||
submitticket(id){
|
submitticket(id){
|
||||||
this.ticket={};
|
this.ticket={};
|
||||||
|
this.ticket.title = this.form.name;
|
||||||
this.ticket.workflow=this.initform.workflow;
|
this.ticket.workflow=this.initform.workflow;
|
||||||
this.ticket.ticket_data={visit:this.visitid};
|
this.ticket.ticket_data={visit:this.visitid,name:this.form.name};
|
||||||
this.ticket.transition=id;
|
this.ticket.transition=id;
|
||||||
this.$API.wf.ticket.create.req(this.ticket).then((res) => {
|
this.$API.wf.ticket.create.req(this.ticket).then((res) => {
|
||||||
this.$message.success("提交成功");
|
this.$message.success("提交成功");
|
||||||
|
|
Loading…
Reference in New Issue