Merge branch 'dev' of http://47.94.165.164:13000/geg-gas/geg-gas-web into dev
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@ -38,3 +38,5 @@ jinayi
|
|||||||
/pnpm-lock.yaml
|
/pnpm-lock.yaml
|
||||||
/src/views/jianyi
|
/src/views/jianyi
|
||||||
/src/api/jianyi
|
/src/api/jianyi
|
||||||
|
|
||||||
|
*.bak
|
||||||
@ -7,6 +7,14 @@ export interface LngBPriceTermPageParams extends BasicPageParams {
|
|||||||
fullName: string;
|
fullName: string;
|
||||||
|
|
||||||
valid: string;
|
valid: string;
|
||||||
|
|
||||||
|
code: string;
|
||||||
|
|
||||||
|
freightSign: string;
|
||||||
|
|
||||||
|
insuranceSign: string;
|
||||||
|
|
||||||
|
note: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -2,14 +2,14 @@ import { FormProps, FormSchema } from '/@/components/Form';
|
|||||||
import { BasicColumn } from '/@/components/Table';
|
import { BasicColumn } from '/@/components/Table';
|
||||||
|
|
||||||
export const formConfig = {
|
export const formConfig = {
|
||||||
useCustomConfig: false,
|
useCustomConfig: false
|
||||||
};
|
};
|
||||||
|
|
||||||
export const searchFormSchema: FormSchema[] = [
|
export const searchFormSchema: FormSchema[] = [
|
||||||
{
|
{
|
||||||
field: 'fullName',
|
field: 'fullName',
|
||||||
label: '名称',
|
label: '名称',
|
||||||
component: 'Input',
|
component: 'Input'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'valid',
|
field: 'valid',
|
||||||
@ -21,32 +21,9 @@ export const searchFormSchema: FormSchema[] = [
|
|||||||
labelField: 'name',
|
labelField: 'name',
|
||||||
valueField: 'value',
|
valueField: 'value',
|
||||||
|
|
||||||
getPopupContainer: () => document.body,
|
getPopupContainer: () => document.body
|
||||||
},
|
}
|
||||||
},
|
}
|
||||||
{
|
|
||||||
field: 'code',
|
|
||||||
label: '编码',
|
|
||||||
component: 'Input',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
field: 'localSign',
|
|
||||||
label: '是否本币',
|
|
||||||
component: 'XjrSelect',
|
|
||||||
componentProps: {
|
|
||||||
datasourceType: 'dic',
|
|
||||||
params: { itemId: '1978056598125330433' },
|
|
||||||
labelField: 'name',
|
|
||||||
valueField: 'value',
|
|
||||||
|
|
||||||
getPopupContainer: () => document.body,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
field: 'note',
|
|
||||||
label: '备注',
|
|
||||||
component: 'Input',
|
|
||||||
},
|
|
||||||
];
|
];
|
||||||
|
|
||||||
export const columns: BasicColumn[] = [
|
export const columns: BasicColumn[] = [
|
||||||
@ -56,7 +33,7 @@ export const columns: BasicColumn[] = [
|
|||||||
componentType: 'input',
|
componentType: 'input',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
|
|
||||||
sorter: true,
|
sorter: true
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
@ -65,7 +42,7 @@ export const columns: BasicColumn[] = [
|
|||||||
componentType: 'input',
|
componentType: 'input',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
|
|
||||||
sorter: true,
|
sorter: true
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
@ -74,7 +51,7 @@ export const columns: BasicColumn[] = [
|
|||||||
componentType: 'select',
|
componentType: 'select',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
|
|
||||||
sorter: true,
|
sorter: true
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
@ -83,7 +60,7 @@ export const columns: BasicColumn[] = [
|
|||||||
componentType: 'select',
|
componentType: 'select',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
|
|
||||||
sorter: true,
|
sorter: true
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
@ -92,8 +69,8 @@ export const columns: BasicColumn[] = [
|
|||||||
componentType: 'textarea',
|
componentType: 'textarea',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
|
|
||||||
sorter: true,
|
sorter: true
|
||||||
},
|
}
|
||||||
];
|
];
|
||||||
//表单事件
|
//表单事件
|
||||||
export const formEventConfigs = {
|
export const formEventConfigs = {
|
||||||
@ -104,7 +81,7 @@ export const formEventConfigs = {
|
|||||||
text: '开始节点',
|
text: '开始节点',
|
||||||
icon: '#icon-kaishi',
|
icon: '#icon-kaishi',
|
||||||
bgcColor: '#D8E5FF',
|
bgcColor: '#D8E5FF',
|
||||||
isUserDefined: false,
|
isUserDefined: false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
color: '#F6AB01',
|
color: '#F6AB01',
|
||||||
@ -112,8 +89,8 @@ export const formEventConfigs = {
|
|||||||
text: '初始化表单',
|
text: '初始化表单',
|
||||||
bgcColor: '#f9f5ea',
|
bgcColor: '#f9f5ea',
|
||||||
isUserDefined: false,
|
isUserDefined: false,
|
||||||
nodeInfo: { processEvent: [] },
|
nodeInfo: { processEvent: [] }
|
||||||
},
|
}
|
||||||
],
|
],
|
||||||
1: [
|
1: [
|
||||||
{
|
{
|
||||||
@ -123,8 +100,8 @@ export const formEventConfigs = {
|
|||||||
detail: '(新增无此操作)',
|
detail: '(新增无此操作)',
|
||||||
bgcColor: '#F8F2FC',
|
bgcColor: '#F8F2FC',
|
||||||
isUserDefined: false,
|
isUserDefined: false,
|
||||||
nodeInfo: { processEvent: [] },
|
nodeInfo: { processEvent: [] }
|
||||||
},
|
}
|
||||||
],
|
],
|
||||||
2: [
|
2: [
|
||||||
{
|
{
|
||||||
@ -133,8 +110,8 @@ export const formEventConfigs = {
|
|||||||
text: '加载表单',
|
text: '加载表单',
|
||||||
bgcColor: '#FFF1F1',
|
bgcColor: '#FFF1F1',
|
||||||
isUserDefined: false,
|
isUserDefined: false,
|
||||||
nodeInfo: { processEvent: [] },
|
nodeInfo: { processEvent: [] }
|
||||||
},
|
}
|
||||||
],
|
],
|
||||||
3: [
|
3: [
|
||||||
{
|
{
|
||||||
@ -143,8 +120,8 @@ export const formEventConfigs = {
|
|||||||
text: '提交表单',
|
text: '提交表单',
|
||||||
bgcColor: '#F5F4FF',
|
bgcColor: '#F5F4FF',
|
||||||
isUserDefined: false,
|
isUserDefined: false,
|
||||||
nodeInfo: { processEvent: [] },
|
nodeInfo: { processEvent: [] }
|
||||||
},
|
}
|
||||||
],
|
],
|
||||||
4: [
|
4: [
|
||||||
{
|
{
|
||||||
@ -154,9 +131,9 @@ export const formEventConfigs = {
|
|||||||
icon: '#icon-jieshuzhiliao',
|
icon: '#icon-jieshuzhiliao',
|
||||||
bgcColor: '#FFD6D6',
|
bgcColor: '#FFD6D6',
|
||||||
isLast: true,
|
isLast: true,
|
||||||
isUserDefined: false,
|
isUserDefined: false
|
||||||
},
|
}
|
||||||
],
|
]
|
||||||
};
|
};
|
||||||
export const formProps: FormProps = {
|
export const formProps: FormProps = {
|
||||||
labelCol: { span: 3, offset: 0 },
|
labelCol: { span: 3, offset: 0 },
|
||||||
@ -194,8 +171,8 @@ export const formProps: FormProps = {
|
|||||||
isSave: false,
|
isSave: false,
|
||||||
isShow: true,
|
isShow: true,
|
||||||
scan: false,
|
scan: false,
|
||||||
style: { width: '100%' },
|
style: { width: '100%' }
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: '6074c6c1ac8b4f528fa421f8464e6e73',
|
key: '6074c6c1ac8b4f528fa421f8464e6e73',
|
||||||
@ -227,8 +204,8 @@ export const formProps: FormProps = {
|
|||||||
isSave: false,
|
isSave: false,
|
||||||
isShow: true,
|
isShow: true,
|
||||||
scan: false,
|
scan: false,
|
||||||
style: { width: '100%' },
|
style: { width: '100%' }
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: '477dc52fa33b402f94146203c9ffcdc7',
|
key: '477dc52fa33b402f94146203c9ffcdc7',
|
||||||
@ -254,7 +231,7 @@ export const formProps: FormProps = {
|
|||||||
staticOptions: [
|
staticOptions: [
|
||||||
{ key: 1, label: 'Option 1', value: 'Option 1' },
|
{ key: 1, label: 'Option 1', value: 'Option 1' },
|
||||||
{ key: 2, label: 'Option 2', value: 'Option 2' },
|
{ key: 2, label: 'Option 2', value: 'Option 2' },
|
||||||
{ key: 3, label: 'Option 3', value: 'Option 3' },
|
{ key: 3, label: 'Option 3', value: 'Option 3' }
|
||||||
],
|
],
|
||||||
datasourceType: 'dic',
|
datasourceType: 'dic',
|
||||||
params: { itemId: '1978056598125330433' },
|
params: { itemId: '1978056598125330433' },
|
||||||
@ -263,7 +240,7 @@ export const formProps: FormProps = {
|
|||||||
apiConfig: {
|
apiConfig: {
|
||||||
path: 'CodeGeneration/selection',
|
path: 'CodeGeneration/selection',
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
apiId: '93d735dcb7364a0f8102188ec4d77ac7',
|
apiId: '93d735dcb7364a0f8102188ec4d77ac7'
|
||||||
},
|
},
|
||||||
dicOptions: [],
|
dicOptions: [],
|
||||||
required: true,
|
required: true,
|
||||||
@ -271,8 +248,8 @@ export const formProps: FormProps = {
|
|||||||
events: {},
|
events: {},
|
||||||
isShow: true,
|
isShow: true,
|
||||||
itemId: '1978056598125330433',
|
itemId: '1978056598125330433',
|
||||||
style: { width: '100%' },
|
style: { width: '100%' }
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: '7940a5fbdf024f44b18d063c2023ee46',
|
key: '7940a5fbdf024f44b18d063c2023ee46',
|
||||||
@ -294,11 +271,11 @@ export const formProps: FormProps = {
|
|||||||
showSearch: false,
|
showSearch: false,
|
||||||
clearable: false,
|
clearable: false,
|
||||||
disabled: true,
|
disabled: true,
|
||||||
mode: '',
|
defaultSelect: 'Y',
|
||||||
staticOptions: [
|
staticOptions: [
|
||||||
{ key: 1, label: 'Option 1', value: 'Option 1' },
|
{ key: 1, label: 'Option 1', value: 'Option 1' },
|
||||||
{ key: 2, label: 'Option 2', value: 'Option 2' },
|
{ key: 2, label: 'Option 2', value: 'Option 2' },
|
||||||
{ key: 3, label: 'Option 3', value: 'Option 3' },
|
{ key: 3, label: 'Option 3', value: 'Option 3' }
|
||||||
],
|
],
|
||||||
datasourceType: 'dic',
|
datasourceType: 'dic',
|
||||||
params: { itemId: '1978057078528327681' },
|
params: { itemId: '1978057078528327681' },
|
||||||
@ -307,7 +284,7 @@ export const formProps: FormProps = {
|
|||||||
apiConfig: {
|
apiConfig: {
|
||||||
path: 'CodeGeneration/selection',
|
path: 'CodeGeneration/selection',
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
apiId: '93d735dcb7364a0f8102188ec4d77ac7',
|
apiId: '93d735dcb7364a0f8102188ec4d77ac7'
|
||||||
},
|
},
|
||||||
dicOptions: [],
|
dicOptions: [],
|
||||||
required: false,
|
required: false,
|
||||||
@ -315,8 +292,8 @@ export const formProps: FormProps = {
|
|||||||
events: {},
|
events: {},
|
||||||
isShow: true,
|
isShow: true,
|
||||||
itemId: '1978057078528327681',
|
itemId: '1978057078528327681',
|
||||||
style: { width: '100%' },
|
style: { width: '100%' }
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: '45d20cfa03a747b2a1e1ebb0cb8198c5',
|
key: '45d20cfa03a747b2a1e1ebb0cb8198c5',
|
||||||
@ -346,14 +323,14 @@ export const formProps: FormProps = {
|
|||||||
isShow: true,
|
isShow: true,
|
||||||
rules: [],
|
rules: [],
|
||||||
events: {},
|
events: {},
|
||||||
style: { width: '100%' },
|
style: { width: '100%' }
|
||||||
},
|
}
|
||||||
},
|
}
|
||||||
],
|
],
|
||||||
showActionButtonGroup: false,
|
showActionButtonGroup: false,
|
||||||
buttonLocation: 'center',
|
buttonLocation: 'center',
|
||||||
actionColOptions: { span: 24 },
|
actionColOptions: { span: 24 },
|
||||||
showResetButton: false,
|
showResetButton: false,
|
||||||
showSubmitButton: false,
|
showSubmitButton: false,
|
||||||
hiddenComponent: [],
|
hiddenComponent: []
|
||||||
};
|
};
|
||||||
@ -1,7 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<PageWrapper dense fixedHeight contentFullHeight contentClass="flex">
|
<PageWrapper dense fixedHeight contentFullHeight contentClass="flex">
|
||||||
<BasicTable @register="registerTable" ref="tableRef" @row-dbClick="dbClickRow">
|
<BasicTable @register="registerTable" ref="tableRef" @row-db-click="dbClickRow" @selection-change="selectionChange">
|
||||||
|
|
||||||
<template #toolbar>
|
<template #toolbar>
|
||||||
<template v-for="button in tableButtonConfig" :key="button.code">
|
<template v-for="button in tableButtonConfig" :key="button.code">
|
||||||
<a-button v-if="button.isDefault" :type="button.type" @click="buttonClick(button.code)">
|
<a-button v-if="button.isDefault" :type="button.type" @click="buttonClick(button.code)">
|
||||||
@ -24,25 +23,23 @@
|
|||||||
</PageWrapper>
|
</PageWrapper>
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { ref, computed, onMounted, onUnmounted, createVNode,
|
import { ref, computed, onMounted, onUnmounted, createVNode } from 'vue';
|
||||||
|
|
||||||
} from 'vue';
|
|
||||||
|
|
||||||
import { Modal } from 'ant-design-vue';
|
import { Modal } from 'ant-design-vue';
|
||||||
import { ExclamationCircleOutlined } from '@ant-design/icons-vue';
|
import { ExclamationCircleOutlined } from '@ant-design/icons-vue';
|
||||||
import { BasicTable, useTable, TableAction, ActionItem } from '/@/components/Table';
|
import { BasicTable, useTable, TableAction, ActionItem } from '/@/components/Table';
|
||||||
import { getLngBCurrencyPage, deleteLngBCurrency} from '/@/api/mdm/Currency';
|
import { getLngBCurrencyPage, deleteLngBCurrency, disableLngBCurrency, enableLngBCurrency } from '/@/api/mdm/Currency';
|
||||||
import { PageWrapper } from '/@/components/Page';
|
import { PageWrapper } from '/@/components/Page';
|
||||||
import { useMessage } from '/@/hooks/web/useMessage';
|
import { useMessage } from '/@/hooks/web/useMessage';
|
||||||
import { useI18n } from '/@/hooks/web/useI18n';
|
import { useI18n } from '/@/hooks/web/useI18n';
|
||||||
import { usePermission } from '/@/hooks/web/usePermission';
|
import { usePermission } from '/@/hooks/web/usePermission';
|
||||||
import { useFormConfig } from '/@/hooks/web/useFormConfig';
|
import { useFormConfig } from '/@/hooks/web/useFormConfig';
|
||||||
import { useRouter } from 'vue-router';
|
import { useRouter } from 'vue-router';
|
||||||
import { setIndexFlowStatus } from '/@/utils/flow/index'
|
import { setIndexFlowStatus } from '/@/utils/flow/index';
|
||||||
import { getLngBCurrency } from '/@/api/mdm/Currency';
|
import { getLngBCurrency } from '/@/api/mdm/Currency';
|
||||||
import { useModal } from '/@/components/Modal';
|
import { useModal } from '/@/components/Modal';
|
||||||
import CurrencyModal from './components/CurrencyModal.vue';
|
import CurrencyModal from './components/CurrencyModal.vue';
|
||||||
import {formConfig, searchFormSchema, columns } from './components/config';
|
import { formConfig, searchFormSchema, columns } from './components/config';
|
||||||
import Icon from '/@/components/Icon/index';
|
import Icon from '/@/components/Icon/index';
|
||||||
import useEventBus from '/@/hooks/event/useEventBus';
|
import useEventBus from '/@/hooks/event/useEventBus';
|
||||||
import { cloneDeep } from 'lodash-es';
|
import { cloneDeep } from 'lodash-es';
|
||||||
@ -53,20 +50,30 @@
|
|||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
defineEmits(['register']);
|
defineEmits(['register']);
|
||||||
const { filterColumnAuth, filterButtonAuth } = usePermission();
|
const { filterColumnAuth, filterButtonAuth } = usePermission();
|
||||||
const { mergeColumns,mergeSearchFormSchema,mergeButtons } = useFormConfig();
|
const { mergeColumns, mergeSearchFormSchema, mergeButtons } = useFormConfig();
|
||||||
|
|
||||||
const filterColumns = cloneDeep(filterColumnAuth(columns));
|
const filterColumns = cloneDeep(filterColumnAuth(columns));
|
||||||
const customConfigColums =ref(filterColumns);
|
const customConfigColums = ref(filterColumns);
|
||||||
const customSearchFormSchema =ref(searchFormSchema);
|
const customSearchFormSchema = ref(searchFormSchema);
|
||||||
|
|
||||||
const tableRef = ref();
|
const tableRef = ref();
|
||||||
|
|
||||||
//所有按钮
|
//所有按钮
|
||||||
const buttons = ref([{"name":"新增","code":"add","icon":"ant-design:plus-outlined","isDefault":true,"isUse":true},{"name":"编辑","code":"edit","icon":"ant-design:form-outlined","isDefault":true,"isUse":true},{"name":"启用","code":"enable","icon":"ant-design:form-outlined","isDefault":true,"isUse":true},{"name":"作废","code":"disable","icon":"ant-design:stop-outlined","isDefault":true,"isUse":true},{"name":"刷新","code":"refresh","icon":"ant-design:reload-outlined","isDefault":true,"isUse":true},{"name":"查看","code":"view","icon":"ant-design:eye-outlined","isDefault":true,"isUse":true},{"name":"数据日志","code":"datalog","icon":"ant-design:profile-outlined","isDefault":true,"isUse":true},{"name":"删除","code":"delete","icon":"ant-design:delete-outlined","isDefault":true,"isUse":true}]);
|
const buttons = ref([
|
||||||
|
{ name: '新增', code: 'add', icon: 'ant-design:plus-outlined', isDefault: true, isUse: true },
|
||||||
|
{ name: '编辑', code: 'edit', icon: 'ant-design:form-outlined', isDefault: true, isUse: true },
|
||||||
|
{ name: '启用', code: 'enable', icon: 'ant-design:form-outlined', isDefault: true, isUse: true },
|
||||||
|
{ name: '作废', code: 'disable', icon: 'ant-design:stop-outlined', isDefault: true, isUse: true },
|
||||||
|
{ name: '刷新', code: 'refresh', icon: 'ant-design:reload-outlined', isDefault: true, isUse: true },
|
||||||
|
{ name: '查看', code: 'view', icon: 'ant-design:eye-outlined', isDefault: true, isUse: true },
|
||||||
|
{ name: '数据日志', code: 'datalog', icon: 'ant-design:profile-outlined', isDefault: true, isUse: true },
|
||||||
|
{ name: '删除', code: 'delete', icon: 'ant-design:delete-outlined', isDefault: true, isUse: true }
|
||||||
|
]);
|
||||||
//展示在列表内的按钮
|
//展示在列表内的按钮
|
||||||
const actionButtons = ref<string[]>(['view', 'edit','datalog', 'copyData', 'delete', 'startwork','flowRecord']);
|
const actionButtons = ref<string[]>(['view', 'edit', 'datalog', 'copyData', 'delete', 'startwork', 'flowRecord']);
|
||||||
const buttonConfigs = computed(()=>{
|
const buttonConfigs = computed(() => {
|
||||||
return filterButtonAuth(buttons.value);
|
return filterButtonAuth(buttons.value);
|
||||||
})
|
});
|
||||||
|
|
||||||
const tableButtonConfig = computed(() => {
|
const tableButtonConfig = computed(() => {
|
||||||
return buttonConfigs.value?.filter((x) => !actionButtons.value.includes(x.code));
|
return buttonConfigs.value?.filter((x) => !actionButtons.value.includes(x.code));
|
||||||
@ -76,55 +83,58 @@
|
|||||||
return buttonConfigs.value?.filter((x) => actionButtons.value.includes(x.code));
|
return buttonConfigs.value?.filter((x) => actionButtons.value.includes(x.code));
|
||||||
});
|
});
|
||||||
|
|
||||||
const btnEvent = {add : handleAdd,edit : handleEdit,enable : handleEnable,disable : handleDisable,refresh : handleRefresh,view : handleView,datalog : handleDatalog,delete : handleDelete,}
|
const btnEvent = { add: handleAdd, edit: handleEdit, enable: handleEnable, disable: handleDisable, refresh: handleRefresh, view: handleView, datalog: handleDatalog, delete: handleDelete };
|
||||||
|
|
||||||
const { currentRoute } = useRouter();
|
const { currentRoute } = useRouter();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const formIdComputedRef = ref();
|
const formIdComputedRef = ref();
|
||||||
formIdComputedRef.value = currentRoute.value.meta.formId
|
formIdComputedRef.value = currentRoute.value.meta.formId;
|
||||||
const schemaIdComputedRef = ref();
|
const schemaIdComputedRef = ref();
|
||||||
schemaIdComputedRef.value = currentRoute.value.meta.schemaId
|
schemaIdComputedRef.value = currentRoute.value.meta.schemaId;
|
||||||
const [registerModal, { openModal }] = useModal();
|
const [registerModal, { openModal }] = useModal();
|
||||||
const formName='币种管理';
|
const formName = '币种管理';
|
||||||
const [registerTable, { reload, }] = useTable({
|
const [registerTable, { reload }] = useTable({
|
||||||
title: '' || (formName + '列表'),
|
title: '' || formName + '列表',
|
||||||
api: getLngBCurrencyPage,
|
api: getLngBCurrencyPage,
|
||||||
rowKey: 'id',
|
rowKey: 'id',
|
||||||
columns: customConfigColums,
|
columns: customConfigColums,
|
||||||
formConfig: {
|
formConfig: {
|
||||||
rowProps: {
|
rowProps: {
|
||||||
gutter: 16,
|
gutter: 16
|
||||||
},
|
},
|
||||||
schemas: customSearchFormSchema,
|
schemas: customSearchFormSchema,
|
||||||
fieldMapToTime: [],
|
fieldMapToTime: [],
|
||||||
showResetButton: false,
|
showResetButton: false
|
||||||
},
|
},
|
||||||
beforeFetch: (params) => {
|
beforeFetch: (params) => {
|
||||||
return { ...params, FormId: formIdComputedRef.value, PK: 'id' };
|
return { ...params, FormId: formIdComputedRef.value, PK: 'id' };
|
||||||
},
|
},
|
||||||
afterFetch: (res) => {
|
afterFetch: (res) => {
|
||||||
tableRef.value.setToolBarWidth();
|
tableRef.value.setToolBarWidth();
|
||||||
|
|
||||||
},
|
},
|
||||||
useSearchForm: true,
|
useSearchForm: true,
|
||||||
showTableSetting: true,
|
showTableSetting: true,
|
||||||
|
rowSelection: {
|
||||||
|
type: 'checkbox'
|
||||||
|
},
|
||||||
striped: false,
|
striped: false,
|
||||||
actionColumn: {
|
actionColumn: {
|
||||||
width: 160,
|
width: 200,
|
||||||
title: '操作',
|
title: '操作',
|
||||||
dataIndex: 'action',
|
dataIndex: 'action',
|
||||||
slots: { customRender: 'action' },
|
slots: { customRender: 'action' }
|
||||||
},
|
},
|
||||||
tableSetting: {
|
tableSetting: {
|
||||||
size: false,
|
size: false,
|
||||||
setting: false,
|
setting: false
|
||||||
},
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// 选中的行ID
|
||||||
|
const selectedKeys = ref([]);
|
||||||
|
|
||||||
function dbClickRow(record) {
|
function dbClickRow(record) {
|
||||||
if (!actionButtonConfig?.value.some(element => element.code == 'view')) {
|
if (!actionButtonConfig?.value.some((element) => element.code == 'view')) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const { processId, taskIds, schemaId } = record.workflowData || {};
|
const { processId, taskIds, schemaId } = record.workflowData || {};
|
||||||
@ -134,7 +144,7 @@
|
|||||||
query: {
|
query: {
|
||||||
taskId: taskIds[0],
|
taskId: taskIds[0],
|
||||||
formName: formName,
|
formName: formName,
|
||||||
formId:currentRoute.value.meta.formId
|
formId: currentRoute.value.meta.formId
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else if (schemaId && !taskIds && processId) {
|
} else if (schemaId && !taskIds && processId) {
|
||||||
@ -144,7 +154,7 @@
|
|||||||
readonly: 1,
|
readonly: 1,
|
||||||
taskId: '',
|
taskId: '',
|
||||||
formName: formName,
|
formName: formName,
|
||||||
formId:currentRoute.value.meta.formId
|
formId: currentRoute.value.meta.formId
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
@ -153,14 +163,17 @@
|
|||||||
query: {
|
query: {
|
||||||
formPath: 'mdm/Currency',
|
formPath: 'mdm/Currency',
|
||||||
formName: formName,
|
formName: formName,
|
||||||
formId:currentRoute.value.meta.formId
|
formId: currentRoute.value.meta.formId
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function buttonClick(code) {
|
function selectionChange(selected) {
|
||||||
|
selectedKeys.value = selected.keys;
|
||||||
|
}
|
||||||
|
|
||||||
|
function buttonClick(code) {
|
||||||
btnEvent[code]();
|
btnEvent[code]();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -175,20 +188,19 @@
|
|||||||
query: {
|
query: {
|
||||||
formPath: 'mdm/Currency',
|
formPath: 'mdm/Currency',
|
||||||
formName: formName,
|
formName: formName,
|
||||||
formId:currentRoute.value.meta.formId
|
formId: currentRoute.value.meta.formId
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleEdit(record: Recordable) {
|
function handleEdit(record: Recordable) {
|
||||||
|
|
||||||
router.push({
|
router.push({
|
||||||
path: '/form/Currency/' + record.id + '/updateForm',
|
path: '/form/Currency/' + record.id + '/updateForm',
|
||||||
query: {
|
query: {
|
||||||
formPath: 'mdm/Currency',
|
formPath: 'mdm/Currency',
|
||||||
formName: formName,
|
formName: formName,
|
||||||
formId:currentRoute.value.meta.formId
|
formId: currentRoute.value.meta.formId
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -200,7 +212,7 @@
|
|||||||
if (!selectedKeys.value.length) {
|
if (!selectedKeys.value.length) {
|
||||||
notification.warning({
|
notification.warning({
|
||||||
message: 'Tip',
|
message: 'Tip',
|
||||||
description: t('请选择需要启用的数据'),
|
description: t('请选择需要启用的数据')
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -217,19 +229,19 @@
|
|||||||
handleSuccess();
|
handleSuccess();
|
||||||
notification.success({
|
notification.success({
|
||||||
message: 'Tip',
|
message: 'Tip',
|
||||||
description: t('启用成功!'),
|
description: t('启用成功!')
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
onCancel() {},
|
onCancel() {}
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
function handleDisable() {
|
function handleDisable() {
|
||||||
|
console.log(selectedKeys.value);
|
||||||
if (!selectedKeys.value.length) {
|
if (!selectedKeys.value.length) {
|
||||||
notification.warning({
|
notification.warning({
|
||||||
message: 'Tip',
|
message: 'Tip',
|
||||||
description: t('请选择需要禁用的数据'),
|
description: t('请选择需要禁用的数据')
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -245,11 +257,11 @@
|
|||||||
handleSuccess();
|
handleSuccess();
|
||||||
notification.success({
|
notification.success({
|
||||||
message: 'Tip',
|
message: 'Tip',
|
||||||
description: t('禁用成功!'),
|
description: t('禁用成功!')
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
onCancel() {},
|
onCancel() {}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
function deleteList(ids) {
|
function deleteList(ids) {
|
||||||
@ -264,28 +276,26 @@
|
|||||||
handleSuccess();
|
handleSuccess();
|
||||||
notification.success({
|
notification.success({
|
||||||
message: 'Tip',
|
message: 'Tip',
|
||||||
description: t('删除成功!'),
|
description: t('删除成功!')
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
onCancel() {},
|
onCancel() {}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
function handleRefresh() {
|
function handleRefresh() {
|
||||||
reload();
|
reload();
|
||||||
}
|
}
|
||||||
function handleSuccess() {
|
function handleSuccess() {
|
||||||
|
|
||||||
reload();
|
reload();
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleView(record: Recordable) {
|
function handleView(record: Recordable) {
|
||||||
|
|
||||||
dbClickRow(record);
|
dbClickRow(record);
|
||||||
|
|
||||||
}
|
}
|
||||||
onMounted(() => {
|
function handleDatalog() {}
|
||||||
|
|
||||||
|
onMounted(() => {
|
||||||
if (schemaIdComputedRef.value) {
|
if (schemaIdComputedRef.value) {
|
||||||
bus.on(FLOW_PROCESSED, handleRefresh);
|
bus.on(FLOW_PROCESSED, handleRefresh);
|
||||||
bus.on(CREATE_FLOW, handleRefresh);
|
bus.on(CREATE_FLOW, handleRefresh);
|
||||||
@ -304,22 +314,21 @@
|
|||||||
bus.off(FORM_LIST_MODIFIED, handleRefresh);
|
bus.off(FORM_LIST_MODIFIED, handleRefresh);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
function getActions(record: Recordable):ActionItem[] {
|
function getActions(record: Recordable): ActionItem[] {
|
||||||
|
|
||||||
const actionsList: ActionItem[] = actionButtonConfig.value?.map((button) => {
|
const actionsList: ActionItem[] = actionButtonConfig.value?.map((button) => {
|
||||||
if (!record.workflowData?.processId) {
|
if (!record.workflowData?.processId) {
|
||||||
return {
|
return {
|
||||||
icon: button?.icon,
|
icon: button?.icon,
|
||||||
tooltip: button?.name,
|
tooltip: button?.name,
|
||||||
color: button.code === 'delete' ? 'error' : undefined,
|
color: button.code === 'delete' ? 'error' : undefined,
|
||||||
onClick: btnEvent[button.code].bind(null, record),
|
onClick: btnEvent[button.code].bind(null, record)
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
if (button.code === 'view') {
|
if (button.code === 'view') {
|
||||||
return {
|
return {
|
||||||
icon: button?.icon,
|
icon: button?.icon,
|
||||||
tooltip: button?.name,
|
tooltip: button?.name,
|
||||||
onClick: btnEvent[button.code].bind(null, record),
|
onClick: btnEvent[button.code].bind(null, record)
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
return {};
|
return {};
|
||||||
@ -328,29 +337,29 @@
|
|||||||
});
|
});
|
||||||
return actionsList;
|
return actionsList;
|
||||||
}
|
}
|
||||||
async function mergeCustomListRenderConfig(){
|
async function mergeCustomListRenderConfig() {
|
||||||
if (formConfig.useCustomConfig) {
|
if (formConfig.useCustomConfig) {
|
||||||
let formId=currentRoute.value.meta.formId;
|
let formId = currentRoute.value.meta.formId;
|
||||||
//1.合并展示字段配置
|
//1.合并展示字段配置
|
||||||
let cols= await mergeColumns(customConfigColums.value,formId);
|
let cols = await mergeColumns(customConfigColums.value, formId);
|
||||||
customConfigColums.value=cols;
|
customConfigColums.value = cols;
|
||||||
//2.合并搜索字段配置
|
//2.合并搜索字段配置
|
||||||
let sFormSchema= await mergeSearchFormSchema(customSearchFormSchema.value,formId);
|
let sFormSchema = await mergeSearchFormSchema(customSearchFormSchema.value, formId);
|
||||||
customSearchFormSchema.value=sFormSchema;
|
customSearchFormSchema.value = sFormSchema;
|
||||||
//3.合并按钮配置
|
//3.合并按钮配置
|
||||||
let btns= await mergeButtons(buttons.value,formId);
|
let btns = await mergeButtons(buttons.value, formId);
|
||||||
buttons.value=btns;
|
buttons.value = btns;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
|
||||||
</script>
|
</script>
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
:deep(.ant-table-selection-col) {
|
:deep(.ant-table-selection-col) {
|
||||||
width: 50px;
|
width: 50px;
|
||||||
}
|
}
|
||||||
.show{
|
.show {
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
.hide{
|
.hide {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@ -2,14 +2,14 @@ import { FormProps, FormSchema } from '/@/components/Form';
|
|||||||
import { BasicColumn } from '/@/components/Table';
|
import { BasicColumn } from '/@/components/Table';
|
||||||
|
|
||||||
export const formConfig = {
|
export const formConfig = {
|
||||||
useCustomConfig: false,
|
useCustomConfig: false
|
||||||
};
|
};
|
||||||
|
|
||||||
export const searchFormSchema: FormSchema[] = [
|
export const searchFormSchema: FormSchema[] = [
|
||||||
{
|
{
|
||||||
field: 'fullName',
|
field: 'fullName',
|
||||||
label: '名称',
|
label: '名称',
|
||||||
component: 'Input',
|
component: 'Input'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'valid',
|
field: 'valid',
|
||||||
@ -21,9 +21,9 @@ export const searchFormSchema: FormSchema[] = [
|
|||||||
labelField: 'name',
|
labelField: 'name',
|
||||||
valueField: 'value',
|
valueField: 'value',
|
||||||
|
|
||||||
getPopupContainer: () => document.body,
|
getPopupContainer: () => document.body
|
||||||
},
|
}
|
||||||
},
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
export const columns: BasicColumn[] = [
|
export const columns: BasicColumn[] = [
|
||||||
@ -33,7 +33,7 @@ export const columns: BasicColumn[] = [
|
|||||||
componentType: 'input',
|
componentType: 'input',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
|
|
||||||
sorter: true,
|
sorter: true
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
@ -42,7 +42,7 @@ export const columns: BasicColumn[] = [
|
|||||||
componentType: 'input',
|
componentType: 'input',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
|
|
||||||
sorter: true,
|
sorter: true
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
@ -51,7 +51,7 @@ export const columns: BasicColumn[] = [
|
|||||||
componentType: 'select',
|
componentType: 'select',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
|
|
||||||
sorter: true,
|
sorter: true
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
@ -60,7 +60,7 @@ export const columns: BasicColumn[] = [
|
|||||||
componentType: 'select',
|
componentType: 'select',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
|
|
||||||
sorter: true,
|
sorter: true
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
@ -69,7 +69,7 @@ export const columns: BasicColumn[] = [
|
|||||||
componentType: 'select',
|
componentType: 'select',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
|
|
||||||
sorter: true,
|
sorter: true
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
@ -78,8 +78,8 @@ export const columns: BasicColumn[] = [
|
|||||||
componentType: 'textarea',
|
componentType: 'textarea',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
|
|
||||||
sorter: true,
|
sorter: true
|
||||||
},
|
}
|
||||||
];
|
];
|
||||||
//表单事件
|
//表单事件
|
||||||
export const formEventConfigs = {
|
export const formEventConfigs = {
|
||||||
@ -90,7 +90,7 @@ export const formEventConfigs = {
|
|||||||
text: '开始节点',
|
text: '开始节点',
|
||||||
icon: '#icon-kaishi',
|
icon: '#icon-kaishi',
|
||||||
bgcColor: '#D8E5FF',
|
bgcColor: '#D8E5FF',
|
||||||
isUserDefined: false,
|
isUserDefined: false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
color: '#F6AB01',
|
color: '#F6AB01',
|
||||||
@ -98,8 +98,8 @@ export const formEventConfigs = {
|
|||||||
text: '初始化表单',
|
text: '初始化表单',
|
||||||
bgcColor: '#f9f5ea',
|
bgcColor: '#f9f5ea',
|
||||||
isUserDefined: false,
|
isUserDefined: false,
|
||||||
nodeInfo: { processEvent: [] },
|
nodeInfo: { processEvent: [] }
|
||||||
},
|
}
|
||||||
],
|
],
|
||||||
1: [
|
1: [
|
||||||
{
|
{
|
||||||
@ -109,8 +109,8 @@ export const formEventConfigs = {
|
|||||||
detail: '(新增无此操作)',
|
detail: '(新增无此操作)',
|
||||||
bgcColor: '#F8F2FC',
|
bgcColor: '#F8F2FC',
|
||||||
isUserDefined: false,
|
isUserDefined: false,
|
||||||
nodeInfo: { processEvent: [] },
|
nodeInfo: { processEvent: [] }
|
||||||
},
|
}
|
||||||
],
|
],
|
||||||
2: [
|
2: [
|
||||||
{
|
{
|
||||||
@ -119,8 +119,8 @@ export const formEventConfigs = {
|
|||||||
text: '加载表单',
|
text: '加载表单',
|
||||||
bgcColor: '#FFF1F1',
|
bgcColor: '#FFF1F1',
|
||||||
isUserDefined: false,
|
isUserDefined: false,
|
||||||
nodeInfo: { processEvent: [] },
|
nodeInfo: { processEvent: [] }
|
||||||
},
|
}
|
||||||
],
|
],
|
||||||
3: [
|
3: [
|
||||||
{
|
{
|
||||||
@ -129,8 +129,8 @@ export const formEventConfigs = {
|
|||||||
text: '提交表单',
|
text: '提交表单',
|
||||||
bgcColor: '#F5F4FF',
|
bgcColor: '#F5F4FF',
|
||||||
isUserDefined: false,
|
isUserDefined: false,
|
||||||
nodeInfo: { processEvent: [] },
|
nodeInfo: { processEvent: [] }
|
||||||
},
|
}
|
||||||
],
|
],
|
||||||
4: [
|
4: [
|
||||||
{
|
{
|
||||||
@ -140,9 +140,9 @@ export const formEventConfigs = {
|
|||||||
icon: '#icon-jieshuzhiliao',
|
icon: '#icon-jieshuzhiliao',
|
||||||
bgcColor: '#FFD6D6',
|
bgcColor: '#FFD6D6',
|
||||||
isLast: true,
|
isLast: true,
|
||||||
isUserDefined: false,
|
isUserDefined: false
|
||||||
},
|
}
|
||||||
],
|
]
|
||||||
};
|
};
|
||||||
export const formProps: FormProps = {
|
export const formProps: FormProps = {
|
||||||
labelCol: { span: 3, offset: 0 },
|
labelCol: { span: 3, offset: 0 },
|
||||||
@ -167,7 +167,6 @@ export const formProps: FormProps = {
|
|||||||
responsive: false,
|
responsive: false,
|
||||||
respNewRow: false,
|
respNewRow: false,
|
||||||
placeholder: '请输入编码',
|
placeholder: '请输入编码',
|
||||||
maxlength: null,
|
|
||||||
prefix: '',
|
prefix: '',
|
||||||
suffix: '',
|
suffix: '',
|
||||||
addonBefore: '',
|
addonBefore: '',
|
||||||
@ -181,8 +180,8 @@ export const formProps: FormProps = {
|
|||||||
isSave: false,
|
isSave: false,
|
||||||
isShow: true,
|
isShow: true,
|
||||||
scan: false,
|
scan: false,
|
||||||
style: { width: '100%' },
|
style: { width: '100%' }
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: '86536f9d2e8c473b8821c9216c765c9c',
|
key: '86536f9d2e8c473b8821c9216c765c9c',
|
||||||
@ -201,7 +200,6 @@ export const formProps: FormProps = {
|
|||||||
responsive: false,
|
responsive: false,
|
||||||
respNewRow: false,
|
respNewRow: false,
|
||||||
placeholder: '请输入名称',
|
placeholder: '请输入名称',
|
||||||
maxlength: null,
|
|
||||||
prefix: '',
|
prefix: '',
|
||||||
suffix: '',
|
suffix: '',
|
||||||
addonBefore: '',
|
addonBefore: '',
|
||||||
@ -215,8 +213,8 @@ export const formProps: FormProps = {
|
|||||||
isSave: false,
|
isSave: false,
|
||||||
isShow: true,
|
isShow: true,
|
||||||
scan: false,
|
scan: false,
|
||||||
style: { width: '100%' },
|
style: { width: '100%' }
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: '38c7f7488fe24254a1a939fa9b445657',
|
key: '38c7f7488fe24254a1a939fa9b445657',
|
||||||
@ -242,9 +240,8 @@ export const formProps: FormProps = {
|
|||||||
staticOptions: [
|
staticOptions: [
|
||||||
{ key: 1, label: 'Option 1', value: 'Option 1' },
|
{ key: 1, label: 'Option 1', value: 'Option 1' },
|
||||||
{ key: 2, label: 'Option 2', value: 'Option 2' },
|
{ key: 2, label: 'Option 2', value: 'Option 2' },
|
||||||
{ key: 3, label: 'Option 3', value: 'Option 3' },
|
{ key: 3, label: 'Option 3', value: 'Option 3' }
|
||||||
],
|
],
|
||||||
defaultSelect: null,
|
|
||||||
datasourceType: 'dic',
|
datasourceType: 'dic',
|
||||||
params: { itemId: '1978056598125330433' },
|
params: { itemId: '1978056598125330433' },
|
||||||
labelField: 'name',
|
labelField: 'name',
|
||||||
@ -252,7 +249,7 @@ export const formProps: FormProps = {
|
|||||||
apiConfig: {
|
apiConfig: {
|
||||||
path: 'CodeGeneration/selection',
|
path: 'CodeGeneration/selection',
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
apiId: '93d735dcb7364a0f8102188ec4d77ac7',
|
apiId: '93d735dcb7364a0f8102188ec4d77ac7'
|
||||||
},
|
},
|
||||||
dicOptions: [],
|
dicOptions: [],
|
||||||
required: true,
|
required: true,
|
||||||
@ -260,8 +257,8 @@ export const formProps: FormProps = {
|
|||||||
events: {},
|
events: {},
|
||||||
isShow: true,
|
isShow: true,
|
||||||
itemId: '1978056598125330433',
|
itemId: '1978056598125330433',
|
||||||
style: { width: '100%' },
|
style: { width: '100%' }
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: '10bfa57236b74a5f9a680e9bc5861d55',
|
key: '10bfa57236b74a5f9a680e9bc5861d55',
|
||||||
@ -287,9 +284,8 @@ export const formProps: FormProps = {
|
|||||||
staticOptions: [
|
staticOptions: [
|
||||||
{ key: 1, label: 'Option 1', value: 'Option 1' },
|
{ key: 1, label: 'Option 1', value: 'Option 1' },
|
||||||
{ key: 2, label: 'Option 2', value: 'Option 2' },
|
{ key: 2, label: 'Option 2', value: 'Option 2' },
|
||||||
{ key: 3, label: 'Option 3', value: 'Option 3' },
|
{ key: 3, label: 'Option 3', value: 'Option 3' }
|
||||||
],
|
],
|
||||||
defaultSelect: null,
|
|
||||||
datasourceType: 'dic',
|
datasourceType: 'dic',
|
||||||
params: { itemId: '1978056598125330433' },
|
params: { itemId: '1978056598125330433' },
|
||||||
labelField: 'name',
|
labelField: 'name',
|
||||||
@ -297,7 +293,7 @@ export const formProps: FormProps = {
|
|||||||
apiConfig: {
|
apiConfig: {
|
||||||
path: 'CodeGeneration/selection',
|
path: 'CodeGeneration/selection',
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
apiId: '93d735dcb7364a0f8102188ec4d77ac7',
|
apiId: '93d735dcb7364a0f8102188ec4d77ac7'
|
||||||
},
|
},
|
||||||
dicOptions: [],
|
dicOptions: [],
|
||||||
required: true,
|
required: true,
|
||||||
@ -305,8 +301,8 @@ export const formProps: FormProps = {
|
|||||||
events: {},
|
events: {},
|
||||||
isShow: true,
|
isShow: true,
|
||||||
itemId: '1978056598125330433',
|
itemId: '1978056598125330433',
|
||||||
style: { width: '100%' },
|
style: { width: '100%' }
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'd1feff0a3b454fa4a29c53355ab6c9cd',
|
key: 'd1feff0a3b454fa4a29c53355ab6c9cd',
|
||||||
@ -328,13 +324,11 @@ export const formProps: FormProps = {
|
|||||||
showSearch: false,
|
showSearch: false,
|
||||||
clearable: false,
|
clearable: false,
|
||||||
disabled: true,
|
disabled: true,
|
||||||
mode: 'multiple',
|
|
||||||
staticOptions: [
|
staticOptions: [
|
||||||
{ key: 1, label: 'Option 1', value: 'Option 1' },
|
{ key: 1, label: 'Option 1', value: 'Option 1' },
|
||||||
{ key: 2, label: 'Option 2', value: 'Option 2' },
|
{ key: 2, label: 'Option 2', value: 'Option 2' },
|
||||||
{ key: 3, label: 'Option 3', value: 'Option 3' },
|
{ key: 3, label: 'Option 3', value: 'Option 3' }
|
||||||
],
|
],
|
||||||
defaultSelect: null,
|
|
||||||
datasourceType: 'dic',
|
datasourceType: 'dic',
|
||||||
params: { itemId: '1978057078528327681' },
|
params: { itemId: '1978057078528327681' },
|
||||||
labelField: 'name',
|
labelField: 'name',
|
||||||
@ -342,7 +336,7 @@ export const formProps: FormProps = {
|
|||||||
apiConfig: {
|
apiConfig: {
|
||||||
path: 'CodeGeneration/selection',
|
path: 'CodeGeneration/selection',
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
apiId: '93d735dcb7364a0f8102188ec4d77ac7',
|
apiId: '93d735dcb7364a0f8102188ec4d77ac7'
|
||||||
},
|
},
|
||||||
dicOptions: [],
|
dicOptions: [],
|
||||||
required: false,
|
required: false,
|
||||||
@ -350,8 +344,9 @@ export const formProps: FormProps = {
|
|||||||
events: {},
|
events: {},
|
||||||
isShow: true,
|
isShow: true,
|
||||||
itemId: '1978057078528327681',
|
itemId: '1978057078528327681',
|
||||||
style: { width: '100%' },
|
defaultSelect: 'Y',
|
||||||
},
|
style: { width: '100%' }
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: '297be674c3e84930a81ec6d92600e896',
|
key: '297be674c3e84930a81ec6d92600e896',
|
||||||
@ -381,14 +376,14 @@ export const formProps: FormProps = {
|
|||||||
isShow: true,
|
isShow: true,
|
||||||
rules: [],
|
rules: [],
|
||||||
events: {},
|
events: {},
|
||||||
style: { width: '100%' },
|
style: { width: '100%' }
|
||||||
},
|
}
|
||||||
},
|
}
|
||||||
],
|
],
|
||||||
showActionButtonGroup: false,
|
showActionButtonGroup: false,
|
||||||
buttonLocation: 'center',
|
buttonLocation: 'center',
|
||||||
actionColOptions: { span: 24 },
|
actionColOptions: { span: 24 },
|
||||||
showResetButton: false,
|
showResetButton: false,
|
||||||
showSubmitButton: false,
|
showSubmitButton: false,
|
||||||
hiddenComponent: [],
|
hiddenComponent: []
|
||||||
};
|
};
|
||||||
@ -1,7 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<PageWrapper dense fixedHeight contentFullHeight contentClass="flex">
|
<PageWrapper dense fixedHeight contentFullHeight contentClass="flex">
|
||||||
<BasicTable @register="registerTable" ref="tableRef" @row-dbClick="dbClickRow">
|
<BasicTable @register="registerTable" ref="tableRef" @row-db-click="dbClickRow" @selection-change="selectionChange">
|
||||||
|
|
||||||
<template #toolbar>
|
<template #toolbar>
|
||||||
<template v-for="button in tableButtonConfig" :key="button.code">
|
<template v-for="button in tableButtonConfig" :key="button.code">
|
||||||
<a-button v-if="button.isDefault" :type="button.type" @click="buttonClick(button.code)">
|
<a-button v-if="button.isDefault" :type="button.type" @click="buttonClick(button.code)">
|
||||||
@ -24,25 +23,23 @@
|
|||||||
</PageWrapper>
|
</PageWrapper>
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { ref, computed, onMounted, onUnmounted, createVNode,
|
import { ref, computed, onMounted, onUnmounted, createVNode } from 'vue';
|
||||||
|
|
||||||
} from 'vue';
|
|
||||||
|
|
||||||
import { Modal } from 'ant-design-vue';
|
import { Modal } from 'ant-design-vue';
|
||||||
import { ExclamationCircleOutlined } from '@ant-design/icons-vue';
|
import { ExclamationCircleOutlined } from '@ant-design/icons-vue';
|
||||||
import { BasicTable, useTable, TableAction, ActionItem } from '/@/components/Table';
|
import { BasicTable, useTable, TableAction, ActionItem } from '/@/components/Table';
|
||||||
import { getLngBPriceTermPage, deleteLngBPriceTerm} from '/@/api/mdm/PriceTerms';
|
import { getLngBPriceTermPage, deleteLngBPriceTerm, disableLngBPriceTerm, enableLngBPriceTerm } from '/@/api/mdm/PriceTerms';
|
||||||
import { PageWrapper } from '/@/components/Page';
|
import { PageWrapper } from '/@/components/Page';
|
||||||
import { useMessage } from '/@/hooks/web/useMessage';
|
import { useMessage } from '/@/hooks/web/useMessage';
|
||||||
import { useI18n } from '/@/hooks/web/useI18n';
|
import { useI18n } from '/@/hooks/web/useI18n';
|
||||||
import { usePermission } from '/@/hooks/web/usePermission';
|
import { usePermission } from '/@/hooks/web/usePermission';
|
||||||
import { useFormConfig } from '/@/hooks/web/useFormConfig';
|
import { useFormConfig } from '/@/hooks/web/useFormConfig';
|
||||||
import { useRouter } from 'vue-router';
|
import { useRouter } from 'vue-router';
|
||||||
import { setIndexFlowStatus } from '/@/utils/flow/index'
|
import { setIndexFlowStatus } from '/@/utils/flow/index';
|
||||||
import { getLngBPriceTerm } from '/@/api/mdm/PriceTerms';
|
import { getLngBPriceTerm } from '/@/api/mdm/PriceTerms';
|
||||||
import { useModal } from '/@/components/Modal';
|
import { useModal } from '/@/components/Modal';
|
||||||
import PriceTermsModal from './components/PriceTermsModal.vue';
|
import PriceTermsModal from './components/PriceTermsModal.vue';
|
||||||
import {formConfig, searchFormSchema, columns } from './components/config';
|
import { formConfig, searchFormSchema, columns } from './components/config';
|
||||||
import Icon from '/@/components/Icon/index';
|
import Icon from '/@/components/Icon/index';
|
||||||
import useEventBus from '/@/hooks/event/useEventBus';
|
import useEventBus from '/@/hooks/event/useEventBus';
|
||||||
import { cloneDeep } from 'lodash-es';
|
import { cloneDeep } from 'lodash-es';
|
||||||
@ -53,20 +50,29 @@
|
|||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
defineEmits(['register']);
|
defineEmits(['register']);
|
||||||
const { filterColumnAuth, filterButtonAuth } = usePermission();
|
const { filterColumnAuth, filterButtonAuth } = usePermission();
|
||||||
const { mergeColumns,mergeSearchFormSchema,mergeButtons } = useFormConfig();
|
const { mergeColumns, mergeSearchFormSchema, mergeButtons } = useFormConfig();
|
||||||
|
|
||||||
const filterColumns = cloneDeep(filterColumnAuth(columns));
|
const filterColumns = cloneDeep(filterColumnAuth(columns));
|
||||||
const customConfigColums =ref(filterColumns);
|
const customConfigColums = ref(filterColumns);
|
||||||
const customSearchFormSchema =ref(searchFormSchema);
|
const customSearchFormSchema = ref(searchFormSchema);
|
||||||
|
|
||||||
const tableRef = ref();
|
const tableRef = ref();
|
||||||
//所有按钮
|
//所有按钮
|
||||||
const buttons = ref([{"isUse":true,"name":"新增","code":"add","icon":"ant-design:plus-outlined","isDefault":true,"type":"primary"},{"isUse":true,"name":"编辑","code":"edit","icon":"ant-design:form-outlined","isDefault":true},{"isUse":true,"name":"启用","code":"enable","icon":"ant-design:form-outlined","isDefault":true,"type":"primary"},{"isUse":true,"name":"作废","code":"disable","icon":"ant-design:stop-outlined","isDefault":true,"type":"dashed"},{"isUse":true,"name":"刷新","code":"refresh","icon":"ant-design:reload-outlined","isDefault":true},{"isUse":true,"name":"查看","code":"view","icon":"ant-design:eye-outlined","isDefault":true},{"isUse":true,"name":"数据日志","code":"datalog","icon":"ant-design:profile-outlined","isDefault":true},{"isUse":true,"name":"删除","code":"delete","icon":"ant-design:delete-outlined","isDefault":true}]);
|
const buttons = ref([
|
||||||
|
{ name: '新增', code: 'add', icon: 'ant-design:plus-outlined', isDefault: true, isUse: true },
|
||||||
|
{ name: '编辑', code: 'edit', icon: 'ant-design:form-outlined', isDefault: true, isUse: true },
|
||||||
|
{ name: '启用', code: 'enable', icon: 'ant-design:form-outlined', isDefault: true, isUse: true },
|
||||||
|
{ name: '作废', code: 'disable', icon: 'ant-design:stop-outlined', isDefault: true, isUse: true },
|
||||||
|
{ name: '刷新', code: 'refresh', icon: 'ant-design:reload-outlined', isDefault: true, isUse: true },
|
||||||
|
{ name: '查看', code: 'view', icon: 'ant-design:eye-outlined', isDefault: true, isUse: true },
|
||||||
|
{ name: '数据日志', code: 'datalog', icon: 'ant-design:profile-outlined', isDefault: true, isUse: true },
|
||||||
|
{ name: '删除', code: 'delete', icon: 'ant-design:delete-outlined', isDefault: true, isUse: true }
|
||||||
|
]);
|
||||||
//展示在列表内的按钮
|
//展示在列表内的按钮
|
||||||
const actionButtons = ref<string[]>(['view', 'edit','datalog', 'copyData', 'delete', 'startwork','flowRecord']);
|
const actionButtons = ref<string[]>(['view', 'edit', 'datalog', 'copyData', 'delete', 'startwork', 'flowRecord']);
|
||||||
const buttonConfigs = computed(()=>{
|
const buttonConfigs = computed(() => {
|
||||||
return filterButtonAuth(buttons.value);
|
return filterButtonAuth(buttons.value);
|
||||||
})
|
});
|
||||||
|
|
||||||
const tableButtonConfig = computed(() => {
|
const tableButtonConfig = computed(() => {
|
||||||
return buttonConfigs.value?.filter((x) => !actionButtons.value.includes(x.code));
|
return buttonConfigs.value?.filter((x) => !actionButtons.value.includes(x.code));
|
||||||
@ -76,55 +82,55 @@
|
|||||||
return buttonConfigs.value?.filter((x) => actionButtons.value.includes(x.code));
|
return buttonConfigs.value?.filter((x) => actionButtons.value.includes(x.code));
|
||||||
});
|
});
|
||||||
|
|
||||||
const btnEvent = {add : handleAdd,edit : handleEdit,enable : handleEnable,disable : handleDisable,refresh : handleRefresh,view : handleView,datalog : handleDatalog,delete : handleDelete,}
|
const btnEvent = { add: handleAdd, edit: handleEdit, enable: handleEnable, disable: handleDisable, refresh: handleRefresh, view: handleView, datalog: handleDatalog, delete: handleDelete };
|
||||||
|
|
||||||
const { currentRoute } = useRouter();
|
const { currentRoute } = useRouter();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const formIdComputedRef = ref();
|
const formIdComputedRef = ref();
|
||||||
formIdComputedRef.value = currentRoute.value.meta.formId
|
formIdComputedRef.value = currentRoute.value.meta.formId;
|
||||||
const schemaIdComputedRef = ref();
|
const schemaIdComputedRef = ref();
|
||||||
schemaIdComputedRef.value = currentRoute.value.meta.schemaId
|
schemaIdComputedRef.value = currentRoute.value.meta.schemaId;
|
||||||
const [registerModal, { openModal }] = useModal();
|
const [registerModal, { openModal }] = useModal();
|
||||||
const formName='价格条款管理';
|
const formName = '价格条款管理';
|
||||||
const [registerTable, { reload, }] = useTable({
|
const [registerTable, { reload }] = useTable({
|
||||||
title: '' || (formName + '列表'),
|
title: '' || formName + '列表',
|
||||||
api: getLngBPriceTermPage,
|
api: getLngBPriceTermPage,
|
||||||
rowKey: 'id',
|
rowKey: 'id',
|
||||||
columns: customConfigColums,
|
columns: customConfigColums,
|
||||||
formConfig: {
|
formConfig: {
|
||||||
rowProps: {
|
rowProps: {
|
||||||
gutter: 16,
|
gutter: 16
|
||||||
},
|
},
|
||||||
schemas: customSearchFormSchema,
|
schemas: customSearchFormSchema,
|
||||||
fieldMapToTime: [],
|
fieldMapToTime: [],
|
||||||
showResetButton: false,
|
showResetButton: false
|
||||||
},
|
},
|
||||||
beforeFetch: (params) => {
|
beforeFetch: (params) => {
|
||||||
return { ...params, FormId: formIdComputedRef.value, PK: 'id' };
|
return { ...params, FormId: formIdComputedRef.value, PK: 'id' };
|
||||||
},
|
},
|
||||||
afterFetch: (res) => {
|
afterFetch: (res) => {
|
||||||
tableRef.value.setToolBarWidth();
|
tableRef.value.setToolBarWidth();
|
||||||
|
|
||||||
},
|
},
|
||||||
useSearchForm: true,
|
useSearchForm: true,
|
||||||
showTableSetting: true,
|
showTableSetting: true,
|
||||||
|
rowSelection: {
|
||||||
|
type: 'checkbox'
|
||||||
|
},
|
||||||
striped: false,
|
striped: false,
|
||||||
actionColumn: {
|
actionColumn: {
|
||||||
width: 160,
|
width: 200,
|
||||||
title: '操作',
|
title: '操作',
|
||||||
dataIndex: 'action',
|
dataIndex: 'action',
|
||||||
slots: { customRender: 'action' },
|
slots: { customRender: 'action' }
|
||||||
},
|
},
|
||||||
tableSetting: {
|
tableSetting: {
|
||||||
size: false,
|
size: false,
|
||||||
setting: false,
|
setting: false
|
||||||
},
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
function dbClickRow(record) {
|
function dbClickRow(record) {
|
||||||
if (!actionButtonConfig?.value.some(element => element.code == 'view')) {
|
if (!actionButtonConfig?.value.some((element) => element.code == 'view')) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const { processId, taskIds, schemaId } = record.workflowData || {};
|
const { processId, taskIds, schemaId } = record.workflowData || {};
|
||||||
@ -134,7 +140,7 @@
|
|||||||
query: {
|
query: {
|
||||||
taskId: taskIds[0],
|
taskId: taskIds[0],
|
||||||
formName: formName,
|
formName: formName,
|
||||||
formId:currentRoute.value.meta.formId
|
formId: currentRoute.value.meta.formId
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else if (schemaId && !taskIds && processId) {
|
} else if (schemaId && !taskIds && processId) {
|
||||||
@ -144,7 +150,7 @@
|
|||||||
readonly: 1,
|
readonly: 1,
|
||||||
taskId: '',
|
taskId: '',
|
||||||
formName: formName,
|
formName: formName,
|
||||||
formId:currentRoute.value.meta.formId
|
formId: currentRoute.value.meta.formId
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
@ -153,14 +159,18 @@
|
|||||||
query: {
|
query: {
|
||||||
formPath: 'mdm/PriceTerms',
|
formPath: 'mdm/PriceTerms',
|
||||||
formName: formName,
|
formName: formName,
|
||||||
formId:currentRoute.value.meta.formId
|
formId: currentRoute.value.meta.formId
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 选中的行ID
|
||||||
|
const selectedKeys = ref([]);
|
||||||
|
function selectionChange(selected) {
|
||||||
|
selectedKeys.value = selected.keys;
|
||||||
|
}
|
||||||
function buttonClick(code) {
|
function buttonClick(code) {
|
||||||
|
|
||||||
btnEvent[code]();
|
btnEvent[code]();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -175,20 +185,19 @@
|
|||||||
query: {
|
query: {
|
||||||
formPath: 'mdm/PriceTerms',
|
formPath: 'mdm/PriceTerms',
|
||||||
formName: formName,
|
formName: formName,
|
||||||
formId:currentRoute.value.meta.formId
|
formId: currentRoute.value.meta.formId
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleEdit(record: Recordable) {
|
function handleEdit(record: Recordable) {
|
||||||
|
|
||||||
router.push({
|
router.push({
|
||||||
path: '/form/PriceTerms/' + record.id + '/updateForm',
|
path: '/form/PriceTerms/' + record.id + '/updateForm',
|
||||||
query: {
|
query: {
|
||||||
formPath: 'mdm/PriceTerms',
|
formPath: 'mdm/PriceTerms',
|
||||||
formName: formName,
|
formName: formName,
|
||||||
formId:currentRoute.value.meta.formId
|
formId: currentRoute.value.meta.formId
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -200,7 +209,7 @@
|
|||||||
if (!selectedKeys.value.length) {
|
if (!selectedKeys.value.length) {
|
||||||
notification.warning({
|
notification.warning({
|
||||||
message: 'Tip',
|
message: 'Tip',
|
||||||
description: t('请选择需要启用的数据'),
|
description: t('请选择需要启用的数据')
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -217,19 +226,18 @@
|
|||||||
handleSuccess();
|
handleSuccess();
|
||||||
notification.success({
|
notification.success({
|
||||||
message: 'Tip',
|
message: 'Tip',
|
||||||
description: t('启用成功!'),
|
description: t('启用成功!')
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
onCancel() {},
|
onCancel() {}
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
function handleDisable() {
|
function handleDisable() {
|
||||||
if (!selectedKeys.value.length) {
|
if (!selectedKeys.value.length) {
|
||||||
notification.warning({
|
notification.warning({
|
||||||
message: 'Tip',
|
message: 'Tip',
|
||||||
description: t('请选择需要禁用的数据'),
|
description: t('请选择需要禁用的数据')
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -245,11 +253,11 @@
|
|||||||
handleSuccess();
|
handleSuccess();
|
||||||
notification.success({
|
notification.success({
|
||||||
message: 'Tip',
|
message: 'Tip',
|
||||||
description: t('禁用成功!'),
|
description: t('禁用成功!')
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
onCancel() {},
|
onCancel() {}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
function deleteList(ids) {
|
function deleteList(ids) {
|
||||||
@ -264,28 +272,26 @@
|
|||||||
handleSuccess();
|
handleSuccess();
|
||||||
notification.success({
|
notification.success({
|
||||||
message: 'Tip',
|
message: 'Tip',
|
||||||
description: t('删除成功!'),
|
description: t('删除成功!')
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
onCancel() {},
|
onCancel() {}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
function handleRefresh() {
|
function handleRefresh() {
|
||||||
reload();
|
reload();
|
||||||
}
|
}
|
||||||
function handleSuccess() {
|
function handleSuccess() {
|
||||||
|
|
||||||
reload();
|
reload();
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleView(record: Recordable) {
|
function handleView(record: Recordable) {
|
||||||
|
|
||||||
dbClickRow(record);
|
dbClickRow(record);
|
||||||
|
|
||||||
}
|
}
|
||||||
onMounted(() => {
|
function handleDatalog() {}
|
||||||
|
|
||||||
|
onMounted(() => {
|
||||||
if (schemaIdComputedRef.value) {
|
if (schemaIdComputedRef.value) {
|
||||||
bus.on(FLOW_PROCESSED, handleRefresh);
|
bus.on(FLOW_PROCESSED, handleRefresh);
|
||||||
bus.on(CREATE_FLOW, handleRefresh);
|
bus.on(CREATE_FLOW, handleRefresh);
|
||||||
@ -304,22 +310,21 @@
|
|||||||
bus.off(FORM_LIST_MODIFIED, handleRefresh);
|
bus.off(FORM_LIST_MODIFIED, handleRefresh);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
function getActions(record: Recordable):ActionItem[] {
|
function getActions(record: Recordable): ActionItem[] {
|
||||||
|
|
||||||
const actionsList: ActionItem[] = actionButtonConfig.value?.map((button) => {
|
const actionsList: ActionItem[] = actionButtonConfig.value?.map((button) => {
|
||||||
if (!record.workflowData?.processId) {
|
if (!record.workflowData?.processId) {
|
||||||
return {
|
return {
|
||||||
icon: button?.icon,
|
icon: button?.icon,
|
||||||
tooltip: button?.name,
|
tooltip: button?.name,
|
||||||
color: button.code === 'delete' ? 'error' : undefined,
|
color: button.code === 'delete' ? 'error' : undefined,
|
||||||
onClick: btnEvent[button.code].bind(null, record),
|
onClick: btnEvent[button.code].bind(null, record)
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
if (button.code === 'view') {
|
if (button.code === 'view') {
|
||||||
return {
|
return {
|
||||||
icon: button?.icon,
|
icon: button?.icon,
|
||||||
tooltip: button?.name,
|
tooltip: button?.name,
|
||||||
onClick: btnEvent[button.code].bind(null, record),
|
onClick: btnEvent[button.code].bind(null, record)
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
return {};
|
return {};
|
||||||
@ -328,29 +333,29 @@
|
|||||||
});
|
});
|
||||||
return actionsList;
|
return actionsList;
|
||||||
}
|
}
|
||||||
async function mergeCustomListRenderConfig(){
|
async function mergeCustomListRenderConfig() {
|
||||||
if (formConfig.useCustomConfig) {
|
if (formConfig.useCustomConfig) {
|
||||||
let formId=currentRoute.value.meta.formId;
|
let formId = currentRoute.value.meta.formId;
|
||||||
//1.合并展示字段配置
|
//1.合并展示字段配置
|
||||||
let cols= await mergeColumns(customConfigColums.value,formId);
|
let cols = await mergeColumns(customConfigColums.value, formId);
|
||||||
customConfigColums.value=cols;
|
customConfigColums.value = cols;
|
||||||
//2.合并搜索字段配置
|
//2.合并搜索字段配置
|
||||||
let sFormSchema= await mergeSearchFormSchema(customSearchFormSchema.value,formId);
|
let sFormSchema = await mergeSearchFormSchema(customSearchFormSchema.value, formId);
|
||||||
customSearchFormSchema.value=sFormSchema;
|
customSearchFormSchema.value = sFormSchema;
|
||||||
//3.合并按钮配置
|
//3.合并按钮配置
|
||||||
let btns= await mergeButtons(buttons.value,formId);
|
let btns = await mergeButtons(buttons.value, formId);
|
||||||
buttons.value=btns;
|
buttons.value = btns;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
|
||||||
</script>
|
</script>
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
:deep(.ant-table-selection-col) {
|
:deep(.ant-table-selection-col) {
|
||||||
width: 50px;
|
width: 50px;
|
||||||
}
|
}
|
||||||
.show{
|
.show {
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
.hide{
|
.hide {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
Reference in New Issue
Block a user