Explorar el Código

序号集中修改

sujunling hace 1 año
padre
commit
bb59e78d86

+ 4 - 1
src/views/dataAdmin/assembly/index.vue

@@ -85,6 +85,9 @@
       <template #checktime="{ record }">
         {{ record?.checktime?.replace('.0', '') }}
       </template>
+      <template #index="{ index }">
+        {{ index + 1 }}
+      </template>
       <template #status="{ record }">
         <Tag
           :style="`color:${
@@ -157,7 +160,7 @@ export default defineComponent({
       useSearchForm: true,
       showTableSetting: true,
       bordered: true,
-      showIndexColumn: true,
+      showIndexColumn: false,
       actionColumn: {
         width: props.isChild ? 250 : 100,
         title: '操作',

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

@@ -109,6 +109,11 @@ export const searchFormSchema: FormSchema[] = [
  * 列表显示信息
 */
 export const columns: BasicColumn[] = [
+  {
+    title: '序号',
+    slots: { customRender: 'index' },
+    width: 50
+  },
   {
     title: '组件编号',
     dataIndex: 'serviceid',

+ 5 - 0
src/views/dataAdmin/dataAdmin/fileResourceUpload/fileUploadData.js

@@ -1,5 +1,10 @@
 import { serviceTags, serviceTypes, checkStatus, EPSGCodes, sysCoors, secrets, respDept, collectDept, ApplProcesses, versionList } from '../sysDic'
 export const columns = [
+  {
+    title: '序号',
+    slots: { customRender: 'index' },
+    width: 50
+  },
   {
     title: '文件编号',
     dataIndex: 'serviceid',

+ 4 - 1
src/views/dataAdmin/dataAdmin/fileResourceUpload/index.vue

@@ -89,6 +89,9 @@
       <template #checktime="{ record }">
         {{ record?.checktime?.replace('.0', '') }}
       </template>
+      <template #index="{ index }">
+        {{ index + 1 }}
+      </template>
       <template #status="{ record }">
         <Tag
           :style="`color:${
@@ -184,7 +187,7 @@ export default defineComponent({
       showTableSetting: true,
       bordered: true,
       // 表格控制序号显示
-      showIndexColumn: true,
+      showIndexColumn: false,
       // 表格操作栏
       actionColumn: {
         width: props.isChild ? 250 : 100,

+ 4 - 1
src/views/dataAdmin/dataAdmin/mapUpload/index.vue

@@ -105,6 +105,9 @@
         </Tag> -->
         {{ record.checkname }}
       </template>
+      <template #index="{ index }">
+        {{ index + 1 }}
+      </template>
     </BasicTable>
     <!-- <MapDrawer @register="registerDrawer" @success="handleSuccess" /> -->
     <MapSourceModal @register="registerModal" @success="handleSuccess" />
@@ -153,7 +156,7 @@ export default defineComponent({
       useSearchForm: true,
       showTableSetting: true,
       bordered: true,
-      showIndexColumn: true,
+      showIndexColumn: false,
       actionColumn: {
         width: props.isChild ? 250 : 100,
         title: '操作',

+ 18 - 15
src/views/dataAdmin/dataAdmin/mapUpload/map.data.ts

@@ -1,7 +1,7 @@
 import { BasicColumn } from '/@/components/Table';
 import { FormSchema } from '/@/components/Table';
 import { RoleEnum } from '/@/enums/roleEnum';
-import { serviceTags, checkStatus } from '../sysDic'
+import { serviceTags, checkStatus } from '../sysDic';
 
 export enum KeysTypeEnum {
   DISABLED = 'disabled',
@@ -17,7 +17,7 @@ export const RoleMenuDictEnum: Recordable<{ key: string; keyType: KeysTypeEnum }
 
 /**
  * 查询条件
-*/
+ */
 export const searchFormSchema: FormSchema[] = [
   {
     field: 'tagValue',
@@ -50,25 +50,30 @@ export const searchFormSchema: FormSchema[] = [
 
 /**
  * 列表显示信息
-*/
+ */
 export const columns: BasicColumn[] = [
+  {
+    title: '序号',
+    slots: { customRender: 'index' },
+    width: 50
+  },
   {
     title: '资源编号',
     dataIndex: 'serviceid',
     width: 120,
-    align: 'left'
+    align: 'left',
   },
   {
     title: '资源名称',
     dataIndex: 'servicename',
     width: 160,
-    align: 'left'
+    align: 'left',
   },
   {
     title: '坐标系名称',
     dataIndex: 'crs',
     width: 140,
-    align: 'left'
+    align: 'left',
   },
   // {
   //   title: '资源标签',
@@ -85,7 +90,7 @@ export const columns: BasicColumn[] = [
     title: '发布人',
     dataIndex: 'publisher',
     width: 100,
-    align: 'left'
+    align: 'left',
   },
   // {
   //   title: '发布时间',
@@ -98,36 +103,34 @@ export const columns: BasicColumn[] = [
     dataIndex: 'nodename',
     width: 90,
     slots: { customRender: 'nodename' },
-    align: 'left'
+    align: 'left',
   },
   {
     title: '当前处理人',
     dataIndex: 'checkname',
     width: 100,
     slots: { customRender: 'checkname' },
-    align: 'left'
+    align: 'left',
   },
   {
     title: '审核状态',
     dataIndex: 'status',
     width: 110,
     slots: { customRender: 'status' },
-    align: 'left'
+    align: 'left',
   },
   {
     title: '审核时间',
     dataIndex: 'checktime',
     width: 160,
     slots: { customRender: 'checktime' },
-    align: 'left'
+    align: 'left',
   },
 ];
 
-
-
 /**
  * 表单
-*/
+ */
 export const formSchema: FormSchema[] = [
   {
     field: 'groupName',
@@ -147,5 +150,5 @@ export const formSchema: FormSchema[] = [
       maxLength: 255,
       placeholder: '请输入排序',
     },
-  }
+  },
 ];

+ 4 - 1
src/views/dataAdmin/dataAdmin/sceneResourceUpload/index.vue

@@ -104,6 +104,9 @@
       <template #checktime="{ record }">
         {{ record?.checktime?.replace('.0', '') }}
       </template>
+      <template #index="{ index }">
+        {{ index + 1 }}
+      </template>
       <template #nodename="{ record }">
         <!-- <Tag>
           {{
@@ -186,7 +189,7 @@ export default defineComponent({
       showTableSetting: true,
       bordered: true,
       // 表格控制序号显示
-      showIndexColumn: true,
+      showIndexColumn: false,
       // 表格操作栏
       actionColumn: {
         width: props.isChild ? 250 : 100,

+ 5 - 0
src/views/dataAdmin/dataAdmin/sceneResourceUpload/sceneUploadData.js

@@ -11,6 +11,11 @@ import {
 } from '../sysDic';
 
 export const columns = [
+  {
+    title: '序号',
+    slots: { customRender: 'index' },
+    width: 50
+  },
   {
     title: '资源编号',
     dataIndex: 'serviceid',

+ 4 - 1
src/views/resource/examine/index.vue

@@ -57,6 +57,9 @@
             }}
           </a-tag>
         </template>
+        <template #index="{ index }">
+        {{ index + 1 }}
+      </template>
         <template #BLZT="{ record }">
           <a-tag :style="`color:${record.status === 3 || record.status === 3 ? 'red' : ''};`">
             {{
@@ -158,7 +161,7 @@ export default defineComponent({
       useSearchForm: true,
       showTableSetting: true,
       bordered: true,
-      showIndexColumn: true,
+      showIndexColumn: false,
       actionColumn: {
         width: 200,
         title: '操作',

+ 5 - 0
src/views/resource/examine/map.data.ts

@@ -179,6 +179,11 @@ export const searchFormSchemaSR: FormSchema[] = [
  * 列表显示信息
 */
 export const columns: BasicColumn[] = [
+  {
+    title: '序号',
+    slots: { customRender: 'index' },
+    width: 50
+  },
   {
     title: '资源类型',
     dataIndex: 'FLOWNAME',