Prechádzať zdrojové kódy

Merge branch 'master' of http://221.182.8.141:11666/sujunlin/xld-gis-admin

XiaXxxxxx 1 rok pred
rodič
commit
d105c7d9fd

+ 2 - 2
.env.development

@@ -11,10 +11,10 @@ VITE_GLOB_PUBLIC_PATH = /
 # VITE_PROXY = [["/api","http://192.168.2.225/api"]]
 
 # 线上演示环境
-# VITE_PROXY = [["/api","http://117.174.10.73:19200"],["/agent","http://117.174.10.73:31895"],["/iserver","http://221.182.8.141:15000/iserver"],["/onlineIde","http://106.12.170.138:4001/examples"],["/tfDemo","http://106.12.170.138:4001/demo"],["/mapTools","http://106.12.170.138:10090"]]
+VITE_PROXY = [["/api","http://117.174.10.73:19200"],["/agent","http://117.174.10.73:31895"],["/iserver","http://221.182.8.141:15000/iserver"],["/onlineIde","http://106.12.170.138:4001/examples"],["/tfDemo","http://106.12.170.138:4001/demo"],["/mapTools","http://106.12.170.138:10090"]]
 # VITE_PROXY = [["/api","http://192.168.49.163:20043"],["/agent","http://192.168.49.163:20043"],["/iserver","http://221.182.8.141:15000/iserver"],["/onlineIde","http://106.12.170.138:4001/examples"],["/tfDemo","http://106.12.170.138:4001/demo"],["/mapTools","http://106.12.170.138:10090"]]
 # VITE_PROXY = [["/api","http://127.0.0.1:20043"],["/agent","http://127.0.0.1:20043"],["/iserver","http://221.182.8.141:15000/iserver"],["/onlineIde","http://106.12.170.138:4001/examples"],["/tfDemo","http://106.12.170.138:4001/demo"],["/mapTools","http://106.12.170.138:10090"]]
-VITE_PROXY = [["/api","http://192.168.49.163:20043"],["/agent","http://192.168.49.163:20043"],["/iserver","http://221.182.8.141:15000/iserver"],["/onlineIde","http://106.12.170.138:4001/examples"],["/tfDemo","http://106.12.170.138:4001/demo"],["/mapTools","http://106.12.170.138:10090"]]
+# VITE_PROXY = [["/api","http://192.168.49.163:20043"],["/agent","http://192.168.49.163:20043"],["/iserver","http://221.182.8.141:15000/iserver"],["/onlineIde","http://106.12.170.138:4001/examples"],["/tfDemo","http://106.12.170.138:4001/demo"],["/mapTools","http://106.12.170.138:10090"]]
 # VITE_PROXY = [["/api","http://127.0.0.1:8008"],["/agent","http://127.0.0.1:8008"],["/iserver","http://221.182.8.141:15000/iserver"],["/onlineIde","http://106.12.170.138:4001/examples"],["/tfDemo","http://106.12.170.138:4001/demo"],["/mapTools","http://106.12.170.138:10090"]]
 # VITE_PROXY = [["/api","http://127.0.0.1:8008"],["/agent","http://127.0.0.1:8008"],["/iserver","http://221.182.8.141:15000/iserver"],["/onlineIde","http://106.12.170.138:4001/examples"],["/tfDemo","http://106.12.170.138:4001/demo"],["/mapTools","http://106.12.170.138:10090"]]
 # VITE_PROXY = [["/api","http://192.168.119.143:9200"],["/agent","http://192.168.119.143:31895"],["/iserver","http://221.182.8.141:15000/iserver"],["/onlineIde","http://106.12.170.138:4001/examples"],["/tfDemo","http://106.12.170.138:4001/demo"]]                                                            

+ 59 - 0
src/api/resource/proxy.ts

