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:{}, audioList:{},
employeeScroll:0, employeeScroll:0,
searchKeyWord:'', searchKeyWord:'',
ElLoading:null
} }
}, },
// created() { // created() {
@ -1014,11 +1014,21 @@ export default {
methods: { methods: {
loadScript(id, url, callback) { loadScript(id, url, callback) {
debugger; debugger;
let that = this;
//idjs //idjs
if (document.querySelector(`#${id}`)) { if (document.querySelector(`#${id}`)) {
// that.ElLoading = null;
that.ElLoading.close();
callback && callback() callback && callback()
return; return;
}else{
that.ElLoading = this.$loading({
lock: true,
text: '地图资源加载中...',
background: 'rgba(0, 0, 0, 0)',
})
} }
// script // script
const script = document.createElement('script'); const script = document.createElement('script');
script.src = url; script.src = url;
@ -1030,9 +1040,13 @@ export default {
firstScript.parentNode.insertBefore(script, firstScript); firstScript.parentNode.insertBefore(script, firstScript);
//script //script
script.onload = script.onreadystatechange = function() { script.onload = script.onreadystatechange = function() {
that.ElLoading.close();
// that.ElLoading = null;
// //
if (!this.readyState || this.readyState == 'loaded' || this.readyState == 'complete') { if (!this.readyState || this.readyState == 'loaded' || this.readyState == 'complete') {
callback && callback() callback && callback()
} }
}; };
}, },
@ -1063,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() {
@ -1084,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(){
@ -3821,6 +3825,7 @@ export default {
#mapContainer { #mapContainer {
width: 100%; width: 100%;
height: 100%; height: 100%;
background-color: #3798ff;
} }
#bigScreenUserTable { #bigScreenUserTable {

View File

@ -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="#"
@ -638,7 +638,7 @@ export default {
let ticket = {}; let ticket = {};
ticket.title = this.rpjform.name; 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("提交成功");

View File

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