widget.qw 1.0.29 → 1.0.31
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 +11 -11
- package/build/widget.qw.es.js +28 -22
- package/build/widget.qw.umd.js +28 -22
- package/package.json +1 -1
- package/src/components/AuditBar.vue +27 -24
- package/src/components/Input.vue +23 -16
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;
|
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,41 +15966,43 @@ 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
|
-
watch(() =>
|
|
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
|
+
}, {
|
|
16005
|
+
deep: true
|
|
16004
16006
|
});
|
|
16005
16007
|
return (_ctx, _cache) => {
|
|
16006
16008
|
const _component_van_field = resolveComponent("van-field");
|
|
@@ -16077,7 +16079,7 @@ const _sfc_main$u = {
|
|
|
16077
16079
|
};
|
|
16078
16080
|
}
|
|
16079
16081
|
};
|
|
16080
|
-
var AuditBar = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-
|
|
16082
|
+
var AuditBar = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-78443471"]]);
|
|
16081
16083
|
const isClient = typeof window !== "undefined" && typeof document !== "undefined";
|
|
16082
16084
|
typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
|
|
16083
16085
|
const isDef = (val) => typeof val !== "undefined";
|
|
@@ -16144,14 +16146,18 @@ function useVModel(props, key, emit, options = {}) {
|
|
|
16144
16146
|
});
|
|
16145
16147
|
}
|
|
16146
16148
|
}
|
|
16147
|
-
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}")();
|
|
16148
16150
|
const _sfc_main$t = {
|
|
16149
16151
|
__name: "Input",
|
|
16150
16152
|
props: {
|
|
16151
16153
|
modelValue: {
|
|
16152
|
-
type: String,
|
|
16154
|
+
type: [String, Number],
|
|
16153
16155
|
default: null
|
|
16154
16156
|
},
|
|
16157
|
+
modelModifiers: {
|
|
16158
|
+
type: Object,
|
|
16159
|
+
default: () => ({})
|
|
16160
|
+
},
|
|
16155
16161
|
label: {
|
|
16156
16162
|
type: String,
|
|
16157
16163
|
default: ""
|
|
@@ -16236,7 +16242,7 @@ const _sfc_main$t = {
|
|
|
16236
16242
|
};
|
|
16237
16243
|
}
|
|
16238
16244
|
};
|
|
16239
|
-
var Input = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-
|
|
16245
|
+
var Input = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-ec78c334"]]);
|
|
16240
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}")();
|
|
16241
16247
|
const _sfc_main$s = {
|
|
16242
16248
|
__name: "SinglePicker",
|
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,41 +15969,43 @@ 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
|
-
vue.watch(() =>
|
|
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
|
+
}, {
|
|
16008
|
+
deep: true
|
|
16007
16009
|
});
|
|
16008
16010
|
return (_ctx, _cache) => {
|
|
16009
16011
|
const _component_van_field = vue.resolveComponent("van-field");
|
|
@@ -16080,7 +16082,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
16080
16082
|
};
|
|
16081
16083
|
}
|
|
16082
16084
|
};
|
|
16083
|
-
var AuditBar = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-
|
|
16085
|
+
var AuditBar = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-78443471"]]);
|
|
16084
16086
|
const isClient = typeof window !== "undefined" && typeof document !== "undefined";
|
|
16085
16087
|
typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
|
|
16086
16088
|
const isDef = (val) => typeof val !== "undefined";
|
|
@@ -16147,14 +16149,18 @@ var __async = (__this, __arguments, generator) => {
|
|
|
16147
16149
|
});
|
|
16148
16150
|
}
|
|
16149
16151
|
}
|
|
16150
|
-
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}")();
|
|
16151
16153
|
const _sfc_main$t = {
|
|
16152
16154
|
__name: "Input",
|
|
16153
16155
|
props: {
|
|
16154
16156
|
modelValue: {
|
|
16155
|
-
type: String,
|
|
16157
|
+
type: [String, Number],
|
|
16156
16158
|
default: null
|
|
16157
16159
|
},
|
|
16160
|
+
modelModifiers: {
|
|
16161
|
+
type: Object,
|
|
16162
|
+
default: () => ({})
|
|
16163
|
+
},
|
|
16158
16164
|
label: {
|
|
16159
16165
|
type: String,
|
|
16160
16166
|
default: ""
|
|
@@ -16239,7 +16245,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
16239
16245
|
};
|
|
16240
16246
|
}
|
|
16241
16247
|
};
|
|
16242
|
-
var Input = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-
|
|
16248
|
+
var Input = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-ec78c334"]]);
|
|
16243
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}")();
|
|
16244
16250
|
const _sfc_main$s = {
|
|
16245
16251
|
__name: "SinglePicker",
|
package/package.json
CHANGED
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
|
|
12
12
|
<van-button v-if="canPass" class="pass-btn" type="primary" native-type="submit" @click="onPass">同意</van-button>
|
|
13
13
|
|
|
14
|
-
<van-button class="apply-btn" v-if="data.canApply" type="primary" native-type="submit"
|
|
14
|
+
<van-button class="apply-btn" v-if="data.canApply" type="primary" native-type="submit"
|
|
15
|
+
@click="onApply">申请</van-button>
|
|
15
16
|
|
|
16
17
|
<div class="audit-title" v-if="data.process && data.process.id">{{ formatProcessTitle }}</div>
|
|
17
18
|
|
|
@@ -37,7 +38,7 @@ const props = defineProps({
|
|
|
37
38
|
mouldId: Number,
|
|
38
39
|
userId: String,
|
|
39
40
|
form: Object,
|
|
40
|
-
process_detail:Function,
|
|
41
|
+
process_detail: Function,
|
|
41
42
|
})
|
|
42
43
|
const emit = defineEmits(['pass', 'refuse', 'apply', 'auth'])
|
|
43
44
|
const data = reactive({
|
|
@@ -110,7 +111,7 @@ const queryDetail = async () => {
|
|
|
110
111
|
}
|
|
111
112
|
|
|
112
113
|
const queryStepAuth = async () => {
|
|
113
|
-
if(!props.processId && !props.mouldId)
|
|
114
|
+
if (!props.processId && !props.mouldId)
|
|
114
115
|
return
|
|
115
116
|
|
|
116
117
|
const params = {
|
|
@@ -215,21 +216,21 @@ const formatTitle = (task) => {
|
|
|
215
216
|
|
|
216
217
|
const formatExecutor = (executor, task) => {
|
|
217
218
|
let action = ''
|
|
218
|
-
let username =''
|
|
219
|
+
let username = ''
|
|
219
220
|
let memo = executor.memo
|
|
220
221
|
if (executor.state == 'pass') {
|
|
221
222
|
if (task.category == 'notify')
|
|
222
|
-
|
|
223
|
+
action = `已抄送 ${executor.updatedAt}`
|
|
223
224
|
else
|
|
224
225
|
action = `已审核 ${executor.updatedAt}`
|
|
225
|
-
}else if(data.process.state == 'finish_refuse'){
|
|
226
|
+
} else if (data.process.state == 'finish_refuse') {
|
|
226
227
|
action = `已撤销 ${executor.updatedAt}`
|
|
227
228
|
} else if (executor.state == 'refuse') {
|
|
228
229
|
action = `已驳回 ${executor.updatedAt}`
|
|
229
230
|
}
|
|
230
231
|
|
|
231
|
-
if(executor.user.name!=executor.submiterName && executor.submiterName)
|
|
232
|
-
username
|
|
232
|
+
if (executor.user.name != executor.submiterName && executor.submiterName)
|
|
233
|
+
username = `${executor.user.name}/${executor.submiterName}`
|
|
233
234
|
else
|
|
234
235
|
username = `${executor.user.name}`
|
|
235
236
|
|
|
@@ -248,40 +249,42 @@ const formatProcessTitle = computed(() => {
|
|
|
248
249
|
}
|
|
249
250
|
})
|
|
250
251
|
|
|
251
|
-
watch(() => props.userId, () => {
|
|
252
|
+
watch(() => props.userId, async() => {
|
|
252
253
|
if (!props.userId)
|
|
253
254
|
return
|
|
254
255
|
|
|
255
|
-
queryDetail()
|
|
256
|
-
queryStepAuth()
|
|
257
|
-
updateCanApply()
|
|
256
|
+
await queryDetail()
|
|
257
|
+
await queryStepAuth()
|
|
258
|
+
await updateCanApply()
|
|
258
259
|
}, { immediate: true })
|
|
259
260
|
|
|
260
|
-
watch(() => props.processId, () => {
|
|
261
|
-
queryDetail()
|
|
262
|
-
queryStepAuth()
|
|
263
|
-
updateCanApply()
|
|
261
|
+
watch(() => props.processId, async() => {
|
|
262
|
+
await queryDetail()
|
|
263
|
+
await queryStepAuth()
|
|
264
|
+
await updateCanApply()
|
|
264
265
|
}, { immediate: true })
|
|
265
266
|
|
|
266
267
|
watch(() => props.mouldId, async () => {
|
|
267
268
|
if (!props.processId && !props.mouldId)
|
|
268
269
|
return
|
|
269
270
|
|
|
270
|
-
queryDetail()
|
|
271
|
+
await queryDetail()
|
|
271
272
|
await queryStepAuth()
|
|
272
|
-
updateAuth()
|
|
273
|
-
updateCanApply()
|
|
273
|
+
await updateAuth()
|
|
274
|
+
await updateCanApply()
|
|
274
275
|
}, { immediate: true })
|
|
275
276
|
|
|
276
|
-
watch(() =>
|
|
277
|
+
watch(() => props.form, async () => {
|
|
277
278
|
if (!data.stepAuth)
|
|
278
279
|
return
|
|
279
280
|
|
|
280
|
-
queryDetail()
|
|
281
|
+
await queryDetail()
|
|
281
282
|
await queryStepAuth()
|
|
282
|
-
updateAuth()
|
|
283
|
-
updateCanApply()
|
|
284
|
-
}, { immediate: true }
|
|
283
|
+
await updateAuth()
|
|
284
|
+
await updateCanApply()
|
|
285
|
+
}, { immediate: true }, {
|
|
286
|
+
deep: true
|
|
287
|
+
})
|
|
285
288
|
</script>
|
|
286
289
|
|
|
287
290
|
<style lang="scss" scoped>
|
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
|
})
|