update 优化领用,归还加载
This commit is contained in:
parent
0f50569246
commit
e4aa650f65
@ -124,12 +124,14 @@
|
|||||||
|
|
||||||
<!-- 部署文件 -->
|
<!-- 部署文件 -->
|
||||||
<el-dialog v-if="uploadDialog.visible" v-model="uploadDialog.visible" :title="uploadDialog.title" width="30%">
|
<el-dialog v-if="uploadDialog.visible" v-model="uploadDialog.visible" :title="uploadDialog.title" width="30%">
|
||||||
<el-upload class="upload-demo" drag accept="application/zip,application/xml,.bpmn" :http-request="handerDeployProcessFile">
|
<div v-loading="uploadDialogLoading">
|
||||||
<el-icon class="UploadFilled"><upload-filled /></el-icon>
|
<el-upload class="upload-demo" drag accept="application/zip,application/xml,.bpmn" :http-request="handerDeployProcessFile">
|
||||||
<div class="el-upload__text"><em>点击上传,选择BPMN流程文件</em></div>
|
<el-icon class="UploadFilled"><upload-filled /></el-icon>
|
||||||
<div class="el-upload__text">仅支持 .zip、.bpmn20.xml、bpmn 格式文件</div>
|
<div class="el-upload__text"><em>点击上传,选择BPMN流程文件</em></div>
|
||||||
<div class="el-upload__text">PS:如若部署请部署从本项目模型管理导出的数据</div>
|
<div class="el-upload__text">仅支持 .zip、.bpmn20.xml、bpmn 格式文件</div>
|
||||||
|
<div class="el-upload__text">PS:如若部署请部署从本项目模型管理导出的数据</div>
|
||||||
</el-upload>
|
</el-upload>
|
||||||
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
<!-- 历史版本 -->
|
<!-- 历史版本 -->
|
||||||
@ -224,6 +226,7 @@ const single = ref(true);
|
|||||||
const multiple = ref(true);
|
const multiple = ref(true);
|
||||||
const showSearch = ref(true);
|
const showSearch = ref(true);
|
||||||
const total = ref(0);
|
const total = ref(0);
|
||||||
|
const uploadDialogLoading = ref(false);
|
||||||
const processDefinitionList = ref<ProcessDefinitionVO[]>([]);
|
const processDefinitionList = ref<ProcessDefinitionVO[]>([]);
|
||||||
const processDefinitionHistoryList = ref<ProcessDefinitionVO[]>([]);
|
const processDefinitionHistoryList = ref<ProcessDefinitionVO[]>([]);
|
||||||
const url = ref<string[]>([]);
|
const url = ref<string[]>([]);
|
||||||
@ -387,11 +390,13 @@ const handerDeployProcessFile = (data: UploadRequestOptions): XMLHttpRequest =>
|
|||||||
proxy?.$modal.msgError('请选择左侧要上传的分类!');
|
proxy?.$modal.msgError('请选择左侧要上传的分类!');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
uploadDialogLoading.value = true
|
||||||
formData.append('file', data.file);
|
formData.append('file', data.file);
|
||||||
formData.append('categoryCode', queryParams.value.categoryCode);
|
formData.append('categoryCode', queryParams.value.categoryCode);
|
||||||
deployProcessFile(formData).then(() => {
|
deployProcessFile(formData).then(() => {
|
||||||
uploadDialog.visible = false;
|
uploadDialog.visible = false;
|
||||||
proxy?.$modal.msgSuccess('部署成功');
|
proxy?.$modal.msgSuccess('部署成功');
|
||||||
|
uploadDialogLoading.value = false
|
||||||
handleQuery();
|
handleQuery();
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -205,6 +205,7 @@ const submitVerifyOpen = async (id: string) => {
|
|||||||
|
|
||||||
/** 认领任务 */
|
/** 认领任务 */
|
||||||
const handleClaimTask = async (taskId: string) => {
|
const handleClaimTask = async (taskId: string) => {
|
||||||
|
loading.value = true;
|
||||||
await claim(taskId).finally(() => (loading.value = false));
|
await claim(taskId).finally(() => (loading.value = false));
|
||||||
getWaitingList();
|
getWaitingList();
|
||||||
proxy?.$modal.msgSuccess('操作成功');
|
proxy?.$modal.msgSuccess('操作成功');
|
||||||
@ -212,6 +213,7 @@ const handleClaimTask = async (taskId: string) => {
|
|||||||
|
|
||||||
/** 归还任务 */
|
/** 归还任务 */
|
||||||
const handleReturnTask = async (taskId: string) => {
|
const handleReturnTask = async (taskId: string) => {
|
||||||
|
loading.value = true;
|
||||||
await returnTask(taskId).finally(() => (loading.value = false));
|
await returnTask(taskId).finally(() => (loading.value = false));
|
||||||
getWaitingList();
|
getWaitingList();
|
||||||
proxy?.$modal.msgSuccess('操作成功');
|
proxy?.$modal.msgSuccess('操作成功');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user