|
|
@@ -1,53 +1,57 @@
|
|
|
import { BasicColumn } from '/@/components/Table';
|
|
|
import { FormSchema } from '/@/components/Table';
|
|
|
import { RoleEnum } from '/@/enums/roleEnum';
|
|
|
-import { getServiceTypes, queryServiceTags, queryDicsByName, queryCoors } from '/@/api/resource/map';
|
|
|
+import {
|
|
|
+ getServiceTypes,
|
|
|
+ queryServiceTags,
|
|
|
+ queryDicsByName,
|
|
|
+ queryCoors,
|
|
|
+} from '/@/api/resource/map';
|
|
|
import moment from 'moment';
|
|
|
|
|
|
-const resTag = await queryServiceTags()
|
|
|
-let listTag = []
|
|
|
-resTag.map(item => {
|
|
|
+const resTag = await queryServiceTags();
|
|
|
+let listTag = [];
|
|
|
+resTag.map((item) => {
|
|
|
listTag.push({
|
|
|
label: item.name,
|
|
|
- value: item.code
|
|
|
- })
|
|
|
-})
|
|
|
+ value: item.code,
|
|
|
+ });
|
|
|
+});
|
|
|
/**
|
|
|
* 密级字典
|
|
|
-*/
|
|
|
-export const secrets = await queryDicsByName('密级')
|
|
|
+ */
|
|
|
+export const secrets = await queryDicsByName('密级');
|
|
|
/**
|
|
|
* 服务标签
|
|
|
-*/
|
|
|
+ */
|
|
|
export const serviceTags = listTag;
|
|
|
/**
|
|
|
* 坐标系列表
|
|
|
-*/
|
|
|
-export const sysCoors = await queryCoors()
|
|
|
+ */
|
|
|
+export const sysCoors = await queryCoors();
|
|
|
/**
|
|
|
* 服务类型
|
|
|
-*/
|
|
|
-export const serviceTypes = await getServiceTypes()
|
|
|
+ */
|
|
|
+export const serviceTypes = await getServiceTypes();
|
|
|
/**
|
|
|
* 责任处室
|
|
|
-*/
|
|
|
-export const respDept = await queryDicsByName('责任处室')
|
|
|
+ */
|
|
|
+export const respDept = await queryDicsByName('责任处室');
|
|
|
/**
|
|
|
* 保管单位
|
|
|
-*/
|
|
|
-export const collectDept = await queryDicsByName('保管单位')
|
|
|
+ */
|
|
|
+export const collectDept = await queryDicsByName('保管单位');
|
|
|
/**
|
|
|
* EPSG code
|
|
|
-*/
|
|
|
-export const EPSGCodes = await queryDicsByName('EPSG code')
|
|
|
-
|
|
|
+ */
|
|
|
+export const EPSGCodes = await queryDicsByName('EPSG code');
|
|
|
|
|
|
const checkStatus = [
|
|
|
{ label: '未提交', value: '未提交' },
|
|
|
{ label: '审核中', value: '审核中' },
|
|
|
{ label: '审核不通过', value: '审核不通过' },
|
|
|
{ label: '审核通过', value: '审核通过' },
|
|
|
-]
|
|
|
+];
|
|
|
export enum KeysTypeEnum {
|
|
|
DISABLED = 'disabled',
|
|
|
ENABLED = 'enabled',
|
|
|
@@ -62,7 +66,7 @@ export const RoleMenuDictEnum: Recordable<{ key: string; keyType: KeysTypeEnum }
|
|
|
|
|
|
/**
|
|
|
* 查询条件
|
|
|
-*/
|
|
|
+ */
|
|
|
export const searchFormSchema: FormSchema[] = [
|
|
|
// {
|
|
|
// field: 'resTag',
|
|
|
@@ -116,23 +120,28 @@ export const searchFormSchema: FormSchema[] = [
|
|
|
|
|
|
/**
|
|
|
* 列表显示信息
|
|
|
-*/
|
|
|
+ */
|
|
|
export const columns: BasicColumn[] = [
|
|
|
+ {
|
|
|
+ title: '序号',
|
|
|
+ slots: { customRender: 'index' },
|
|
|
+ width: 50,
|
|
|
+ },
|
|
|
{
|
|
|
title: '资源类型',
|
|
|
dataIndex: 'resInfo.SOURCE',
|
|
|
- width: 160,
|
|
|
+ width: 130,
|
|
|
},
|
|
|
{
|
|
|
title: '资源名称',
|
|
|
dataIndex: 'resInfo.SERVICENAME',
|
|
|
- width: 120,
|
|
|
+ width: 160,
|
|
|
},
|
|
|
{
|
|
|
title: '应用系统',
|
|
|
dataIndex: 'systemkey',
|
|
|
slots: { customRender: 'systemkey' },
|
|
|
- width: 160,
|
|
|
+ width: 90,
|
|
|
},
|
|
|
// {
|
|
|
// title: '申请单位',
|
|
|
@@ -154,7 +163,8 @@ export const columns: BasicColumn[] = [
|
|
|
title: '申请时间',
|
|
|
// dataIndex: 'applyCarInfo.createtime',
|
|
|
dataIndex: 'tjsqsj',
|
|
|
- width: 170
|
|
|
+ slots: { customRender: 'tjsqsj' },
|
|
|
+ width: 170,
|
|
|
},
|
|
|
{
|
|
|
title: '申请人',
|
|
|
@@ -171,13 +181,12 @@ export const columns: BasicColumn[] = [
|
|
|
title: '审核人',
|
|
|
dataIndex: 'shr',
|
|
|
slots: { customRender: 'shr' },
|
|
|
- width: 110,
|
|
|
+ width: 160,
|
|
|
},
|
|
|
{
|
|
|
title: '审核意见',
|
|
|
dataIndex: 'shyj',
|
|
|
slots: { customRender: 'shyj' },
|
|
|
- width: 110,
|
|
|
},
|
|
|
];
|
|
|
|