Merge branch 'ehs' of https://e.coding.net/ctcdevteam/ehs/ehs_web into ehs
This commit is contained in:
commit
7516417f52
|
@ -22,7 +22,6 @@
|
||||||
if(dark){
|
if(dark){
|
||||||
document.documentElement.classList.add("dark")
|
document.documentElement.classList.add("dark")
|
||||||
}
|
}
|
||||||
debugger;
|
|
||||||
let urls = window.location.host;
|
let urls = window.location.host;
|
||||||
window.IPConfig = {
|
window.IPConfig = {
|
||||||
//此处的IP在打包不会被编译,可修改
|
//此处的IP在打包不会被编译,可修改
|
||||||
|
|
|
@ -50,10 +50,17 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="drop-content" v-if="showUserSelect">
|
<div class="drop-content" v-if="showUserSelect">
|
||||||
<el-tree ref="group" id="bigScreenTree" node-key="id" :data="postList" show-checkbox
|
<el-tree
|
||||||
:current-node-key="''" :highlight-current="true" :expand-on-click-node="true"
|
ref="group"
|
||||||
@node-click="groupClick"></el-tree>
|
id="bigScreenTree"
|
||||||
|
node-key="id"
|
||||||
|
:data="postList"
|
||||||
|
show-checkbox
|
||||||
|
:current-node-key="''"
|
||||||
|
:highlight-current="true"
|
||||||
|
:expand-on-click-node="true"
|
||||||
|
@check="handleChange"
|
||||||
|
></el-tree>
|
||||||
<el-button type="primary" @click="userFilter">查看</el-button>
|
<el-button type="primary" @click="userFilter">查看</el-button>
|
||||||
</div>
|
</div>
|
||||||
<div class="filter-action showroam">
|
<div class="filter-action showroam">
|
||||||
|
@ -823,6 +830,7 @@ export default {
|
||||||
areaVideo:[],
|
areaVideo:[],
|
||||||
areaSpeaker:[],
|
areaSpeaker:[],
|
||||||
areaUser:[],
|
areaUser:[],
|
||||||
|
deptChecked:[],
|
||||||
//数据统计
|
//数据统计
|
||||||
userCount: {
|
userCount: {
|
||||||
total: 0,
|
total: 0,
|
||||||
|
@ -847,6 +855,9 @@ export default {
|
||||||
},
|
},
|
||||||
code: 'video_realtime'
|
code: 'video_realtime'
|
||||||
},
|
},
|
||||||
|
userParams:{
|
||||||
|
depts:[],
|
||||||
|
},
|
||||||
group: [],
|
group: [],
|
||||||
groupsProps: {
|
groupsProps: {
|
||||||
value: "id",
|
value: "id",
|
||||||
|
@ -881,6 +892,7 @@ export default {
|
||||||
audioSrc:'',
|
audioSrc:'',
|
||||||
audioIndex:0,
|
audioIndex:0,
|
||||||
audioList:{},
|
audioList:{},
|
||||||
|
employeeScroll:0,
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -1048,7 +1060,8 @@ export default {
|
||||||
that.screenUser = true;
|
that.screenUser = true;
|
||||||
// debugger;
|
// debugger;
|
||||||
window.map.flyToMarker(that.userMarker[that.screenUserItem.mac], {
|
window.map.flyToMarker(that.userMarker[that.screenUserItem.mac], {
|
||||||
duration: 1000
|
duration: 1000,
|
||||||
|
range: 200
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1092,13 +1105,43 @@ export default {
|
||||||
this.timerTime = null;
|
this.timerTime = null;
|
||||||
this.eventTimer = null;
|
this.eventTimer = null;
|
||||||
this.eventAudioTimer = null;
|
this.eventAudioTimer = null;
|
||||||
window.map.destroy();
|
// window.map.destroy();
|
||||||
clearInterval(this.timerUser)//人员
|
clearInterval(this.timerUser)//人员
|
||||||
clearInterval(this.timerTime)//时间
|
clearInterval(this.timerTime)//时间
|
||||||
clearInterval(this.eventTimer)//时间
|
clearInterval(this.eventTimer)//时间
|
||||||
clearInterval(this.eventAudioTimer)//事件
|
clearInterval(this.eventAudioTimer)//事件
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
handleChange(item, check,item2,item3) {
|
||||||
|
// debugger;
|
||||||
|
// let that = this;
|
||||||
|
// console.log(item);
|
||||||
|
// console.log(check);
|
||||||
|
// console.log(item2);
|
||||||
|
// console.log(item3);
|
||||||
|
this.deptChecked = check.checkedKeys;
|
||||||
|
this.userParams.depts = check.checkedKeys;
|
||||||
|
let obj = {};
|
||||||
|
obj.depts = check.checkedKeys;
|
||||||
|
that.$API.third.blt.all.req(obj).then(res => {
|
||||||
|
debugger;
|
||||||
|
console.log('selectedUser:'+res)
|
||||||
|
})
|
||||||
|
this.refreshUserMarker();
|
||||||
|
},
|
||||||
|
//人员类型选择
|
||||||
|
userFilter() {
|
||||||
|
let that = this;
|
||||||
|
this.showUserSelect = false;
|
||||||
|
this.screenUser = true;
|
||||||
|
// that.screenUserItem.name = this.userList[0].my_info.employee_.name;
|
||||||
|
// that.screenUserItem.type = this.userList[0].my_info.employee_.type;
|
||||||
|
// that.screenUserItem.id = this.userList[0].my_info.employee_.id;
|
||||||
|
// that.screenUserItem.photo = this.userList[0].my_info.employee_.photo ? this.userList[0].my_info.employee_.photo : '';
|
||||||
|
// that.screenUserItem.post_name = this.userList[0].my_info.employee_.post_name ? this.userList[0].my_info.employee_.post_name : '';
|
||||||
|
// that.screenUserItem.belong_dept_name = this.userList[0].my_info.employee_.belong_dept_name ? this.userList[0].my_info.employee_.belong_dept_name : '';
|
||||||
|
|
||||||
|
},
|
||||||
audioFinished(){
|
audioFinished(){
|
||||||
if(this.audioIndex<this.audioList.length){
|
if(this.audioIndex<this.audioList.length){
|
||||||
this.audioIndex++;
|
this.audioIndex++;
|
||||||
|
@ -1155,12 +1198,12 @@ export default {
|
||||||
if (res.err_msg) {
|
if (res.err_msg) {
|
||||||
} else {
|
} else {
|
||||||
// debugger;
|
// debugger;
|
||||||
console.log('00000000000000');
|
// console.log('00000000000000');
|
||||||
console.log(res.results[0].id);
|
// console.log(res.results[0].id);
|
||||||
console.log(that.audioList.id);
|
// console.log(that.audioList.id);
|
||||||
let judge = res.results[0].id==that.audioList.id
|
let judge = res.results[0].id==that.audioList.id
|
||||||
console.log(judge);
|
// console.log(judge);
|
||||||
console.log('11111111111111');
|
// console.log('11111111111111');
|
||||||
let item = res.results[0];
|
let item = res.results[0];
|
||||||
if(that.audioSrc!==''){
|
if(that.audioSrc!==''){
|
||||||
if(item.id==that.audioList.id){
|
if(item.id==that.audioList.id){
|
||||||
|
@ -1171,7 +1214,7 @@ export default {
|
||||||
that.audioSrc=item.voice_f;
|
that.audioSrc=item.voice_f;
|
||||||
// that.music.play();//播放
|
// that.music.play();//播放
|
||||||
if(item.location){
|
if(item.location){
|
||||||
window.map.flyToPosition(new jsmap.JSPoint(item.location.longitude, item.location.latitude), { duration: 1000 });
|
window.map.flyToPosition(new jsmap.JSPoint(item.location.longitude, item.location.latitude), { range: 200,duration: 1000 });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
|
@ -1234,7 +1277,7 @@ export default {
|
||||||
that.areaDetailId = data.id;
|
that.areaDetailId = data.id;
|
||||||
this.getAreaOperation();
|
this.getAreaOperation();
|
||||||
let points = data.third_info.xx_rail.detail.polygon.points[0];
|
let points = data.third_info.xx_rail.detail.polygon.points[0];
|
||||||
window.map.flyToPosition(new jsmap.JSPoint(points.x, points.y, points.z), { duration: 1000 });
|
window.map.flyToPosition(new jsmap.JSPoint(points.x, points.y, points.z), { range: 200,duration: 1000 });
|
||||||
},
|
},
|
||||||
//区域下的作业
|
//区域下的作业
|
||||||
getAreaOperation(){
|
getAreaOperation(){
|
||||||
|
@ -1279,8 +1322,8 @@ export default {
|
||||||
let rpartsList=[];
|
let rpartsList=[];
|
||||||
let arr = [];
|
let arr = [];
|
||||||
let children = genTree(res);
|
let children = genTree(res);
|
||||||
// debugger;
|
debugger;
|
||||||
// console.log(children)
|
console.log(children)
|
||||||
for (let i = 0; i < 5; i++) {
|
for (let i = 0; i < 5; i++) {
|
||||||
let obj = new Object();
|
let obj = new Object();
|
||||||
if (i === 0) {
|
if (i === 0) {
|
||||||
|
@ -1409,6 +1452,15 @@ export default {
|
||||||
groupClick(data) {
|
groupClick(data) {
|
||||||
debugger;
|
debugger;
|
||||||
console.log(data);
|
console.log(data);
|
||||||
|
debugger;
|
||||||
|
},
|
||||||
|
checkChange(data1,data2,data3,data4){
|
||||||
|
debugger;
|
||||||
|
console.log(data1);
|
||||||
|
console.log(data2);
|
||||||
|
console.log(data3);
|
||||||
|
console.log(data4);
|
||||||
|
debugger;
|
||||||
},
|
},
|
||||||
//获取人员详细信息
|
//获取人员详细信息
|
||||||
showUserDetail() {
|
showUserDetail() {
|
||||||
|
@ -1418,18 +1470,7 @@ export default {
|
||||||
this.screenUserItemDetail = res;
|
this.screenUserItemDetail = res;
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
//人员类型选择
|
|
||||||
userFilter() {
|
|
||||||
let that = this;
|
|
||||||
this.showUserSelect = false;
|
|
||||||
this.screenUser = true;
|
|
||||||
that.screenUserItem.name = this.userList[0].my_info.employee_.name;
|
|
||||||
that.screenUserItem.type = this.userList[0].my_info.employee_.type;
|
|
||||||
that.screenUserItem.id = this.userList[0].my_info.employee_.id;
|
|
||||||
that.screenUserItem.photo = this.userList[0].my_info.employee_.photo ? this.userList[0].my_info.employee_.photo : '';
|
|
||||||
that.screenUserItem.post_name = this.userList[0].my_info.employee_.post_name ? this.userList[0].my_info.employee_.post_name : '';
|
|
||||||
that.screenUserItem.belong_dept_name = this.userList[0].my_info.employee_.belong_dept_name ? this.userList[0].my_info.employee_.belong_dept_name : '';
|
|
||||||
},
|
|
||||||
//风险区域layer
|
//风险区域layer
|
||||||
riskMaskerLayers() {
|
riskMaskerLayers() {
|
||||||
let that = this;
|
let that = this;
|
||||||
|
@ -1528,9 +1569,11 @@ export default {
|
||||||
if (item.third_info.xx_rail!==null&&item.third_info.xx_rail!==undefined) {
|
if (item.third_info.xx_rail!==null&&item.third_info.xx_rail!==undefined) {
|
||||||
floorId = item.third_info.xx_rail.detail.floorId;
|
floorId = item.third_info.xx_rail.detail.floorId;
|
||||||
let points = item.third_info.xx_rail.detail.polygon.points;
|
let points = item.third_info.xx_rail.detail.polygon.points;
|
||||||
|
// debugger;
|
||||||
pointsList = points.map(item => {
|
pointsList = points.map(item => {
|
||||||
let obj = item;
|
let obj = item;
|
||||||
obj.z = 0;
|
obj.x=item.longitude;
|
||||||
|
obj.y=item.latitude;
|
||||||
return obj
|
return obj
|
||||||
});
|
});
|
||||||
let areaId = item.id;
|
let areaId = item.id;
|
||||||
|
@ -1563,8 +1606,6 @@ export default {
|
||||||
areaId: areaId
|
areaId: areaId
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
// debugger;
|
|
||||||
console.log(that.riskMarkerLayer);
|
|
||||||
that.riskMarkerLayer.addMarker(boxMarker);
|
that.riskMarkerLayer.addMarker(boxMarker);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -1614,8 +1655,6 @@ export default {
|
||||||
showSpeakersMarkers(list) {
|
showSpeakersMarkers(list) {
|
||||||
let that = this;
|
let that = this;
|
||||||
list.forEach(item => {
|
list.forEach(item => {
|
||||||
// debugger;
|
|
||||||
console.log(item)
|
|
||||||
let materialMarker = null;
|
let materialMarker = null;
|
||||||
let pixel = item.my_info.location;
|
let pixel = item.my_info.location;
|
||||||
console.log(pixel)
|
console.log(pixel)
|
||||||
|
@ -1664,8 +1703,6 @@ export default {
|
||||||
}else {
|
}else {
|
||||||
userImage = "/img/visitor.png"
|
userImage = "/img/visitor.png"
|
||||||
}
|
}
|
||||||
// debugger;
|
|
||||||
// console.log(item);
|
|
||||||
let floorId = 1;
|
let floorId = 1;
|
||||||
if(item.floorNo=='Floor1'){
|
if(item.floorNo=='Floor1'){
|
||||||
floorId = 1;
|
floorId = 1;
|
||||||
|
@ -1718,7 +1755,7 @@ export default {
|
||||||
}
|
}
|
||||||
// debugger;
|
// debugger;
|
||||||
let that = this;
|
let that = this;
|
||||||
that.$API.third.blt.all.req().then(res => {
|
that.$API.third.blt.all.req(that.userParams).then(res => {
|
||||||
if (res.err_msg) {
|
if (res.err_msg) {
|
||||||
} else {
|
} else {
|
||||||
let userList = res.filter(item => {
|
let userList = res.filter(item => {
|
||||||
|
@ -1728,8 +1765,11 @@ export default {
|
||||||
let refreshList = that.func(userList, that.userList)[1];
|
let refreshList = that.func(userList, that.userList)[1];
|
||||||
let subUser = that.func(that.userList, userList)[0];
|
let subUser = that.func(that.userList, userList)[0];
|
||||||
that.userList = refreshList.concat(addUser);//更新userList
|
that.userList = refreshList.concat(addUser);//更新userList
|
||||||
|
subUser.forEach(subUserItem=>{
|
||||||
|
that.userMaskerLayer.removeMarker(that.userMarker[subUserItem.mac]);//删除离线员工
|
||||||
|
})
|
||||||
that.showUserMarkers(addUser);//增加新进在线员工
|
that.showUserMarkers(addUser);//增加新进在线员工
|
||||||
//that.userMaskerLayer.removeMarker(sectorMarker)(addUser);//删除离线员工
|
|
||||||
refreshList.forEach(item1 => {
|
refreshList.forEach(item1 => {
|
||||||
// debugger;
|
// debugger;
|
||||||
// console.log(item1)
|
// console.log(item1)
|
||||||
|
@ -1930,14 +1970,10 @@ export default {
|
||||||
if (res.err_msg) {
|
if (res.err_msg) {
|
||||||
that.$message.error(res.err_msg);
|
that.$message.error(res.err_msg);
|
||||||
} else {
|
} else {
|
||||||
// debugger;
|
|
||||||
console.log(res.pageData.length)
|
|
||||||
let Vchannels = res.pageData.filter(item=>{
|
let Vchannels = res.pageData.filter(item=>{
|
||||||
return item.my_info.location!==undefined;
|
return item.my_info.location!==undefined;
|
||||||
})
|
})
|
||||||
that.Vchannels = Vchannels;
|
that.Vchannels = Vchannels;
|
||||||
// debugger;
|
|
||||||
console.log(Vchannels.length)
|
|
||||||
that.showCameraMarkers(Vchannels);
|
that.showCameraMarkers(Vchannels);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -2002,9 +2038,11 @@ export default {
|
||||||
|
|
||||||
//员工列表点击
|
//员工列表点击
|
||||||
userRowClick(row) {
|
userRowClick(row) {
|
||||||
// debugger;
|
|
||||||
console.log(row);
|
|
||||||
let that = this;
|
let that = this;
|
||||||
|
debugger;
|
||||||
|
window.map.flyToMarker(that.userMarker[row.mac], {
|
||||||
|
duration: 1000,range: 200
|
||||||
|
})
|
||||||
that.screenUserItem.name = row.my_info.employee_.name;
|
that.screenUserItem.name = row.my_info.employee_.name;
|
||||||
that.screenUserItem.type = row.my_info.employee_.type;
|
that.screenUserItem.type = row.my_info.employee_.type;
|
||||||
that.screenUserItem.id = row.my_info.employee_.id;
|
that.screenUserItem.id = row.my_info.employee_.id;
|
||||||
|
@ -2016,7 +2054,7 @@ export default {
|
||||||
userTrack() {
|
userTrack() {
|
||||||
this.tracking = true;
|
this.tracking = true;
|
||||||
window.map.trackMarker(this.userMarker[this.screenUserItem.mac], {
|
window.map.trackMarker(this.userMarker[this.screenUserItem.mac], {
|
||||||
range: 150
|
range: 200
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
//取消人员追踪
|
//取消人员追踪
|
||||||
|
@ -2030,7 +2068,7 @@ export default {
|
||||||
that.lineTracking = true;
|
that.lineTracking = true;
|
||||||
that.userMaskerLayer.show = false;
|
that.userMaskerLayer.show = false;
|
||||||
let nowTime = new Date().getTime();
|
let nowTime = new Date().getTime();
|
||||||
let preTime = nowTime-30*60 * 1000;
|
let preTime = nowTime-60*60 * 1000;
|
||||||
let params = {
|
let params = {
|
||||||
url:"/api/datacenter/user/historypathV2",
|
url:"/api/datacenter/user/historypathV2",
|
||||||
method:"post",
|
method:"post",
|
||||||
|
@ -2057,8 +2095,6 @@ export default {
|
||||||
obj.z=item.z;
|
obj.z=item.z;
|
||||||
points0.push(obj);
|
points0.push(obj);
|
||||||
});
|
});
|
||||||
debugger;
|
|
||||||
console.log(points0)
|
|
||||||
if(points0.length>0){
|
if(points0.length>0){
|
||||||
that.line1 = null;
|
that.line1 = null;
|
||||||
if (that.line1==null) {
|
if (that.line1==null) {
|
||||||
|
@ -2091,13 +2127,13 @@ export default {
|
||||||
modelAnimate: {
|
modelAnimate: {
|
||||||
multiplier: 2,
|
multiplier: 2,
|
||||||
},
|
},
|
||||||
scale: 0.8,
|
scale: 1,
|
||||||
properties: {
|
properties: {
|
||||||
name: 'trackMarker'
|
name: 'trackMarker'
|
||||||
},
|
},
|
||||||
callback: (marker) => {
|
callback: (marker) => {
|
||||||
window.map.trackMarker(marker, {
|
window.map.trackMarker(marker, {
|
||||||
range: 40,
|
range: 100,
|
||||||
tilt: 60,
|
tilt: 60,
|
||||||
rotate: 310
|
rotate: 310
|
||||||
});
|
});
|
||||||
|
@ -2124,6 +2160,7 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
userLineTrackCancel(){
|
userLineTrackCancel(){
|
||||||
|
window.location.reload();
|
||||||
let that = this;
|
let that = this;
|
||||||
that.lineTracking = false;
|
that.lineTracking = false;
|
||||||
that.userMaskerLayer.show = true;
|
that.userMaskerLayer.show = true;
|
||||||
|
@ -2674,7 +2711,8 @@ export default {
|
||||||
right: 18px;
|
right: 18px;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
transition: all .5s linear;
|
transition: all .5s linear;
|
||||||
|
overflow-y: scroll;
|
||||||
|
max-height: 80vh;
|
||||||
.job-content {
|
.job-content {
|
||||||
height: calc(100% - 44px);
|
height: calc(100% - 44px);
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
|
|
|
@ -100,7 +100,7 @@
|
||||||
:key="item.id"
|
:key="item.id"
|
||||||
:label="item.name"
|
:label="item.name"
|
||||||
:value="item.id"
|
:value="item.id"
|
||||||
:disabled="mode==='edit'"
|
:disabled="mode==='show'"
|
||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
@ -109,7 +109,7 @@
|
||||||
v-model="form.handle_desc"
|
v-model="form.handle_desc"
|
||||||
clearable
|
clearable
|
||||||
type="textarea"
|
type="textarea"
|
||||||
:disabled="mode==='edit'"
|
:disabled="mode==='show'"
|
||||||
></el-input>
|
></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item v-if="mode==='edit'">
|
<el-form-item v-if="mode==='edit'">
|
||||||
|
|
|
@ -105,7 +105,7 @@
|
||||||
text
|
text
|
||||||
type="primary"
|
type="primary"
|
||||||
size="small"
|
size="small"
|
||||||
@click="table_show(scope.row, scope.$index)"
|
@click="table_handle(scope.row, scope.$index)"
|
||||||
v-if="scope.row.can_handle && scope.row.event_.handle_user == null"
|
v-if="scope.row.can_handle && scope.row.event_.handle_user == null"
|
||||||
>处理</el-button
|
>处理</el-button
|
||||||
>
|
>
|
||||||
|
@ -119,9 +119,17 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</scTable>
|
</scTable>
|
||||||
</el-main>
|
</el-main>
|
||||||
|
<detail-dialog
|
||||||
|
v-if="dialog.handle"
|
||||||
|
ref="handleDialog"
|
||||||
|
:eventID="eventID"
|
||||||
|
@success="handleSuccess"
|
||||||
|
@closed="dialog.handle = false"
|
||||||
|
></detail-dialog>
|
||||||
</el-container>
|
</el-container>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
import detailDialog from "./event_handlefrom.vue";
|
||||||
import { CircleCheckFilled, CircleCloseFilled } from "@element-plus/icons-vue";
|
import { CircleCheckFilled, CircleCloseFilled } from "@element-plus/icons-vue";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -129,6 +137,7 @@ export default {
|
||||||
components: {
|
components: {
|
||||||
CircleCheckFilled,
|
CircleCheckFilled,
|
||||||
CircleCloseFilled,
|
CircleCloseFilled,
|
||||||
|
detailDialog
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
@ -137,6 +146,7 @@ export default {
|
||||||
areaOptions: [],
|
areaOptions: [],
|
||||||
dialog: {
|
dialog: {
|
||||||
save: false,
|
save: false,
|
||||||
|
handle: false,
|
||||||
permission: false,
|
permission: false,
|
||||||
},
|
},
|
||||||
apiObj: this.$API.ecm.myevent.list,
|
apiObj: this.$API.ecm.myevent.list,
|
||||||
|
@ -145,6 +155,7 @@ export default {
|
||||||
search: {
|
search: {
|
||||||
keyword: null,
|
keyword: null,
|
||||||
},
|
},
|
||||||
|
eventID:'',
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
@ -162,24 +173,26 @@ export default {
|
||||||
this.areaOptions = res;
|
this.areaOptions = res;
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
//处理
|
||||||
|
table_handle(row) {
|
||||||
|
this.eventID = row.event;
|
||||||
|
// debugger;
|
||||||
|
console.log(this.eventID)
|
||||||
|
this.dialog.handle = true;
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$refs.handleDialog.open("edit").setData(row);
|
||||||
|
});
|
||||||
|
},
|
||||||
//查看
|
//查看
|
||||||
table_show(row) {
|
table_show(row) {
|
||||||
this.$router.push({
|
this.eventID = row.event;
|
||||||
name: "eventhandlefrom",
|
this.dialog.handle = true;
|
||||||
query: {
|
this.$nextTick(() => {
|
||||||
id: row.event_.id,
|
this.$refs.handleDialog.open("show").setData(row);
|
||||||
},
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
table_handle(row) {
|
handleSuccess(){
|
||||||
|
this.dialog.handle = false
|
||||||
this.$router.push({
|
|
||||||
name: "eventhandlefrom",
|
|
||||||
query: {
|
|
||||||
id: row.event_.id,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
},
|
},
|
||||||
//搜索
|
//搜索
|
||||||
handleQuery() {},
|
handleQuery() {},
|
||||||
|
|
|
@ -88,7 +88,8 @@
|
||||||
expandTrigger: 'hover', // 次级菜单的展开方式
|
expandTrigger: 'hover', // 次级菜单的展开方式
|
||||||
label: 'label', //
|
label: 'label', //
|
||||||
value: 'value', //
|
value: 'value', //
|
||||||
emitPath: false, // 在选中节点改变时,是否返回由该节点所在的各级菜单的值所组成的数组,若设置 false,则只返回该节点的值
|
emitPath: false,
|
||||||
|
checkStrictly: true
|
||||||
}"
|
}"
|
||||||
clearable
|
clearable
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -89,6 +89,7 @@
|
||||||
label: 'label', //
|
label: 'label', //
|
||||||
value: 'value', //
|
value: 'value', //
|
||||||
emitPath: false, // 在选中节点改变时,是否返回由该节点所在的各级菜单的值所组成的数组,若设置 false,则只返回该节点的值
|
emitPath: false, // 在选中节点改变时,是否返回由该节点所在的各级菜单的值所组成的数组,若设置 false,则只返回该节点的值
|
||||||
|
checkStrictly: true
|
||||||
}"
|
}"
|
||||||
clearable
|
clearable
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -284,6 +284,7 @@
|
||||||
<el-select
|
<el-select
|
||||||
v-model="formworker.remployee"
|
v-model="formworker.remployee"
|
||||||
@change="selectWorker"
|
@change="selectWorker"
|
||||||
|
filterable
|
||||||
placeholder="选择项目人员"
|
placeholder="选择项目人员"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
|
|
Loading…
Reference in New Issue