widget.qw 1.0.81 → 1.0.82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.development +9 -9
- package/.env.production +8 -8
- package/README.md +75 -75
- package/build/style.css +471 -471
- package/build/widget.qw.es.js +55 -56
- package/build/widget.qw.umd.js +55 -56
- package/index.html +17 -17
- package/package.json +47 -47
- package/src/App.vue +26 -26
- package/src/api/index.js +165 -165
- package/src/components/AuditBar.vue +396 -396
- package/src/components/BillCard.vue +164 -164
- package/src/components/CascaderPicker.vue +132 -132
- package/src/components/CascaderPop.vue +371 -371
- package/src/components/CheckGroup.vue +113 -113
- package/src/components/DatetimePicker/DatetimePop.vue +342 -342
- package/src/components/DatetimePicker/index.vue +124 -124
- package/src/components/DayDropdown.vue +56 -56
- package/src/components/FilePicker.vue +169 -169
- package/src/components/Input.vue +80 -80
- package/src/components/MonthDropdown.vue +51 -51
- package/src/components/MultiPicker.vue +123 -123
- package/src/components/ObjsEditor.vue +334 -334
- package/src/components/SecretNotify.js +5 -5
- package/src/components/Sheet.vue +92 -92
- package/src/components/SingleApiPicker.vue +108 -108
- package/src/components/SinglePicker.vue +102 -102
- package/src/components/SingleUserSelector.vue +425 -425
- package/src/components/Switch.vue +64 -64
- package/src/components/TreePicker.vue +113 -113
- package/src/components/UserPicker.vue +106 -106
- package/src/components/UserProfile.vue +129 -129
- package/src/components/UsersPicker.vue +118 -118
- package/src/components/YearDropdown.vue +59 -59
- package/src/components/data_selector.vue +303 -303
- package/src/components/image_picker.vue +123 -123
- package/src/components/images_picker.vue +195 -195
- package/src/components/index.js +162 -162
- package/src/components/mult_list_selector.vue +155 -155
- package/src/components/subdepartment_selector.vue +481 -481
- package/src/components/user_selector.vue +639 -639
- package/src/components/widget/DataPop.vue +95 -95
- package/src/components/widget/TreePop.vue +88 -88
- package/src/components/widget/UserPop.vue +347 -347
- package/src/env.d.ts +8 -8
- package/src/main.js +117 -117
- package/src/router/index.ts +173 -173
- package/src/util/array_util.js +32 -32
- package/src/util/auth_util.js +72 -73
- package/src/util/bool_util.js +5 -5
- package/src/util/bus.js +1 -1
- package/src/util/cache_util.js +18 -18
- package/src/util/errer_code.js +6 -6
- package/src/util/eval_util.js +19 -19
- package/src/util/icon_util.js +36 -36
- package/src/util/image_util.js +27 -27
- package/src/util/index.js +57 -57
- package/src/util/num_util.js +70 -70
- package/src/util/obj_util.js +28 -28
- package/src/util/request.js +73 -73
- package/src/util/request_json.js +71 -71
- package/src/util/request_json_mute.js +65 -65
- package/src/util/request_upload.js +79 -79
- package/src/util/route_util.js +31 -31
- package/src/util/str_util.js +143 -143
- package/src/util/time_util.js +406 -406
- package/src/util/toast_util.js +24 -24
- package/src/util/tree_util.js +153 -153
- package/src/util/uuid_util.js +9 -9
- package/src/util/validate.js +182 -182
- package/src/util/vue_filter.js +223 -223
- package/src/views/auditbar/index.vue +78 -78
- package/src/views/billcard/index.vue +48 -48
- package/src/views/cascaderpop/index.vue +90 -90
- package/src/views/checkgroup/index.vue +35 -35
- package/src/views/dataSelector/index.vue +48 -48
- package/src/views/datetimepicker/index.vue +34 -34
- package/src/views/daydropdown/index.vue +31 -31
- package/src/views/filepicker/index.vue +32 -32
- package/src/views/imagepicker/index.vue +31 -31
- package/src/views/imagespicker/index.vue +37 -37
- package/src/views/input/index.vue +35 -35
- package/src/views/monthdropdown/index.vue +31 -31
- package/src/views/multListSelector/index.vue +61 -61
- package/src/views/multipicker/index.vue +36 -36
- package/src/views/objseditor/index.vue +277 -277
- package/src/views/productSelector/index.vue +35 -35
- package/src/views/projectpicker/index.vue +41 -41
- package/src/views/secretnotify/index.vue +27 -27
- package/src/views/sheet/index.vue +45 -45
- package/src/views/singlepicker/index.vue +35 -35
- package/src/views/subdepartmentSelector/index.vue +40 -40
- package/src/views/switch/index.vue +34 -34
- package/src/views/treepicker/index.vue +41 -41
- package/src/views/userSelector/index.vue +54 -54
- package/src/views/userSelectorNew/index.vue +45 -45
- package/src/views/userpicker/index.vue +43 -43
- package/src/views/userprofile/index.vue +30 -30
- package/src/views/userspicker/index.vue +43 -43
- package/src/views/yeardropdown/index.vue +32 -32
- package/src/vm/index.js +1 -1
- package/tsconfig.json +19 -19
- package/tsconfig.node.json +8 -8
- package/vite.config.ts +122 -122
|
@@ -1,278 +1,278 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="page">
|
|
3
|
-
<widget-qw-objs-editor label="房型" v-model="data.datas" :schema="data.schema" />
|
|
4
|
-
</div>
|
|
5
|
-
</template>
|
|
6
|
-
|
|
7
|
-
<script setup>
|
|
8
|
-
import { onMounted, reactive, watch } from "vue";
|
|
9
|
-
|
|
10
|
-
const data = reactive({
|
|
11
|
-
schema: {
|
|
12
|
-
name: {
|
|
13
|
-
label: '房型',
|
|
14
|
-
type: 'String',
|
|
15
|
-
default: '',
|
|
16
|
-
auth: 'required',
|
|
17
|
-
schema: {
|
|
18
|
-
options: [
|
|
19
|
-
{
|
|
20
|
-
label: "a",
|
|
21
|
-
value: "a",
|
|
22
|
-
materials: [
|
|
23
|
-
{
|
|
24
|
-
materialId: "jiFdBeVT",
|
|
25
|
-
quantity: 1,
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
materialId: "v6tjBw4R",
|
|
29
|
-
quantity: 2,
|
|
30
|
-
}
|
|
31
|
-
]
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
label: "b",
|
|
35
|
-
value: "b",
|
|
36
|
-
materials: [
|
|
37
|
-
{
|
|
38
|
-
materialId: "jiFdBeVT",
|
|
39
|
-
quantity: 1,
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
materialId: "v6tjBw4R",
|
|
43
|
-
quantity: 2,
|
|
44
|
-
}
|
|
45
|
-
]
|
|
46
|
-
}
|
|
47
|
-
]
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
quantity: {
|
|
51
|
-
label: '数量',
|
|
52
|
-
type: 'Number',
|
|
53
|
-
default: 1,
|
|
54
|
-
auth: 'readonly',
|
|
55
|
-
},
|
|
56
|
-
images: {
|
|
57
|
-
label: '图片',
|
|
58
|
-
type: 'Images',
|
|
59
|
-
default: [],
|
|
60
|
-
auth: 'required',
|
|
61
|
-
},
|
|
62
|
-
materials: {
|
|
63
|
-
label: '材料表',
|
|
64
|
-
type: 'Array',
|
|
65
|
-
default: [],
|
|
66
|
-
auth: 'required',
|
|
67
|
-
schema: {
|
|
68
|
-
materialId: {
|
|
69
|
-
label: '材料id',
|
|
70
|
-
type: 'String',
|
|
71
|
-
default: '',
|
|
72
|
-
auth: 'required',
|
|
73
|
-
schema: {
|
|
74
|
-
options: [
|
|
75
|
-
{
|
|
76
|
-
"name": "保温棉",
|
|
77
|
-
"materialId": "jiFdBeVT",
|
|
78
|
-
"specification": "6mm",
|
|
79
|
-
"unit": "m"
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
"name": "保温棉",
|
|
83
|
-
"materialId": "v6tjBw4R",
|
|
84
|
-
"specification": "8mm",
|
|
85
|
-
"unit": "m"
|
|
86
|
-
}]
|
|
87
|
-
}
|
|
88
|
-
},
|
|
89
|
-
quantity: {
|
|
90
|
-
label: '数量',
|
|
91
|
-
type: 'Number',
|
|
92
|
-
default: 0,
|
|
93
|
-
auth: 'required'
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
},
|
|
98
|
-
// schema: {
|
|
99
|
-
// id:{
|
|
100
|
-
// label: 'id',
|
|
101
|
-
// type: 'String',
|
|
102
|
-
// // 自动生成8位uuid默认值
|
|
103
|
-
// default: 'uuid',
|
|
104
|
-
// //此字段是隐藏值
|
|
105
|
-
// auth: 'gone',
|
|
106
|
-
// schema: {
|
|
107
|
-
// options: [{
|
|
108
|
-
// name: '内机',
|
|
109
|
-
// value: 'nj',
|
|
110
|
-
// title: '内机'
|
|
111
|
-
// }]
|
|
112
|
-
// }
|
|
113
|
-
// },
|
|
114
|
-
// name: {
|
|
115
|
-
// label: '房号',
|
|
116
|
-
// type: 'String',
|
|
117
|
-
// default: '',
|
|
118
|
-
// auth: 'required'
|
|
119
|
-
// },
|
|
120
|
-
// finishQuantity: {
|
|
121
|
-
// auth:'required'
|
|
122
|
-
// },
|
|
123
|
-
// finishQuantity:{
|
|
124
|
-
// label: '完成数量',
|
|
125
|
-
// type: 'Number',
|
|
126
|
-
// default: 0,
|
|
127
|
-
// auth: 'readonly'
|
|
128
|
-
// },
|
|
129
|
-
// quantity:{
|
|
130
|
-
// label: '每天最多完成数量',
|
|
131
|
-
// type: 'Number',
|
|
132
|
-
// default: 0,
|
|
133
|
-
// auth: 'option'
|
|
134
|
-
// },
|
|
135
|
-
// parts: {
|
|
136
|
-
// label: '空调',
|
|
137
|
-
// type: 'Array',
|
|
138
|
-
// default: [],
|
|
139
|
-
// auth: 'required',
|
|
140
|
-
// auth:'required',
|
|
141
|
-
// schema: {
|
|
142
|
-
// partStandardId: {
|
|
143
|
-
// label: '名称',
|
|
144
|
-
// type: 'String',
|
|
145
|
-
// default: '',
|
|
146
|
-
// schema: {
|
|
147
|
-
// options: [{
|
|
148
|
-
// name: '内机',
|
|
149
|
-
// value: 'nj',
|
|
150
|
-
// title: '内机'
|
|
151
|
-
// }]
|
|
152
|
-
// }
|
|
153
|
-
// },
|
|
154
|
-
// quantity: {
|
|
155
|
-
// label: '数量',
|
|
156
|
-
// type: 'Number',
|
|
157
|
-
// default: 1,
|
|
158
|
-
// }
|
|
159
|
-
// }
|
|
160
|
-
// }
|
|
161
|
-
// },
|
|
162
|
-
// schema: {
|
|
163
|
-
// title: {
|
|
164
|
-
// label: '标题',
|
|
165
|
-
// type: 'String',
|
|
166
|
-
// default: ''
|
|
167
|
-
// },
|
|
168
|
-
// time: {
|
|
169
|
-
// label: '时间',
|
|
170
|
-
// type: 'Datetime',
|
|
171
|
-
// default: ''
|
|
172
|
-
// },
|
|
173
|
-
// quantity: {
|
|
174
|
-
// label: '数量',
|
|
175
|
-
// type: 'Number',
|
|
176
|
-
// default: 1
|
|
177
|
-
// },
|
|
178
|
-
// isFinish: {
|
|
179
|
-
// label: '完成',
|
|
180
|
-
// type: 'Boolean',
|
|
181
|
-
// default: true
|
|
182
|
-
// },
|
|
183
|
-
// stages: {
|
|
184
|
-
// label: '工序',
|
|
185
|
-
// type: 'Array',
|
|
186
|
-
// default: [],
|
|
187
|
-
// schema: {
|
|
188
|
-
// title: {
|
|
189
|
-
// label: '名称',
|
|
190
|
-
// type: 'String',
|
|
191
|
-
// default: ''
|
|
192
|
-
// },
|
|
193
|
-
// hour: {
|
|
194
|
-
// label: '工时',
|
|
195
|
-
// type: 'Number',
|
|
196
|
-
// default: '1'
|
|
197
|
-
// },
|
|
198
|
-
// }
|
|
199
|
-
// },
|
|
200
|
-
// permission: {
|
|
201
|
-
// label: '权限',
|
|
202
|
-
// type: 'String',
|
|
203
|
-
// default: '',
|
|
204
|
-
// schema: {
|
|
205
|
-
// options: [
|
|
206
|
-
// {
|
|
207
|
-
// name: '查询所有工资单',
|
|
208
|
-
// value: 'salary_query_total',
|
|
209
|
-
// title: '查询所有工资单',
|
|
210
|
-
|
|
211
|
-
// },
|
|
212
|
-
// {
|
|
213
|
-
// name: '查询项目利润',
|
|
214
|
-
// value: 'project_profit',
|
|
215
|
-
// title: '查询项目利润'
|
|
216
|
-
// }
|
|
217
|
-
// ]
|
|
218
|
-
// }
|
|
219
|
-
// },
|
|
220
|
-
// role: {
|
|
221
|
-
// label: "角色",
|
|
222
|
-
// type: "String",
|
|
223
|
-
// default: ""
|
|
224
|
-
// },
|
|
225
|
-
// permissions: {
|
|
226
|
-
// label: "权限列表",
|
|
227
|
-
// type: "Array",
|
|
228
|
-
// default: [],
|
|
229
|
-
// schema: {
|
|
230
|
-
// title: {
|
|
231
|
-
// label: "名称",
|
|
232
|
-
// type: "String",
|
|
233
|
-
// default: ""
|
|
234
|
-
// },
|
|
235
|
-
// value: {
|
|
236
|
-
// label: "值",
|
|
237
|
-
// type: "String",
|
|
238
|
-
// default: "",
|
|
239
|
-
// // 注意:选项列表一定要放在值属性下面
|
|
240
|
-
// schema: {
|
|
241
|
-
// options: [
|
|
242
|
-
// {
|
|
243
|
-
// title: "查询所有工资单",
|
|
244
|
-
// value: "salary_query_total"
|
|
245
|
-
// },
|
|
246
|
-
// {
|
|
247
|
-
// title: "查询项目利润",
|
|
248
|
-
// value: "project_profit"
|
|
249
|
-
// }
|
|
250
|
-
// ]
|
|
251
|
-
// }
|
|
252
|
-
// }
|
|
253
|
-
// }
|
|
254
|
-
// }
|
|
255
|
-
//},
|
|
256
|
-
datas: null,
|
|
257
|
-
})
|
|
258
|
-
|
|
259
|
-
watch(() => data.datas, (n, o) => {
|
|
260
|
-
console.log('>>>>', n)
|
|
261
|
-
}, {
|
|
262
|
-
immediate: true
|
|
263
|
-
})
|
|
264
|
-
</script>
|
|
265
|
-
|
|
266
|
-
<style lang="scss" scoped>
|
|
267
|
-
.page {
|
|
268
|
-
height: 100vh;
|
|
269
|
-
background: #fff;
|
|
270
|
-
text-align: center;
|
|
271
|
-
background-size: cover;
|
|
272
|
-
display: flex;
|
|
273
|
-
flex-direction: column;
|
|
274
|
-
justify-content: flex-start;
|
|
275
|
-
padding: 80px 15px 0 15px;
|
|
276
|
-
box-sizing: border-box;
|
|
277
|
-
}
|
|
1
|
+
<template>
|
|
2
|
+
<div class="page">
|
|
3
|
+
<widget-qw-objs-editor label="房型" v-model="data.datas" :schema="data.schema" />
|
|
4
|
+
</div>
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<script setup>
|
|
8
|
+
import { onMounted, reactive, watch } from "vue";
|
|
9
|
+
|
|
10
|
+
const data = reactive({
|
|
11
|
+
schema: {
|
|
12
|
+
name: {
|
|
13
|
+
label: '房型',
|
|
14
|
+
type: 'String',
|
|
15
|
+
default: '',
|
|
16
|
+
auth: 'required',
|
|
17
|
+
schema: {
|
|
18
|
+
options: [
|
|
19
|
+
{
|
|
20
|
+
label: "a",
|
|
21
|
+
value: "a",
|
|
22
|
+
materials: [
|
|
23
|
+
{
|
|
24
|
+
materialId: "jiFdBeVT",
|
|
25
|
+
quantity: 1,
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
materialId: "v6tjBw4R",
|
|
29
|
+
quantity: 2,
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
label: "b",
|
|
35
|
+
value: "b",
|
|
36
|
+
materials: [
|
|
37
|
+
{
|
|
38
|
+
materialId: "jiFdBeVT",
|
|
39
|
+
quantity: 1,
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
materialId: "v6tjBw4R",
|
|
43
|
+
quantity: 2,
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
quantity: {
|
|
51
|
+
label: '数量',
|
|
52
|
+
type: 'Number',
|
|
53
|
+
default: 1,
|
|
54
|
+
auth: 'readonly',
|
|
55
|
+
},
|
|
56
|
+
images: {
|
|
57
|
+
label: '图片',
|
|
58
|
+
type: 'Images',
|
|
59
|
+
default: [],
|
|
60
|
+
auth: 'required',
|
|
61
|
+
},
|
|
62
|
+
materials: {
|
|
63
|
+
label: '材料表',
|
|
64
|
+
type: 'Array',
|
|
65
|
+
default: [],
|
|
66
|
+
auth: 'required',
|
|
67
|
+
schema: {
|
|
68
|
+
materialId: {
|
|
69
|
+
label: '材料id',
|
|
70
|
+
type: 'String',
|
|
71
|
+
default: '',
|
|
72
|
+
auth: 'required',
|
|
73
|
+
schema: {
|
|
74
|
+
options: [
|
|
75
|
+
{
|
|
76
|
+
"name": "保温棉",
|
|
77
|
+
"materialId": "jiFdBeVT",
|
|
78
|
+
"specification": "6mm",
|
|
79
|
+
"unit": "m"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"name": "保温棉",
|
|
83
|
+
"materialId": "v6tjBw4R",
|
|
84
|
+
"specification": "8mm",
|
|
85
|
+
"unit": "m"
|
|
86
|
+
}]
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
quantity: {
|
|
90
|
+
label: '数量',
|
|
91
|
+
type: 'Number',
|
|
92
|
+
default: 0,
|
|
93
|
+
auth: 'required'
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
// schema: {
|
|
99
|
+
// id:{
|
|
100
|
+
// label: 'id',
|
|
101
|
+
// type: 'String',
|
|
102
|
+
// // 自动生成8位uuid默认值
|
|
103
|
+
// default: 'uuid',
|
|
104
|
+
// //此字段是隐藏值
|
|
105
|
+
// auth: 'gone',
|
|
106
|
+
// schema: {
|
|
107
|
+
// options: [{
|
|
108
|
+
// name: '内机',
|
|
109
|
+
// value: 'nj',
|
|
110
|
+
// title: '内机'
|
|
111
|
+
// }]
|
|
112
|
+
// }
|
|
113
|
+
// },
|
|
114
|
+
// name: {
|
|
115
|
+
// label: '房号',
|
|
116
|
+
// type: 'String',
|
|
117
|
+
// default: '',
|
|
118
|
+
// auth: 'required'
|
|
119
|
+
// },
|
|
120
|
+
// finishQuantity: {
|
|
121
|
+
// auth:'required'
|
|
122
|
+
// },
|
|
123
|
+
// finishQuantity:{
|
|
124
|
+
// label: '完成数量',
|
|
125
|
+
// type: 'Number',
|
|
126
|
+
// default: 0,
|
|
127
|
+
// auth: 'readonly'
|
|
128
|
+
// },
|
|
129
|
+
// quantity:{
|
|
130
|
+
// label: '每天最多完成数量',
|
|
131
|
+
// type: 'Number',
|
|
132
|
+
// default: 0,
|
|
133
|
+
// auth: 'option'
|
|
134
|
+
// },
|
|
135
|
+
// parts: {
|
|
136
|
+
// label: '空调',
|
|
137
|
+
// type: 'Array',
|
|
138
|
+
// default: [],
|
|
139
|
+
// auth: 'required',
|
|
140
|
+
// auth:'required',
|
|
141
|
+
// schema: {
|
|
142
|
+
// partStandardId: {
|
|
143
|
+
// label: '名称',
|
|
144
|
+
// type: 'String',
|
|
145
|
+
// default: '',
|
|
146
|
+
// schema: {
|
|
147
|
+
// options: [{
|
|
148
|
+
// name: '内机',
|
|
149
|
+
// value: 'nj',
|
|
150
|
+
// title: '内机'
|
|
151
|
+
// }]
|
|
152
|
+
// }
|
|
153
|
+
// },
|
|
154
|
+
// quantity: {
|
|
155
|
+
// label: '数量',
|
|
156
|
+
// type: 'Number',
|
|
157
|
+
// default: 1,
|
|
158
|
+
// }
|
|
159
|
+
// }
|
|
160
|
+
// }
|
|
161
|
+
// },
|
|
162
|
+
// schema: {
|
|
163
|
+
// title: {
|
|
164
|
+
// label: '标题',
|
|
165
|
+
// type: 'String',
|
|
166
|
+
// default: ''
|
|
167
|
+
// },
|
|
168
|
+
// time: {
|
|
169
|
+
// label: '时间',
|
|
170
|
+
// type: 'Datetime',
|
|
171
|
+
// default: ''
|
|
172
|
+
// },
|
|
173
|
+
// quantity: {
|
|
174
|
+
// label: '数量',
|
|
175
|
+
// type: 'Number',
|
|
176
|
+
// default: 1
|
|
177
|
+
// },
|
|
178
|
+
// isFinish: {
|
|
179
|
+
// label: '完成',
|
|
180
|
+
// type: 'Boolean',
|
|
181
|
+
// default: true
|
|
182
|
+
// },
|
|
183
|
+
// stages: {
|
|
184
|
+
// label: '工序',
|
|
185
|
+
// type: 'Array',
|
|
186
|
+
// default: [],
|
|
187
|
+
// schema: {
|
|
188
|
+
// title: {
|
|
189
|
+
// label: '名称',
|
|
190
|
+
// type: 'String',
|
|
191
|
+
// default: ''
|
|
192
|
+
// },
|
|
193
|
+
// hour: {
|
|
194
|
+
// label: '工时',
|
|
195
|
+
// type: 'Number',
|
|
196
|
+
// default: '1'
|
|
197
|
+
// },
|
|
198
|
+
// }
|
|
199
|
+
// },
|
|
200
|
+
// permission: {
|
|
201
|
+
// label: '权限',
|
|
202
|
+
// type: 'String',
|
|
203
|
+
// default: '',
|
|
204
|
+
// schema: {
|
|
205
|
+
// options: [
|
|
206
|
+
// {
|
|
207
|
+
// name: '查询所有工资单',
|
|
208
|
+
// value: 'salary_query_total',
|
|
209
|
+
// title: '查询所有工资单',
|
|
210
|
+
|
|
211
|
+
// },
|
|
212
|
+
// {
|
|
213
|
+
// name: '查询项目利润',
|
|
214
|
+
// value: 'project_profit',
|
|
215
|
+
// title: '查询项目利润'
|
|
216
|
+
// }
|
|
217
|
+
// ]
|
|
218
|
+
// }
|
|
219
|
+
// },
|
|
220
|
+
// role: {
|
|
221
|
+
// label: "角色",
|
|
222
|
+
// type: "String",
|
|
223
|
+
// default: ""
|
|
224
|
+
// },
|
|
225
|
+
// permissions: {
|
|
226
|
+
// label: "权限列表",
|
|
227
|
+
// type: "Array",
|
|
228
|
+
// default: [],
|
|
229
|
+
// schema: {
|
|
230
|
+
// title: {
|
|
231
|
+
// label: "名称",
|
|
232
|
+
// type: "String",
|
|
233
|
+
// default: ""
|
|
234
|
+
// },
|
|
235
|
+
// value: {
|
|
236
|
+
// label: "值",
|
|
237
|
+
// type: "String",
|
|
238
|
+
// default: "",
|
|
239
|
+
// // 注意:选项列表一定要放在值属性下面
|
|
240
|
+
// schema: {
|
|
241
|
+
// options: [
|
|
242
|
+
// {
|
|
243
|
+
// title: "查询所有工资单",
|
|
244
|
+
// value: "salary_query_total"
|
|
245
|
+
// },
|
|
246
|
+
// {
|
|
247
|
+
// title: "查询项目利润",
|
|
248
|
+
// value: "project_profit"
|
|
249
|
+
// }
|
|
250
|
+
// ]
|
|
251
|
+
// }
|
|
252
|
+
// }
|
|
253
|
+
// }
|
|
254
|
+
// }
|
|
255
|
+
//},
|
|
256
|
+
datas: null,
|
|
257
|
+
})
|
|
258
|
+
|
|
259
|
+
watch(() => data.datas, (n, o) => {
|
|
260
|
+
console.log('>>>>', n)
|
|
261
|
+
}, {
|
|
262
|
+
immediate: true
|
|
263
|
+
})
|
|
264
|
+
</script>
|
|
265
|
+
|
|
266
|
+
<style lang="scss" scoped>
|
|
267
|
+
.page {
|
|
268
|
+
height: 100vh;
|
|
269
|
+
background: #fff;
|
|
270
|
+
text-align: center;
|
|
271
|
+
background-size: cover;
|
|
272
|
+
display: flex;
|
|
273
|
+
flex-direction: column;
|
|
274
|
+
justify-content: flex-start;
|
|
275
|
+
padding: 80px 15px 0 15px;
|
|
276
|
+
box-sizing: border-box;
|
|
277
|
+
}
|
|
278
278
|
</style>
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="page">
|
|
3
|
-
<widget-qw-product-selector
|
|
4
|
-
v-model="formData.productInfo"
|
|
5
|
-
:required="true"
|
|
6
|
-
:rules="[{ required: true, message: '请选择产品信息' }]"
|
|
7
|
-
:readonly="false"
|
|
8
|
-
/>
|
|
9
|
-
</div>
|
|
10
|
-
</template>
|
|
11
|
-
|
|
12
|
-
<script setup>
|
|
13
|
-
import { ref, onMounted, reactive, watch } from "vue";
|
|
14
|
-
|
|
15
|
-
const formData = ref({
|
|
16
|
-
productInfo: {
|
|
17
|
-
productName: "",
|
|
18
|
-
productCode: "",
|
|
19
|
-
},
|
|
20
|
-
});
|
|
21
|
-
</script>
|
|
22
|
-
|
|
23
|
-
<style lang="scss" scoped>
|
|
24
|
-
.page {
|
|
25
|
-
height: 100vh;
|
|
26
|
-
background: #fff;
|
|
27
|
-
text-align: center;
|
|
28
|
-
background-size: cover;
|
|
29
|
-
display: flex;
|
|
30
|
-
flex-direction: column;
|
|
31
|
-
justify-content: flex-start;
|
|
32
|
-
padding: 80px 15px 0 15px;
|
|
33
|
-
box-sizing: border-box;
|
|
34
|
-
}
|
|
35
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="page">
|
|
3
|
+
<widget-qw-product-selector
|
|
4
|
+
v-model="formData.productInfo"
|
|
5
|
+
:required="true"
|
|
6
|
+
:rules="[{ required: true, message: '请选择产品信息' }]"
|
|
7
|
+
:readonly="false"
|
|
8
|
+
/>
|
|
9
|
+
</div>
|
|
10
|
+
</template>
|
|
11
|
+
|
|
12
|
+
<script setup>
|
|
13
|
+
import { ref, onMounted, reactive, watch } from "vue";
|
|
14
|
+
|
|
15
|
+
const formData = ref({
|
|
16
|
+
productInfo: {
|
|
17
|
+
productName: "",
|
|
18
|
+
productCode: "",
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
</script>
|
|
22
|
+
|
|
23
|
+
<style lang="scss" scoped>
|
|
24
|
+
.page {
|
|
25
|
+
height: 100vh;
|
|
26
|
+
background: #fff;
|
|
27
|
+
text-align: center;
|
|
28
|
+
background-size: cover;
|
|
29
|
+
display: flex;
|
|
30
|
+
flex-direction: column;
|
|
31
|
+
justify-content: flex-start;
|
|
32
|
+
padding: 80px 15px 0 15px;
|
|
33
|
+
box-sizing: border-box;
|
|
34
|
+
}
|
|
35
|
+
</style>
|