@@ -0,0 +1,59 @@
+/*
+ * @Author: tengmingxue 1473375109@qq.com
+ * @Date: 2023-08-15 11:20:48
+ * @LastEditors: tengmingxue 1473375109@qq.com
+ * @LastEditTime: 2023-08-21 17:19:02
+ * @FilePath: \xld-gis-admin\src\api\resource\scene.ts
+ * @Description: 场景资源接口
+ */
+import { defHttp } from '/@/utils/http/axios';
+enum Api {
+    getMapService = '/base-center/SupermapProxy/getMapService',
+    proxyDel = '/base-center/SupermapProxy/del',
+    proxySave = '/base-center/SupermapProxy/edit',
+}
+const interfaceType = { apiUrl: true };
+
+/**
+ * @description:代理资源列表
+ */
+export function getProxyList(params) {
+    params.page = params.page;
+    params.rows = params.pageSize;
+    console.log("代理中心数据:", params);
+    return new Promise<void>((resolve, reject) => {
+        defHttp.post({ url: Api.getMapService, params, ...interfaceType })
+            .then((r) => {
+                if (r.resp_code == 0) {
+                    console.log("代理中心数据:", r.datas);
+                    r.datas[params.serviceType].items = r.datas[params.serviceType].pageData
+                    resolve(r.datas[params.serviceType]);
+                }
+            })
+    })
+}
+
+
+/**
+ * @description:删除代理中心
+ */
+export function proxyDel(params) {
+    return new Promise<void>((resolve, reject) => {
+        defHttp.post({ url: Api.proxyDel, params: { mapServerProxy: [params] }, ...interfaceType })
+            .then((r) => {
+                if (r.resp_code == 0) {
+                    resolve(r);
+                }
+            }).catch((r) => {
+                reject(false);
+            })
+    })
+}
+
+/**
+ * @description:保存修改代理中心
+ */
+export function proxySave(params) {
+    return defHttp.post({ url: Api.proxySave, params: { mapServerProxy: [params] }, ...interfaceType })
+}
+

+ 0 - 143
src/views/resource/proxy/check.vue

@@ -1,143 +0,0 @@
-<template>
-  <BasicModal width="600px" v-bind="$attrs" @register="registerModal" :title="getTitle" @ok="handleSubmit"
-    :useWrapper="true" :minHeight="200">
-    <div style="height: 50vh">
-      <BasicForm @register="registerForm">
-        <template #descinfo>
-          <div class="basic-info-title">描述信息</div>
-        </template>
-      </BasicForm>
-    </div>
-  </BasicModal>
-</template>
-<script lang="ts">
-import { defineComponent, ref, computed, unref, onMounted } from 'vue';
-import { BasicModal, useModalInner } from '/@/components/Modal';
-import { BasicForm, useForm } from '/@/components/Form/index';
-import { accountFormSchema } from './map.data.ts';
-import { filterRoleList } from '/@/api/system/system';
-import { useMessage } from '/@/hooks/web/useMessage';
-import { TOption } from '/@/views/rule/linkedge/config/config.data';
-import { PlusOutlined } from '@ant-design/icons-vue';
-import { subminExamineResult } from '/@/api/resource/examine';
-import { session } from '/@/utils/Memory.js';
-
-export default defineComponent({
-  name: 'AccountModal',
-  components: {
-    BasicModal,
-    BasicForm,
-    PlusOutlined,
-  },
-  emits: ['success', 'register'],
-  setup(_, { emit }) {
-    const tenantLogo = ref('');
-    const loading = ref(false);
-    const roleOptions = ref<TOption[]>([]);
-    const isUpdate = ref(true);
-    const bussid = ref('');
-    const userinfo = session.getItem('userInfo');
-    const getRoleList = async () => {
-      const res = await filterRoleList();
-      console.log(res);
-      roleOptions.value = res.map((m) => {
-        return {
-          label: m.name,
-          value: m.id,
-        };
-      });
-    };
-    onMounted(async () => {
-      //await getRoleList();   //这个会导致查询失败
-    });
-
-    const [registerForm, { setFieldsValue, resetFields, validate }] = useForm({
-      labelWidth: 100,
-      schemas: accountFormSchema,
-      showActionButtonGroup: false,
-      actionColOptions: {
-        span: 18,
-      },
-    });
-
-    const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => {
-      await resetFields();
-      setModalProps({ confirmLoading: false });
-      isUpdate.value = !!data?.isUpdate;
-      if (unref(isUpdate)) {
-        bussid.value = data.record.BUSSID;
-        setFieldsValue(data.record);
-      }
-    });
-    const getTitle = '审核';
-    async function handleSubmit() {
-      setModalProps({ confirmLoading: true });
-      try {
-        const { createMessage } = useMessage();
-        const values = await validate(); //validate(['parentId']);
-        console.log('userinfo', userinfo)
-        const params = {
-          bussInfoId: bussid.value,    //业务id
-          ispass: values.ispass,       //是否通过
-          opinion: values.opinion,      //意见
-        }
-        const res = await subminExamineResult(params) as any
-        if (res) {
-          console.log(res);
-          closeModal();
-          emit('success');
-          var type = res.resp_code == 0 ? 'success' : 'error';
-          createMessage[type](res.resp_msg);
-        } else {
-          closeModal();
-          emit('success');
-          createMessage.error('审核失败!');
-        }
-      } finally {
-        setTimeout(() => {
-          setModalProps({ confirmLoading: false });
-        }, 300);
-      }
-    }
-
-    return {
-      registerModal,
-      registerForm,
-      handleSubmit,
-      getTitle,
-      roleOptions,
-      tenantLogo,
-      loading,
-    };
-  },
-});
-</script>
-<style scoped lang="less">
-:deep(.vben-basic-tree) {
-  width: 100% !important;
-}
-
-:deep(.is-unflod) {
-  display: none !important;
-}
-
-:deep(.is-flod) {
-  display: none !important;
-}
-
-.basic-info-title {
-  height: 19px;
-  line-height: 18px;
-  padding-left: 6px;
-  margin-left: 20px;
-  border-left: 3px solid #0671dd;
-  font-family: Source Han Sans CN;
-  font-size: 16px;
-  font-weight: 350;
-  letter-spacing: 0px;
-}
-
-:deep(.ant-calendar-picker) {
-  width: 100% !important;
-}
-</style>

