From 323e576c64129723df20fd18effb20d96d8d18b3 Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期一, 22 七月 2024 10:27:50 +0800 Subject: [PATCH] 工单更新 --- src/views/tigerprojects/system/lowcode/detail/index.vue | 90 -------------------------------------------- 1 files changed, 1 insertions(+), 89 deletions(-) diff --git a/src/views/tigerprojects/system/lowcode/detail/index.vue b/src/views/tigerprojects/system/lowcode/detail/index.vue index c7375b0..d801e76 100644 --- a/src/views/tigerprojects/system/lowcode/detail/index.vue +++ b/src/views/tigerprojects/system/lowcode/detail/index.vue @@ -4,7 +4,7 @@ * @version: * @Date: 2024-05-30 13:28:20 * @LastEditors: Ben Lin - * @LastEditTime: 2024-07-21 18:02:52 + * @LastEditTime: 2024-07-22 01:55:07 --> <template> <PageWrapper :title="pageTitle" :content="contentStr" contentBackground @back="goBack"> @@ -24,35 +24,6 @@ <Suspense></Suspense> </div> </div> - <Suspense> - <CustModal - @register="registerCust" - @success="custSuccess" - :type="cType" - :detailSlots="dtlSlots" - :entityName="entityName" - > - <!-- 鐢ㄦ彃妲借嚜瀹氫箟澶氳〃鍗� --> - <template #[item.name] v-for="item in dtlSlots" :key="item.name"> - <BasicForm @register="useFormData[item.name][0]" v-if="useFormData[item.name]"> - <!-- 鐢ㄦ彃妲借嚜瀹氫箟寮瑰嚭閫夋嫨妗� --> - <template #[name]="{ field }" v-for="name in item.slots" :key="name"> - <a-button - class="mt-1 ml-1" - size="small" - @click="handleCustClick(field)" - :preIcon="item.preIcons[name]" - /> - <GeneralModal - @register="useModalData[name][0]" - @success="(d, u) => handleEntSuccess(d, u, item.name)" - /> - </template> - </BasicForm> - <!-- 鑷畾涔夊唴瀹� --> - </template> - </CustModal> - </Suspense> </PageWrapper> </template> @@ -67,11 +38,7 @@ import detail from './detail.vue'; import { useI18n } from '/@/hooks/web/useI18n'; import { useMessage } from '/@/hooks/web/useMessage'; - import GeneralModal from '/@/views/components/GeneralModal.vue'; - import CustModal from '/@/views/components/CustModal.vue'; - import { BasicForm } from '/@/components/Form/index'; import { useGlobSetting } from '/@/hooks/setting'; - import { useModal } from '/@/components/Modal'; const { t } = useI18n(); @@ -93,18 +60,10 @@ const entityName = ref(routeParams.value.Name); const detailName = ref(objParams.value.detailName); const globSetting = useGlobSetting(); - const formSchemas = ref({}); //寮瑰嚭妗嗗琛ㄥ崟缁撴瀯 - const useModalData = ref({}); //琛ㄥ崟涓彃妲芥覆鏌撴寜閽墦寮�妯℃�佹useModal鏂规硶 - const useFormData = ref({}); - const secondColSlots = ref<any>(objParams.value.secondColSlots); //鎸夐挳鎻掓Ы const crudColSlots = ref<any>(objParams.value.colSlots); - const cType = ref(''); - const dtlSlots = ref([] as any[]); - const selectVals = ref({}); const keyFieldValues = ref<any>(null); provide<Ref<any>>('objParams', objParams.value); provide<Ref<any>>('keyFieldValues', keyFieldValues); - const [registerCust] = useModal(); var currentKey = ref('detailfirst'); const { setTitle } = useTabs(); @@ -147,52 +106,5 @@ }; }; } - } - - /** - * @description: 鑷畾涔夊脊鍑烘纭畾杩斿洖 - * @param {*} d - * @return {*} - */ - function custSuccess(d) { - // reload(); - } - - /** - * @description: 鍚勮〃鍗曞唴寮瑰嚭閫夋嫨妗嗛�夋嫨鎴愬姛鍚庢柟娉� - * @param {*} d - * @param {*} u - * @param {*} item - * @return {*} - */ - function handleEntSuccess(d, u, item) { - /* 鍔ㄦ�乮mport瀹炰綋鍚�.ts鐨勮嚜瀹氫箟鏂规硶 */ - try { - import(`../entityts/${cType.value}.ts`).then((m) => { - const [{ GetSelectSuccess }] = m.default(); - var values = GetSelectSuccess(d, u); - selectVals.value = values; //淇濆瓨寮瑰嚭妗嗛�夋嫨鐨勭粨鏋� - let _val = {}; - d.returnFieldName.map((x) => { - _val[x] = values[x]; - }); - useFormData.value[item][1].setFieldsValue(_val); - }); - } catch (e) {} - } - - /** - * @description: 鎵撳紑鑷畾涔夋ā鎬佹 - * @param {*} item - * @return {*} - */ - function handleCustClick(item) { - OpenCustModal( - useModalData.value[item][1].openModal, //甯﹀叆openModal鏂规硶 - cType.value, - item, - [], - // selectVals.value['ROUTE_CODE'], - ); //[openRvModal], selectVals.value['ID']杩欐槸鑷畾涔夊弬鏁帮紝鎸夊疄闄呴渶姹� } </script> -- Gitblit v1.9.3