feat: 页面loading
This commit is contained in:
@@ -58,6 +58,7 @@
|
||||
@submit="handleSubmit"
|
||||
>
|
||||
</ProcessFooter>
|
||||
<loading :loading="loading">数据获取中</loading>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -187,6 +188,8 @@ export default {
|
||||
processData: [],
|
||||
processLoading: false,
|
||||
showProcess: false,
|
||||
|
||||
loading: false
|
||||
}
|
||||
},
|
||||
created() {
|
||||
@@ -232,6 +235,7 @@ export default {
|
||||
this.title = '重新起草'
|
||||
}
|
||||
this.showProcess = true
|
||||
this.loading = true
|
||||
inboundLiaisonDetail({
|
||||
taskIds,
|
||||
pId: prcId
|
||||
@@ -251,12 +255,15 @@ export default {
|
||||
this.reloadForm = true
|
||||
})
|
||||
}
|
||||
}).finally(() => {
|
||||
this.loading = false
|
||||
})
|
||||
return;
|
||||
}
|
||||
|
||||
// 根据草稿查询流程详情
|
||||
if(bpnId) {
|
||||
this.loading = true
|
||||
queryTaskFirst({ bpnId }).then(res => {
|
||||
this.reloadForm = false
|
||||
let mes = JSON.parse(res.mes)
|
||||
@@ -265,6 +272,8 @@ export default {
|
||||
this.$nextTick(() => {
|
||||
this.reloadForm = true
|
||||
})
|
||||
}).finally(() => {
|
||||
this.loading = false
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
@@ -62,6 +62,7 @@
|
||||
@checkedRole="checkedRole"
|
||||
:nodeList="nodeList"
|
||||
></Role-tree>
|
||||
<loading :loading="loading">数据获取中</loading>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -194,6 +195,8 @@ export default {
|
||||
drawerModal: false,
|
||||
drawerTitle: '',
|
||||
nodeList: [],
|
||||
|
||||
loading: false
|
||||
}
|
||||
},
|
||||
created() {
|
||||
@@ -227,6 +230,7 @@ export default {
|
||||
},
|
||||
getData() {
|
||||
return new Promise((resolve, reject) => {
|
||||
this.loading = true
|
||||
inboundLiaisonDetail({
|
||||
taskIds: this.$route.query.taskIds,
|
||||
pId: this.$route.query.prcId
|
||||
@@ -240,7 +244,8 @@ export default {
|
||||
this.reloadForm = true
|
||||
})
|
||||
}
|
||||
}).catch(e => {
|
||||
}).finally(() => {
|
||||
this.loading = false
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
@@ -124,6 +124,7 @@
|
||||
@checkedRole="checkedRole"
|
||||
:nodeList="nodeList"
|
||||
></Role-tree>
|
||||
<loading :loading="loading">数据获取中</loading>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -228,7 +229,9 @@ export default {
|
||||
drawerModal: false,
|
||||
drawerTitle: '',
|
||||
nodeList: [],
|
||||
dict: {}
|
||||
|
||||
dict: {},
|
||||
loading: false
|
||||
}
|
||||
},
|
||||
created() {
|
||||
@@ -297,6 +300,7 @@ export default {
|
||||
const { bpnId, taskIds, prcId } = this.$route.query
|
||||
|
||||
if (taskIds) {
|
||||
this.loading = true
|
||||
inboundLiaisonDetail({
|
||||
taskIds,
|
||||
pId: prcId
|
||||
@@ -316,12 +320,15 @@ export default {
|
||||
this.reloadForm = true
|
||||
})
|
||||
}
|
||||
}).finally(() => {
|
||||
this.loading = false
|
||||
})
|
||||
return;
|
||||
}
|
||||
|
||||
// 根据草稿查询流程详情
|
||||
if(bpnId) {
|
||||
this.loading = true
|
||||
queryTaskFirst({ bpnId }).then(res => {
|
||||
this.reloadForm = false
|
||||
let mes = JSON.parse(res.mes)
|
||||
@@ -330,6 +337,8 @@ export default {
|
||||
this.$nextTick(() => {
|
||||
this.reloadForm = true
|
||||
})
|
||||
}).finally(() => {
|
||||
this.loading = false
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
@@ -99,6 +99,7 @@
|
||||
@checkedRole="checkedRole"
|
||||
:nodeList="nodeList"
|
||||
></Role-tree>
|
||||
<loading :loading="loading">数据获取中</loading>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -322,6 +323,8 @@ export default {
|
||||
drawerModal: false,
|
||||
drawerTitle: '',
|
||||
nodeList: [],
|
||||
|
||||
loading: false
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
@@ -448,6 +451,7 @@ export default {
|
||||
const { bpnId, taskIds, prcId } = this.$route.query
|
||||
|
||||
if (taskIds) {
|
||||
this.loading = true
|
||||
inboundLiaisonDetail({
|
||||
taskIds,
|
||||
pId: prcId
|
||||
@@ -471,12 +475,15 @@ export default {
|
||||
this.reloadForm = true
|
||||
})
|
||||
}
|
||||
}).finally(() => {
|
||||
this.loading = false
|
||||
})
|
||||
return;
|
||||
}
|
||||
|
||||
// 根据草稿查询流程详情
|
||||
if(bpnId) {
|
||||
this.loading = true
|
||||
queryTaskFirst({ bpnId }).then(res => {
|
||||
this.reloadForm = false
|
||||
let mes = JSON.parse(res.mes)
|
||||
@@ -485,6 +492,8 @@ export default {
|
||||
this.$nextTick(() => {
|
||||
this.reloadForm = true
|
||||
})
|
||||
}).finally(() => {
|
||||
this.loading = false
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
@@ -109,6 +109,7 @@
|
||||
@checkedRole="checkedRole"
|
||||
:nodeList="nodeList"
|
||||
></Role-tree>
|
||||
<loading :loading="loading">数据获取中</loading>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -226,6 +227,8 @@ export default {
|
||||
drawerModal: false,
|
||||
drawerTitle: '',
|
||||
nodeList: [],
|
||||
|
||||
loading: false
|
||||
}
|
||||
},
|
||||
created() {
|
||||
@@ -327,6 +330,7 @@ export default {
|
||||
const { bpnId, taskIds, prcId } = this.$route.query
|
||||
|
||||
if (taskIds) {
|
||||
this.loading = true
|
||||
inboundLiaisonDetail({
|
||||
taskIds,
|
||||
pId: prcId
|
||||
@@ -350,12 +354,15 @@ export default {
|
||||
this.reloadForm = true
|
||||
})
|
||||
}
|
||||
}).finally(() => {
|
||||
this.loading = false
|
||||
})
|
||||
return;
|
||||
}
|
||||
|
||||
// 根据草稿查询流程详情
|
||||
if(bpnId) {
|
||||
this.loading = true
|
||||
queryTaskFirst({ bpnId }).then(res => {
|
||||
this.reloadForm = false
|
||||
let mes = JSON.parse(res.mes)
|
||||
@@ -364,6 +371,8 @@ export default {
|
||||
this.$nextTick(() => {
|
||||
this.reloadForm = true
|
||||
})
|
||||
}).finally(() => {
|
||||
this.loading = false
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
@@ -43,6 +43,7 @@
|
||||
@submit="handleSubmit"
|
||||
>
|
||||
</ProcessFooter>
|
||||
<loading :loading="loading">数据获取中</loading>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -253,7 +254,9 @@ export default {
|
||||
// 审批历史
|
||||
processData: [],
|
||||
processLoading: false,
|
||||
showProcess: false
|
||||
showProcess: false,
|
||||
|
||||
loading: false,
|
||||
}
|
||||
},
|
||||
created() {
|
||||
@@ -301,6 +304,7 @@ export default {
|
||||
this.title = '重新起草'
|
||||
}
|
||||
this.showProcess = true
|
||||
this.loading = true
|
||||
inboundLiaisonDetail({
|
||||
taskIds,
|
||||
pId: prcId
|
||||
@@ -320,13 +324,15 @@ export default {
|
||||
this.reloadForm = true
|
||||
})
|
||||
}
|
||||
}).catch(e => {
|
||||
}).finally(() => {
|
||||
this.loading = false
|
||||
})
|
||||
return;
|
||||
}
|
||||
|
||||
// 根据草稿查询流程详情
|
||||
if(this.$route.query.bpnId){
|
||||
this.loading = true
|
||||
queryTaskFirst({
|
||||
bpnId: this.$route.query.bpnId
|
||||
}).then(res => {
|
||||
@@ -337,6 +343,8 @@ export default {
|
||||
this.$nextTick(() => {
|
||||
this.reloadForm = true
|
||||
})
|
||||
}).finally(() => {
|
||||
this.loading = false
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
@@ -48,6 +48,7 @@
|
||||
@checkedRole="checkedRole"
|
||||
:nodeList="nodeList"
|
||||
></Role-tree>
|
||||
<loading :loading="loading">数据获取中</loading>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -267,6 +268,8 @@ export default {
|
||||
drawerModal: false,
|
||||
drawerTitle: '',
|
||||
nodeList: [],
|
||||
|
||||
loading: false,
|
||||
}
|
||||
},
|
||||
created() {
|
||||
@@ -287,6 +290,7 @@ export default {
|
||||
},
|
||||
getData() {
|
||||
return new Promise((resolve, reject) => {
|
||||
this.loading = true
|
||||
inboundLiaisonDetail({
|
||||
taskIds: this.$route.query.taskIds,
|
||||
pId: this.$route.query.prcId
|
||||
@@ -300,7 +304,8 @@ export default {
|
||||
this.reloadForm = true
|
||||
})
|
||||
}
|
||||
}).catch(e => {
|
||||
}).finally(() => {
|
||||
this.loading = false
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user