+ 80 - 141
src/views/resource/proxy/index.vue

@@ -11,75 +11,37 @@
       <BasicTable @register="registerTable" @fetch-success="onFetchSuccess">
         <template #toolbar>
           <Authority>
-            <a-button type="primary" @click="batchExamine" :disabled="hasBatchDelete">指定IP设置</a-button>
+            <a-button type="primary" @click="showModal">指定IP设置</a-button>
           </Authority>
         </template>
 
         <template #action="{ record }">
           <TableAction :actions="[
             {
-              label: '浏览',
-              ifShow: current == 'DR' ? false : true,
-              onClick: handleVliew.bind(null, record),
+              label: '指定IP设置',
+              onClick: showModal.bind(null, record),
             },
             {
-              label: '查看',
-              onClick: handleDetail.bind(null, record),
-            },
-            {
-              label: '审核',
-              disabled: statusShow == 1 ? false : true,
-              color: 'warning',
-              onClick: handleEdit.bind(null, record),
+              label: '删除',
+              onClick: handleDel.bind(null, record),
             },
           ]" />
         </template>
-        <template #pdate="{ record }">
-          <a-tag :color="'red'">
-            {{ record.publishdate ? moment(record.publishdate).format('YYYY-MM-DD HH:mm:ss') : '' }}
-          </a-tag>
-        </template>
-        <template #FLOWNAME="{ record }">
-          {{ record.FLOWNAME.replace('上传', '') }}
-        </template>
-        <template #status="{ record }">
-          <a-tag :style="`color:${record.status === 3 || record.status === 3 ? 'red' : ''};`">
-            {{
-              !record.status ? '待审核' : record.status == 2 ? '审核不通过' : record.status ? '审核通过' : ''
-            }}
-          </a-tag>
-        </template>
-        <template #BLZT="{ record }">
-          <a-tag :style="`color:${record.status === 3 || record.status === 3 ? 'red' : ''};`">
-            {{
-              record.BLZT
-            }}
-          </a-tag>
-        </template>
       </BasicTable>
