widget.qw 1.0.55 → 1.0.57
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
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
@charset "UTF-8";.widget[data-v-
|
|
1
|
+
@charset "UTF-8";.widget[data-v-1e9a1a8a] {
|
|
2
2
|
text-align: center;
|
|
3
3
|
padding: 15px 15px;
|
|
4
4
|
}
|
|
5
|
-
.memo[data-v-
|
|
5
|
+
.memo[data-v-1e9a1a8a] {
|
|
6
6
|
margin-bottom: 15px;
|
|
7
7
|
}
|
|
8
|
-
.refuse-btn[data-v-
|
|
8
|
+
.refuse-btn[data-v-1e9a1a8a] {
|
|
9
9
|
width: 120px;
|
|
10
10
|
margin-right: 15px;
|
|
11
11
|
}
|
|
12
|
-
.pass-btn[data-v-
|
|
12
|
+
.pass-btn[data-v-1e9a1a8a] {
|
|
13
13
|
width: 120px;
|
|
14
14
|
}
|
|
15
|
-
.apply-btn[data-v-
|
|
15
|
+
.apply-btn[data-v-1e9a1a8a] {
|
|
16
16
|
width: 60vw;
|
|
17
17
|
}
|
|
18
|
-
.task-list[data-v-
|
|
18
|
+
.task-list[data-v-1e9a1a8a] {
|
|
19
19
|
margin-top: 15px;
|
|
20
20
|
}
|
|
21
|
-
.task-title[data-v-
|
|
21
|
+
.task-title[data-v-1e9a1a8a] {
|
|
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-1e9a1a8a] {
|
|
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-1e9a1a8a] {
|
|
34
34
|
padding: 25px 15px 0 15px;
|
|
35
35
|
font-size: 16px;
|
|
36
36
|
font-weight: bold;
|
package/build/widget.qw.es.js
CHANGED
|
@@ -15774,7 +15774,7 @@ var lodash$1 = { exports: {} };
|
|
|
15774
15774
|
}).call(commonjsGlobal);
|
|
15775
15775
|
})(lodash$1, lodash$1.exports);
|
|
15776
15776
|
var lodash = lodash$1.exports;
|
|
15777
|
-
var AuditBar_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-
|
|
15777
|
+
var AuditBar_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-1e9a1a8a] {\n text-align: center;\n padding: 15px 15px;\n}\n.memo[data-v-1e9a1a8a] {\n margin-bottom: 15px;\n}\n.refuse-btn[data-v-1e9a1a8a] {\n width: 120px;\n margin-right: 15px;\n}\n.pass-btn[data-v-1e9a1a8a] {\n width: 120px;\n}\n.apply-btn[data-v-1e9a1a8a] {\n width: 60vw;\n}\n.task-list[data-v-1e9a1a8a] {\n margin-top: 15px;\n}\n.task-title[data-v-1e9a1a8a] {\n font-size: 14px;\n font-weight: bold;\n color: #333;\n text-align: left;\n}\n.task-user[data-v-1e9a1a8a] {\n font-size: 13px;\n color: #666;\n text-align: left;\n margin-top: 5px;\n}\n.audit-title[data-v-1e9a1a8a] {\n padding: 25px 15px 0 15px;\n font-size: 16px;\n font-weight: bold;\n color: #666;\n text-align: left;\n}")();
|
|
15778
15778
|
var AuditBar_vue_vue_type_style_index_1_lang = /* @__PURE__ */ (() => "\n:root:root {\r\n --van-popover-action-width: 70vw;\n}\r\n")();
|
|
15779
15779
|
var _export_sfc = (sfc, props) => {
|
|
15780
15780
|
const target = sfc.__vccOpts || sfc;
|
|
@@ -15843,6 +15843,9 @@ const _sfc_main$v = {
|
|
|
15843
15843
|
};
|
|
15844
15844
|
});
|
|
15845
15845
|
});
|
|
15846
|
+
const canApply = computed(() => {
|
|
15847
|
+
return !data2.process.id && data2.canApply;
|
|
15848
|
+
});
|
|
15846
15849
|
const canPass = computed(() => {
|
|
15847
15850
|
return data2.process && data2.process.id && data2.process.canPass;
|
|
15848
15851
|
});
|
|
@@ -15906,8 +15909,6 @@ const _sfc_main$v = {
|
|
|
15906
15909
|
return;
|
|
15907
15910
|
if (params.userId != props.userId && props.user && !params.userId)
|
|
15908
15911
|
return;
|
|
15909
|
-
if (params.form != props.form && !params.form && props.form)
|
|
15910
|
-
return;
|
|
15911
15912
|
data2.stepAuth = res.data;
|
|
15912
15913
|
updateAuth();
|
|
15913
15914
|
});
|
|
@@ -15960,8 +15961,6 @@ const _sfc_main$v = {
|
|
|
15960
15961
|
return;
|
|
15961
15962
|
if (params.userId != props.userId && props.userId && !params.userId)
|
|
15962
15963
|
return;
|
|
15963
|
-
if (params.form != props.form && !params.form && props.form)
|
|
15964
|
-
return;
|
|
15965
15964
|
data2.canApply = res.data;
|
|
15966
15965
|
});
|
|
15967
15966
|
const formatTitle = (task) => {
|
|
@@ -16098,7 +16097,7 @@ const _sfc_main$v = {
|
|
|
16098
16097
|
}, {
|
|
16099
16098
|
default: withCtx(() => [_hoisted_3$a]),
|
|
16100
16099
|
_: 1
|
|
16101
|
-
})) : createCommentVNode("", true),
|
|
16100
|
+
})) : createCommentVNode("", true), unref(canApply) ? (openBlock(), createBlock(_component_van_button, {
|
|
16102
16101
|
key: 3,
|
|
16103
16102
|
class: "apply-btn",
|
|
16104
16103
|
type: "primary",
|
|
@@ -16133,7 +16132,7 @@ const _sfc_main$v = {
|
|
|
16133
16132
|
};
|
|
16134
16133
|
}
|
|
16135
16134
|
};
|
|
16136
|
-
var AuditBar = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-
|
|
16135
|
+
var AuditBar = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-1e9a1a8a"]]);
|
|
16137
16136
|
const isClient = typeof window !== "undefined" && typeof document !== "undefined";
|
|
16138
16137
|
typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
|
|
16139
16138
|
const isDef = (val) => typeof val !== "undefined";
|
|
@@ -17069,6 +17068,10 @@ const _sfc_main$o = {
|
|
|
17069
17068
|
type: Boolean,
|
|
17070
17069
|
default: false
|
|
17071
17070
|
},
|
|
17071
|
+
disabled: {
|
|
17072
|
+
type: Boolean,
|
|
17073
|
+
default: false
|
|
17074
|
+
},
|
|
17072
17075
|
defaultnow: {
|
|
17073
17076
|
type: Boolean,
|
|
17074
17077
|
default: false
|
|
@@ -17122,6 +17125,11 @@ const _sfc_main$o = {
|
|
|
17122
17125
|
modelValue.value = "";
|
|
17123
17126
|
}
|
|
17124
17127
|
});
|
|
17128
|
+
const rightIcon = computed(() => {
|
|
17129
|
+
if (isReadonly.value || isDisabled.value)
|
|
17130
|
+
return "";
|
|
17131
|
+
return "arrow";
|
|
17132
|
+
});
|
|
17125
17133
|
watch(() => props.modelValue, (n, o) => {
|
|
17126
17134
|
if (!props.defaultnow)
|
|
17127
17135
|
return;
|
|
@@ -17151,9 +17159,9 @@ const _sfc_main$o = {
|
|
|
17151
17159
|
placeholder: props.placeholder,
|
|
17152
17160
|
required: unref(isRequired),
|
|
17153
17161
|
rules: props.rules,
|
|
17154
|
-
"right-icon":
|
|
17162
|
+
"right-icon": unref(rightIcon),
|
|
17155
17163
|
onClickRightIcon: onToggleShow
|
|
17156
|
-
}, null, 8, ["modelValue", "label", "disabled", "readonly", "placeholder", "required", "rules"])) : createCommentVNode("", true), createVNode(_sfc_main$p, {
|
|
17164
|
+
}, null, 8, ["modelValue", "label", "disabled", "readonly", "placeholder", "required", "rules", "right-icon"])) : createCommentVNode("", true), createVNode(_sfc_main$p, {
|
|
17157
17165
|
isShow: data2.isShow,
|
|
17158
17166
|
"onUpdate:isShow": _cache[1] || (_cache[1] = ($event) => data2.isShow = $event),
|
|
17159
17167
|
modelValue: unref(modelValue),
|
package/build/widget.qw.umd.js
CHANGED
|
@@ -15777,7 +15777,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
15777
15777
|
}).call(commonjsGlobal);
|
|
15778
15778
|
})(lodash$1, lodash$1.exports);
|
|
15779
15779
|
var lodash = lodash$1.exports;
|
|
15780
|
-
var AuditBar_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-
|
|
15780
|
+
var AuditBar_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-1e9a1a8a] {\n text-align: center;\n padding: 15px 15px;\n}\n.memo[data-v-1e9a1a8a] {\n margin-bottom: 15px;\n}\n.refuse-btn[data-v-1e9a1a8a] {\n width: 120px;\n margin-right: 15px;\n}\n.pass-btn[data-v-1e9a1a8a] {\n width: 120px;\n}\n.apply-btn[data-v-1e9a1a8a] {\n width: 60vw;\n}\n.task-list[data-v-1e9a1a8a] {\n margin-top: 15px;\n}\n.task-title[data-v-1e9a1a8a] {\n font-size: 14px;\n font-weight: bold;\n color: #333;\n text-align: left;\n}\n.task-user[data-v-1e9a1a8a] {\n font-size: 13px;\n color: #666;\n text-align: left;\n margin-top: 5px;\n}\n.audit-title[data-v-1e9a1a8a] {\n padding: 25px 15px 0 15px;\n font-size: 16px;\n font-weight: bold;\n color: #666;\n text-align: left;\n}")();
|
|
15781
15781
|
var AuditBar_vue_vue_type_style_index_1_lang = /* @__PURE__ */ (() => "\n:root:root {\r\n --van-popover-action-width: 70vw;\n}\r\n")();
|
|
15782
15782
|
var _export_sfc = (sfc, props) => {
|
|
15783
15783
|
const target = sfc.__vccOpts || sfc;
|
|
@@ -15846,6 +15846,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
15846
15846
|
};
|
|
15847
15847
|
});
|
|
15848
15848
|
});
|
|
15849
|
+
const canApply = vue.computed(() => {
|
|
15850
|
+
return !data2.process.id && data2.canApply;
|
|
15851
|
+
});
|
|
15849
15852
|
const canPass = vue.computed(() => {
|
|
15850
15853
|
return data2.process && data2.process.id && data2.process.canPass;
|
|
15851
15854
|
});
|
|
@@ -15909,8 +15912,6 @@ var __async = (__this, __arguments, generator) => {
|
|
|
15909
15912
|
return;
|
|
15910
15913
|
if (params.userId != props.userId && props.user && !params.userId)
|
|
15911
15914
|
return;
|
|
15912
|
-
if (params.form != props.form && !params.form && props.form)
|
|
15913
|
-
return;
|
|
15914
15915
|
data2.stepAuth = res.data;
|
|
15915
15916
|
updateAuth();
|
|
15916
15917
|
});
|
|
@@ -15963,8 +15964,6 @@ var __async = (__this, __arguments, generator) => {
|
|
|
15963
15964
|
return;
|
|
15964
15965
|
if (params.userId != props.userId && props.userId && !params.userId)
|
|
15965
15966
|
return;
|
|
15966
|
-
if (params.form != props.form && !params.form && props.form)
|
|
15967
|
-
return;
|
|
15968
15967
|
data2.canApply = res.data;
|
|
15969
15968
|
});
|
|
15970
15969
|
const formatTitle = (task) => {
|
|
@@ -16101,7 +16100,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
16101
16100
|
}, {
|
|
16102
16101
|
default: vue.withCtx(() => [_hoisted_3$a]),
|
|
16103
16102
|
_: 1
|
|
16104
|
-
})) : vue.createCommentVNode("", true),
|
|
16103
|
+
})) : vue.createCommentVNode("", true), vue.unref(canApply) ? (vue.openBlock(), vue.createBlock(_component_van_button, {
|
|
16105
16104
|
key: 3,
|
|
16106
16105
|
class: "apply-btn",
|
|
16107
16106
|
type: "primary",
|
|
@@ -16136,7 +16135,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
16136
16135
|
};
|
|
16137
16136
|
}
|
|
16138
16137
|
};
|
|
16139
|
-
var AuditBar = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-
|
|
16138
|
+
var AuditBar = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-1e9a1a8a"]]);
|
|
16140
16139
|
const isClient = typeof window !== "undefined" && typeof document !== "undefined";
|
|
16141
16140
|
typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
|
|
16142
16141
|
const isDef = (val) => typeof val !== "undefined";
|
|
@@ -17072,6 +17071,10 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17072
17071
|
type: Boolean,
|
|
17073
17072
|
default: false
|
|
17074
17073
|
},
|
|
17074
|
+
disabled: {
|
|
17075
|
+
type: Boolean,
|
|
17076
|
+
default: false
|
|
17077
|
+
},
|
|
17075
17078
|
defaultnow: {
|
|
17076
17079
|
type: Boolean,
|
|
17077
17080
|
default: false
|
|
@@ -17125,6 +17128,11 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17125
17128
|
modelValue.value = "";
|
|
17126
17129
|
}
|
|
17127
17130
|
});
|
|
17131
|
+
const rightIcon = vue.computed(() => {
|
|
17132
|
+
if (isReadonly.value || isDisabled.value)
|
|
17133
|
+
return "";
|
|
17134
|
+
return "arrow";
|
|
17135
|
+
});
|
|
17128
17136
|
vue.watch(() => props.modelValue, (n, o) => {
|
|
17129
17137
|
if (!props.defaultnow)
|
|
17130
17138
|
return;
|
|
@@ -17154,9 +17162,9 @@ var __async = (__this, __arguments, generator) => {
|
|
|
17154
17162
|
placeholder: props.placeholder,
|
|
17155
17163
|
required: vue.unref(isRequired),
|
|
17156
17164
|
rules: props.rules,
|
|
17157
|
-
"right-icon":
|
|
17165
|
+
"right-icon": vue.unref(rightIcon),
|
|
17158
17166
|
onClickRightIcon: onToggleShow
|
|
17159
|
-
}, null, 8, ["modelValue", "label", "disabled", "readonly", "placeholder", "required", "rules"])) : vue.createCommentVNode("", true), vue.createVNode(_sfc_main$p, {
|
|
17167
|
+
}, null, 8, ["modelValue", "label", "disabled", "readonly", "placeholder", "required", "rules", "right-icon"])) : vue.createCommentVNode("", true), vue.createVNode(_sfc_main$p, {
|
|
17160
17168
|
isShow: data2.isShow,
|
|
17161
17169
|
"onUpdate:isShow": _cache[1] || (_cache[1] = ($event) => data2.isShow = $event),
|
|
17162
17170
|
modelValue: vue.unref(modelValue),
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
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="
|
|
14
|
+
<van-button class="apply-btn" v-if="canApply" type="primary" native-type="submit"
|
|
15
15
|
@click="onApply">申请</van-button>
|
|
16
16
|
|
|
17
17
|
<div class="audit-title" v-if="data.process && data.process.id">{{ formatProcessTitle }}</div>
|
|
@@ -75,6 +75,11 @@ const formatPrevSteps = computed(() => {
|
|
|
75
75
|
}
|
|
76
76
|
})
|
|
77
77
|
})
|
|
78
|
+
|
|
79
|
+
const canApply = computed(()=>{
|
|
80
|
+
return !data.process.id && data.canApply
|
|
81
|
+
})
|
|
82
|
+
|
|
78
83
|
const canPass = computed(() => {
|
|
79
84
|
return data.process && data.process.id && data.process.canPass
|
|
80
85
|
})
|
|
@@ -162,9 +167,6 @@ const queryStepAuth = async () => {
|
|
|
162
167
|
if (params.userId != props.userId && props.user && !params.userId)
|
|
163
168
|
return
|
|
164
169
|
|
|
165
|
-
if (params.form != props.form && !params.form && props.form)
|
|
166
|
-
return
|
|
167
|
-
|
|
168
170
|
data.stepAuth = res.data
|
|
169
171
|
|
|
170
172
|
updateAuth()
|
|
@@ -236,9 +238,6 @@ const updateCanApply = async () => {
|
|
|
236
238
|
if (params.userId != props.userId && props.userId && !params.userId)
|
|
237
239
|
return
|
|
238
240
|
|
|
239
|
-
if (params.form != props.form && !params.form && props.form)
|
|
240
|
-
return
|
|
241
|
-
|
|
242
241
|
data.canApply = res.data
|
|
243
242
|
}
|
|
244
243
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
readonly
|
|
6
6
|
clearable
|
|
7
7
|
:placeholder="props.placeholder" :required="isRequired" :rules="props.rules"
|
|
8
|
-
right-icon="
|
|
8
|
+
:right-icon="rightIcon"
|
|
9
9
|
@click-right-icon="onToggleShow">
|
|
10
10
|
</van-field>
|
|
11
11
|
|
|
@@ -33,6 +33,10 @@ const props = defineProps({
|
|
|
33
33
|
type: Boolean,
|
|
34
34
|
default: false
|
|
35
35
|
},
|
|
36
|
+
disabled:{
|
|
37
|
+
type:Boolean,
|
|
38
|
+
default:false
|
|
39
|
+
},
|
|
36
40
|
defaultnow: {
|
|
37
41
|
type: Boolean,
|
|
38
42
|
default: false
|
|
@@ -84,6 +88,13 @@ const formatTime = computed({
|
|
|
84
88
|
}
|
|
85
89
|
})
|
|
86
90
|
|
|
91
|
+
const rightIcon = computed(()=>{
|
|
92
|
+
if(isReadonly.value || isDisabled.value)
|
|
93
|
+
return ''
|
|
94
|
+
|
|
95
|
+
return 'arrow'
|
|
96
|
+
})
|
|
97
|
+
|
|
87
98
|
// 默认当前时间
|
|
88
99
|
watch(
|
|
89
100
|
() => props.modelValue,
|