From 280eac6a61a75c3b2aa78c358794e30385b19d6d Mon Sep 17 00:00:00 2001 From: "t-shunyi.kuang" <846002312@qq.com> Date: Wed, 22 Oct 2025 12:15:37 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=96=B0=E7=94=9F=E6=88=90bank?= =?UTF-8?q?=E5=92=8Cregion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/mdm/Bank/index.ts | 23 +- src/api/mdm/Bank/model/BankModel.ts | 12 + src/api/mdm/CountryRegion/index.ts | 23 +- .../CountryRegion/model/CountryRegionModel.ts | 18 +- src/views/mdm/Bank/components/BankModal.vue | 188 +++--- src/views/mdm/Bank/components/Form.vue | 404 ++++++------ src/views/mdm/Bank/components/config.ts | 153 ++++- .../mdm/Bank/components/workflowPermission.ts | 53 +- src/views/mdm/Bank/index.vue | 551 ++++++++-------- .../components/CountryRegionModal.vue | 188 +++--- .../mdm/CountryRegion/components/Form.vue | 404 ++++++------ .../mdm/CountryRegion/components/config.ts | 128 ++-- .../components/workflowPermission.ts | 33 +- src/views/mdm/CountryRegion/index.vue | 603 +++++++++--------- 14 files changed, 1516 insertions(+), 1265 deletions(-) diff --git a/src/api/mdm/Bank/index.ts b/src/api/mdm/Bank/index.ts index 12eb2e8..853f0f9 100644 --- a/src/api/mdm/Bank/index.ts +++ b/src/api/mdm/Bank/index.ts @@ -9,6 +9,9 @@ enum Api { LngBBank = '/mdm/bank', + + + DataLog = '/mdm/bank/datalog', } /** @@ -84,4 +87,22 @@ export async function deleteLngBBank(ids: string[], mode: ErrorMessageMode = 'mo errorMessageMode: mode, }, ); -} \ No newline at end of file +} + + + + + /** + * @description: 获取数据日志LngBBank + */ + export async function getDataLogLngBBank(id: string, mode: ErrorMessageMode = 'modal') { + return defHttp.post( + { + url: Api.Datalog, + data: id, + }, + { + errorMessageMode: mode, + }, + ); + } \ No newline at end of file diff --git a/src/api/mdm/Bank/model/BankModel.ts b/src/api/mdm/Bank/model/BankModel.ts index 4c3a20d..e164750 100644 --- a/src/api/mdm/Bank/model/BankModel.ts +++ b/src/api/mdm/Bank/model/BankModel.ts @@ -11,6 +11,12 @@ export interface LngBBankPageParams extends BasicPageParams { regionCode: string; valid: string; + + fullName: string; + + code: string; + + swift: string; } /** @@ -21,10 +27,16 @@ export interface LngBBankPageModel { bankCode: string; + fullName: string; + shortName: string; regionCode: string; + code: string; + + swift: string; + valid: string; } diff --git a/src/api/mdm/CountryRegion/index.ts b/src/api/mdm/CountryRegion/index.ts index 2654f79..6f9e132 100644 --- a/src/api/mdm/CountryRegion/index.ts +++ b/src/api/mdm/CountryRegion/index.ts @@ -9,6 +9,9 @@ enum Api { LngBRegion = '/mdm/countryRegion', + + + DataLog = '/mdm/countryRegion/datalog', } /** @@ -84,4 +87,22 @@ export async function deleteLngBRegion(ids: string[], mode: ErrorMessageMode = ' errorMessageMode: mode, }, ); -} \ No newline at end of file +} + + + + + /** + * @description: 获取数据日志LngBRegion + */ + export async function getDataLogLngBRegion(id: string, mode: ErrorMessageMode = 'modal') { + return defHttp.post( + { + url: Api.Datalog, + data: id, + }, + { + errorMessageMode: mode, + }, + ); + } \ No newline at end of file diff --git a/src/api/mdm/CountryRegion/model/CountryRegionModel.ts b/src/api/mdm/CountryRegion/model/CountryRegionModel.ts index e308b40..52df1c6 100644 --- a/src/api/mdm/CountryRegion/model/CountryRegionModel.ts +++ b/src/api/mdm/CountryRegion/model/CountryRegionModel.ts @@ -4,17 +4,15 @@ import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel'; * @description: LngBRegion分页参数 模型 */ export interface LngBRegionPageParams extends BasicPageParams { - id: string; - code: string; - createUserId: string; + fullName: string; regionTypeCode: string; pid: string; - fullName: string; + fullPath: string; valid: string; @@ -27,19 +25,19 @@ export interface LngBRegionPageParams extends BasicPageParams { export interface LngBRegionPageModel { id: string; - regionTypeCode: string; - - valid: string; - code: string; fullName: string; + regionTypeCode: string; + pid: string; - note: string; + fullPath: string; - createUserId: string; + valid: string; + + note: string; } 0; diff --git a/src/views/mdm/Bank/components/BankModal.vue b/src/views/mdm/Bank/components/BankModal.vue index 8cfa7cf..168dd47 100644 --- a/src/views/mdm/Bank/components/BankModal.vue +++ b/src/views/mdm/Bank/components/BankModal.vue @@ -1,108 +1,110 @@ + } + + function handleClose() { + formRef.value.resetFields(); + } + \ No newline at end of file diff --git a/src/views/mdm/Bank/components/Form.vue b/src/views/mdm/Bank/components/Form.vue index 3a6adc2..57f2657 100644 --- a/src/views/mdm/Bank/components/Form.vue +++ b/src/views/mdm/Bank/components/Form.vue @@ -1,198 +1,224 @@ + } + // 辅助设置表单数据 + function setFieldsValue(record) { + systemFormRef.value.setFieldsValue(record); + } + // 重置表单数据 + async function resetFields() { + await systemFormRef.value.resetFields(); + } + // 设置表单数据全部为Disabled 【查看】 + async function setDisabledForm(isDisabled) { + data.formDataProps.schemas = changeSchemaDisabled(cloneDeep(data.formDataProps.schemas),isDisabled); + } + // 获取行键值 + function getRowKey() { + return RowKey; + } + // 更新api表单数据 + async function update({ values, rowId }) { + try { + values[RowKey] = rowId; + state.formModel = values; + let saveVal = await updateLngBBank(values); + await submitFormEvent(customFormEventConfigs, state.formModel, + systemFormRef.value, + formProps.schemas); //表单事件:提交表单 + return saveVal; + } catch (error) {} + } + // 新增api表单数据 + async function add(values) { + try { + state.formModel = values; + let saveVal = await addLngBBank(values); + await submitFormEvent(customFormEventConfigs, state.formModel, + systemFormRef.value, + formProps.schemas); //表单事件:提交表单 + return saveVal; + } catch (error) {} + } + // 根据工作流页面权限,设置表单属性(必填,禁用,显示) + async function setWorkFlowForm(obj: WorkFlowFormParams) { + try { + const cloneProps=cloneDeep(formProps); + customFormEventConfigs=cloneDeep(formEventConfigs); + if (formConfig.useCustomConfig) { + const parts = obj.formConfigKey.split('_'); + const formId=parts[1]; + cloneProps.schemas=await mergeFormSchemas({formSchema:cloneProps.schemas!,formId:formId}); + customFormEventConfigs=await mergeFormEventConfigs({formEventConfigs:customFormEventConfigs,formId:formId}); + } + + let flowData = changeWorkFlowForm(cloneProps, obj); + let { buildOptionJson, uploadComponentIds, formModels, isViewProcess } = flowData; + data.formDataProps = buildOptionJson; + emits('changeUploadComponentIds', uploadComponentIds); //工作流中必须保存上传组件id【附件汇总需要】 + if (isViewProcess) { + setDisabledForm(); //查看 + } + state.formModel = formModels; + if(formModels[RowKey]) { + setFormDataFromId(formModels[RowKey], false) + } else { + setFieldsValue(formModels) + } + } catch (error) {} + await createFormEvent(customFormEventConfigs, state.formModel, + systemFormRef.value, + formProps.schemas); //表单事件:初始化表单 + await loadFormEvent(customFormEventConfigs, state.formModel, + systemFormRef.value, + formProps.schemas); //表单事件:加载表单 + } + function getFormModel() { + return systemFormRef.value.formModel + } + async function handleDelete(id) { + return await deleteLngBBank([id]); + } + defineExpose({ + setFieldsValue, + resetFields, + validate, + add, + update, + setFormDataFromId, + setDisabledForm, + setMenuPermission, + setWorkFlowForm, + getRowKey, + getFormModel, + handleDelete + }); + \ No newline at end of file diff --git a/src/views/mdm/Bank/components/config.ts b/src/views/mdm/Bank/components/config.ts index c335e22..88a74a9 100644 --- a/src/views/mdm/Bank/components/config.ts +++ b/src/views/mdm/Bank/components/config.ts @@ -34,6 +34,21 @@ export const searchFormSchema: FormSchema[] = [ getPopupContainer: () => document.body, }, }, + { + field: 'fullName', + label: '银行名称', + component: 'Input', + }, + { + field: 'code', + label: '所属国家和地区', + component: 'Input', + }, + { + field: 'swift', + label: 'SWIFT', + component: 'Input', + }, ]; export const columns: BasicColumn[] = [ @@ -46,6 +61,15 @@ export const columns: BasicColumn[] = [ sorter: true, }, + { + dataIndex: 'fullName', + title: '银行名称', + componentType: 'input', + align: 'left', + + sorter: true, + }, + { dataIndex: 'shortName', title: '银行名称/简称', @@ -64,6 +88,24 @@ export const columns: BasicColumn[] = [ sorter: true, }, + { + dataIndex: 'code', + title: '所属国家和地区', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'swift', + title: 'SWIFT', + componentType: 'input', + align: 'left', + + sorter: true, + }, + { dataIndex: 'valid', title: '有效标志', @@ -143,7 +185,7 @@ export const formProps: FormProps = { size: 'default', schemas: [ { - key: '5fdaec7802364d16a979fc9d3218bbfa', + key: '151d6e797f7e411297992bd2460ddd29', field: 'shortName', label: '银行名称/简称', type: 'input', @@ -177,7 +219,7 @@ export const formProps: FormProps = { }, }, { - key: '38bd834c265446658be6f9784672e1ae', + key: 'df917f42491f4a8888a9d661a89ac3ce', field: 'bankCode', label: '编码', type: 'input', @@ -211,7 +253,7 @@ export const formProps: FormProps = { }, }, { - key: '6461a5e152124abca28bd2114dd577e6', + key: '0e4069a334ea44219d6f1d364d830ffe', field: 'regionCode', label: '联行号', type: 'input', @@ -245,7 +287,7 @@ export const formProps: FormProps = { }, }, { - key: '714953d458d9402bb507893c92913d44', + key: 'e00cdcea0ed14c99b7f7901526f5a5fe', field: 'valid', label: '有效标志', type: 'select', @@ -264,6 +306,7 @@ export const formProps: FormProps = { showSearch: false, clearable: false, disabled: false, + mode: 'multiple', staticOptions: [ { key: 1, label: 'Option 1', value: 'Option 1' }, { key: 2, label: 'Option 2', value: 'Option 2' }, @@ -288,6 +331,108 @@ export const formProps: FormProps = { style: { width: '100%' }, }, }, + { + key: 'fe4822ade6334198965e983ab26c4100', + field: 'fullName', + label: '银行名称', + type: 'input', + component: 'Input', + colProps: { span: 24 }, + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入银行名称', + maxlength: null, + prefix: '', + suffix: '', + addonBefore: '', + addonAfter: '', + disabled: false, + allowClear: false, + showLabel: true, + required: false, + rules: [], + events: {}, + isSave: false, + isShow: true, + scan: false, + style: { width: '100%' }, + }, + }, + { + key: '503adbb6dd024e0f934a41ec1ccbff07', + field: 'code', + label: '所属国家和地区', + type: 'input', + component: 'Input', + colProps: { span: 24 }, + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入所属国家和地区', + maxlength: null, + prefix: '', + suffix: '', + addonBefore: '', + addonAfter: '', + disabled: false, + allowClear: false, + showLabel: true, + required: false, + rules: [], + events: {}, + isSave: false, + isShow: true, + scan: false, + style: { width: '100%' }, + }, + }, + { + key: '08b8ef5bc2a148e2b14093e97be20305', + field: 'swift', + label: 'SWIFT', + type: 'input', + component: 'Input', + colProps: { span: 24 }, + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请输入SWIFT', + maxlength: null, + prefix: '', + suffix: '', + addonBefore: '', + addonAfter: '', + disabled: false, + allowClear: false, + showLabel: true, + required: false, + rules: [], + events: {}, + isSave: false, + isShow: true, + scan: false, + style: { width: '100%' }, + }, + }, ], showActionButtonGroup: false, buttonLocation: 'center', diff --git a/src/views/mdm/Bank/components/workflowPermission.ts b/src/views/mdm/Bank/components/workflowPermission.ts index 33a2fbf..156e177 100644 --- a/src/views/mdm/Bank/components/workflowPermission.ts +++ b/src/views/mdm/Bank/components/workflowPermission.ts @@ -11,7 +11,7 @@ export const permissionList = [ isSubTable: false, showChildren: true, type: 'input', - key: '5fdaec7802364d16a979fc9d3218bbfa', + key: '151d6e797f7e411297992bd2460ddd29', children: [], }, { @@ -26,7 +26,7 @@ export const permissionList = [ isSubTable: false, showChildren: true, type: 'input', - key: '38bd834c265446658be6f9784672e1ae', + key: 'df917f42491f4a8888a9d661a89ac3ce', children: [], }, { @@ -41,7 +41,7 @@ export const permissionList = [ isSubTable: false, showChildren: true, type: 'input', - key: '6461a5e152124abca28bd2114dd577e6', + key: '0e4069a334ea44219d6f1d364d830ffe', children: [], }, { @@ -56,7 +56,52 @@ export const permissionList = [ isSubTable: false, showChildren: true, type: 'select', - key: '714953d458d9402bb507893c92913d44', + key: 'e00cdcea0ed14c99b7f7901526f5a5fe', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '银行名称', + fieldId: 'fullName', + isSubTable: false, + showChildren: true, + type: 'input', + key: 'fe4822ade6334198965e983ab26c4100', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '所属国家和地区', + fieldId: 'code', + isSubTable: false, + showChildren: true, + type: 'input', + key: '503adbb6dd024e0f934a41ec1ccbff07', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: 'SWIFT', + fieldId: 'swift', + isSubTable: false, + showChildren: true, + type: 'input', + key: '08b8ef5bc2a148e2b14093e97be20305', children: [], }, ]; \ No newline at end of file diff --git a/src/views/mdm/Bank/index.vue b/src/views/mdm/Bank/index.vue index 931f691..84c3295 100644 --- a/src/views/mdm/Bank/index.vue +++ b/src/views/mdm/Bank/index.vue @@ -1,296 +1,299 @@ + :deep(.ant-table-selection-col) { + width: 50px; + } + .show{ + display: flex; + } + .hide{ + display: none !important; + } + \ No newline at end of file diff --git a/src/views/mdm/CountryRegion/components/CountryRegionModal.vue b/src/views/mdm/CountryRegion/components/CountryRegionModal.vue index 8cfa7cf..168dd47 100644 --- a/src/views/mdm/CountryRegion/components/CountryRegionModal.vue +++ b/src/views/mdm/CountryRegion/components/CountryRegionModal.vue @@ -1,108 +1,110 @@ + } + + function handleClose() { + formRef.value.resetFields(); + } + \ No newline at end of file diff --git a/src/views/mdm/CountryRegion/components/Form.vue b/src/views/mdm/CountryRegion/components/Form.vue index d35016b..8637e72 100644 --- a/src/views/mdm/CountryRegion/components/Form.vue +++ b/src/views/mdm/CountryRegion/components/Form.vue @@ -1,198 +1,224 @@ + } + // 辅助设置表单数据 + function setFieldsValue(record) { + systemFormRef.value.setFieldsValue(record); + } + // 重置表单数据 + async function resetFields() { + await systemFormRef.value.resetFields(); + } + // 设置表单数据全部为Disabled 【查看】 + async function setDisabledForm(isDisabled) { + data.formDataProps.schemas = changeSchemaDisabled(cloneDeep(data.formDataProps.schemas),isDisabled); + } + // 获取行键值 + function getRowKey() { + return RowKey; + } + // 更新api表单数据 + async function update({ values, rowId }) { + try { + values[RowKey] = rowId; + state.formModel = values; + let saveVal = await updateLngBRegion(values); + await submitFormEvent(customFormEventConfigs, state.formModel, + systemFormRef.value, + formProps.schemas); //表单事件:提交表单 + return saveVal; + } catch (error) {} + } + // 新增api表单数据 + async function add(values) { + try { + state.formModel = values; + let saveVal = await addLngBRegion(values); + await submitFormEvent(customFormEventConfigs, state.formModel, + systemFormRef.value, + formProps.schemas); //表单事件:提交表单 + return saveVal; + } catch (error) {} + } + // 根据工作流页面权限,设置表单属性(必填,禁用,显示) + async function setWorkFlowForm(obj: WorkFlowFormParams) { + try { + const cloneProps=cloneDeep(formProps); + customFormEventConfigs=cloneDeep(formEventConfigs); + if (formConfig.useCustomConfig) { + const parts = obj.formConfigKey.split('_'); + const formId=parts[1]; + cloneProps.schemas=await mergeFormSchemas({formSchema:cloneProps.schemas!,formId:formId}); + customFormEventConfigs=await mergeFormEventConfigs({formEventConfigs:customFormEventConfigs,formId:formId}); + } + + let flowData = changeWorkFlowForm(cloneProps, obj); + let { buildOptionJson, uploadComponentIds, formModels, isViewProcess } = flowData; + data.formDataProps = buildOptionJson; + emits('changeUploadComponentIds', uploadComponentIds); //工作流中必须保存上传组件id【附件汇总需要】 + if (isViewProcess) { + setDisabledForm(); //查看 + } + state.formModel = formModels; + if(formModels[RowKey]) { + setFormDataFromId(formModels[RowKey], false) + } else { + setFieldsValue(formModels) + } + } catch (error) {} + await createFormEvent(customFormEventConfigs, state.formModel, + systemFormRef.value, + formProps.schemas); //表单事件:初始化表单 + await loadFormEvent(customFormEventConfigs, state.formModel, + systemFormRef.value, + formProps.schemas); //表单事件:加载表单 + } + function getFormModel() { + return systemFormRef.value.formModel + } + async function handleDelete(id) { + return await deleteLngBRegion([id]); + } + defineExpose({ + setFieldsValue, + resetFields, + validate, + add, + update, + setFormDataFromId, + setDisabledForm, + setMenuPermission, + setWorkFlowForm, + getRowKey, + getFormModel, + handleDelete + }); + \ No newline at end of file diff --git a/src/views/mdm/CountryRegion/components/config.ts b/src/views/mdm/CountryRegion/components/config.ts index 0e46ff7..5a7e6c2 100644 --- a/src/views/mdm/CountryRegion/components/config.ts +++ b/src/views/mdm/CountryRegion/components/config.ts @@ -6,18 +6,13 @@ export const formConfig = { }; export const searchFormSchema: FormSchema[] = [ - { - field: 'id', - label: 'id', - component: 'Input', - }, { field: 'code', label: '编码', component: 'Input', }, { - field: 'createUserId', + field: 'fullName', label: '名称', component: 'Input', }, @@ -40,7 +35,7 @@ export const searchFormSchema: FormSchema[] = [ component: 'Input', }, { - field: 'fullName', + field: 'fullPath', label: '全路径名称', component: 'Input', }, @@ -66,8 +61,17 @@ export const searchFormSchema: FormSchema[] = [ export const columns: BasicColumn[] = [ { - dataIndex: 'id', - title: 'id', + dataIndex: 'code', + title: '编码', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'fullName', + title: '名称', componentType: 'input', align: 'left', @@ -83,33 +87,6 @@ export const columns: BasicColumn[] = [ sorter: true, }, - { - dataIndex: 'valid', - title: '有效标志', - componentType: 'select', - align: 'left', - - sorter: true, - }, - - { - dataIndex: 'code', - title: '编码', - componentType: 'input', - align: 'left', - - sorter: true, - }, - - { - dataIndex: 'fullName', - title: '全路径名称', - componentType: 'input', - align: 'left', - - sorter: true, - }, - { dataIndex: 'pid', title: '上级ID', @@ -120,18 +97,27 @@ export const columns: BasicColumn[] = [ }, { - dataIndex: 'note', - title: '备注', - componentType: 'textarea', + dataIndex: 'fullPath', + title: '全路径名称', + componentType: 'input', align: 'left', sorter: true, }, { - dataIndex: 'createUserId', - title: '名称', - componentType: 'input', + dataIndex: 'valid', + title: '有效标志', + componentType: 'select', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'note', + title: '备注', + componentType: 'textarea', align: 'left', sorter: true, @@ -207,41 +193,7 @@ export const formProps: FormProps = { size: 'default', schemas: [ { - key: '3665616565b14649b7cc18269b7a2d06', - field: 'id', - label: 'id', - type: 'input', - component: 'Input', - colProps: { span: 24 }, - defaultValue: '', - componentProps: { - width: '100%', - span: '', - defaultValue: '', - labelWidthMode: 'fix', - labelFixWidth: 120, - responsive: false, - respNewRow: false, - placeholder: '请输入id', - maxlength: null, - prefix: '', - suffix: '', - addonBefore: '', - addonAfter: '', - disabled: false, - allowClear: false, - showLabel: true, - required: false, - rules: [], - events: {}, - isSave: false, - isShow: true, - scan: false, - style: { width: '100%' }, - }, - }, - { - key: '04cf4a78d06244f282a8082070bdd160', + key: '8debb3c9f24b44e6a5256baf825dabd3', field: 'code', label: '编码', type: 'input', @@ -275,8 +227,8 @@ export const formProps: FormProps = { }, }, { - key: '569e80f61cfa49338d3a629acf403b2f', - field: 'createUserId', + key: 'c9f612f71d7b4d8ba63b29f849e21512', + field: 'fullName', label: '名称', type: 'input', component: 'Input', @@ -309,7 +261,7 @@ export const formProps: FormProps = { }, }, { - key: 'ac57735d6de3479ab78a092cce60af35', + key: 'db1d945640974619b1da11ee3eedc43c', field: 'regionTypeCode', label: '类型', type: 'select', @@ -322,12 +274,13 @@ export const formProps: FormProps = { labelFixWidth: 120, responsive: false, respNewRow: false, - placeholder: '请选择下拉选择类型', + placeholder: '请选择下拉选择', sepTextField: '', showLabel: true, showSearch: false, clearable: false, disabled: false, + mode: 'multiple', staticOptions: [ { key: 1, label: 'Option 1', value: 'Option 1' }, { key: 2, label: 'Option 2', value: 'Option 2' }, @@ -353,7 +306,7 @@ export const formProps: FormProps = { }, }, { - key: '8b4d0e4a36164d219b2fe9045e056581', + key: 'ed8d105c346a4306bf6502ecca668328', field: 'pid', label: '上级ID', type: 'input', @@ -387,8 +340,8 @@ export const formProps: FormProps = { }, }, { - key: 'd71fb1fcf5924520b059b1f0b79837f3', - field: 'fullName', + key: 'ed4ef5737e834886b33c49a800c180c8', + field: 'fullPath', label: '全路径名称', type: 'input', component: 'Input', @@ -421,7 +374,7 @@ export const formProps: FormProps = { }, }, { - key: '5ee69ee1a3c846aa9ae77035208eac66', + key: 'c4eb806479bb49fab6aaab58c2ef8511', field: 'valid', label: '有效标志', type: 'select', @@ -440,6 +393,7 @@ export const formProps: FormProps = { showSearch: false, clearable: false, disabled: false, + mode: 'multiple', staticOptions: [ { key: 1, label: 'Option 1', value: 'Option 1' }, { key: 2, label: 'Option 2', value: 'Option 2' }, @@ -465,7 +419,7 @@ export const formProps: FormProps = { }, }, { - key: 'fa22773393104485870ba4f6c54e5457', + key: '1d4a47bb18044306918247cf66682d5a', field: 'note', label: '备注', type: 'textarea', @@ -481,7 +435,7 @@ export const formProps: FormProps = { responsive: false, respNewRow: true, placeholder: '请输入备注', - maxlength: 200, + maxlength: '', rows: 4, autoSize: false, showCount: false, diff --git a/src/views/mdm/CountryRegion/components/workflowPermission.ts b/src/views/mdm/CountryRegion/components/workflowPermission.ts index d97da25..f0ff572 100644 --- a/src/views/mdm/CountryRegion/components/workflowPermission.ts +++ b/src/views/mdm/CountryRegion/components/workflowPermission.ts @@ -1,19 +1,4 @@ export const permissionList = [ - { - required: true, - view: true, - edit: true, - disabled: false, - isSaveTable: false, - tableName: '', - fieldName: 'id', - fieldId: 'id', - isSubTable: false, - showChildren: true, - type: 'input', - key: '3665616565b14649b7cc18269b7a2d06', - children: [], - }, { required: true, view: true, @@ -26,7 +11,7 @@ export const permissionList = [ isSubTable: false, showChildren: true, type: 'input', - key: '04cf4a78d06244f282a8082070bdd160', + key: '8debb3c9f24b44e6a5256baf825dabd3', children: [], }, { @@ -37,11 +22,11 @@ export const permissionList = [ isSaveTable: false, tableName: '', fieldName: '名称', - fieldId: 'createUserId', + fieldId: 'fullName', isSubTable: false, showChildren: true, type: 'input', - key: '569e80f61cfa49338d3a629acf403b2f', + key: 'c9f612f71d7b4d8ba63b29f849e21512', children: [], }, { @@ -56,7 +41,7 @@ export const permissionList = [ isSubTable: false, showChildren: true, type: 'select', - key: 'ac57735d6de3479ab78a092cce60af35', + key: 'db1d945640974619b1da11ee3eedc43c', children: [], }, { @@ -71,7 +56,7 @@ export const permissionList = [ isSubTable: false, showChildren: true, type: 'input', - key: '8b4d0e4a36164d219b2fe9045e056581', + key: 'ed8d105c346a4306bf6502ecca668328', children: [], }, { @@ -82,11 +67,11 @@ export const permissionList = [ isSaveTable: false, tableName: '', fieldName: '全路径名称', - fieldId: 'fullName', + fieldId: 'fullPath', isSubTable: false, showChildren: true, type: 'input', - key: 'd71fb1fcf5924520b059b1f0b79837f3', + key: 'ed4ef5737e834886b33c49a800c180c8', children: [], }, { @@ -101,7 +86,7 @@ export const permissionList = [ isSubTable: false, showChildren: true, type: 'select', - key: '5ee69ee1a3c846aa9ae77035208eac66', + key: 'c4eb806479bb49fab6aaab58c2ef8511', children: [], }, { @@ -116,7 +101,7 @@ export const permissionList = [ isSubTable: false, showChildren: true, type: 'textarea', - key: 'fa22773393104485870ba4f6c54e5457', + key: '1d4a47bb18044306918247cf66682d5a', children: [], }, ]; \ No newline at end of file diff --git a/src/views/mdm/CountryRegion/index.vue b/src/views/mdm/CountryRegion/index.vue index 63fc8b0..60fc5f7 100644 --- a/src/views/mdm/CountryRegion/index.vue +++ b/src/views/mdm/CountryRegion/index.vue @@ -1,318 +1,329 @@ + :deep(.ant-table-selection-col) { + width: 50px; + } + .show{ + display: flex; + } + .hide{ + display: none !important; + } + \ No newline at end of file