widget.qw 1.0.55 → 1.0.56

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-e593b77c] {
1
+ @charset "UTF-8";.widget[data-v-1e9a1a8a] {
2
2
  text-align: center;
3
3
  padding: 15px 15px;
4
4
  }
5
- .memo[data-v-e593b77c] {
5
+ .memo[data-v-1e9a1a8a] {
6
6
  margin-bottom: 15px;
7
7
  }
8
- .refuse-btn[data-v-e593b77c] {
8
+ .refuse-btn[data-v-1e9a1a8a] {
9
9
  width: 120px;
10
10
  margin-right: 15px;
11
11
  }
12
- .pass-btn[data-v-e593b77c] {
12
+ .pass-btn[data-v-1e9a1a8a] {
13
13
  width: 120px;
14
14
  }
15
- .apply-btn[data-v-e593b77c] {
15
+ .apply-btn[data-v-1e9a1a8a] {
16
16
  width: 60vw;
17
17
  }
18
- .task-list[data-v-e593b77c] {
18
+ .task-list[data-v-1e9a1a8a] {
19
19
  margin-top: 15px;
20
20
  }
21
- .task-title[data-v-e593b77c] {
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-e593b77c] {
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-e593b77c] {
33
+ .audit-title[data-v-1e9a1a8a] {
34
34
  padding: 25px 15px 0 15px;
35
35
  font-size: 16px;
36
36
  font-weight: bold;
@@ -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-e593b77c] {\n text-align: center;\n padding: 15px 15px;\n}\n.memo[data-v-e593b77c] {\n margin-bottom: 15px;\n}\n.refuse-btn[data-v-e593b77c] {\n width: 120px;\n margin-right: 15px;\n}\n.pass-btn[data-v-e593b77c] {\n width: 120px;\n}\n.apply-btn[data-v-e593b77c] {\n width: 60vw;\n}\n.task-list[data-v-e593b77c] {\n margin-top: 15px;\n}\n.task-title[data-v-e593b77c] {\n font-size: 14px;\n font-weight: bold;\n color: #333;\n text-align: left;\n}\n.task-user[data-v-e593b77c] {\n font-size: 13px;\n color: #666;\n text-align: left;\n margin-top: 5px;\n}\n.audit-title[data-v-e593b77c] {\n padding: 25px 15px 0 15px;\n font-size: 16px;\n font-weight: bold;\n color: #666;\n text-align: left;\n}")();
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), data2.canApply ? (openBlock(), createBlock(_component_van_button, {
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-e593b77c"]]);
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";
@@ -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-e593b77c] {\n text-align: center;\n padding: 15px 15px;\n}\n.memo[data-v-e593b77c] {\n margin-bottom: 15px;\n}\n.refuse-btn[data-v-e593b77c] {\n width: 120px;\n margin-right: 15px;\n}\n.pass-btn[data-v-e593b77c] {\n width: 120px;\n}\n.apply-btn[data-v-e593b77c] {\n width: 60vw;\n}\n.task-list[data-v-e593b77c] {\n margin-top: 15px;\n}\n.task-title[data-v-e593b77c] {\n font-size: 14px;\n font-weight: bold;\n color: #333;\n text-align: left;\n}\n.task-user[data-v-e593b77c] {\n font-size: 13px;\n color: #666;\n text-align: left;\n margin-top: 5px;\n}\n.audit-title[data-v-e593b77c] {\n padding: 25px 15px 0 15px;\n font-size: 16px;\n font-weight: bold;\n color: #666;\n text-align: left;\n}")();
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), data2.canApply ? (vue.openBlock(), vue.createBlock(_component_van_button, {
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-e593b77c"]]);
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";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "widget.qw",
3
3
  "private": false,
4
- "version": "1.0.55",
4
+ "version": "1.0.56",
5
5
  "description": "marqstree Vue3组件库",
6
6
  "main": "build/widget.qw.es.js",
7
7
  "keywords": [
@@ -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="data.canApply" type="primary" native-type="submit"
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