-      <check v-if="ischect" @register="registerModal" @success="handleSuccess" />
-      <map-resource-upload v-if="!ischect && current === 'MR'" @register="registerModal"
-        @success="handleSuccess"></map-resource-upload>
-      <scene-resource-upload v-if="!ischect && current === 'ER'" @register="registerModal"
-        @success="handleSuccess"></scene-resource-upload>
-      <file-resource-upload v-if="!ischect && current === 'DR'" @register="registerModal"
-        @success="handleSuccess"></file-resource-upload>
-      <ass-resource-upload v-if="!ischect && current === 'SR'" @register="registerModal"
-        @success="handleSuccess"></ass-resource-upload>
     </div>
+    <a-modal v-model:visible="visible" :label-col="labelCol" :wrapper-col="wrapperCol" title="代理IP地址设置" @ok="handleOk">
+      <div class="wapper">
+        <p><span>IP地址:&nbsp;</span><a-input v-model:value="formState.ipaddress" /></p>
+        <p><span>服务ID:&nbsp;</span><a-input v-model:value="formState.serviceid" /></p>
+      </div>
+      <span style="clear: both;"></span>
+    </a-modal>
   </div>
 </template>
 <script lang="ts">
 import { defineComponent, nextTick, ref, watch } from 'vue';
 import { BasicTable, useTable, TableAction } from '/@/components/Table';
 import { delRole, setRoleStatus } from '/@/api/system/system';
