| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324 |
- import { BasicColumn } from '/@/components/Table';
- import { FormSchema } from '/@/components/Table';
- import { RoleEnum } from '/@/enums/roleEnum';
- import { getServiceTypes, queryServiceTags, queryDicsByName, queryCoors } from '/@/api/resource/map';
- const resTag = await queryServiceTags()
- let listTag = []
- resTag.map(item => {
- listTag.push({
- label: item.name,
- value: item.code
- })
- })
- /**
- * 密级字典
- */
- export const secrets = await queryDicsByName('密级')
- /**
- * 服务标签
- */
- export const serviceTags = listTag;
- /**
- * 坐标系列表
- */
- export const sysCoors = await queryCoors()
- /**
- * 服务类型
- */
- export const serviceTypes = await getServiceTypes()
- /**
- * 责任处室
- */
- export const respDept = await queryDicsByName('责任处室')
- /**
- * 保管单位
- */
- export const collectDept = await queryDicsByName('保管单位')
- /**
- * EPSG code
- */
- export const EPSGCodes = await queryDicsByName('EPSG code')
- const checkStatus = [
- // { label: '未提交', value: 3 },
- // { label: '审核中', value: 2 },
- // { label: '审核不通过', value: 0 },
- // { label: '被驳回', value: 4 },
- // { label: '审核通过', value: 1 },
- // { label: '全部状态', value: '7' },
- // { label: '待审核', value: 0 },
- // { label: '审核通过', value: 1 },
- // { label: '审核不通过', value: 2 },
- // { label: '在办', value: 1 },
- { label: '待办', value: 1 },
- { label: '已办结', value: 2 },
- // { label: '待审核', value: 1 },
- // { label: '已审核', value: 2 },
- ]
- export enum KeysTypeEnum {
- DISABLED = 'disabled',
- ENABLED = 'enabled',
- }
- export const RoleMenuDictEnum: Recordable<{ key: string; keyType: KeysTypeEnum }> = {
- [RoleEnum.PLATFORM_ADMIN]: { key: 'enabled_platform_admin_auth', keyType: KeysTypeEnum.ENABLED },
- [RoleEnum.SYS_ADMIN]: { key: 'enabled_sysadmin_auth', keyType: KeysTypeEnum.ENABLED },
- [RoleEnum.TENANT_ADMIN]: { key: 'disabled_tenant_auth', keyType: KeysTypeEnum.DISABLED },
- [RoleEnum.CUSTOMER_USER]: { key: 'disabled_tenant_auth', keyType: KeysTypeEnum.DISABLED },
- };
- /**
- * 查询条件
- */
- export const searchFormSchemaMR: FormSchema[] = [
- {
- field: 'keyStr',
- label: '关键字',
- component: 'Input',
- colProps: { span: 5 },
- componentProps: {
- maxLength: 255,
- },
- },
- {
- field: 'checkStatus',
- label: '审核状态',
- component: 'Select',
- defaultValue: 1,
- componentProps: {
- options: checkStatus,
- },
- colProps: { span: 5 },
- },
- ];
- /**
- * 查询条件
- */
- export const searchFormSchemaER: FormSchema[] = [
- {
- field: 'keyStr',
- label: '关键字',
- component: 'Input',
- colProps: { span: 5 },
- componentProps: {
- maxLength: 255,
- },
- },
- {
- field: 'checkStatus',
- label: '审核状态',
- component: 'Select',
- defaultValue: 1,
- componentProps: {
- options: checkStatus,
- },
- colProps: { span: 5 },
- },
- ];
- /**
- * 查询条件
- */
- export const searchFormSchemaDR: FormSchema[] = [
- {
- field: 'keyStr',
- label: '关键字',
- component: 'Input',
- colProps: { span: 5 },
- componentProps: {
- maxLength: 255,
- },
- },
- {
- field: 'checkStatus',
- label: '审核状态',
- component: 'Select',
- defaultValue: 1,
- componentProps: {
- options: checkStatus,
- },
- colProps: { span: 5 },
- },
- ];
- /**
- * 查询条件
- */
- export const searchFormSchemaSR: FormSchema[] = [
- {
- field: 'keyStr',
- label: '关键字',
- component: 'Input',
- colProps: { span: 5 },
- componentProps: {
- maxLength: 255,
- },
- },
- {
- field: 'checkStatus',
- label: '审核状态',
- component: 'Select',
- defaultValue: 1,
- componentProps: {
- options: checkStatus,
- },
- colProps: { span: 5 },
- },
- ];
- /**
- * 列表显示信息
- */
- export const columns: BasicColumn[] = [
- {
- title: '资源类型',
- dataIndex: 'FLOWNAME',
- width: 120,
- slots: { customRender: 'FLOWNAME' },
- },
- {
- title: '资源名称',
- dataIndex: 'SERVICENAME',
- width: 160,
- },
- {
- title: '申请时间',
- dataIndex: 'SQSJ',
- width: 180,
- // slots: { customRender: 'pdate' },
- },
- {
- title: '发布人',
- dataIndex: 'SQR',
- width: 80,
- },
- {
- title: '当前环节',
- dataIndex: 'NODENAME',
- width: 90,
- },
- {
- title: '当前处理人',
- dataIndex: 'USERNAME',
- width: 100,
- },
- // {
- // title: '审核状态',
- // dataIndex: 'BLZT',
- // width: 80,
- // slots: { customRender: 'BLZT' },
- // },
- {
- title: '审核结果',
- dataIndex: 'ISPASS',
- align: 'center',
- width: 80,
- slots: { customRender: 'ISPASS' },
- },
- {
- title: '审核意见',
- dataIndex: 'CHECKINFO',
- align: 'center',
- width: 80,
- },
- // {
- // title: '审核时间',
- // dataIndex: 'checkTime',
- // width: 180,
- // },
- // {
- // title: '审核意见',
- // dataIndex: 'examine',
- // width: 180,
- // },
- ];
- /**
- * 表单
- */
- export const formSchema: FormSchema[] = [
- {
- field: 'groupName',
- label: '角色名称',
- required: true,
- component: 'Input',
- componentProps: {
- maxLength: 255,
- placeholder: '请输入角色名称',
- },
- },
- {
- label: '排序',
- field: 'sort',
- component: 'Input',
- componentProps: {
- maxLength: 255,
- placeholder: '请输入排序',
- },
- }
- ];
- function getOp() {
- return new Promise<void>((resolve, reject) => {
- resolve([
- { label: "通过", value: '1' },
- { label: "不通过", value: '0' },
- ])
- })
- }
- // 新增表单配置
- export const accountFormSchema = [
- {
- field: 'ispass',
- label: "审核结果", //状态
- component: 'RadioButtonGroup',
- required: true,
- colProps: { span: 24 },
- defaultValue: '1',
- componentProps: {
- options: [
- { label: "通过", value: '1' },
- { label: "不通过", value: '0' },
- ],
- },
- },
- {
- field: 'opinion',
- label: '审核意见',
- component: 'Input',
- defaultValue: '',
- colProps: { span: 24 },
- componentProps: {
- placeholder: '请输入审核意见',
- },
- dynamicRules: ({ values }) => {
- if (values?.ispass) {
- var type = Number(values?.ispass) ? false : true
- return [{
- required: type,
- validator(_, value) {
- return new Promise((resolve, reject) => {
- if (type && !value) {
- reject('不通过意见不能为空!');
- } else {
- resolve();
- }
- });
- }
- }];
- }
- },
- },
- ]
|