Просмотр исходного кода

完成演练会签表格配置

chauncey 9 месяцев назад
Родитель
Сommit
057a24a670

+ 2 - 2
src/views/emergency/emergency-drill/configs/sign/search.ts

@@ -1,12 +1,12 @@
 import {DRILI_SIGN_TYPE_OPTIONS} from '../../constants';
 import {DRILI_SIGN_TYPE_OPTIONS} from '../../constants';
 export const DRILL_SIGN_LIST_SEARCH_CONFIG = [
 export const DRILL_SIGN_LIST_SEARCH_CONFIG = [
   {
   {
-    label: '演练脚本:',
+    label: '会签类型:',
     prop: 'signType',
     prop: 'signType',
     component: 'ElSelect',
     component: 'ElSelect',
     selectOptions: DRILI_SIGN_TYPE_OPTIONS,
     selectOptions: DRILI_SIGN_TYPE_OPTIONS,
     componentProps: {
     componentProps: {
-      placeholder: '请选择演练脚本',
+      placeholder: '请选择会签类型',
     },
     },
   },
   },
   {
   {

+ 56 - 0
src/views/emergency/emergency-drill/configs/sign/table.ts

@@ -5,3 +5,59 @@ const BASIC_TABLE_OPTIONS = {
   emptyText: '暂无数据',
   emptyText: '暂无数据',
   loading: true,
   loading: true,
 };
 };
+
+export const DRILL_SIGN_LIST_TABLE_OPTIONS = {
+  ...BASIC_TABLE_OPTIONS,
+};
+
+export const DRILI_SIGN_LIST_TABLE_COLUMNS: TableColumnProps[] = [
+  {
+    label: '序号',
+    type: 'index',
+    width: '80px',
+  },
+  {
+    label: '会签类型',
+    slot: 'signType',
+    minWidth: '120px',
+  },
+  {
+    label: '演练规模',
+    slot: 'drillScope',
+    minWidth: '120px',
+  },
+  {
+    label: '演练内容',
+    prop: 'drillContent',
+    minWidth: '120px',
+  },
+  {
+    label: '演练时间',
+    prop: 'drillTime',
+    width: '200px',
+  },
+  {
+    label: '演练地点',
+    prop: 'drillLocation',
+    minWidth: '120px',
+  },
+  {
+    label: '演练负责人',
+    prop: 'personInChargeName',
+    minWidth: '120px',
+  },
+  {
+    label: '提交人',
+    prop: 'createdByName',
+    minWidth: '120px',
+  },
+  {
+    label: '确认状态',
+    slot: 'confirmStatus',
+    minWidth: '120px'
+  },
+  {
+    label: '操作',
+    slot: 'action'
+  }
+];