Pārlūkot izejas kodu

上传缺失文件

sujunling 2 gadi atpakaļ
vecāks
revīzija
6ecfcaca00

+ 17 - 6
src/views/assembly/index.vue

@@ -5,10 +5,8 @@
         <p>组件目录</p>
       </div>
       <div class="ztree-container">
-        <p v-for="(i, k, index) in menu" :key="index" @click="scrollToSection(k, index)"
-          :class="[`${action == index ? 'action' : ''}`]">{{ k
-          }}({{
-  i.length }})</p>
+        <p v-for="(i, k, index) in assemblyType" :key="index" @click="scrollToSection(k, index)"
+          :class="[`${action == index ? 'action' : ''}`]">{{ k }}({{i && i.length}})</p>
       </div>
     </div>
     <div class="datacenter-right">
@@ -34,6 +32,15 @@ export default defineComponent({
     var menu = ref({});
     var assemblylist = ref([]);
     const action = ref(0)
+    var assemblyType = ref({
+      '地图基础功能': [],
+      '底图和模型加载': [],
+      '覆盖物': [],
+      '测量工具': [],
+      '绘制工具': [],
+      '空间分析': [],
+      '天气特效': [],
+    })
     onMounted(() => {
       list().then(res => {
         if (res && res.length) {
@@ -42,9 +49,12 @@ export default defineComponent({
             if (!menu.value[i.source] && i.source) menu.value[i.source] = [];
             if (i.source) menu.value[i.source].push(i), list.push(i);
           })
+          for (var i in assemblyType.value) {
+            assemblyType.value[i] = menu.value[i];
+          }
           // eventBus.emit('assemblylist', list)
-          console.log(menu.value)
-          eventBus.emit('assemblylist', menu.value)
+          console.log(assemblyType.value)
+          eventBus.emit('assemblylist', assemblyType.value)
         }
       })
     })
@@ -56,6 +66,7 @@ export default defineComponent({
     }
 
     return {
+      assemblyType,
       action,
       scrollToSection,
       menu,

+ 4 - 2
src/views/assembly/item/AssemblyData.vue

@@ -80,11 +80,13 @@ export default defineComponent({
     const list = ref([]);
     console.log("list", list);
     eventBus.on('assemblylist', (i) => {
+      console.log("i:", i);
       for (var j in i) {
-        i[j].map(async (k) => k.url = await getImg(k.mapingurl))
+        // i[j].map(async (k) => k.url = await getImg(k.mapingurl))
+        if (i[j]) i[j].map((k) => { k.url = `http://106.12.170.138:4001/examples/img/${k.publiccurl}` });
       }
       list.value = i
-      setTimeout(() => list.value = i, 5000)
+      // setTimeout(() => list.value = i, 5000)
     })
 
     function handleQuery(record: Recordable) {

+ 15 - 7
src/views/dataAdmin/assembly/SourceDetail.vue

@@ -29,7 +29,7 @@
               <a-textarea v-model:value="formState.description" :rows="2" />
             </a-form-item>
           </a-col>
-          <a-col :span="12" class="form-col">
+          <a-col :span="9" class="form-col">
             <a-form-item ref="servicetype" label="资源类型" name="servicetype" class="label-form-item">
               <a-select v-model:value="formState.servicetype">
                 <template v-for="(tag, index) in assemblyType" :key="index">
@@ -38,7 +38,12 @@
               </a-select>
             </a-form-item>
           </a-col>
-          <a-col :span="12" class="form-col">
+          <a-col :span="9" class="form-col">
+            <a-form-item ref="sourcetable" label="预览图名称" name="sourcetable" class="label-form-item">
+              <a-input v-model:value="formState.publiccurl" />
+            </a-form-item>
+          </a-col>
+          <a-col :span="6" class="form-col">
             <a-form-item ref="thumbnail" label="缩略图" name="thumbnail" class="label-form-item">
               <a-upload :custom-request="customUpload" v-model:file-list="fileList">
                 <a-button style="background-color: #0671dd; color: #fff; border-radius: 4px">
@@ -147,6 +152,7 @@ const props = {
 };
 interface FormState {
   servicetype: string,
+  publiccurl: string;
   servicename: string;
   mapingurl: string,
   servicealiasname: string;
@@ -173,6 +179,7 @@ export default defineComponent({
     });
     var assemblyType = ref([
       { value: '地图基础功能' },
+      { value: '底图和模型加载' },
       { value: '覆盖物' },
       { value: '测量工具' },
       { value: '绘制工具' },
@@ -184,6 +191,7 @@ export default defineComponent({
     const formState: UnwrapRef<FormState> = reactive({
       mapingurl: '',
       servicename: '',
+      publiccurl: '',
       servicealiasname: '',
       servicetype: '',
       description: '',
@@ -243,18 +251,15 @@ export default defineComponent({
           .validate()
           .then(async () => {
             const params = setSubmitForm();
-            console.log(params);
+            console.log("组件提交:", params);
             if (params) {
               if (data.isUpdate) {
                 params.servicebase.serviceid = data.detail.serviceid;
                 params.servicebase.id = data.detail.id;
                 if (!params.servicebase.mapingurl) params.servicebase.mapingurl = data.detail.mapingurl;
-
                 params.metadata.serviceid = data.detail.serviceid;
                 params.metadata.id = data.detail.id;
                 if (!params.metadata.mapingurl) params.metadata.mapingurl = data.detail.mapingurl;
-
-
                 const res = await updateService(params);
                 if (res && res?.status !== '-1') {
                   createMessage.success('修改地图资源成功!');
@@ -302,9 +307,11 @@ export default defineComponent({
           servicename: formState.servicename, //资源名
           otherService: '',
           source: formState.servicetype, //资源类型
-          mapingurl: formState.mapingurl //服务地址
+          mapingurl: formState.mapingurl, //服务地址
+          publiccurl: formState.publiccurl, //数据表
         },
         metadata: {
+          publiccurl: formState.publiccurl, //数据表
           source: formState.servicetype, //资源类型
           mapingurl: formState.mapingurl, //服务地址
           name: formState.servicename, //资源名
@@ -334,6 +341,7 @@ export default defineComponent({
     const setFormData = () => {
       formState.public = data.detail.ispublic === '1' ? true : false;
       formState.servicename = data.detail?.servicename;
+      formState.publiccurl = data.detail?.publiccurl;
       formState.publishtime = data.detail?.publishdate
         ? moment(data.detail?.publishdate).format('YYYY-MM-DD HH:mm:ss')
         : '';

+ 5 - 0
src/views/dataAdmin/assembly/map.data.ts

@@ -112,6 +112,11 @@ export const columns: BasicColumn[] = [
     dataIndex: 'servicename',
     width: 160,
   },
+  {
+    title: '预览图',
+    dataIndex: 'publiccurl',
+    width: 160,
+  },
   {
     title: '资源标签',
     dataIndex: 'typename',

+ 463 - 0
src/views/dataAdmin/dataAdmin/configProcess/fileUploadData.js

@@ -0,0 +1,463 @@
+import { serviceTags, serviceTypes, checkStatus } from '../sysDic'
+export const columns = [
+  {
+    title: '资源编号',
+    dataIndex: 'serviceid',
+    width: 200,
+  },
+  {
+    title: '资源名称',
+    dataIndex: 'servicename',
+    width: 200,
+  },
+  {
+    title: '类型',
+    dataIndex: 'typename',
+    width: 200,
+  },
+  {
+    title: '发布人',
+    dataIndex: 'publisher',
+    width: 200,
+  },
+  {
+    title: '发布时间',
+    dataIndex: 'publishdate',
+    width: 200,
+    slots: { customRender: 'pdate' },
+  },
+  {
+    title: '当前环节',
+    dataIndex: 'currhj',
+    width: 200,
+  },
+  {
+    title: '当前处理人',
+    dataIndex: 'currHandler',
+    width: 200,
+  },
+  {
+    title: '审核状态',
+    dataIndex: 'status',
+    width: 200,
+    slots: { customRender: 'status' },
+  },
+  {
+    title: '审核时间',
+    dataIndex: 'status',
+    width: 200,
+  },
+];
+
+export const searchFormSchema = [
+  {
+    field: 'resourceTags',
+    label: '资源标签',
+    component: 'Select',
+    componentProps: {
+      options: serviceTags
+      // [
+      //   { label: '无', value: 0 },
+      // ],
+    },
+    colProps: { span: 6 },
+  },
+  {
+    field: 'resourceName',
+    label: '资源名称',
+    component: 'Input',
+    colProps: { span: 6 },
+    componentProps: {
+      maxLength: 255,
+    },
+  },
+  {
+    field: 'auditStatus',
+    label: '审核状态',
+    component: 'Select',
+    componentProps: {
+      options: checkStatus
+    },
+    colProps: { span: 6 },
+  },
+]
+
+// 新增表单配置
+export const accountFormSchema = [
+  {
+    field: 'title',
+    label: '',
+    slot: 'title',
+    component: 'Input',
+  },
+  {
+    field: 'id',
+    label: 'id',
+    component: 'Input',
+    show: false,
+    componentProps: {
+      maxLength: 36,
+    },
+  },
+  {
+    field: 'parentId',
+    label: '服务类型',
+    required: true,
+    component: 'Select',
+    colProps: { span: 12 },
+    componentProps: {
+      replaceFields: {
+        title: 'name',
+        key: 'id',
+        value: 'id',
+      },
+      maxTagCount: 10,
+      getPopupContainer: () => document.body,
+      options: serviceTypes
+    },
+  },
+  {
+    field: 'parentId',
+    label: '系统标签',
+    required: true,
+    component: 'Select',
+    colProps: { span: 12 },
+    componentProps: {
+      replaceFields: {
+        title: 'label',
+        key: 'value',
+        value: 'value',
+      },
+      maxTagCount: 10,
+      getPopupContainer: () => document.body,
+      options:serviceTags
+    },
+  },
+  {
+    field: 'lymc',
+    label: '数据版本',
+    component: 'Input',
+    colProps: { span: 12 },
+    componentProps: {
+      placeholder: '请输入',
+    },
+  },
+  {
+    field: 'lymc',
+    label: '运行状态',
+    component: 'Input',
+    colProps: { span: 12 },
+    componentProps: {
+      placeholder: '请输入',
+    },
+  },
+  {
+    field: 'lymc',
+    label: '资源描述',
+    component: 'Input',
+    colProps: { span: 24 },
+    componentProps: {
+      placeholder: '请输入',
+    },
+  },
+  {
+    field: 'parentId',
+    label: '责任处室',
+    required: true,
+    component: 'TreeSelect',
+    colProps: { span: 12 },
+    componentProps: {
+      replaceFields: {
+        title: 'name',
+        key: 'id',
+        value: 'id',
+      },
+      maxTagCount: 10,
+      getPopupContainer: () => document.body,
+    },
+  },
+  {
+    field: 'lymc',
+    label: '保管单位',
+    component: 'TreeSelect',
+    colProps: { span: 12 },
+    componentProps: {
+      replaceFields: {
+        title: 'name',
+        key: 'id',
+        value: 'id',
+      },
+      maxTagCount: 10,
+      getPopupContainer: () => document.body,
+    },
+  }, {
+    field: 'lymc',
+    label: '密级',
+    component: 'TreeSelect',
+    colProps: { span: 12 },
+    componentProps: {
+      replaceFields: {
+        title: 'name',
+        key: 'id',
+        value: 'id',
+      },
+      maxTagCount: 10,
+      getPopupContainer: () => document.body,
+    },
+  }, {
+    field: 'lymc',
+    label: '坐标系',
+    component: 'TreeSelect',
+    colProps: { span: 12 },
+    componentProps: {
+      replaceFields: {
+        title: 'name',
+        key: 'id',
+        value: 'id',
+      },
+      maxTagCount: 10,
+      getPopupContainer: () => document.body,
+    },
+  },
+  {
+    field: 'lymc',
+    label: '数据范围',
+    component: 'Input',
+    colProps: { span: 12 },
+    componentProps: {
+      placeholder: '请输入',
+    },
+  },
+  {
+    field: 'lymc',
+    label: '数据来源',
+    component: 'Input',
+    colProps: { span: 12 },
+    componentProps: {
+      placeholder: '请输入',
+    },
+  },
+  {
+    field: 'lymc',
+    label: 'EPSC CODE',
+    component: 'Input',
+    colProps: { span: 24 },
+    componentProps: {
+      placeholder: '请输入',
+    },
+  },
+
+  {
+    field: 'sjms',
+    label: '备注:',
+    component: 'InputTextArea',
+    colProps: { span: 24 },
+    componentProps: {
+      maxLength: 255,
+      placeholder: '请输入备注',
+    },
+  },
+
+  {
+    field: 'status',
+    label: "是否公开", //状态
+    component: 'RadioButtonGroup',
+    colProps: { span: 8 },
+    defaultValue: '0',
+    componentProps: {
+      options: [
+        { label: "是", value: '0' }, //启用
+        { label: "否", value: '1' }, //禁用
+      ],
+    },
+  },
+
+  {
+    field: 'status',
+    label: "是否共享", //状态
+    component: 'RadioButtonGroup',
+    colProps: { span: 8 },
+    defaultValue: '0',
+    componentProps: {
+      options: [
+        { label: "是", value: '0' }, //启用
+        { label: "否", value: '1' }, //禁用
+      ],
+    },
+  },
+
+  {
+    field: 'status',
+    label: "是否展开", //状态
+    component: 'RadioButtonGroup',
+    colProps: { span: 8 },
+    defaultValue: '0',
+    componentProps: {
+      options: [
+        { label: "是", value: '0' }, //启用
+        { label: "否", value: '1' }, //禁用
+      ],
+    },
+  },
+  {
+    field: 'file',
+    label: '上传附件',
+    slot: 'upload',
+    required: false,
+    component: 'Input',
+    // componentProps: {
+    //   maxLength: 255,
+    // },
+  },
+
+  {
+    field: 'fileList',
+    label: '',
+    slot: 'upload-table',
+    required: false,
+    component: 'Input',
+  },
+  {
+    field: 'version',
+    label: '版本',
+    component: 'TreeSelect',
+    colProps: { span: 24 },
+    componentProps: {
+      replaceFields: {
+        title: 'name',
+        key: 'id',
+        value: 'id',
+      },
+      maxTagCount: 10,
+      getPopupContainer: () => document.body,
+    },
+  },
+  {
+    field: 'versionCode',
+    label: '版本号',
+    component: 'Input',
+    colProps: { span: 24 },
+    componentProps: {
+      placeholder: '请输入版本号',
+    },
+  },
+  {
+    field: 'isnew',
+    label: "是否最新版本", //状态
+    component: 'RadioButtonGroup',
+    colProps: { span: 24 },
+    defaultValue: '0',
+    componentProps: {
+      options: [
+        { label: "是", value: '0' },
+        { label: "否", value: '1' },
+      ],
+    },
+  },
+]
+
+
+// 新增表单配置
+export const accountFormSchema2 = [
+  {
+    field: 'title',
+    label: '',
+    slot: 'title',
+    component: 'Input',
+  },
+  {
+    field: 'id',
+    label: 'id',
+    component: 'Input',
+    show: false,
+    componentProps: {
+      maxLength: 36,
+    },
+  },
+  {
+    field: 'version',
+    label: '版本',
+    component: 'TreeSelect',
+    colProps: { span: 24 },
+    componentProps: {
+      replaceFields: {
+        title: 'name',
+        key: 'id',
+        value: 'id',
+      },
+      maxTagCount: 10,
+      getPopupContainer: () => document.body,
+    },
+  },
+  {
+    field: 'versionCode',
+    label: '版本号',
+    component: 'Input',
+    colProps: { span: 24 },
+    componentProps: {
+      placeholder: '请输入版本号',
+    },
+  },
+  {
+    field: 'isnew',
+    label: "是否最新版本", //状态
+    component: 'RadioButtonGroup',
+    colProps: { span: 24 },
+    defaultValue: '0',
+    componentProps: {
+      options: [
+        { label: "是", value: '0' },
+        { label: "否", value: '1' },
+      ],
+    },
+  },
+]
+
+
+export const fileFields = [
+  {
+    title: '序号',
+    dataIndex: 'xh',
+    width: '10%',
+    align: 'center'
+  },
+  {
+    title: '资源名称',
+    dataIndex: 'sname',
+    width: '20%',
+    slots: { customRender: 'sname' },
+  },
+  {
+    title: '资源编码',
+    dataIndex: 'scode',
+    width: '20%',
+    slots: { customRender: 'scode' },
+    align: 'center'
+  },
+  {
+    title: '格式',
+    dataIndex: 'type',
+    width: '10%',
+    align: 'center'
+  },
+  {
+    title: '缩略图',
+    dataIndex: 'operation',
+    width: '20%',
+    slots: { customRender: 'opera' },
+    align: 'center'
+  },
+  {
+    title: '状态',
+    dataIndex: 'status',
+    width: '10%',
+    align: 'center'
+  },
+  {
+    title: '操作',
+    dataIndex: 'operation',
+    width: '10%',
+    slots: { customRender: 'operation' },
+    align: 'center'
+  },
+];

+ 463 - 0
src/views/dataAdmin/dataAdmin/resourceCataloging/fileUploadData.js

@@ -0,0 +1,463 @@
+import { serviceTags, serviceTypes, checkStatus } from '../sysDic'
+export const columns = [
+  {
+    title: '资源编号',
+    dataIndex: 'serviceid',
+    width: 200,
+  },
+  {
+    title: '资源名称',
+    dataIndex: 'servicename',
+    width: 200,
+  },
+  {
+    title: '类型',
+    dataIndex: 'typename',
+    width: 200,
+  },
+  {
+    title: '发布人',
+    dataIndex: 'publisher',
+    width: 200,
+  },
+  {
+    title: '发布时间',
+    dataIndex: 'publishdate',
+    width: 200,
+    slots: { customRender: 'pdate' },
+  },
+  {
+    title: '当前环节',
+    dataIndex: 'currhj',
+    width: 200,
+  },
+  {
+    title: '当前处理人',
+    dataIndex: 'currHandler',
+    width: 200,
+  },
+  {
+    title: '审核状态',
+    dataIndex: 'status',
+    width: 200,
+    slots: { customRender: 'status' },
+  },
+  {
+    title: '审核时间',
+    dataIndex: 'status',
+    width: 200,
+  },
+];
+
+export const searchFormSchema = [
+  {
+    field: 'resourceTags',
+    label: '资源标签',
+    component: 'Select',
+    componentProps: {
+      options: serviceTags
+      // [
+      //   { label: '无', value: 0 },
+      // ],
+    },
+    colProps: { span: 6 },
+  },
+  {
+    field: 'resourceName',
+    label: '资源名称',
+    component: 'Input',
+    colProps: { span: 6 },
+    componentProps: {
+      maxLength: 255,
+    },
+  },
+  {
+    field: 'auditStatus',
+    label: '审核状态',
+    component: 'Select',
+    componentProps: {
+      options: checkStatus
+    },
+    colProps: { span: 6 },
+  },
+]
+
+// 新增表单配置
+export const accountFormSchema = [
+  {
+    field: 'title',
+    label: '',
+    slot: 'title',
+    component: 'Input',
+  },
+  {
+    field: 'id',
+    label: 'id',
+    component: 'Input',
+    show: false,
+    componentProps: {
+      maxLength: 36,
+    },
+  },
+  {
+    field: 'parentId',
+    label: '服务类型',
+    required: true,
+    component: 'Select',
+    colProps: { span: 12 },
+    componentProps: {
+      replaceFields: {
+        title: 'name',
+        key: 'id',
+        value: 'id',
+      },
+      maxTagCount: 10,
+      getPopupContainer: () => document.body,
+      options: serviceTypes
+    },
+  },
+  {
+    field: 'parentId',
+    label: '系统标签',
+    required: true,
+    component: 'Select',
+    colProps: { span: 12 },
+    componentProps: {
+      replaceFields: {
+        title: 'label',
+        key: 'value',
+        value: 'value',
+      },
+      maxTagCount: 10,
+      getPopupContainer: () => document.body,
+      options:serviceTags
+    },
+  },
+  {
+    field: 'lymc',
+    label: '数据版本',
+    component: 'Input',
+    colProps: { span: 12 },
+    componentProps: {
+      placeholder: '请输入',
+    },
+  },
+  {
+    field: 'lymc',
+    label: '运行状态',
+    component: 'Input',
+    colProps: { span: 12 },
+    componentProps: {
+      placeholder: '请输入',
+    },
+  },
+  {
+    field: 'lymc',
+    label: '资源描述',
+    component: 'Input',
+    colProps: { span: 24 },
+    componentProps: {
+      placeholder: '请输入',
+    },
+  },
+  {
+    field: 'parentId',
+    label: '责任处室',
+    required: true,
+    component: 'TreeSelect',
+    colProps: { span: 12 },
+    componentProps: {
+      replaceFields: {
+        title: 'name',
+        key: 'id',
+        value: 'id',
+      },
+      maxTagCount: 10,
+      getPopupContainer: () => document.body,
+    },
+  },
+  {
+    field: 'lymc',
+    label: '保管单位',
+    component: 'TreeSelect',
+    colProps: { span: 12 },
+    componentProps: {
+      replaceFields: {
+        title: 'name',
+        key: 'id',
+        value: 'id',
+      },
+      maxTagCount: 10,
+      getPopupContainer: () => document.body,
+    },
+  }, {
+    field: 'lymc',
+    label: '密级',
+    component: 'TreeSelect',
+    colProps: { span: 12 },
+    componentProps: {
+      replaceFields: {
+        title: 'name',
+        key: 'id',
+        value: 'id',
+      },
+      maxTagCount: 10,
+      getPopupContainer: () => document.body,
+    },
+  }, {
+    field: 'lymc',
+    label: '坐标系',
+    component: 'TreeSelect',
+    colProps: { span: 12 },
+    componentProps: {
+      replaceFields: {
+        title: 'name',
+        key: 'id',
+        value: 'id',
+      },
+      maxTagCount: 10,
+      getPopupContainer: () => document.body,
+    },
+  },
+  {
+    field: 'lymc',
+    label: '数据范围',
+    component: 'Input',
+    colProps: { span: 12 },
+    componentProps: {
+      placeholder: '请输入',
+    },
+  },
+  {
+    field: 'lymc',
+    label: '数据来源',
+    component: 'Input',
+    colProps: { span: 12 },
+    componentProps: {
+      placeholder: '请输入',
+    },
+  },
+  {
+    field: 'lymc',
+    label: 'EPSC CODE',
+    component: 'Input',
+    colProps: { span: 24 },
+    componentProps: {
+      placeholder: '请输入',
+    },
+  },
+
+  {
+    field: 'sjms',
+    label: '备注:',
+    component: 'InputTextArea',
+    colProps: { span: 24 },
+    componentProps: {
+      maxLength: 255,
+      placeholder: '请输入备注',
+    },
+  },
+
+  {
+    field: 'status',
+    label: "是否公开", //状态
+    component: 'RadioButtonGroup',
+    colProps: { span: 8 },
+    defaultValue: '0',
+    componentProps: {
+      options: [
+        { label: "是", value: '0' }, //启用
+        { label: "否", value: '1' }, //禁用
+      ],
+    },
+  },
+
+  {
+    field: 'status',
+    label: "是否共享", //状态
+    component: 'RadioButtonGroup',
+    colProps: { span: 8 },
+    defaultValue: '0',
+    componentProps: {
+      options: [
+        { label: "是", value: '0' }, //启用
+        { label: "否", value: '1' }, //禁用
+      ],
+    },
+  },
+
+  {
+    field: 'status',
+    label: "是否展开", //状态
+    component: 'RadioButtonGroup',
+    colProps: { span: 8 },
+    defaultValue: '0',
+    componentProps: {
+      options: [
+        { label: "是", value: '0' }, //启用
+        { label: "否", value: '1' }, //禁用
+      ],
+    },
+  },
+  {
+    field: 'file',
+    label: '上传附件',
+    slot: 'upload',
+    required: false,
+    component: 'Input',
+    // componentProps: {
+    //   maxLength: 255,
+    // },
+  },
+
+  {
+    field: 'fileList',
+    label: '',
+    slot: 'upload-table',
+    required: false,
+    component: 'Input',
+  },
+  {
+    field: 'version',
+    label: '版本',
+    component: 'TreeSelect',
+    colProps: { span: 24 },
+    componentProps: {
+      replaceFields: {
+        title: 'name',
+        key: 'id',
+        value: 'id',
+      },
+      maxTagCount: 10,
+      getPopupContainer: () => document.body,
+    },
+  },
+  {
+    field: 'versionCode',
+    label: '版本号',
+    component: 'Input',
+    colProps: { span: 24 },
+    componentProps: {
+      placeholder: '请输入版本号',
+    },
+  },
+  {
+    field: 'isnew',
+    label: "是否最新版本", //状态
+    component: 'RadioButtonGroup',
+    colProps: { span: 24 },
+    defaultValue: '0',
+    componentProps: {
+      options: [
+        { label: "是", value: '0' },
+        { label: "否", value: '1' },
+      ],
+    },
+  },
+]
+
+
+// 新增表单配置
+export const accountFormSchema2 = [
+  {
+    field: 'title',
+    label: '',
+    slot: 'title',
+    component: 'Input',
+  },
+  {
+    field: 'id',
+    label: 'id',
+    component: 'Input',
+    show: false,
+    componentProps: {
+      maxLength: 36,
+    },
+  },
+  {
+    field: 'version',
+    label: '版本',
+    component: 'TreeSelect',
+    colProps: { span: 24 },
+    componentProps: {
+      replaceFields: {
+        title: 'name',
+        key: 'id',
+        value: 'id',
+      },
+      maxTagCount: 10,
+      getPopupContainer: () => document.body,
+    },
+  },
+  {
+    field: 'versionCode',
+    label: '版本号',
+    component: 'Input',
+    colProps: { span: 24 },
+    componentProps: {
+      placeholder: '请输入版本号',
+    },
+  },
+  {
+    field: 'isnew',
+    label: "是否最新版本", //状态
+    component: 'RadioButtonGroup',
+    colProps: { span: 24 },
+    defaultValue: '0',
+    componentProps: {
+      options: [
+        { label: "是", value: '0' },
+        { label: "否", value: '1' },
+      ],
+    },
+  },
+]
+
+
+export const fileFields = [
+  {
+    title: '序号',
+    dataIndex: 'xh',
+    width: '10%',
+    align: 'center'
+  },
+  {
+    title: '资源名称',
+    dataIndex: 'sname',
+    width: '20%',
+    slots: { customRender: 'sname' },
+  },
+  {
+    title: '资源编码',
+    dataIndex: 'scode',
+    width: '20%',
+    slots: { customRender: 'scode' },
+    align: 'center'
+  },
+  {
+    title: '格式',
+    dataIndex: 'type',
+    width: '10%',
+    align: 'center'
+  },
+  {
+    title: '缩略图',
+    dataIndex: 'operation',
+    width: '20%',
+    slots: { customRender: 'opera' },
+    align: 'center'
+  },
+  {
+    title: '状态',
+    dataIndex: 'status',
+    width: '10%',
+    align: 'center'
+  },
+  {
+    title: '操作',
+    dataIndex: 'operation',
+    width: '10%',
+    slots: { customRender: 'operation' },
+    align: 'center'
+  },
+];