diff --git a/src/api/approve/Appro/index.ts b/src/api/approve/Appro/index.ts new file mode 100644 index 0000000..a5d9499 --- /dev/null +++ b/src/api/approve/Appro/index.ts @@ -0,0 +1,89 @@ +import { LngApproPageModel, LngApproPageParams, LngApproPageResult } from './model/ApproModel'; +import { defHttp } from '/@/utils/http/axios'; +import { ErrorMessageMode } from '/#/axios'; + +enum Api { + Page = '/approve/appro/page', + List = '/approve/appro/list', + Info = '/approve/appro/info', + LngAppro = '/approve/appro', + + + + +} + +/** + * @description: 查询LngAppro分页列表 + */ +export async function getLngApproPage(params: LngApproPageParams, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: Api.Page, + params, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 获取LngAppro信息 + */ +export async function getLngAppro(id: String, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: Api.Info, + params: { id }, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 新增LngAppro + */ +export async function addLngAppro(lngAppro: Recordable, mode: ErrorMessageMode = 'modal') { + return defHttp.post( + { + url: Api.LngAppro, + params: lngAppro, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 更新LngAppro + */ +export async function updateLngAppro(lngAppro: Recordable, mode: ErrorMessageMode = 'modal') { + return defHttp.put( + { + url: Api.LngAppro, + params: lngAppro, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 删除LngAppro(批量删除) + */ +export async function deleteLngAppro(ids: string[], mode: ErrorMessageMode = 'modal') { + return defHttp.delete( + { + url: Api.LngAppro, + data: ids, + }, + { + errorMessageMode: mode, + }, + ); +} \ No newline at end of file diff --git a/src/api/approve/Appro/model/ApproModel.ts b/src/api/approve/Appro/model/ApproModel.ts new file mode 100644 index 0000000..b39f770 --- /dev/null +++ b/src/api/approve/Appro/model/ApproModel.ts @@ -0,0 +1,60 @@ +import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel'; + +/** + * @description: LngAppro分页参数 模型 + */ +export interface LngApproPageParams extends BasicPageParams { + code: string; + + title: string; + + typeCode: string; + + securityCode: string; + + urgencyCode: string; + + empId: string; + + bDeptId: string; + + dateAppro: string; + + approCode: string; + + content: string; +} + +/** + * @description: LngAppro分页返回值模型 + */ +export interface LngApproPageModel { + id: string; + + code: string; + + title: string; + + typeCode: string; + + securityCode: string; + + urgencyCode: string; + + empId: string; + + bDeptId: string; + + dateAppro: string; + + approCode: string; + + content: string; +} + +0; + +/** + * @description: LngAppro分页返回值结构 + */ +export type LngApproPageResult = BasicFetchResult; \ No newline at end of file diff --git a/src/api/sales/ScoreCustomer/index.ts b/src/api/sales/ScoreCustomer/index.ts index 0af5409..11d72e1 100644 --- a/src/api/sales/ScoreCustomer/index.ts +++ b/src/api/sales/ScoreCustomer/index.ts @@ -3,7 +3,8 @@ import { defHttp } from '/@/utils/http/axios'; import { ErrorMessageMode } from '/#/axios'; enum Api { - Page = '/sales/scoreCustomer/page', + // Page = '/sales/scoreCustomer/page', + Page = '/magic-api/sales/scoreCustomerPage', List = '/sales/scoreCustomer/list', Info = '/sales/scoreCustomer/info', LngScore = '/sales/scoreCustomer', diff --git a/src/api/supplier/ScoreSupplier/index.ts b/src/api/supplier/ScoreSupplier/index.ts index 176ec5b..ec16062 100644 --- a/src/api/supplier/ScoreSupplier/index.ts +++ b/src/api/supplier/ScoreSupplier/index.ts @@ -3,7 +3,8 @@ import { defHttp } from '/@/utils/http/axios'; import { ErrorMessageMode } from '/#/axios'; enum Api { - Page = '/supplier/scoreSupplier/page', + // Page = '/supplier/scoreSupplier/page', + Page = '/magic-api/supplier/scoreSupplierPage', List = '/supplier/scoreSupplier/list', Info = '/supplier/scoreSupplier/info', LngScore = '/supplier/scoreSupplier', diff --git a/src/views/approve/Appro/components/ApproModal.vue b/src/views/approve/Appro/components/ApproModal.vue new file mode 100644 index 0000000..168dd47 --- /dev/null +++ b/src/views/approve/Appro/components/ApproModal.vue @@ -0,0 +1,110 @@ + + \ No newline at end of file diff --git a/src/views/approve/Appro/components/Form.vue b/src/views/approve/Appro/components/Form.vue new file mode 100644 index 0000000..ced24bd --- /dev/null +++ b/src/views/approve/Appro/components/Form.vue @@ -0,0 +1,224 @@ + + \ No newline at end of file diff --git a/src/views/approve/Appro/components/config.ts b/src/views/approve/Appro/components/config.ts new file mode 100644 index 0000000..e0fd9c5 --- /dev/null +++ b/src/views/approve/Appro/components/config.ts @@ -0,0 +1,663 @@ +import { FormProps, FormSchema } from '/@/components/Form'; +import { BasicColumn } from '/@/components/Table'; + +export const formConfig = { + useCustomConfig: false, +}; + +export const searchFormSchema: FormSchema[] = [ + { + field: 'code', + label: '编号', + component: 'Input', + }, + { + field: 'title', + label: '标题', + component: 'Input', + }, + { + field: 'typeCode', + label: '签报类型', + component: 'XjrSelect', + componentProps: { + datasourceType: 'dic', + params: { itemId: '2001500486723887105' }, + labelField: 'name', + valueField: 'value', + + getPopupContainer: () => document.body, + }, + }, + { + field: 'securityCode', + label: '密级', + component: 'XjrSelect', + componentProps: { + datasourceType: 'dic', + params: { itemId: '2001501242533273602' }, + labelField: 'name', + valueField: 'value', + + getPopupContainer: () => document.body, + }, + }, + { + field: 'urgencyCode', + label: '缓级', + component: 'XjrSelect', + componentProps: { + datasourceType: 'dic', + params: { itemId: '2001501562994876418' }, + labelField: 'name', + valueField: 'value', + + getPopupContainer: () => document.body, + }, + }, + { + field: 'empId', + label: '拟稿人', + component: 'Input', + }, + { + field: 'bDeptId', + label: '拟稿人所属部门', + component: 'Input', + }, + { + field: 'dateAppro', + label: '拟稿日期', + component: 'XjrSelect', + componentProps: { + datasourceType: 'api', + apiConfig: { + path: 'CodeGeneration/selection', + method: 'GET', + apiId: '93d735dcb7364a0f8102188ec4d77ac7', + }, + labelField: 'label', + valueField: 'value', + + getPopupContainer: () => document.body, + }, + }, + { + field: 'approCode', + label: '审批状态', + component: 'XjrSelect', + componentProps: { + datasourceType: 'dic', + params: { itemId: '1990669393069129729' }, + labelField: 'name', + valueField: 'value', + + getPopupContainer: () => document.body, + }, + }, + { + field: 'content', + label: '内容摘要', + component: 'Input', + }, +]; + +export const columns: BasicColumn[] = [ + { + dataIndex: 'code', + title: '编号', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'title', + title: '标题', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'typeCode', + title: '签报类型', + componentType: 'select', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'securityCode', + title: '密级', + componentType: 'select', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'urgencyCode', + title: '缓级', + componentType: 'select', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'empId', + title: '拟稿人', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'bDeptId', + title: '拟稿人所属部门', + componentType: 'input', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'dateAppro', + title: '拟稿日期', + componentType: 'select', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'approCode', + title: '审批状态', + componentType: 'select', + align: 'left', + + sorter: true, + }, + + { + dataIndex: 'content', + title: '内容摘要', + componentType: 'textarea', + align: 'left', + + sorter: true, + }, +]; +//表单事件 +export const formEventConfigs = { + 0: [ + { + type: 'circle', + color: '#2774ff', + text: '开始节点', + icon: '#icon-kaishi', + bgcColor: '#D8E5FF', + isUserDefined: false, + }, + { + color: '#F6AB01', + icon: '#icon-chushihua', + text: '初始化表单', + bgcColor: '#f9f5ea', + isUserDefined: false, + nodeInfo: { processEvent: [] }, + }, + ], + 1: [ + { + color: '#B36EDB', + icon: '#icon-shujufenxi', + text: '获取表单数据', + detail: '(新增无此操作)', + bgcColor: '#F8F2FC', + isUserDefined: false, + nodeInfo: { processEvent: [] }, + }, + ], + 2: [ + { + color: '#F8625C', + icon: '#icon-jiazai', + text: '加载表单', + bgcColor: '#FFF1F1', + isUserDefined: false, + nodeInfo: { processEvent: [] }, + }, + ], + 3: [ + { + color: '#6C6AE0', + icon: '#icon-jsontijiao', + text: '提交表单', + bgcColor: '#F5F4FF', + isUserDefined: false, + nodeInfo: { processEvent: [] }, + }, + ], + 4: [ + { + type: 'circle', + color: '#F8625C', + text: '结束节点', + icon: '#icon-jieshuzhiliao', + bgcColor: '#FFD6D6', + isLast: true, + isUserDefined: false, + }, + ], +}; +export const formProps: FormProps = { + labelCol: { span: 3, offset: 0 }, + labelAlign: 'right', + layout: 'horizontal', + size: 'default', + schemas: [ + { + key: '7ab1b5af10724b47bfe63e811a7049be', + 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: '2d7032de7bd5495c91ff647ccd2188d0', + field: 'title', + 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: '7a1f49fb11704d6ca87d451696cfb34f', + field: 'typeCode', + label: '签报类型', + type: 'select', + component: 'XjrSelect', + colProps: { span: 24 }, + componentProps: { + width: '100%', + span: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请选择下拉选择', + sepTextField: '', + showLabel: true, + showSearch: false, + clearable: false, + disabled: false, + mode: '', + staticOptions: [ + { key: 1, label: 'Option 1', value: 'Option 1' }, + { key: 2, label: 'Option 2', value: 'Option 2' }, + { key: 3, label: 'Option 3', value: 'Option 3' }, + ], + defaultSelect: null, + datasourceType: 'dic', + params: { itemId: '2001500486723887105' }, + labelField: 'name', + valueField: 'value', + apiConfig: { + path: 'CodeGeneration/selection', + method: 'GET', + apiId: '93d735dcb7364a0f8102188ec4d77ac7', + }, + dicOptions: [], + required: false, + rules: [], + events: {}, + isShow: true, + itemId: '2001500486723887105', + style: { width: '100%' }, + }, + }, + { + key: 'ff3e18c6e87e4f4bba30323f964c1a2e', + field: 'securityCode', + label: '密级', + type: 'select', + component: 'XjrSelect', + colProps: { span: 24 }, + componentProps: { + width: '100%', + span: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请选择下拉选择', + sepTextField: '', + showLabel: true, + showSearch: false, + clearable: false, + disabled: false, + mode: '', + staticOptions: [ + { key: 1, label: 'Option 1', value: 'Option 1' }, + { key: 2, label: 'Option 2', value: 'Option 2' }, + { key: 3, label: 'Option 3', value: 'Option 3' }, + ], + defaultSelect: null, + datasourceType: 'dic', + params: { itemId: '2001501242533273602' }, + labelField: 'name', + valueField: 'value', + apiConfig: { + path: 'CodeGeneration/selection', + method: 'GET', + apiId: '93d735dcb7364a0f8102188ec4d77ac7', + }, + dicOptions: [], + required: false, + rules: [], + events: {}, + isShow: true, + itemId: '2001501242533273602', + style: { width: '100%' }, + }, + }, + { + key: 'a9b3f7e8da73450f875b97e095e0f2fc', + field: 'urgencyCode', + label: '缓级', + type: 'select', + component: 'XjrSelect', + colProps: { span: 24 }, + componentProps: { + width: '100%', + span: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请选择下拉选择', + sepTextField: '', + showLabel: true, + showSearch: false, + clearable: false, + disabled: false, + mode: '', + staticOptions: [ + { key: 1, label: 'Option 1', value: 'Option 1' }, + { key: 2, label: 'Option 2', value: 'Option 2' }, + { key: 3, label: 'Option 3', value: 'Option 3' }, + ], + defaultSelect: null, + datasourceType: 'dic', + params: { itemId: '2001501562994876418' }, + labelField: 'name', + valueField: 'value', + apiConfig: { + path: 'CodeGeneration/selection', + method: 'GET', + apiId: '93d735dcb7364a0f8102188ec4d77ac7', + }, + dicOptions: [], + required: false, + rules: [], + events: {}, + isShow: true, + itemId: '2001501562994876418', + style: { width: '100%' }, + }, + }, + { + key: '1f8a833aa4d1438eab9db90ef043f9ff', + field: 'empId', + 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: '1c796840a6f34d9bbad5544a95b9efbf', + field: 'bDeptId', + 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: '3d7159660c3443f4ace6a1e7d438701b', + field: 'dateAppro', + label: '拟稿日期', + type: 'select', + component: 'XjrSelect', + colProps: { span: 24 }, + componentProps: { + width: '100%', + span: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + 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' }, + { key: 3, label: 'Option 3', value: 'Option 3' }, + ], + defaultSelect: '', + datasourceType: 'api', + params: null, + labelField: 'label', + valueField: 'value', + apiConfig: { + path: 'CodeGeneration/selection', + method: 'GET', + apiId: '93d735dcb7364a0f8102188ec4d77ac7', + }, + dicOptions: [], + required: false, + rules: [], + events: {}, + isShow: true, + style: { width: '100%' }, + }, + }, + { + key: '9de6fc02d0b5430fb8c8dbc6ff758809', + field: 'approCode', + label: '审批状态', + type: 'select', + component: 'XjrSelect', + colProps: { span: 24 }, + componentProps: { + width: '100%', + span: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: false, + placeholder: '请选择下拉选择', + sepTextField: '', + showLabel: true, + showSearch: false, + clearable: false, + disabled: true, + mode: '', + staticOptions: [ + { key: 1, label: 'Option 1', value: 'Option 1' }, + { key: 2, label: 'Option 2', value: 'Option 2' }, + { key: 3, label: 'Option 3', value: 'Option 3' }, + ], + defaultSelect: 'WTJ', + datasourceType: 'dic', + params: { itemId: '1990669393069129729' }, + labelField: 'name', + valueField: 'value', + apiConfig: { + path: 'CodeGeneration/selection', + method: 'GET', + apiId: '93d735dcb7364a0f8102188ec4d77ac7', + }, + dicOptions: [], + required: false, + rules: [], + events: {}, + isShow: true, + itemId: '1990669393069129729', + style: { width: '100%' }, + }, + }, + { + key: '06458915e7e04b45bb7a1444ccff56a3', + field: 'content', + label: '内容摘要', + type: 'textarea', + component: 'InputTextArea', + colProps: { span: 24 }, + defaultValue: '', + componentProps: { + width: '100%', + span: '', + defaultValue: '', + labelWidthMode: 'fix', + labelFixWidth: 120, + responsive: false, + respNewRow: true, + placeholder: '请输入内容摘要', + maxlength: null, + rows: 2, + autoSize: false, + showCount: false, + disabled: false, + showLabel: true, + allowClear: false, + required: false, + isShow: true, + rules: [], + events: {}, + style: { width: '100%' }, + }, + }, + ], + showActionButtonGroup: false, + buttonLocation: 'center', + actionColOptions: { span: 24 }, + showResetButton: false, + showSubmitButton: false, + hiddenComponent: [], +}; \ No newline at end of file diff --git a/src/views/approve/Appro/components/createForm.vue b/src/views/approve/Appro/components/createForm.vue new file mode 100644 index 0000000..58b8f90 --- /dev/null +++ b/src/views/approve/Appro/components/createForm.vue @@ -0,0 +1,328 @@ + + + + + diff --git a/src/views/approve/Appro/components/workflowPermission.ts b/src/views/approve/Appro/components/workflowPermission.ts new file mode 100644 index 0000000..494a27b --- /dev/null +++ b/src/views/approve/Appro/components/workflowPermission.ts @@ -0,0 +1,152 @@ +export const permissionList = [ + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '编号', + fieldId: 'code', + isSubTable: false, + showChildren: true, + type: 'input', + key: '7ab1b5af10724b47bfe63e811a7049be', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '标题', + fieldId: 'title', + isSubTable: false, + showChildren: true, + type: 'input', + key: '2d7032de7bd5495c91ff647ccd2188d0', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '签报类型', + fieldId: 'typeCode', + isSubTable: false, + showChildren: true, + type: 'select', + key: '7a1f49fb11704d6ca87d451696cfb34f', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '密级', + fieldId: 'securityCode', + isSubTable: false, + showChildren: true, + type: 'select', + key: 'ff3e18c6e87e4f4bba30323f964c1a2e', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '缓级', + fieldId: 'urgencyCode', + isSubTable: false, + showChildren: true, + type: 'select', + key: 'a9b3f7e8da73450f875b97e095e0f2fc', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '拟稿人', + fieldId: 'empId', + isSubTable: false, + showChildren: true, + type: 'input', + key: '1f8a833aa4d1438eab9db90ef043f9ff', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '拟稿人所属部门', + fieldId: 'bDeptId', + isSubTable: false, + showChildren: true, + type: 'input', + key: '1c796840a6f34d9bbad5544a95b9efbf', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '拟稿日期', + fieldId: 'dateAppro', + isSubTable: false, + showChildren: true, + type: 'select', + key: '3d7159660c3443f4ace6a1e7d438701b', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '审批状态', + fieldId: 'approCode', + isSubTable: false, + showChildren: true, + type: 'select', + key: '9de6fc02d0b5430fb8c8dbc6ff758809', + children: [], + }, + { + required: true, + view: true, + edit: true, + disabled: false, + isSaveTable: false, + tableName: '', + fieldName: '内容摘要', + fieldId: 'content', + isSubTable: false, + showChildren: true, + type: 'textarea', + key: '06458915e7e04b45bb7a1444ccff56a3', + children: [], + }, +]; \ No newline at end of file diff --git a/src/views/approve/Appro/index.vue b/src/views/approve/Appro/index.vue new file mode 100644 index 0000000..17297ee --- /dev/null +++ b/src/views/approve/Appro/index.vue @@ -0,0 +1,405 @@ + + + \ No newline at end of file diff --git a/src/views/sales/ScoreCustomer/components/createForm.vue b/src/views/sales/ScoreCustomer/components/createForm.vue index cadd39c..58b8f90 100644 --- a/src/views/sales/ScoreCustomer/components/createForm.vue +++ b/src/views/sales/ScoreCustomer/components/createForm.vue @@ -142,7 +142,7 @@ ]); const dataList= ref([]); const dataFile = ref([]); - let optionSelect= reactive({ + let optionSelect= reactive({ gsIdList: [], approCodeList: [], }); @@ -249,7 +249,7 @@ v.gsiId = v.id }) } - }) + } } const numChagne = (type, record, index) => { record.aTime = dayjs(new Date()).format('YYYY-MM-DD HH:mm:ss') diff --git a/src/views/sales/ScoreCustomer/index.vue b/src/views/sales/ScoreCustomer/index.vue index 6862534..8a42c98 100644 --- a/src/views/sales/ScoreCustomer/index.vue +++ b/src/views/sales/ScoreCustomer/index.vue @@ -125,7 +125,7 @@ showResetButton: true, }, beforeFetch: (params) => { - return { ...params, FormId: formIdComputedRef.value, PK: 'id' }; + return { ...params, FormId: formIdComputedRef.value, PK: 'id',page:params.limit }; }, afterFetch: (res) => { clearSelectedRowKeys() diff --git a/src/views/supplier/ScoreSupplier/index.vue b/src/views/supplier/ScoreSupplier/index.vue index 3406e5e..0cb3de6 100644 --- a/src/views/supplier/ScoreSupplier/index.vue +++ b/src/views/supplier/ScoreSupplier/index.vue @@ -125,7 +125,7 @@ showResetButton: true, }, beforeFetch: (params) => { - return { ...params, FormId: formIdComputedRef.value, PK: 'id' }; + return { ...params, FormId: formIdComputedRef.value, PK: 'id',page:params.limit }; }, afterFetch: (res) => { clearSelectedRowKeys()