Merge branch 'dev' of https://fcd.gdyditc.com/itc-framework/ma/2024/front into dev-zhao
This commit is contained in:
@ -60,7 +60,7 @@
|
||||
import { useMultipleTabStore } from '/@/store/modules/multipleTab';
|
||||
import { CloseOutlined, SendOutlined, ClockCircleOutlined, PrinterOutlined, ApartmentOutlined } from '@ant-design/icons-vue';
|
||||
import { nextTick, onMounted, ref, toRaw, reactive } from 'vue';
|
||||
import { postDraft, putDraft } from '/@/api/workflow/process';
|
||||
import { deleteDraft, postDraft, putDraft } from '/@/api/workflow/process';
|
||||
import { useI18n } from '/@/hooks/web/useI18n';
|
||||
import { separator } from '/@bpmn/config/info';
|
||||
import { message } from 'ant-design-vue';
|
||||
@ -290,7 +290,8 @@
|
||||
/*stampId: values.stampId,
|
||||
stampPassword: values.password,*/
|
||||
isOldSystem: system,
|
||||
nextTaskUser: approvalData.nextTaskUser
|
||||
nextTaskUser: approvalData.nextTaskUser,
|
||||
draftId: rDraftsId,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@ -27,6 +27,8 @@
|
||||
<div class="form-right" :style="{ paddingLeft: formRight }">
|
||||
<div v-for="(item, index) in forms.configs" :key="index" :tab="item.formName">
|
||||
<div v-show="activeIndex == index">
|
||||
<div class="page-bg-wrap">
|
||||
<div class="top-toolbar">
|
||||
<SystemForm
|
||||
class="form-box"
|
||||
v-if="item.formType == FormType.SYSTEM"
|
||||
@ -49,6 +51,8 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
@ -469,4 +473,14 @@
|
||||
padding-top: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
.page-bg-wrap {
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.top-toolbar {
|
||||
min-height: 44px;
|
||||
margin-bottom: 12px;
|
||||
border-bottom: 1px solid #eee;
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
<div style="margin:20px;">
|
||||
当前流程审批人:{{currentTaskAssigneeNames.replaceAll(",","、")}}
|
||||
</div>
|
||||
<div style="margin:20px;">
|
||||
<div style="margin:20px;" v-if="currentTaskAssignees">
|
||||
节点审批人:
|
||||
<div v-for="(assignees,taskKey) in currentTaskAssignees" :key="taskKey">
|
||||
<span>{{assignees[0].taskName}}{{currentTaskInfo?.taskDefinitionKey==taskKey?'(当前审批节点)':''}}:</span>
|
||||
|
||||
@ -15,11 +15,13 @@ import userTaskTable from './../../hooks/userTaskTable';
|
||||
import LaunchProcess from './../LaunchProcess.vue';
|
||||
import { BasicTable, useTable, TableAction } from '/@/components/Table';
|
||||
import { deleteDraft, getDraftInfo, getSchemaTask } from '/@/api/workflow/process';
|
||||
import { reactive } from 'vue';
|
||||
import { reactive, onMounted } from 'vue';
|
||||
import { notification } from 'ant-design-vue';
|
||||
import { TaskTypeUrl } from '/@/enums/workflowEnum';
|
||||
import { useI18n } from '/@/hooks/web/useI18n';
|
||||
import { useRouter } from 'vue-router';
|
||||
import useEventBus from '/@/hooks/event/useEventBus';
|
||||
const { bus, CREATE_FLOW } = useEventBus();
|
||||
|
||||
const { t } = useI18n();
|
||||
const router = useRouter();
|
||||
@ -72,6 +74,10 @@ const [registerTable, { reload }] = useTable({
|
||||
}
|
||||
});
|
||||
|
||||
onMounted(() => {
|
||||
bus.on(CREATE_FLOW, handleRefresh);
|
||||
});
|
||||
|
||||
function tableActions(record) {
|
||||
return [
|
||||
{
|
||||
@ -98,7 +104,10 @@ async function handleEdit(record) {
|
||||
processData.visible = true;*/
|
||||
localStorage.setItem('draftsJsonStr', res.formData);
|
||||
router.push({
|
||||
path: `/flow/${res.schemaId}/${record.id}/createFlow`
|
||||
path: `/flow/${res.schemaId}/${record.id}/createFlow`,
|
||||
query: {
|
||||
createType: 'drafts'
|
||||
}
|
||||
});
|
||||
} catch (error) { }
|
||||
}
|
||||
@ -122,6 +131,11 @@ async function handleDelete(record) {
|
||||
}
|
||||
} catch (error) { }
|
||||
}
|
||||
|
||||
function handleRefresh() {
|
||||
reload();
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
||||
Reference in New Issue
Block a user