|
@@ -204,38 +204,57 @@ const selectedRowKeys = ref([]);
|
|
|
const selectChange = (value) => {
|
|
|
selectedRowKeys.value = value;
|
|
|
};
|
|
|
-const columns = [
|
|
|
- {
|
|
|
- colKey: 'row-select',
|
|
|
- type: 'multiple',
|
|
|
- width: 50,
|
|
|
- fixed: 'left',
|
|
|
- },
|
|
|
- { colKey: 'serviceName', title: '服务单元', width: 160 },
|
|
|
- { colKey: 'sopNo', title: 'SOP流水号', width: 200 },
|
|
|
- { colKey: 'crmNo', title: '项目单号', width: 200 },
|
|
|
- { colKey: 'beginTime', title: '派单时间', width: 180 },
|
|
|
- { colKey: 'customManagerName', title: '客户经理', width: 140 },
|
|
|
- { colKey: 'customManagerTypeStr', title: '客户类型', width: 120 },
|
|
|
- { colKey: 'customName', title: '客户名称', width: 140 },
|
|
|
- { colKey: 'crmName', title: '项目名称', minWidth: 160 },
|
|
|
- { colKey: 'productName', title: '实施产品', width: 120 },
|
|
|
- { colKey: 'examStartTime', title: '考试开始时间', width: 180 },
|
|
|
- { colKey: 'examEndTime', title: '考试结束时间', width: 180 },
|
|
|
- //...
|
|
|
- { colKey: 'flowCreateName', title: '提交人', width: 140 },
|
|
|
- { colKey: 'flowCreateTime', title: '提交时间', width: 180 },
|
|
|
- { colKey: 'flowUpdateTime', title: '更新时间', width: 180 },
|
|
|
- { colKey: 'statusStr', title: '流程状态', width: 120 },
|
|
|
- { colKey: 'taskName', title: '流程节点', width: 160 },
|
|
|
- { colKey: 'pendApproveName', title: '当前节点负责人', width: 140 },
|
|
|
- {
|
|
|
- title: '管理',
|
|
|
- colKey: 'operate',
|
|
|
- fixed: 'right',
|
|
|
- width: 420,
|
|
|
- },
|
|
|
-];
|
|
|
+const columns = computed(() => {
|
|
|
+ const defaultColumns = [
|
|
|
+ {
|
|
|
+ colKey: 'row-select',
|
|
|
+ type: 'multiple',
|
|
|
+ width: 50,
|
|
|
+ fixed: 'left',
|
|
|
+ },
|
|
|
+ { colKey: 'serviceName', title: '服务单元', width: 160 },
|
|
|
+ { colKey: 'sopNo', title: 'SOP流水号', width: 200 },
|
|
|
+ { colKey: 'crmNo', title: '项目单号', width: 200 },
|
|
|
+ { colKey: 'beginTime', title: '派单时间', width: 180 },
|
|
|
+ { colKey: 'customManagerName', title: '客户经理', width: 140 },
|
|
|
+ { colKey: 'customManagerTypeStr', title: '客户类型', width: 120 },
|
|
|
+ { colKey: 'customName', title: '客户名称', width: 140 },
|
|
|
+ { colKey: 'crmName', title: '项目名称', minWidth: 160 },
|
|
|
+ { colKey: 'productName', title: '实施产品', width: 120 },
|
|
|
+ { colKey: 'examStartTime', title: '考试开始时间', width: 180 },
|
|
|
+ { colKey: 'examEndTime', title: '考试结束时间', width: 180 },
|
|
|
+ { colKey: 'flowCreateName', title: '提交人', width: 140 },
|
|
|
+ { colKey: 'flowCreateTime', title: '提交时间', width: 180 },
|
|
|
+ { colKey: 'flowUpdateTime', title: '更新时间', width: 180 },
|
|
|
+ { colKey: 'statusStr', title: '流程状态', width: 120 },
|
|
|
+ { colKey: 'taskName', title: '流程节点', width: 160 },
|
|
|
+ { colKey: 'pendApproveName', title: '当前节点负责人', width: 140 },
|
|
|
+ {
|
|
|
+ title: '管理',
|
|
|
+ colKey: 'operate',
|
|
|
+ fixed: 'right',
|
|
|
+ width: 450,
|
|
|
+ },
|
|
|
+ ];
|
|
|
+
|
|
|
+ if (formWidgetMetadataViewList.value.length) {
|
|
|
+ let metadataColumns = formWidgetMetadataViewList.value.map((item) => {
|
|
|
+ return {
|
|
|
+ colKey: item.fieldId,
|
|
|
+ title: item.fieldTitle,
|
|
|
+ minWidth: 120,
|
|
|
+ };
|
|
|
+ });
|
|
|
+ return [
|
|
|
+ ...defaultColumns.slice(0, -1),
|
|
|
+ ...metadataColumns,
|
|
|
+ ...defaultColumns.slice(-1),
|
|
|
+ ];
|
|
|
+ } else {
|
|
|
+ return defaultColumns;
|
|
|
+ }
|
|
|
+});
|
|
|
+
|
|
|
const fields = ref([
|
|
|
{
|
|
|
prop: 'serviceId',
|