liubp
2025-10-29 94e9b4e1120580b7e53ae3b8ba4ccedde8b6c8c7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
export const ROLE_ID_COPY_EDITOR = "1972228739099103234";
 
//列表数据
export const columns: BasicColumn[] = [
   {
    title: '语义词',
    align:"center",
    dataIndex: 'word',
    width: 200
   },
   {
    title: '签约名次',
    align:"center",
    dataIndex: 'ranking',
    width: 100
   },
   {
    title: '开始时间',
    align:"center",
    dataIndex: 'startDate',
    width: 200
   },
   {
    title: '结束时间',
    align:"center",
    dataIndex: 'endDate',
    width: 200
   },
   {
    title: '提交时间',
    align:"center",
    dataIndex: 'createTime',
    width: 200
   },
   {
    title: '文案编辑',
    align:"center",
    dataIndex: 'changer',
    width: 200
   },
  //  {
  //   title: '驳回原因',
  //   align:"center",
  //   dataIndex: 'rejectionReasons'
  //  },
  //  {
  //   title: '创建人',
  //   align:"center",
  //   dataIndex: 'createBy'
  //  },
];
//查询数据
export const searchFormSchema: FormSchema[] = [
    {
      label: "语义词",
      field: 'word',
      component: 'Input',
      //colProps: {span: 6},
     },
    {
      label: "状态",
      field: 'status',
      component: 'JSelectMultiple',
      componentProps:{
          dictCode:"yuyici_status"
      },
      //colProps: {span: 6},
     },
    // {
  //     label: "文案编辑",
  //     field: 'changer',
  //     component: 'JDictSelectTag',
  //     componentProps:{
  //         dictCode:"sys_user,realname,id",
  //         dictUrl: "/sys/user/userRoleList",
  //         dictQueryParam: {roleId: ROLE_ID_COPY_EDITOR}
  //     },
  //     //colProps: {span: 6},
     // },
];
//表单数据
export const formSchema: FormSchema[] = [
  {
    label: '语义词',
    field: 'word',
    component: 'Input',
    componentProps: {
      disabled: true
    }
  },
  // 移除状态字段,不在分配任务弹框中展示
  // {
  //   label: '驳回原因',
  //   field: 'rejectionReasons',
  //   component: 'Input',
  // },
  // {
  //   label: '创建人',
  //   field: 'createBy',
  //   component: 'Input',
  // },
  {
    label: '文案编辑',
    field: 'changer',
    component: 'JDictSelectTag',
    componentProps: {
      dictUrl: "/sys/user/userRoleList",
      dictQueryParam: {roleId: ROLE_ID_COPY_EDITOR},
      placeholder: "请选择文案编辑",
    },
  },
    // TODO 主键隐藏字段,目前写死为ID
    {
      label: '',
      field: 'id',
      component: 'Input',
      show: false
    },
];
 
// 高级查询数据
export const superQuerySchema = {
  word: {title: '语义词',order: 0,view: 'text', type: 'string',},
  status: {title: '状态',order: 1,view: 'list', type: 'string',dictCode: 'yuyici_status',},
  rejectionReasons: {title: '驳回原因',order: 2,view: 'text', type: 'string',},
  createBy: {title: '创建人',order: 3,view: 'text', type: 'string',},
  changer: {title:'文案编辑',order: 0,view: 'text', type: 'string',},
};
 
/**
* 流程表单调用这个方法获取formSchema
* @param param
*/
export function getBpmFormSchema(_formData): FormSchema[]{
  // 默认和原始表单保持一致 如果流程中配置了权限数据,这里需要单独处理formSchema
  return formSchema;
}