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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
| <template>
| <basic-container>
| <avue-tabs :option="Taboption" @change="handleChange"></avue-tabs>
| <span v-if="type.prop==='tab1'">
| <avue-crud :data="data" :option="option"></avue-crud>
| </span>
| <span v-else-if="type.prop==='tab2'">模板流程</span>
| <span v-else-if="type.prop==='tab3'">模板阶段</span>
| <span v-else-if="type.prop==='tab4'">模板按钮流程</span>
| </basic-container>
|
| </template>
|
| <script>
| export default {
| name: "TemplatePro.vue",
| data: function () {
| return {
| type: {},
| Taboption: {
| column: [{
| icon: 'el-icon-info',
| label: '模板属性',
| prop: 'tab1',
| }, {
| icon: 'el-icon-warning',
| label: '模板流程',
| prop: 'tab2',
| }, {
| icon: 'el-icon-question',
| label: '模板阶段',
| prop: 'tab3',
| }, {
| icon: 'el-icon-question',
| label: '模板按钮流程',
| prop: 'tab4',
| }]
| },
| data:[
| {
| EnglishNum:"测试一",
| ChinaName:"测试一",
| PropGruop:"测试一",
| Type:"测试一"
| },
| {
| EnglishNum:"测试二",
| ChinaName:"测试二",
| PropGruop:"测试二",
| Type:"测试二"
| },
| {
| EnglishNum:"测试三",
| ChinaName:"测试三",
| PropGruop:"测试三",
| Type:"测试三"
| }
| ],
| option: {
| index: true,
| border: true,
| editBtn:false,
| labelWidth:110,
| column: [
| {
| label: "属性英文编号",
| prop: "EnglishNum",
| fixed:true,
| labelWidth:110,
| width:95
| },
| {
| label: "属性中文名称",
| prop: "ChinaName",
| fixed:true,
| width:95
| },
| {
| label: "属性分组",
| prop: "PropGruop"
| },
| {
| label: "类型",
| prop: "Type"
| },
| {
| label: "列表宽度",
| prop: "ListWidth"
| },
| {
| label: "关键属性",
| prop: "KeyAttr"
| },
| {
| label: "查询属性",
| prop: "QueryPro"
| },
| {
| label: "高级查询属性",
| prop: "SeniorQueryPro",
| width:95
| },
| {
| label: "相似查询属性",
| prop: "SimilarPro",
| width:95
| },
| {
| label: "必输",
| prop: "MustLose"
| },
| {
| label: "表单显示",
| prop: "FormDIs"
| },
| {
| label: "列表显示",
| prop: "TableDis"
| },
| {
| label: "只读",
| prop: "readOnly"
| },
| {
| label: "列表排序",
| prop: "ListSort"
| },
|
| {
| label: "多行文本",
| prop:"LineText",
| },
| {
| label: "默认值",
| prop:"DefaultValue",
| },
| {
| label: "前缀",
| prop:"prefix",
| },
| {
| label: "后缀",
| prop:"suffix"
| },
| {
| label: "组合规则",
| prop:"ComRules"
| },
| {
| label: "验证规则",
| prop:"rules"
| },
| {
| label: "时间格式",
| prop:"TimeForm"
| },
| {
| label: "分类注入",
| prop:"claInjection"
| },
| {
| label: "分类注入",
| prop:"EnuInjection"
| },
| {
| label: "级联属性",
| prop:"CasProp"
| },
| {
| label: "参照配置",
| prop:"RefConfig"
| },
| {
| label: "级联查询属性",
| prop:"CasQueryProp"
| },
| {
| label: "选择库标识",
| prop:"SelectLib"
| },
| {
| label: "填写提示",
| prop:"FillPrompt"
| },
| {
| label: "表单显示样式",
| prop:"FormShow"
| },
| {
| label: "表单超链接",
| prop:"FormHer"
| },
| {
| label: "表格显示js",
| prop:"CrudJs"
| },
| {
| label: "长度",
| prop:"length"
| },
| {
| label: "小数精度",
| prop:"DecimalPrecis"
| },
| {
| label: "取值范围",
| prop:"ValueRange"
| },
| ]
| }
| }
| },
| created() {
| this.type = this.Taboption.column[0];
| this.type.prop="tab1"
| },
| methods: {
| handleChange(column) {
| this.type = column
| this.$message.success(JSON.stringify(column))
| }
| }
| }
| </script>
|
| <style scoped>
|
| </style>
|
|