-import MapResourceUpload from '/@/views/dataAdmin/dataAdmin/mapUpload/MapSourceModal.vue';
-import FileResourceUpload from '/@/views/dataAdmin/dataAdmin/fileResourceUpload/AddMethod.vue';
-import SceneResourceUpload from '/@/views/dataAdmin/dataAdmin/sceneResourceUpload/AddMethod.vue';
-import AssResourceUpload from '/@/views/dataAdmin/assembly/MapSourceModal.vue';
-import check from './check.vue';
-import { getFileUrl } from '/@/api/resource/files';
-import { session } from '/@/utils/Memory.js';
 import {
   columns,
   searchFormSchemaMR,
@@ -90,11 +52,9 @@ import {
 import { RoleEnum } from '/@/enums/roleEnum';
 import { Authority } from '/@/components/Authority';
 import { useBatchDelete } from '/@/hooks/web/useBatchDelete';
-import { useMessage } from '/@/hooks/web/useMessage';
-import { Switch, Popconfirm } from 'ant-design-vue';
-import { queryResourceById } from '/@/api/resource/map';
+import { Switch, Popconfirm, message } from 'ant-design-vue';
 import Moment from 'moment';
-import { updateExamine } from '/@/api/resource/updateExamine';
+import { getProxyList, proxySave, proxyDel } from '/@/api/resource/proxy';
 import { useModal } from '/@/components/Modal';
 import { useRouter } from 'vue-router';
 import { useAppStore } from '/@/store/modules/app';
@@ -103,15 +63,10 @@ export default defineComponent({
   name: 'RoleManagement',
   components: {
     BasicTable,
-    check,
     TableAction,
     Authority,
     Switch,
-    Popconfirm,
-    MapResourceUpload,
-    FileResourceUpload,
-    AssResourceUpload,
-    SceneResourceUpload,
+    Popconfirm
   },
   setup() {
     const appStore = useAppStore();
@@ -124,7 +79,7 @@ export default defineComponent({
       api: (param) => {
         statusShow.value = param.checkStatus;
         const data = Object.assign(param, { serviceType: current.value });
-        return updateExamine(data);
+        return getProxyList(data);
       }, //求接口
       //dataSource: dataSources, //表格的数据
       columns,
@@ -249,21 +204,16 @@ export default defineComponent({
     /**
      * 详情
      */
-    async function handleDetail(record: Recordable) {
-      ischect.value = false;
-      const res = (await queryResourceById(record?.SERVICEID)) as any;
-      if (res) {
-        if (res.dataVersionConf) {
-          res.metadata.isnew = res.servicebase.isnew = res.dataVersionConf.active == 'Y' ? "1" : "0";
+    async function handleDel(record: Recordable) {
+      console.log(record);
+      proxyDel(record).then((r) => {
+        if (r) {
+          message.success(r.resp_msg);
+          reload();
+        } else {
+          message.error('删除代理失败!');
         }
-        const result = Object.assign(res.metadata, res.servicebase, res.dataVersionConf || {});
-        if (record.bussid) res.bussid = record.BUSSID;
-        openModal(true, {
-          record: result,
-          isUpdate: true,
-          isView: true,
-        });
-      }
+      })
     }
 
     /**
@@ -279,45 +229,7 @@ export default defineComponent({
         appStore.setRouterPushAuditFlag(false)
       }, 100);
     }
-    /**
-     * 浏览
-     */
-    async function handleVliew(record: Recordable) {
-      //场景资源
-      if (current.value === 'ER') {
-        window.open(`http://192.168.119.143:8080/onemapV5.0/sceneview.html?${record.SERVICEID}`, 'target', '');
-      }
-      //地图资源
-      if (current.value === 'MR') {
-        window.open(`http://192.168.119.143:8080/onemapV5.0/mapview.html?${record.SERVICEID}`, 'target', '');
-      }
-      //地图资源
-      if (current.value === 'SR') {
-        var res = (await queryResourceById(record?.SERVICEID)) as any;
-        res = Object.assign(res.metadata, res.servicebase, res.dataVersionConf || {});
-        if (res) {
-          window.open(`./mapview.html?onlineIde_${res.servicealiasname}`, 'target', '');
-        }
-      }
-      //文件资源
-      if (current.value === 'DR') {
-        const obj = {
-          id: record['fileid'],
-          userid: record['userid'],
-          parentId: session.getItem('sysFild').dirId,
-        };
-        const res = (await getFileUrl(obj)) as any;
-        if (res) {
-          const fileName = res.fileName;
-          console.log('下载文件', fileName);
-          const url = res.url;
-          window.open(url);
-        }
-      }
-      if (current.value === 'DR') {
-        console.log('组件');
-      }
-    }
+
 
     function handleSuccess() {
       openModal(false, {
@@ -326,34 +238,44 @@ export default defineComponent({
       reload();
     }
 
-    const statusChange = async (checked, record) => {
-      setProps({
-        loading: true,
-      });
-      setSelectedRowKeys([]);
-      resetSelectedRowKeys();
-      const newStatus = checked ? 1 : 0;
-      const { createMessage } = useMessage();
-      try {
-        await setRoleStatus(record.id, newStatus);
-        if (newStatus) {
-          createMessage.success(`启用成功`);
-        } else {
-          createMessage.success('禁用成功');
-        }
-      } finally {
-        setProps({
-          loading: false,
-        });
-        reload();
+    const visible = ref(false);
+
+    const disabled = ref(true);
+    const showModal = (e) => {
+      visible.value = true;
+      disabled.value = e ? true : false;
+      if (e) {
+        formState.value.serviceid = e.SERVICEID;
       }
     };
-    const batchExamine = () => {
-      console.log('审核数据', getSelectRows());
+
+    function handleOk() {
+      proxySave(formState.value).then((r) => {
+        if (r.resp_code == 0) {
+          visible.value = false;
+          formState.value.ipaddress = '';
+          formState.value.serviceid = '';
+          message.success('保存成功');
+          reload();
+        } else {
+          message.error(r.resp_msg);
+        }
+      })
     };
+    const formState = ref({
+      ipaddress: "",
+      serviceid: ""
+    });
 
 
     return {
+      disabled,
+      labelCol: { span: 2 },
+      wrapperCol: { span: 6 },
+      formState,
+      visible,
+      handleOk,
+      showModal,
       statusShow,
       current,
       moment,
@@ -361,15 +283,12 @@ export default defineComponent({
       sourceTypes,
       registerTable,
       registerModal,
-      handleVliew,
-      handleDetail,
+      handleDel,
       handleEdit,
       handleSuccess,
       RoleEnum,
       hasBatchDelete,
       handleDeleteOrBatchDelete,
-      statusChange,
-      batchExamine,
       selectHandle,
       onFetchSuccess
     };
@@ -377,6 +296,27 @@ export default defineComponent({
 });
 </script>
 <style scoped lang="less">
+.wapper {
+  padding: 20px;
+  height: 130px;
+}
+
+.wapper p {
+  margin-bottom: 10px;
+  height: 43px;
+}
+
+.wapper p span {
+  float: left;
+  height: 32px;
+  line-height: 32px;
+}
+
+.wapper p input {
+  float: left;
+  width: 430px;
+}
+
 .examine-container {
   display: flex;
   height: 100%;
@@ -404,7 +344,6 @@ export default defineComponent({
       border-radius: 2px;
       cursor: pointer;
     }
-
     .active {
       background: #0671dd;
       color: #fff;

+ 24 - 243
src/views/resource/proxy/map.data.ts

@@ -1,76 +1,6 @@
 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 },
-};
 
 
 
@@ -82,21 +12,11 @@ export const searchFormSchemaMR: FormSchema[] = [
     field: 'keyStr',
     label: '关键字',
     component: 'Input',
-    colProps: { span: 5 },
+    colProps: { span: 7 },
     componentProps: {
       maxLength: 255,
     },
-  },
-  {
-    field: 'checkStatus',
-    label: '审核状态',
-    component: 'Select',
-    defaultValue: 1,
-    componentProps: {
-      options: checkStatus,
-    },
-    colProps: { span: 5 },
-  },
+  }
 ];
 
 /**
@@ -107,21 +27,11 @@ export const searchFormSchemaER: FormSchema[] = [
     field: 'keyStr',
     label: '关键字',
     component: 'Input',
-    colProps: { span: 5 },
+    colProps: { span: 7 },
     componentProps: {
       maxLength: 255,
     },
-  },
-  {
-    field: 'checkStatus',
-    label: '审核状态',
-    component: 'Select',
-    defaultValue: 1,
-    componentProps: {
-      options: checkStatus,
-    },
-    colProps: { span: 5 },
-  },
+  }
 ];
 
 /**
@@ -132,21 +42,11 @@ export const searchFormSchemaDR: FormSchema[] = [
     field: 'keyStr',
     label: '关键字',
     component: 'Input',
-    colProps: { span: 5 },
+    colProps: { span: 7 },
     componentProps: {
       maxLength: 255,
     },
-  },
-  {
-    field: 'checkStatus',
-    label: '审核状态',
-    component: 'Select',
-    defaultValue: 1,
-    componentProps: {
-      options: checkStatus,
-    },
-    colProps: { span: 5 },
-  },
+  }
 ];
 
 /**
@@ -157,21 +57,11 @@ export const searchFormSchemaSR: FormSchema[] = [
     field: 'keyStr',
     label: '关键字',
     component: 'Input',
-    colProps: { span: 5 },
+    colProps: { span: 7 },
     componentProps: {
       maxLength: 255,
     },
   },
-  {
-    field: 'checkStatus',
-    label: '审核状态',
-    component: 'Select',
-    defaultValue: 1,
-    componentProps: {
-      options: checkStatus,
-    },
-    colProps: { span: 5 },
-  },
 ];
 
 
@@ -181,9 +71,14 @@ export const searchFormSchemaSR: FormSchema[] = [
 export const columns: BasicColumn[] = [
   {
     title: '资源类型',
-    dataIndex: 'FLOWNAME',
-    width: 120,
-    slots: { customRender: 'FLOWNAME' },
+    dataIndex: 'SERVICEID',
+    width: 90,
+    // slots: { customRender: 'SERVICEID' },
+    sorter: true,
+    customRender: ({ record }) => {
+      var s = record.SERVICEID
+      return s.indexOf('MR') > -1 ? '地图' : s.indexOf('ER') > -1 ? '场景' : s.indexOf('DR') > -1 ? '文件' : '组件';
+    },
   },
   {
     title: '资源名称',
@@ -191,134 +86,20 @@ export const columns: BasicColumn[] = [
     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: 'PUBLICCURL',
+    width: 160,
   },
   {
-    title: '审核意见',
-    dataIndex: 'CHECKINFO',
-    align: 'center',
-    width: 80,
+    title: '代理地址',
+    dataIndex: 'MAPINGURL',
+    width: 160,
   },
-  // {
-  //   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: '请输入角色名称',
-    },
+    title: '限制制定IP',
+    dataIndex: 'IPS',
+    width: 120,
   },
-  {
-    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();
-              }
-            });
-          }
-        }];
-      }
-    },
-  },
-]