From e657310fd37205f87bf0d520b9949bc1f144a4ca Mon Sep 17 00:00:00 2001 From: gaoyunqi Date: Mon, 19 Feb 2024 17:41:26 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E6=B5=81=E7=A8=8B?= =?UTF-8?q?=E6=96=B0=E5=BB=BA=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/design/theme.less | 92 +-- src/views/secondDev/FormInformation.vue | 733 ++++++++++++------------ src/views/secondDev/createFlow.vue | 108 ++-- 3 files changed, 483 insertions(+), 450 deletions(-) diff --git a/src/design/theme.less b/src/design/theme.less index aa05033..ec14009 100644 --- a/src/design/theme.less +++ b/src/design/theme.less @@ -1,52 +1,72 @@ .bg-white { - background-color: @component-background !important; + background-color: @component-background !important; } html[data-theme='light'] { - .text-secondary { - color: rgb(0 0 0 / 45%); - } + .text-secondary { + color: rgb(0 0 0 / 45%); + } - .ant-alert-success { - background-color: #f6ffed; - border: 1px solid #b7eb8f; - } + .ant-alert-success { + background-color: #f6ffed; + border: 1px solid #b7eb8f; + } - .ant-alert-error { - background-color: #fff2f0; - border: 1px solid #ffccc7; - } + .ant-alert-error { + background-color: #fff2f0; + border: 1px solid #ffccc7; + } - .ant-alert-warning { - background-color: #fffbe6; - border: 1px solid #ffe58f; - } + .ant-alert-warning { + background-color: #fffbe6; + border: 1px solid #ffe58f; + } - :not(:root):fullscreen::backdrop { - background-color: @layout-body-background !important; - } + :not(:root):fullscreen::backdrop { + background-color: @layout-body-background !important; + } } [data-theme='dark'] { - .text-secondary { - color: #8b949e; - } + .text-secondary { + color: #8b949e; + } - .ant-card-grid-hoverable:hover { - box-shadow: 0 3px 6px -4px rgb(0 0 0 / 48%), 0 6px 16px 0 rgb(0 0 0 / 32%), - 0 9px 28px 8px rgb(0 0 0 / 20%); - } + .ant-card-grid-hoverable:hover { + box-shadow: 0 3px 6px -4px rgb(0 0 0 / 48%), 0 6px 16px 0 rgb(0 0 0 / 32%), 0 9px 28px 8px rgb(0 0 0 / 20%); + } - .ant-card-grid { - box-shadow: 1px 0 0 0 #434343, 0 1px 0 0 #434343, 1px 1px 0 0 #434343, 1px 0 0 0 #434343 inset, - 0 1px 0 0 #434343 inset; - } + .ant-card-grid { + box-shadow: 1px 0 0 0 #434343, 0 1px 0 0 #434343, 1px 1px 0 0 #434343, 1px 0 0 0 #434343 inset, 0 1px 0 0 #434343 inset; + } - .ant-calendar-selected-day .ant-calendar-date { - color: rgb(0 0 0 / 80%); - } + .ant-calendar-selected-day .ant-calendar-date { + color: rgb(0 0 0 / 80%); + } - .ant-select-tree li .ant-select-tree-node-content-wrapper.ant-select-tree-node-selected { - color: rgb(0 0 0 / 90%); - } + .ant-select-tree li .ant-select-tree-node-content-wrapper.ant-select-tree-node-selected { + color: rgb(0 0 0 / 90%); + } +} + +.geg { + &.ant-modal { + .ant-modal-header { + padding: 10px 20px; + + .ant-modal-title { + line-height: 20px; + } + } + + .ant-modal-close-x { + width: 48px; + height: 40px; + line-height: 40px; + } + + .ant-modal-footer { + padding: 10px 20px; + } + } } diff --git a/src/views/secondDev/FormInformation.vue b/src/views/secondDev/FormInformation.vue index 2d1ab7d..021b8f6 100644 --- a/src/views/secondDev/FormInformation.vue +++ b/src/views/secondDev/FormInformation.vue @@ -1,404 +1,381 @@ diff --git a/src/views/secondDev/createFlow.vue b/src/views/secondDev/createFlow.vue index d234333..ca6e284 100644 --- a/src/views/secondDev/createFlow.vue +++ b/src/views/secondDev/createFlow.vue @@ -1,25 +1,50 @@ @@ -27,8 +52,10 @@ import { useRouter } from 'vue-router'; import userTaskItem from '/@/views/workflow/task/hooks/userTaskItem'; import FormInformation from '/@/views/secondDev/FormInformation.vue'; + import ProcessInformation from '/@/views/workflow/task/components/flow/ProcessInformation.vue'; import { getStartProcessInfo, getReStartProcessInfo } from '/@/api/workflow/task'; import { useMultipleTabStore } from '/@/store/modules/multipleTab'; + import { CloseOutlined, SendOutlined, ClockCircleOutlined, PrinterOutlined, ApartmentOutlined } from '@ant-design/icons-vue'; const router = useRouter(); const tabStore = useMultipleTabStore(); @@ -40,38 +67,47 @@ const rParams = currentRoute.value.query; const rSchemaId = rParams.schemaId; let formInformation = ref(); + const showFlowChart = ref(false); let randKey = ref('randkey'); // 强制表单重新渲染 + function closeFlowChart() { + showFlowChart.value = false; + } + + function openFlowChart() { + showFlowChart.value = true; + } + const props = defineProps({ schemaId: { type: String, - required: true, + required: true }, draftsJsonStr: { - type: String, + type: String }, draftsId: { - type: String, + type: String }, taskId: { type: String, required: false, - default: '', + default: '' }, processId: { type: String, required: false, - default: '', + default: '' }, formData: { - type: Object, + type: Object }, formId: { - type: String, + type: String }, rowKeyData: { - type: String, - }, + type: String + } }); onMounted(async () => { @@ -116,12 +152,7 @@ let formData = []; data.formInfos.forEach((item) => { - if ( - formDataJson && - item.formConfig && - item.formConfig.key && - formDataJson[item.formConfig.key] - ) { + if (formDataJson && item.formConfig && item.formConfig.key && formDataJson[item.formConfig.key]) { formData.push(item.formConfig.key ? formDataJson[item.formConfig.key] : {}); } }); @@ -132,7 +163,7 @@