widget.qw 1.0.30 → 1.0.32
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/build/style.css +15 -15
- package/build/widget.qw.es.js +41 -27
- package/build/widget.qw.umd.js +41 -27
- package/package.json +1 -1
- package/src/components/AuditBar.vue +14 -14
- package/src/components/Input.vue +23 -16
- package/src/components/image_picker.vue +7 -1
- package/src/components/images_picker.vue +12 -10
- package/src/views/projectdropdown/index.vue +0 -31
package/build/style.css
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
@charset "UTF-8";.widget[data-v-
|
|
1
|
+
@charset "UTF-8";.widget[data-v-78443471] {
|
|
2
2
|
text-align: center;
|
|
3
3
|
padding: 15px 15px;
|
|
4
4
|
}
|
|
5
|
-
.memo[data-v-
|
|
5
|
+
.memo[data-v-78443471] {
|
|
6
6
|
margin-bottom: 15px;
|
|
7
7
|
}
|
|
8
|
-
.refuse-btn[data-v-
|
|
8
|
+
.refuse-btn[data-v-78443471] {
|
|
9
9
|
width: 120px;
|
|
10
10
|
margin-right: 15px;
|
|
11
11
|
}
|
|
12
|
-
.pass-btn[data-v-
|
|
12
|
+
.pass-btn[data-v-78443471] {
|
|
13
13
|
width: 120px;
|
|
14
14
|
}
|
|
15
|
-
.apply-btn[data-v-
|
|
15
|
+
.apply-btn[data-v-78443471] {
|
|
16
16
|
width: 60vw;
|
|
17
17
|
}
|
|
18
|
-
.task-list[data-v-
|
|
18
|
+
.task-list[data-v-78443471] {
|
|
19
19
|
margin-top: 15px;
|
|
20
20
|
}
|
|
21
|
-
.task-title[data-v-
|
|
21
|
+
.task-title[data-v-78443471] {
|
|
22
22
|
font-size: 14px;
|
|
23
23
|
font-weight: bold;
|
|
24
24
|
color: #333;
|
|
25
25
|
text-align: left;
|
|
26
26
|
}
|
|
27
|
-
.task-user[data-v-
|
|
27
|
+
.task-user[data-v-78443471] {
|
|
28
28
|
font-size: 13px;
|
|
29
29
|
color: #666;
|
|
30
30
|
text-align: left;
|
|
31
31
|
margin-top: 5px;
|
|
32
32
|
}
|
|
33
|
-
.audit-title[data-v-
|
|
33
|
+
.audit-title[data-v-78443471] {
|
|
34
34
|
padding: 25px 15px 0 15px;
|
|
35
35
|
font-size: 16px;
|
|
36
36
|
font-weight: bold;
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
:root:root {
|
|
41
41
|
--van-popover-action-width: 70vw;
|
|
42
42
|
}
|
|
43
|
-
[data-v-
|
|
43
|
+
[data-v-ec78c334] .label {
|
|
44
44
|
color: #000 !important;
|
|
45
45
|
}
|
|
46
|
-
[data-v-
|
|
46
|
+
[data-v-ec78c334] .van-field__control:disabled {
|
|
47
47
|
color: #000 !important;
|
|
48
48
|
cursor: not-allowed;
|
|
49
49
|
opacity: 1;
|
|
@@ -387,18 +387,18 @@
|
|
|
387
387
|
color: #969799;
|
|
388
388
|
margin-right: 5px;
|
|
389
389
|
}
|
|
390
|
-
[data-v-
|
|
390
|
+
[data-v-08eede0f] .label {
|
|
391
391
|
color: #000 !important;
|
|
392
392
|
}
|
|
393
|
-
[data-v-
|
|
393
|
+
[data-v-08eede0f] .van-field__control:disabled {
|
|
394
394
|
color: #000 !important;
|
|
395
395
|
cursor: not-allowed;
|
|
396
396
|
opacity: 1;
|
|
397
397
|
-webkit-text-fill-color: #000;
|
|
398
|
-
}.widget[data-v-
|
|
398
|
+
}.widget[data-v-26d49728] {
|
|
399
399
|
text-align: center;
|
|
400
400
|
}
|
|
401
|
-
.widget .btn[data-v-
|
|
401
|
+
.widget .btn[data-v-26d49728] {
|
|
402
402
|
position: fixed;
|
|
403
403
|
bottom: 1rem;
|
|
404
404
|
left: 0;
|
package/build/widget.qw.es.js
CHANGED
|
@@ -15755,7 +15755,7 @@ var lodash$1 = { exports: {} };
|
|
|
15755
15755
|
}).call(commonjsGlobal);
|
|
15756
15756
|
})(lodash$1, lodash$1.exports);
|
|
15757
15757
|
var lodash = lodash$1.exports;
|
|
15758
|
-
var AuditBar_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-
|
|
15758
|
+
var AuditBar_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-78443471] {\n text-align: center;\n padding: 15px 15px;\n}\n.memo[data-v-78443471] {\n margin-bottom: 15px;\n}\n.refuse-btn[data-v-78443471] {\n width: 120px;\n margin-right: 15px;\n}\n.pass-btn[data-v-78443471] {\n width: 120px;\n}\n.apply-btn[data-v-78443471] {\n width: 60vw;\n}\n.task-list[data-v-78443471] {\n margin-top: 15px;\n}\n.task-title[data-v-78443471] {\n font-size: 14px;\n font-weight: bold;\n color: #333;\n text-align: left;\n}\n.task-user[data-v-78443471] {\n font-size: 13px;\n color: #666;\n text-align: left;\n margin-top: 5px;\n}\n.audit-title[data-v-78443471] {\n padding: 25px 15px 0 15px;\n font-size: 16px;\n font-weight: bold;\n color: #666;\n text-align: left;\n}")();
|
|
15759
15759
|
var AuditBar_vue_vue_type_style_index_1_lang = /* @__PURE__ */ (() => "\n:root:root {\r\n --van-popover-action-width: 70vw;\n}\r\n")();
|
|
15760
15760
|
var _export_sfc = (sfc, props) => {
|
|
15761
15761
|
const target = sfc.__vccOpts || sfc;
|
|
@@ -15966,39 +15966,39 @@ const _sfc_main$u = {
|
|
|
15966
15966
|
return "\u5BA1\u6279\u6D41\u7A0B:";
|
|
15967
15967
|
}
|
|
15968
15968
|
});
|
|
15969
|
-
watch(() => props.userId, () => {
|
|
15969
|
+
watch(() => props.userId, () => __async(this, null, function* () {
|
|
15970
15970
|
if (!props.userId)
|
|
15971
15971
|
return;
|
|
15972
|
-
queryDetail();
|
|
15973
|
-
queryStepAuth();
|
|
15974
|
-
updateCanApply();
|
|
15975
|
-
}, {
|
|
15972
|
+
yield queryDetail();
|
|
15973
|
+
yield queryStepAuth();
|
|
15974
|
+
yield updateCanApply();
|
|
15975
|
+
}), {
|
|
15976
15976
|
immediate: true
|
|
15977
15977
|
});
|
|
15978
|
-
watch(() => props.processId, () => {
|
|
15979
|
-
queryDetail();
|
|
15980
|
-
queryStepAuth();
|
|
15981
|
-
updateCanApply();
|
|
15982
|
-
}, {
|
|
15978
|
+
watch(() => props.processId, () => __async(this, null, function* () {
|
|
15979
|
+
yield queryDetail();
|
|
15980
|
+
yield queryStepAuth();
|
|
15981
|
+
yield updateCanApply();
|
|
15982
|
+
}), {
|
|
15983
15983
|
immediate: true
|
|
15984
15984
|
});
|
|
15985
15985
|
watch(() => props.mouldId, () => __async(this, null, function* () {
|
|
15986
15986
|
if (!props.processId && !props.mouldId)
|
|
15987
15987
|
return;
|
|
15988
|
-
queryDetail();
|
|
15988
|
+
yield queryDetail();
|
|
15989
15989
|
yield queryStepAuth();
|
|
15990
|
-
updateAuth();
|
|
15991
|
-
updateCanApply();
|
|
15990
|
+
yield updateAuth();
|
|
15991
|
+
yield updateCanApply();
|
|
15992
15992
|
}), {
|
|
15993
15993
|
immediate: true
|
|
15994
15994
|
});
|
|
15995
15995
|
watch(() => props.form, () => __async(this, null, function* () {
|
|
15996
15996
|
if (!data2.stepAuth)
|
|
15997
15997
|
return;
|
|
15998
|
-
queryDetail();
|
|
15998
|
+
yield queryDetail();
|
|
15999
15999
|
yield queryStepAuth();
|
|
16000
|
-
updateAuth();
|
|
16001
|
-
updateCanApply();
|
|
16000
|
+
yield updateAuth();
|
|
16001
|
+
yield updateCanApply();
|
|
16002
16002
|
}), {
|
|
16003
16003
|
immediate: true
|
|
16004
16004
|
}, {
|
|
@@ -16079,7 +16079,7 @@ const _sfc_main$u = {
|
|
|
16079
16079
|
};
|
|
16080
16080
|
}
|
|
16081
16081
|
};
|
|
16082
|
-
var AuditBar = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-
|
|
16082
|
+
var AuditBar = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-78443471"]]);
|
|
16083
16083
|
const isClient = typeof window !== "undefined" && typeof document !== "undefined";
|
|
16084
16084
|
typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
|
|
16085
16085
|
const isDef = (val) => typeof val !== "undefined";
|
|
@@ -16146,14 +16146,18 @@ function useVModel(props, key, emit, options = {}) {
|
|
|
16146
16146
|
});
|
|
16147
16147
|
}
|
|
16148
16148
|
}
|
|
16149
|
-
var Input_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-
|
|
16149
|
+
var Input_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-ec78c334] .label {\n color: #000 !important;\n}\n[data-v-ec78c334] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
|
|
16150
16150
|
const _sfc_main$t = {
|
|
16151
16151
|
__name: "Input",
|
|
16152
16152
|
props: {
|
|
16153
16153
|
modelValue: {
|
|
16154
|
-
type: String,
|
|
16154
|
+
type: [String, Number],
|
|
16155
16155
|
default: null
|
|
16156
16156
|
},
|
|
16157
|
+
modelModifiers: {
|
|
16158
|
+
type: Object,
|
|
16159
|
+
default: () => ({})
|
|
16160
|
+
},
|
|
16157
16161
|
label: {
|
|
16158
16162
|
type: String,
|
|
16159
16163
|
default: ""
|
|
@@ -16238,7 +16242,7 @@ const _sfc_main$t = {
|
|
|
16238
16242
|
};
|
|
16239
16243
|
}
|
|
16240
16244
|
};
|
|
16241
|
-
var Input = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-
|
|
16245
|
+
var Input = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-ec78c334"]]);
|
|
16242
16246
|
var SinglePicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-24e62c3a] .label {\n color: #000 !important;\n}\n[data-v-24e62c3a] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
|
|
16243
16247
|
const _sfc_main$s = {
|
|
16244
16248
|
__name: "SinglePicker",
|
|
@@ -18358,7 +18362,7 @@ const _sfc_main$j = {
|
|
|
18358
18362
|
}
|
|
18359
18363
|
};
|
|
18360
18364
|
var UserSelector = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-6c4b4fc8"]]);
|
|
18361
|
-
var image_picker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-
|
|
18365
|
+
var image_picker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-08eede0f] .label {\n color: #000 !important;\n}\n[data-v-08eede0f] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
|
|
18362
18366
|
const _hoisted_1$b = {
|
|
18363
18367
|
class: "image-box"
|
|
18364
18368
|
};
|
|
@@ -18385,6 +18389,10 @@ const _sfc_main$i = {
|
|
|
18385
18389
|
type: String,
|
|
18386
18390
|
default: ""
|
|
18387
18391
|
},
|
|
18392
|
+
capture: {
|
|
18393
|
+
type: String,
|
|
18394
|
+
default: ""
|
|
18395
|
+
},
|
|
18388
18396
|
compress: {
|
|
18389
18397
|
type: Boolean,
|
|
18390
18398
|
default: true
|
|
@@ -18458,19 +18466,20 @@ const _sfc_main$i = {
|
|
|
18458
18466
|
modelValue: files.value,
|
|
18459
18467
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => files.value = $event),
|
|
18460
18468
|
"max-count": 1,
|
|
18469
|
+
capture: props.capture,
|
|
18461
18470
|
accept: "image/jpeg,image/png",
|
|
18462
18471
|
afterRead: onAfterRead,
|
|
18463
18472
|
disabled: unref(isDisabled),
|
|
18464
18473
|
deletable: !unref(isDisabled),
|
|
18465
18474
|
"before-delete": onBeforeDelete
|
|
18466
|
-
}, null, 8, ["modelValue", "disabled", "deletable"])])]),
|
|
18475
|
+
}, null, 8, ["modelValue", "capture", "disabled", "deletable"])])]),
|
|
18467
18476
|
_: 1
|
|
18468
18477
|
}, 8, ["label", "required", "rules", "placeholder"])) : createCommentVNode("", true);
|
|
18469
18478
|
};
|
|
18470
18479
|
}
|
|
18471
18480
|
};
|
|
18472
|
-
var ImagePicker = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-
|
|
18473
|
-
var images_picker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-
|
|
18481
|
+
var ImagePicker = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-08eede0f"]]);
|
|
18482
|
+
var images_picker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-26d49728] {\n text-align: center;\n}\n.widget .btn[data-v-26d49728] {\n position: fixed;\n bottom: 1rem;\n left: 0;\n right: 0;\n margin: auto auto;\n color: white;\n font-size: 14px;\n background: rgb(58, 136, 255);\n padding: 8px 35px;\n width: 100px;\n text-align: center;\n display: inline-block;\n border-radius: 2px;\n}")();
|
|
18474
18483
|
const _hoisted_1$a = {
|
|
18475
18484
|
class: "image-box"
|
|
18476
18485
|
};
|
|
@@ -18497,6 +18506,10 @@ const _sfc_main$h = {
|
|
|
18497
18506
|
type: String,
|
|
18498
18507
|
default: ""
|
|
18499
18508
|
},
|
|
18509
|
+
capture: {
|
|
18510
|
+
type: String,
|
|
18511
|
+
default: ""
|
|
18512
|
+
},
|
|
18500
18513
|
compress: {
|
|
18501
18514
|
type: Boolean,
|
|
18502
18515
|
default: true
|
|
@@ -18584,18 +18597,19 @@ const _sfc_main$h = {
|
|
|
18584
18597
|
modelValue: files.value,
|
|
18585
18598
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => files.value = $event),
|
|
18586
18599
|
"max-count": props.max,
|
|
18600
|
+
capture: props.capture,
|
|
18587
18601
|
accept: "image/jpeg,image/png",
|
|
18588
18602
|
disabled: unref(isDisabled),
|
|
18589
18603
|
deletable: !unref(isDisabled),
|
|
18590
18604
|
afterRead: onAfterRead,
|
|
18591
18605
|
"before-delete": onBeforeDelete
|
|
18592
|
-
}, null, 8, ["modelValue", "max-count", "disabled", "deletable"])])]),
|
|
18606
|
+
}, null, 8, ["modelValue", "max-count", "capture", "disabled", "deletable"])])]),
|
|
18593
18607
|
_: 1
|
|
18594
18608
|
}, 8, ["label", "required", "rules", "placeholder"]);
|
|
18595
18609
|
};
|
|
18596
18610
|
}
|
|
18597
18611
|
};
|
|
18598
|
-
var ImagesPicker = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-
|
|
18612
|
+
var ImagesPicker = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-26d49728"]]);
|
|
18599
18613
|
var FilePicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-a0846250] .label {\n color: #000 !important;\n}\n[data-v-a0846250] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
|
|
18600
18614
|
const _hoisted_1$9 = {
|
|
18601
18615
|
class: "image-box"
|
package/build/widget.qw.umd.js
CHANGED
|
@@ -15758,7 +15758,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
15758
15758
|
}).call(commonjsGlobal);
|
|
15759
15759
|
})(lodash$1, lodash$1.exports);
|
|
15760
15760
|
var lodash = lodash$1.exports;
|
|
15761
|
-
var AuditBar_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-
|
|
15761
|
+
var AuditBar_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-78443471] {\n text-align: center;\n padding: 15px 15px;\n}\n.memo[data-v-78443471] {\n margin-bottom: 15px;\n}\n.refuse-btn[data-v-78443471] {\n width: 120px;\n margin-right: 15px;\n}\n.pass-btn[data-v-78443471] {\n width: 120px;\n}\n.apply-btn[data-v-78443471] {\n width: 60vw;\n}\n.task-list[data-v-78443471] {\n margin-top: 15px;\n}\n.task-title[data-v-78443471] {\n font-size: 14px;\n font-weight: bold;\n color: #333;\n text-align: left;\n}\n.task-user[data-v-78443471] {\n font-size: 13px;\n color: #666;\n text-align: left;\n margin-top: 5px;\n}\n.audit-title[data-v-78443471] {\n padding: 25px 15px 0 15px;\n font-size: 16px;\n font-weight: bold;\n color: #666;\n text-align: left;\n}")();
|
|
15762
15762
|
var AuditBar_vue_vue_type_style_index_1_lang = /* @__PURE__ */ (() => "\n:root:root {\r\n --van-popover-action-width: 70vw;\n}\r\n")();
|
|
15763
15763
|
var _export_sfc = (sfc, props) => {
|
|
15764
15764
|
const target = sfc.__vccOpts || sfc;
|
|
@@ -15969,39 +15969,39 @@ var __async = (__this, __arguments, generator) => {
|
|
|
15969
15969
|
return "\u5BA1\u6279\u6D41\u7A0B:";
|
|
15970
15970
|
}
|
|
15971
15971
|
});
|
|
15972
|
-
vue.watch(() => props.userId, () => {
|
|
15972
|
+
vue.watch(() => props.userId, () => __async(this, null, function* () {
|
|
15973
15973
|
if (!props.userId)
|
|
15974
15974
|
return;
|
|
15975
|
-
queryDetail();
|
|
15976
|
-
queryStepAuth();
|
|
15977
|
-
updateCanApply();
|
|
15978
|
-
}, {
|
|
15975
|
+
yield queryDetail();
|
|
15976
|
+
yield queryStepAuth();
|
|
15977
|
+
yield updateCanApply();
|
|
15978
|
+
}), {
|
|
15979
15979
|
immediate: true
|
|
15980
15980
|
});
|
|
15981
|
-
vue.watch(() => props.processId, () => {
|
|
15982
|
-
queryDetail();
|
|
15983
|
-
queryStepAuth();
|
|
15984
|
-
updateCanApply();
|
|
15985
|
-
}, {
|
|
15981
|
+
vue.watch(() => props.processId, () => __async(this, null, function* () {
|
|
15982
|
+
yield queryDetail();
|
|
15983
|
+
yield queryStepAuth();
|
|
15984
|
+
yield updateCanApply();
|
|
15985
|
+
}), {
|
|
15986
15986
|
immediate: true
|
|
15987
15987
|
});
|
|
15988
15988
|
vue.watch(() => props.mouldId, () => __async(this, null, function* () {
|
|
15989
15989
|
if (!props.processId && !props.mouldId)
|
|
15990
15990
|
return;
|
|
15991
|
-
queryDetail();
|
|
15991
|
+
yield queryDetail();
|
|
15992
15992
|
yield queryStepAuth();
|
|
15993
|
-
updateAuth();
|
|
15994
|
-
updateCanApply();
|
|
15993
|
+
yield updateAuth();
|
|
15994
|
+
yield updateCanApply();
|
|
15995
15995
|
}), {
|
|
15996
15996
|
immediate: true
|
|
15997
15997
|
});
|
|
15998
15998
|
vue.watch(() => props.form, () => __async(this, null, function* () {
|
|
15999
15999
|
if (!data2.stepAuth)
|
|
16000
16000
|
return;
|
|
16001
|
-
queryDetail();
|
|
16001
|
+
yield queryDetail();
|
|
16002
16002
|
yield queryStepAuth();
|
|
16003
|
-
updateAuth();
|
|
16004
|
-
updateCanApply();
|
|
16003
|
+
yield updateAuth();
|
|
16004
|
+
yield updateCanApply();
|
|
16005
16005
|
}), {
|
|
16006
16006
|
immediate: true
|
|
16007
16007
|
}, {
|
|
@@ -16082,7 +16082,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
16082
16082
|
};
|
|
16083
16083
|
}
|
|
16084
16084
|
};
|
|
16085
|
-
var AuditBar = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-
|
|
16085
|
+
var AuditBar = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-78443471"]]);
|
|
16086
16086
|
const isClient = typeof window !== "undefined" && typeof document !== "undefined";
|
|
16087
16087
|
typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
|
|
16088
16088
|
const isDef = (val) => typeof val !== "undefined";
|
|
@@ -16149,14 +16149,18 @@ var __async = (__this, __arguments, generator) => {
|
|
|
16149
16149
|
});
|
|
16150
16150
|
}
|
|
16151
16151
|
}
|
|
16152
|
-
var Input_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-
|
|
16152
|
+
var Input_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-ec78c334] .label {\n color: #000 !important;\n}\n[data-v-ec78c334] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
|
|
16153
16153
|
const _sfc_main$t = {
|
|
16154
16154
|
__name: "Input",
|
|
16155
16155
|
props: {
|
|
16156
16156
|
modelValue: {
|
|
16157
|
-
type: String,
|
|
16157
|
+
type: [String, Number],
|
|
16158
16158
|
default: null
|
|
16159
16159
|
},
|
|
16160
|
+
modelModifiers: {
|
|
16161
|
+
type: Object,
|
|
16162
|
+
default: () => ({})
|
|
16163
|
+
},
|
|
16160
16164
|
label: {
|
|
16161
16165
|
type: String,
|
|
16162
16166
|
default: ""
|
|
@@ -16241,7 +16245,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
16241
16245
|
};
|
|
16242
16246
|
}
|
|
16243
16247
|
};
|
|
16244
|
-
var Input = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-
|
|
16248
|
+
var Input = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-ec78c334"]]);
|
|
16245
16249
|
var SinglePicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-24e62c3a] .label {\n color: #000 !important;\n}\n[data-v-24e62c3a] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
|
|
16246
16250
|
const _sfc_main$s = {
|
|
16247
16251
|
__name: "SinglePicker",
|
|
@@ -18361,7 +18365,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
18361
18365
|
}
|
|
18362
18366
|
};
|
|
18363
18367
|
var UserSelector = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-6c4b4fc8"]]);
|
|
18364
|
-
var image_picker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-
|
|
18368
|
+
var image_picker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-08eede0f] .label {\n color: #000 !important;\n}\n[data-v-08eede0f] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
|
|
18365
18369
|
const _hoisted_1$b = {
|
|
18366
18370
|
class: "image-box"
|
|
18367
18371
|
};
|
|
@@ -18388,6 +18392,10 @@ var __async = (__this, __arguments, generator) => {
|
|
|
18388
18392
|
type: String,
|
|
18389
18393
|
default: ""
|
|
18390
18394
|
},
|
|
18395
|
+
capture: {
|
|
18396
|
+
type: String,
|
|
18397
|
+
default: ""
|
|
18398
|
+
},
|
|
18391
18399
|
compress: {
|
|
18392
18400
|
type: Boolean,
|
|
18393
18401
|
default: true
|
|
@@ -18461,19 +18469,20 @@ var __async = (__this, __arguments, generator) => {
|
|
|
18461
18469
|
modelValue: files.value,
|
|
18462
18470
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => files.value = $event),
|
|
18463
18471
|
"max-count": 1,
|
|
18472
|
+
capture: props.capture,
|
|
18464
18473
|
accept: "image/jpeg,image/png",
|
|
18465
18474
|
afterRead: onAfterRead,
|
|
18466
18475
|
disabled: vue.unref(isDisabled),
|
|
18467
18476
|
deletable: !vue.unref(isDisabled),
|
|
18468
18477
|
"before-delete": onBeforeDelete
|
|
18469
|
-
}, null, 8, ["modelValue", "disabled", "deletable"])])]),
|
|
18478
|
+
}, null, 8, ["modelValue", "capture", "disabled", "deletable"])])]),
|
|
18470
18479
|
_: 1
|
|
18471
18480
|
}, 8, ["label", "required", "rules", "placeholder"])) : vue.createCommentVNode("", true);
|
|
18472
18481
|
};
|
|
18473
18482
|
}
|
|
18474
18483
|
};
|
|
18475
|
-
var ImagePicker = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-
|
|
18476
|
-
var images_picker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-
|
|
18484
|
+
var ImagePicker = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-08eede0f"]]);
|
|
18485
|
+
var images_picker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-26d49728] {\n text-align: center;\n}\n.widget .btn[data-v-26d49728] {\n position: fixed;\n bottom: 1rem;\n left: 0;\n right: 0;\n margin: auto auto;\n color: white;\n font-size: 14px;\n background: rgb(58, 136, 255);\n padding: 8px 35px;\n width: 100px;\n text-align: center;\n display: inline-block;\n border-radius: 2px;\n}")();
|
|
18477
18486
|
const _hoisted_1$a = {
|
|
18478
18487
|
class: "image-box"
|
|
18479
18488
|
};
|
|
@@ -18500,6 +18509,10 @@ var __async = (__this, __arguments, generator) => {
|
|
|
18500
18509
|
type: String,
|
|
18501
18510
|
default: ""
|
|
18502
18511
|
},
|
|
18512
|
+
capture: {
|
|
18513
|
+
type: String,
|
|
18514
|
+
default: ""
|
|
18515
|
+
},
|
|
18503
18516
|
compress: {
|
|
18504
18517
|
type: Boolean,
|
|
18505
18518
|
default: true
|
|
@@ -18587,18 +18600,19 @@ var __async = (__this, __arguments, generator) => {
|
|
|
18587
18600
|
modelValue: files.value,
|
|
18588
18601
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => files.value = $event),
|
|
18589
18602
|
"max-count": props.max,
|
|
18603
|
+
capture: props.capture,
|
|
18590
18604
|
accept: "image/jpeg,image/png",
|
|
18591
18605
|
disabled: vue.unref(isDisabled),
|
|
18592
18606
|
deletable: !vue.unref(isDisabled),
|
|
18593
18607
|
afterRead: onAfterRead,
|
|
18594
18608
|
"before-delete": onBeforeDelete
|
|
18595
|
-
}, null, 8, ["modelValue", "max-count", "disabled", "deletable"])])]),
|
|
18609
|
+
}, null, 8, ["modelValue", "max-count", "capture", "disabled", "deletable"])])]),
|
|
18596
18610
|
_: 1
|
|
18597
18611
|
}, 8, ["label", "required", "rules", "placeholder"]);
|
|
18598
18612
|
};
|
|
18599
18613
|
}
|
|
18600
18614
|
};
|
|
18601
|
-
var ImagesPicker = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-
|
|
18615
|
+
var ImagesPicker = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-26d49728"]]);
|
|
18602
18616
|
var FilePicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-a0846250] .label {\n color: #000 !important;\n}\n[data-v-a0846250] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
|
|
18603
18617
|
const _hoisted_1$9 = {
|
|
18604
18618
|
class: "image-box"
|
package/package.json
CHANGED
|
@@ -249,39 +249,39 @@ const formatProcessTitle = computed(() => {
|
|
|
249
249
|
}
|
|
250
250
|
})
|
|
251
251
|
|
|
252
|
-
watch(() => props.userId, () => {
|
|
252
|
+
watch(() => props.userId, async() => {
|
|
253
253
|
if (!props.userId)
|
|
254
254
|
return
|
|
255
255
|
|
|
256
|
-
queryDetail()
|
|
257
|
-
queryStepAuth()
|
|
258
|
-
updateCanApply()
|
|
256
|
+
await queryDetail()
|
|
257
|
+
await queryStepAuth()
|
|
258
|
+
await updateCanApply()
|
|
259
259
|
}, { immediate: true })
|
|
260
260
|
|
|
261
|
-
watch(() => props.processId, () => {
|
|
262
|
-
queryDetail()
|
|
263
|
-
queryStepAuth()
|
|
264
|
-
updateCanApply()
|
|
261
|
+
watch(() => props.processId, async() => {
|
|
262
|
+
await queryDetail()
|
|
263
|
+
await queryStepAuth()
|
|
264
|
+
await updateCanApply()
|
|
265
265
|
}, { immediate: true })
|
|
266
266
|
|
|
267
267
|
watch(() => props.mouldId, async () => {
|
|
268
268
|
if (!props.processId && !props.mouldId)
|
|
269
269
|
return
|
|
270
270
|
|
|
271
|
-
queryDetail()
|
|
271
|
+
await queryDetail()
|
|
272
272
|
await queryStepAuth()
|
|
273
|
-
updateAuth()
|
|
274
|
-
updateCanApply()
|
|
273
|
+
await updateAuth()
|
|
274
|
+
await updateCanApply()
|
|
275
275
|
}, { immediate: true })
|
|
276
276
|
|
|
277
277
|
watch(() => props.form, async () => {
|
|
278
278
|
if (!data.stepAuth)
|
|
279
279
|
return
|
|
280
280
|
|
|
281
|
-
queryDetail()
|
|
281
|
+
await queryDetail()
|
|
282
282
|
await queryStepAuth()
|
|
283
|
-
updateAuth()
|
|
284
|
-
updateCanApply()
|
|
283
|
+
await updateAuth()
|
|
284
|
+
await updateCanApply()
|
|
285
285
|
}, { immediate: true }, {
|
|
286
286
|
deep: true
|
|
287
287
|
})
|
package/src/components/Input.vue
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<van-field :label="props.label" v-model.number="modelValue" v-if="!isGone && props.type==='number'"
|
|
3
|
-
:
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
<van-field :label="props.label" v-model.number="modelValue" v-if="!isGone && props.type === 'number'"
|
|
3
|
+
:disabled="isDisabled" :required="isRequired" :placeholder="props.placeholder" :type="props.type"
|
|
4
|
+
:rows="props.rows" :autosize="props.autosize" :rules="props.rules" />
|
|
5
|
+
<van-field :label="props.label" v-model="modelValue" v-if="!isGone && props.type != 'number'" :disabled="isDisabled"
|
|
6
|
+
:required="isRequired" :placeholder="props.placeholder" :type="props.type" :rows="props.rows"
|
|
7
|
+
:autosize="props.autosize" :rules="props.rules" />
|
|
6
8
|
</template>
|
|
7
9
|
|
|
8
10
|
<script setup>
|
|
@@ -12,24 +14,29 @@ import util from '../util'
|
|
|
12
14
|
|
|
13
15
|
const props = defineProps({
|
|
14
16
|
modelValue: {
|
|
15
|
-
type:String,
|
|
16
|
-
default:null
|
|
17
|
+
type: [String, Number],
|
|
18
|
+
default: null
|
|
19
|
+
},
|
|
20
|
+
// 支持v-model.number写法
|
|
21
|
+
modelModifiers: {
|
|
22
|
+
type: Object,
|
|
23
|
+
default: () => ({})
|
|
17
24
|
},
|
|
18
25
|
label: {
|
|
19
|
-
type:String,
|
|
26
|
+
type: String,
|
|
20
27
|
default: ''
|
|
21
28
|
},
|
|
22
29
|
type: {
|
|
23
30
|
type: String,
|
|
24
31
|
default: 'text'
|
|
25
32
|
},
|
|
26
|
-
rows:{
|
|
27
|
-
type:Number,
|
|
28
|
-
default:1
|
|
33
|
+
rows: {
|
|
34
|
+
type: Number,
|
|
35
|
+
default: 1
|
|
29
36
|
},
|
|
30
|
-
autosize:{
|
|
31
|
-
type:Boolean,
|
|
32
|
-
default:false
|
|
37
|
+
autosize: {
|
|
38
|
+
type: Boolean,
|
|
39
|
+
default: false
|
|
33
40
|
},
|
|
34
41
|
placeholder: {
|
|
35
42
|
type: String,
|
|
@@ -47,14 +54,14 @@ const props = defineProps({
|
|
|
47
54
|
type: String,
|
|
48
55
|
default: ''
|
|
49
56
|
},
|
|
50
|
-
rules:{
|
|
57
|
+
rules: {
|
|
51
58
|
type: Array,
|
|
52
|
-
default:null
|
|
59
|
+
default: null
|
|
53
60
|
}
|
|
54
61
|
})
|
|
55
62
|
const emit = defineEmits(['update:modelValue'])
|
|
56
63
|
const modelValue = useVModel(props, 'modelValue', emit)
|
|
57
|
-
const {isRequired, isReadonly, isGone, isDisabled} = util.props2auth(props)
|
|
64
|
+
const { isRequired, isReadonly, isGone, isDisabled } = util.props2auth(props)
|
|
58
65
|
|
|
59
66
|
onMounted(() => {
|
|
60
67
|
})
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
label-class="label" :placeholder="props.placeholder">
|
|
4
4
|
<template #input>
|
|
5
5
|
<div class="image-box">
|
|
6
|
-
<van-uploader v-model="files" :max-count="1"
|
|
6
|
+
<van-uploader v-model="files" :max-count="1"
|
|
7
|
+
:capture="props.capture"
|
|
8
|
+
accept="image/jpeg,image/png" :afterRead="onAfterRead" :disabled="isDisabled"
|
|
7
9
|
:deletable="!isDisabled"
|
|
8
10
|
:before-delete="onBeforeDelete" />
|
|
9
11
|
</div>
|
|
@@ -37,6 +39,10 @@ const props = defineProps({
|
|
|
37
39
|
type:String,
|
|
38
40
|
default:''
|
|
39
41
|
},
|
|
42
|
+
capture:{
|
|
43
|
+
type:String,
|
|
44
|
+
default:''
|
|
45
|
+
},
|
|
40
46
|
compress: {
|
|
41
47
|
type: Boolean,
|
|
42
48
|
default: true
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<van-field name="image" :label="props.label" :required="isRequired" :rules="props.rules"
|
|
3
|
-
|
|
2
|
+
<van-field name="image" :label="props.label" :required="isRequired" :rules="props.rules" label-class="label"
|
|
3
|
+
:placeholder="props.placeholder">
|
|
4
4
|
<template #input>
|
|
5
5
|
<div class="image-box">
|
|
6
|
-
<van-uploader v-model="files" :max-count="props.max"
|
|
7
|
-
:disabled="isDisabled"
|
|
8
|
-
:
|
|
9
|
-
:afterRead="onAfterRead"
|
|
10
|
-
:before-delete="onBeforeDelete" />
|
|
6
|
+
<van-uploader v-model="files" :max-count="props.max" :capture="props.capture"
|
|
7
|
+
accept="image/jpeg,image/png" :disabled="isDisabled" :deletable="!isDisabled"
|
|
8
|
+
:afterRead="onAfterRead" :before-delete="onBeforeDelete" />
|
|
11
9
|
</div>
|
|
12
10
|
</template>
|
|
13
11
|
</van-field>
|
|
@@ -39,12 +37,16 @@ const props = defineProps({
|
|
|
39
37
|
type: String,
|
|
40
38
|
default: ''
|
|
41
39
|
},
|
|
40
|
+
capture: {
|
|
41
|
+
type: String,
|
|
42
|
+
default: ''
|
|
43
|
+
},
|
|
42
44
|
compress: {
|
|
43
45
|
type: Boolean,
|
|
44
46
|
default: true
|
|
45
47
|
},
|
|
46
|
-
max:{
|
|
47
|
-
type:Number,
|
|
48
|
+
max: {
|
|
49
|
+
type: Number,
|
|
48
50
|
default: 1000
|
|
49
51
|
},
|
|
50
52
|
rules: {
|
|
@@ -65,7 +67,7 @@ onMounted(() => {
|
|
|
65
67
|
|
|
66
68
|
})
|
|
67
69
|
|
|
68
|
-
const onAfterRead = async(file) => {
|
|
70
|
+
const onAfterRead = async (file) => {
|
|
69
71
|
console.log(file)
|
|
70
72
|
|
|
71
73
|
let compress_file = file.file
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="page">
|
|
3
|
-
<van-dropdown-menu>
|
|
4
|
-
<widget-qw-project-dropdown v-model="formData.id" />
|
|
5
|
-
</van-dropdown-menu>
|
|
6
|
-
</div>
|
|
7
|
-
</template>
|
|
8
|
-
|
|
9
|
-
<script setup>
|
|
10
|
-
import { reactive, onMounted } from "vue";
|
|
11
|
-
const formData = reactive({
|
|
12
|
-
id:''
|
|
13
|
-
})
|
|
14
|
-
|
|
15
|
-
onMounted(() => {
|
|
16
|
-
})
|
|
17
|
-
</script>
|
|
18
|
-
|
|
19
|
-
<style lang="scss" scoped>
|
|
20
|
-
.page {
|
|
21
|
-
height: 100vh;
|
|
22
|
-
background: #fff;
|
|
23
|
-
text-align: center;
|
|
24
|
-
background-size: cover;
|
|
25
|
-
display: flex;
|
|
26
|
-
flex-direction: column;
|
|
27
|
-
justify-content: flex-start;
|
|
28
|
-
padding: 80px 15px 0 15px;
|
|
29
|
-
box-sizing: border-box;
|
|
30
|
-
}
|
|
31
|
-
</style>
|