loading&ticketName

This commit is contained in:
shijing 2022-11-10 14:06:42 +08:00
parent 67e4faf29d
commit db4087ec65
3 changed files with 20 additions and 15 deletions

View File

@ -773,7 +773,7 @@ export default {
audioList:{},
employeeScroll:0,
searchKeyWord:'',
ElLoading:null
}
},
// created() {
@ -1014,11 +1014,21 @@ export default {
methods: {
loadScript(id, url, callback) {
debugger;
let that = this;
//idjs
if (document.querySelector(`#${id}`)) {
// that.ElLoading = null;
that.ElLoading.close();
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;
@ -1030,9 +1040,13 @@ export default {
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()
}
};
},
@ -1063,13 +1077,8 @@ export default {
},
handleChange(item, check,item2,item3) {
let that = this;
// debugger;
// console.log(check)
this.deptChecked = check.checkedKeys;
this.userParams.depts = check.checkedKeys;
// that.userMaskerLayer.removeAllIconTextMark();
// this.refreshUserMarker();
},
//
userFilter() {
@ -1084,19 +1093,14 @@ export default {
window.map.addLayer(that.userMaskerLayer);
let userListNew = [];
that.userList.filter(item=>{
// debugger;
// console.log(item);
if(checkedKeys.indexOf(item.my_info.employee_.belong_dept_)>-1){
// debugger;
userListNew.push(item)
}
})
// debugger;
that.userList = userListNew;
console.log(that.userList)
that.showUserMarkers(userListNew);
this.showUserSelect = false;
// this.screenUser = true;
},
//
audioFinished(){
@ -3821,6 +3825,7 @@ export default {
#mapContainer {
width: 100%;
height: 100%;
background-color: #3798ff;
}
#bigScreenUserTable {

View File

@ -128,7 +128,7 @@
hidePagination
hideDo
stripe
style="height: 300px"
style="height: 680px"
>
<el-table-column
label="#"
@ -224,7 +224,7 @@
hidePagination
hideDo
stripe
style="height: 300px"
style="height: 680px"
>
<el-table-column
label="#"
@ -638,7 +638,7 @@ export default {
let ticket = {};
ticket.title = this.rpjform.name;
ticket.workflow = this.initForm.workflow;
ticket.ticket_data = { rpj: this.rpjId };
ticket.ticket_data = { rpj: this.rpjId ,name:this.rpjform.name};
ticket.transition = id;
this.$API.wf.ticket.create.req(ticket).then((res) => {
this.$message.success("提交成功");

View File

@ -554,7 +554,7 @@ this.$API.vm.visit.update
this.ticket={};
this.ticket.title = this.form.name;
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.$API.wf.ticket.create.req(this.ticket).then((res) => {
this.$message.success("提交成功");