调整文件路径

main
yangyuanshuai 9 months ago
parent 09a4a9b1d8
commit 1b9cba9de8

@ -3,7 +3,7 @@ import type { TableData } from './types';
/** 获取表格数据 */
export const getRepVariableManagementListApi = (data: any) => {
return request.postJson({ url: '/dataset/spi/dataset/RepVariableManagement/RepVariableManagementQueryPage', data });
return request.postJson({ url: '/reporting/spi/reporting/RepVariableManagement/RepVariableManagementQueryPage', data });
};
/** 批量删除 */
@ -14,7 +14,7 @@ export const delRepVariableManagementListApi = (list: string[] | number[]): Prom
};
});
return request.postJson({
url: '/dataset/spi/dataset/RepVariableManagement/RepVariableManagementBatchDelete',
url: '/reporting/spi/reporting/RepVariableManagement/RepVariableManagementBatchDelete',
data: {
list: _list,
},
@ -23,28 +23,28 @@ export const delRepVariableManagementListApi = (list: string[] | number[]): Prom
/** 删除 */
export const delRepVariableManagementApi = (id?: string): Promise<IResponse> => {
return request.postJson({ url: '/dataset/spi/dataset/RepVariableManagement/RepVariableManagementDelete', data: { id } });
return request.postJson({ url: '/reporting/spi/reporting/RepVariableManagement/RepVariableManagementDelete', data: { id } });
};
/** 保存 */
export const saveRepVariableManagementApi = (data: Partial<TableData>): Promise<IResponse> => {
return request.postJson({ url: '/dataset/spi/dataset/RepVariableManagement/RepVariableManagementSave', data });
return request.postJson({ url: '/reporting/spi/reporting/RepVariableManagement/RepVariableManagementSave', data });
};
/** 查询单条数据 */
export const queryRepVariableManagementApi = (id?: string): Promise<IResponse> => {
return request.postJson({ url: '/dataset/spi/dataset/RepVariableManagement/RepVariableManagementQueryOne', data: { id } });
return request.postJson({ url: '/reporting/spi/reporting/RepVariableManagement/RepVariableManagementQueryOne', data: { id } });
};
/** 同步导入 */
export const importExcelApiUrl = '/dataset/sui/dataset/RepVariableManagement/RepVariableManagementImportExcel';
export const importExcelApiUrl = '/reporting/sui/reporting/RepVariableManagement/RepVariableManagementImportExcel';
/** 异步导入 */
export const importExcelAsyncApiUrl = '/dataset/sui/dataset/RepVariableManagement/RepVariableManagementImportAsyncExcel';
export const importExcelAsyncApiUrl = '/reporting/sui/reporting/RepVariableManagement/RepVariableManagementImportAsyncExcel';
/** 导出 */
export const exportExcelApi = (params: any) => {
return request.doExport({ url: '/dataset/sdi/dataset/RepVariableManagement/RepVariableManagementExportXls', params });
return request.doExport({ url: '/reporting/sdi/reporting/RepVariableManagement/RepVariableManagementExportXls', params });
};
/** 获取某个字典 */

@ -1835,7 +1835,7 @@ export const asyncRouterMap: AppRouteRecordRaw[] = [
},
{
path: 'repVariableManagement',
component: () => import('@/views/dataset/RepVariableManagement/RepVariableManagement.vue'),
component: () => import('@/views/reporting/RepVariableManagement/RepVariableManagement.vue'),
name: 'repVariableManagement',
menuId: 'repVariableManagement',
meta: {

@ -21,7 +21,7 @@ import Write from './components/Write.vue'
import { Dialog } from '@/components/Dialog'
import { getWidth, transfDictList } from '@/utils';
import Detail from './components/Detail.vue'
import { REPORTING_TATUS_LIST } from './constants'
import { REPORTING_STATUS_LIST } from './constants'
const { t } = useI18n()
@ -97,7 +97,7 @@ const tableColumns = reactive<TableColumn[]>([
field: 'tStatus',
label: '状态',
formatter:(row:Recordable,_:TableColumn) =>{
const state=REPORTING_TATUS_LIST.find((item)=>item.value===row.tStatus)
const state=REPORTING_STATUS_LIST.find((item)=>item.value===row.tStatus)
if(state&&state.value =='1'){
return <ElTag type="primary">{state.label}</ElTag>
}

@ -4,6 +4,9 @@ import { useForm } from '@/hooks/web/useForm'
import { PropType, reactive, watch } from 'vue'
import { useValidator } from '@/hooks/web/useValidator'
import { ElButton, ElMessage, ElMessageBox } from 'element-plus';
import { getCategory } from '@/api/reporting/RepTemplate/RepTemplate';
import { transfDictList } from '@/utils';
import { REPORTING_STATUS_LIST } from '../constants';
const { required } = useValidator()
@ -33,9 +36,11 @@ const formSchema = reactive<FormSchema[]>([
field: 'tCategory',
label: '报告分类',
component: 'Select',
componentProps: {
},
optionApi: async () => {
const res = await getCategory({ paramName: 'reportingType_param', systemCode: 'ordb' });
return transfDictList(res.body.result);
},
value: '1'
},
{
field: 'createUser',
@ -58,8 +63,9 @@ const formSchema = reactive<FormSchema[]>([
label: '报告状态',
component: 'Select',
componentProps: {
options:REPORTING_STATUS_LIST
},
value:'1'
},
{
field: 'tDescription',

@ -6,8 +6,8 @@ import {
delRepVariableManagementListApi,
delRepVariableManagementApi,
queryRepVariableManagementApi,
} from '@/api/dataset/RepVariableManagement'
import { TableData } from '@/api/dataset/RepVariableManagement/RepVariableManagement/types'
} from '@/api/reporting/RepVariableManagement'
import { TableData } from '@/api/reporting/RepVariableManagement/types'
import { useTable } from '@/hooks/web/useTable'
import { useI18n } from '@/hooks/web/useI18n'
import { Table, TableColumn } from '@/components/Table'

@ -1,6 +1,6 @@
<script setup lang="tsx">
import { PropType, ref } from 'vue'
import { TableData } from '@/api/dataset/RepVariableManagement/types'
import { TableData } from '@/api/reporting/RepVariableManagement/types'
import { Descriptions, DescriptionsSchema } from '@/components/Descriptions'
const detailSchema = ref<DescriptionsSchema[]>([

@ -62,9 +62,13 @@ const formSchema = reactive<FormSchema[]>([
field: 'indexRule',
label: '指标规则',
component: 'Input',
componentProps: {
colProps: {
span: 24
},
componentProps: {
type: 'textarea',
rows:4
}
}
])
Loading…
Cancel
Save