widget.qw 1.0.7 → 1.0.9
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 +26 -54
- package/build/widget.qw.es.js +186 -375
- package/build/widget.qw.umd.js +186 -375
- package/package.json +1 -1
- package/src/api/index.js +1 -1
- package/src/components/{ProjectPicker.vue → SingleApiPicker.vue} +35 -37
- package/src/components/index.js +6 -16
- package/src/router/index.ts +5 -15
- package/src/views/home/index.vue +0 -0
- package/src/views/singleapipicker/index.vue +0 -0
- package/vite.config.ts +2 -2
- package/src/components/ProjectDropdown.vue +0 -62
- package/src/components/product_selector.vue +0 -186
package/build/widget.qw.es.js
CHANGED
|
@@ -2949,7 +2949,7 @@ var lib = {
|
|
|
2949
2949
|
parse,
|
|
2950
2950
|
stringify
|
|
2951
2951
|
};
|
|
2952
|
-
const NEED_LOGIN = { "VUE_APP_DOMAIN": "https://www.hbhjhx.asia", "VUE_APP_TOKEN_KEY": "Authorization", "VUE_APP_TOKEN_PREFIX": "Bearer ", "VUE_APP_NEED_LOGIN_CODE": 401, "VUE_APP_IS_DEBUG":
|
|
2952
|
+
const NEED_LOGIN = { "VUE_APP_DOMAIN": "https://www.hbhjhx.asia", "VUE_APP_TOKEN_KEY": "Authorization", "VUE_APP_TOKEN_PREFIX": "Bearer ", "VUE_APP_NEED_LOGIN_CODE": 401, "VUE_APP_IS_DEBUG": false, "VUE_APP_DEBUG_TOKEN": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJsb2dpblR5cGUiOiJsb2dpbiIsImxvZ2luSWQiOiIwMTQzOTEiLCJyblN0ciI6ImZ0ejhnaFpLMWR4ejhnOTFDZkJUMXQxVWNJajF3R3c1In0.tgI4iGOJ8OrjoqWIqC2pjH7J52l6H7wyuUwJATKIVns" }.VUE_APP_NEED_LOGIN_CODE;
|
|
2953
2953
|
const NEED_LOGIN_CODES = [
|
|
2954
2954
|
NEED_LOGIN
|
|
2955
2955
|
];
|
|
@@ -2959,10 +2959,11 @@ function setCacheValueByKey(key, val) {
|
|
|
2959
2959
|
function removeCacheByKey(key) {
|
|
2960
2960
|
localStorage.removeItem(key);
|
|
2961
2961
|
}
|
|
2962
|
-
const TOKEN_KEY = { "VUE_APP_DOMAIN": "https://www.hbhjhx.asia", "VUE_APP_TOKEN_KEY": "Authorization", "VUE_APP_TOKEN_PREFIX": "Bearer ", "VUE_APP_NEED_LOGIN_CODE": 401, "VUE_APP_IS_DEBUG":
|
|
2963
|
-
const TOKEN_PREFIX = { "VUE_APP_DOMAIN": "https://www.hbhjhx.asia", "VUE_APP_TOKEN_KEY": "Authorization", "VUE_APP_TOKEN_PREFIX": "Bearer ", "VUE_APP_NEED_LOGIN_CODE": 401, "VUE_APP_IS_DEBUG":
|
|
2962
|
+
const TOKEN_KEY = { "VUE_APP_DOMAIN": "https://www.hbhjhx.asia", "VUE_APP_TOKEN_KEY": "Authorization", "VUE_APP_TOKEN_PREFIX": "Bearer ", "VUE_APP_NEED_LOGIN_CODE": 401, "VUE_APP_IS_DEBUG": false, "VUE_APP_DEBUG_TOKEN": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJsb2dpblR5cGUiOiJsb2dpbiIsImxvZ2luSWQiOiIwMTQzOTEiLCJyblN0ciI6ImZ0ejhnaFpLMWR4ejhnOTFDZkJUMXQxVWNJajF3R3c1In0.tgI4iGOJ8OrjoqWIqC2pjH7J52l6H7wyuUwJATKIVns" }.VUE_APP_TOKEN_KEY;
|
|
2963
|
+
const TOKEN_PREFIX = { "VUE_APP_DOMAIN": "https://www.hbhjhx.asia", "VUE_APP_TOKEN_KEY": "Authorization", "VUE_APP_TOKEN_PREFIX": "Bearer ", "VUE_APP_NEED_LOGIN_CODE": 401, "VUE_APP_IS_DEBUG": false, "VUE_APP_DEBUG_TOKEN": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJsb2dpblR5cGUiOiJsb2dpbiIsImxvZ2luSWQiOiIwMTQzOTEiLCJyblN0ciI6ImZ0ejhnaFpLMWR4ejhnOTFDZkJUMXQxVWNJajF3R3c1In0.tgI4iGOJ8OrjoqWIqC2pjH7J52l6H7wyuUwJATKIVns" }.VUE_APP_TOKEN_PREFIX;
|
|
2964
2964
|
function getToken() {
|
|
2965
|
-
|
|
2965
|
+
if (vm.tokenCallback)
|
|
2966
|
+
return vm.tokenCallback();
|
|
2966
2967
|
}
|
|
2967
2968
|
function setToken(token2) {
|
|
2968
2969
|
setCacheValueByKey(TOKEN_KEY, token2);
|
|
@@ -3223,7 +3224,7 @@ const dictionary_dict = (data2) => {
|
|
|
3223
3224
|
};
|
|
3224
3225
|
const project_list = (data2) => {
|
|
3225
3226
|
return service$3({
|
|
3226
|
-
url: vm.urlCallback() + "/
|
|
3227
|
+
url: vm.urlCallback() + "/ac-api/project/list",
|
|
3227
3228
|
method: "POST",
|
|
3228
3229
|
data: data2
|
|
3229
3230
|
});
|
|
@@ -15759,7 +15760,7 @@ var _export_sfc = (sfc, props) => {
|
|
|
15759
15760
|
}
|
|
15760
15761
|
return target;
|
|
15761
15762
|
};
|
|
15762
|
-
const _hoisted_1$
|
|
15763
|
+
const _hoisted_1$i = {
|
|
15763
15764
|
class: "widget"
|
|
15764
15765
|
};
|
|
15765
15766
|
const _hoisted_2$b = /* @__PURE__ */ createTextVNode("\u9A73\u56DE");
|
|
@@ -15772,7 +15773,7 @@ const _hoisted_5$8 = {
|
|
|
15772
15773
|
const _hoisted_6$7 = {
|
|
15773
15774
|
class: "task-title"
|
|
15774
15775
|
};
|
|
15775
|
-
const _sfc_main$
|
|
15776
|
+
const _sfc_main$u = {
|
|
15776
15777
|
__name: "AuditBar",
|
|
15777
15778
|
props: {
|
|
15778
15779
|
processId: Number,
|
|
@@ -16002,7 +16003,7 @@ const _sfc_main$w = {
|
|
|
16002
16003
|
const _component_van_popover = resolveComponent("van-popover");
|
|
16003
16004
|
const _component_van_step = resolveComponent("van-step");
|
|
16004
16005
|
const _component_van_steps = resolveComponent("van-steps");
|
|
16005
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
16006
|
+
return openBlock(), createElementBlock("div", _hoisted_1$i, [unref(canPass) || unref(canRefuse) ? (openBlock(), createBlock(_component_van_field, {
|
|
16006
16007
|
key: 0,
|
|
16007
16008
|
modelValue: data2.memo,
|
|
16008
16009
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => data2.memo = $event),
|
|
@@ -16071,7 +16072,7 @@ const _sfc_main$w = {
|
|
|
16071
16072
|
};
|
|
16072
16073
|
}
|
|
16073
16074
|
};
|
|
16074
|
-
var AuditBar = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16075
|
+
var AuditBar = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-87892c3e"]]);
|
|
16075
16076
|
const isClient = typeof window !== "undefined" && typeof document !== "undefined";
|
|
16076
16077
|
typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
|
|
16077
16078
|
const isDef = (val) => typeof val !== "undefined";
|
|
@@ -16139,7 +16140,7 @@ function useVModel(props, key, emit, options = {}) {
|
|
|
16139
16140
|
}
|
|
16140
16141
|
}
|
|
16141
16142
|
var Input_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-5653f0d0] .label {\n color: #000 !important;\n}\n[data-v-5653f0d0] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
|
|
16142
|
-
const _sfc_main$
|
|
16143
|
+
const _sfc_main$t = {
|
|
16143
16144
|
__name: "Input",
|
|
16144
16145
|
props: {
|
|
16145
16146
|
modelValue: {
|
|
@@ -16215,9 +16216,9 @@ const _sfc_main$v = {
|
|
|
16215
16216
|
};
|
|
16216
16217
|
}
|
|
16217
16218
|
};
|
|
16218
|
-
var Input = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16219
|
+
var Input = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-5653f0d0"]]);
|
|
16219
16220
|
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}")();
|
|
16220
|
-
const _sfc_main$
|
|
16221
|
+
const _sfc_main$s = {
|
|
16221
16222
|
__name: "SinglePicker",
|
|
16222
16223
|
props: {
|
|
16223
16224
|
id: String,
|
|
@@ -16333,16 +16334,16 @@ const _sfc_main$u = {
|
|
|
16333
16334
|
};
|
|
16334
16335
|
}
|
|
16335
16336
|
};
|
|
16336
|
-
var SinglePicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16337
|
+
var SinglePicker = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-24e62c3a"]]);
|
|
16337
16338
|
var DataPop_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.popup-box[data-v-10d79413] {\r\n min-height: 20vh;\r\n max-height: 40vh;\r\n overflow-y: auto;\n.checkbox-list[data-v-10d79413] {\r\n padding: 15px 25px;\n[data-v-10d79413] .van-checkbox__label {\r\n flex: 1;\r\n text-align: right;\n}\n}\n}\n.select-all-container[data-v-10d79413] {\r\n font-size: 14px;\r\n padding: 15px 25px 0 15px;\r\n margin: 10px 0;\r\n display: flex;\r\n justify-content: flex-end;\r\n align-items: center;\n}\n.select-all-container .van-checkbox[data-v-10d79413] {\r\n margin-left: auto;\n}\r\n\r\n/* \u65B0\u589E\uFF1A\u8C03\u6574\u65B9\u5F62\u590D\u9009\u6846\u7684\u8FB9\u8DDD */\n.van-checkbox--square[data-v-10d79413] {\r\n margin-left: 8px;\n}\r\n")();
|
|
16338
|
-
const _hoisted_1$
|
|
16339
|
+
const _hoisted_1$h = {
|
|
16339
16340
|
class: "select-all-container"
|
|
16340
16341
|
};
|
|
16341
16342
|
const _hoisted_2$a = /* @__PURE__ */ createTextVNode("\u5168\u9009");
|
|
16342
16343
|
const _hoisted_3$8 = {
|
|
16343
16344
|
class: "checkbox-list"
|
|
16344
16345
|
};
|
|
16345
|
-
const _sfc_main$
|
|
16346
|
+
const _sfc_main$r = {
|
|
16346
16347
|
__name: "DataPop",
|
|
16347
16348
|
props: {
|
|
16348
16349
|
show: {
|
|
@@ -16389,7 +16390,7 @@ const _sfc_main$t = {
|
|
|
16389
16390
|
position: "bottom",
|
|
16390
16391
|
class: "popup-box"
|
|
16391
16392
|
}, {
|
|
16392
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_1$
|
|
16393
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_1$h, [createVNode(_component_van_checkbox, {
|
|
16393
16394
|
shape: "square",
|
|
16394
16395
|
modelValue: data2.isAllChecked,
|
|
16395
16396
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => data2.isAllChecked = $event),
|
|
@@ -16423,12 +16424,12 @@ const _sfc_main$t = {
|
|
|
16423
16424
|
};
|
|
16424
16425
|
}
|
|
16425
16426
|
};
|
|
16426
|
-
var DataPop = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16427
|
+
var DataPop = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-10d79413"]]);
|
|
16427
16428
|
var MultiPicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.data-item[data-v-95e8cb3c]{\r\n margin: 0 8px 8px 0;\r\n padding: 2px 5px;\n}\r\n")();
|
|
16428
|
-
const _hoisted_1$
|
|
16429
|
+
const _hoisted_1$g = {
|
|
16429
16430
|
class: "data-list"
|
|
16430
16431
|
};
|
|
16431
|
-
const _sfc_main$
|
|
16432
|
+
const _sfc_main$q = {
|
|
16432
16433
|
__name: "MultiPicker",
|
|
16433
16434
|
props: {
|
|
16434
16435
|
id: String,
|
|
@@ -16541,7 +16542,7 @@ const _sfc_main$s = {
|
|
|
16541
16542
|
_: 2
|
|
16542
16543
|
}, [unref(selectOptions).length > 0 ? {
|
|
16543
16544
|
name: "input",
|
|
16544
|
-
fn: withCtx(() => [createElementVNode("div", _hoisted_1$
|
|
16545
|
+
fn: withCtx(() => [createElementVNode("div", _hoisted_1$g, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(selectOptions), (item, i) => {
|
|
16545
16546
|
return openBlock(), createBlock(_component_van_tag, {
|
|
16546
16547
|
class: "data-item",
|
|
16547
16548
|
closeable: !unref(isDisabled),
|
|
@@ -16564,9 +16565,9 @@ const _sfc_main$s = {
|
|
|
16564
16565
|
};
|
|
16565
16566
|
}
|
|
16566
16567
|
};
|
|
16567
|
-
var MultiPicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16568
|
+
var MultiPicker = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-95e8cb3c"]]);
|
|
16568
16569
|
var CheckGroup_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-7f5a06de] .label {\n color: #000 !important;\n}\n[data-v-7f5a06de] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
|
|
16569
|
-
const _sfc_main$
|
|
16570
|
+
const _sfc_main$p = {
|
|
16570
16571
|
__name: "CheckGroup",
|
|
16571
16572
|
props: {
|
|
16572
16573
|
id: {
|
|
@@ -16690,8 +16691,8 @@ const _sfc_main$r = {
|
|
|
16690
16691
|
};
|
|
16691
16692
|
}
|
|
16692
16693
|
};
|
|
16693
|
-
var CheckGroup = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
16694
|
-
const _sfc_main$
|
|
16694
|
+
var CheckGroup = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-7f5a06de"]]);
|
|
16695
|
+
const _sfc_main$o = {
|
|
16695
16696
|
__name: "DatetimePop",
|
|
16696
16697
|
props: {
|
|
16697
16698
|
isShow: {
|
|
@@ -16973,7 +16974,7 @@ const _sfc_main$q = {
|
|
|
16973
16974
|
};
|
|
16974
16975
|
}
|
|
16975
16976
|
};
|
|
16976
|
-
const _sfc_main$
|
|
16977
|
+
const _sfc_main$n = {
|
|
16977
16978
|
__name: "index",
|
|
16978
16979
|
props: {
|
|
16979
16980
|
modelValue: {
|
|
@@ -17068,7 +17069,7 @@ const _sfc_main$p = {
|
|
|
17068
17069
|
}, {
|
|
17069
17070
|
input: withCtx(() => [createTextVNode(toDisplayString(formatTime(props.modelValue)), 1)]),
|
|
17070
17071
|
_: 1
|
|
17071
|
-
}, 8, ["modelValue", "label", "placeholder", "required", "rules", "is-link"])) : createCommentVNode("", true), createVNode(_sfc_main$
|
|
17072
|
+
}, 8, ["modelValue", "label", "placeholder", "required", "rules", "is-link"])) : createCommentVNode("", true), createVNode(_sfc_main$o, {
|
|
17072
17073
|
isShow: data2.isShow,
|
|
17073
17074
|
"onUpdate:isShow": _cache[1] || (_cache[1] = ($event) => data2.isShow = $event),
|
|
17074
17075
|
modelValue: unref(modelValue),
|
|
@@ -17081,7 +17082,7 @@ const _sfc_main$p = {
|
|
|
17081
17082
|
}
|
|
17082
17083
|
};
|
|
17083
17084
|
var data_selector_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.popup-style[data-v-57cfd397] {\r\n height: 21.25rem;\n}\n.showMultipleButton[data-v-57cfd397] {\r\n padding-bottom: 0;\n}\n.showMultipleButton .van-button[data-v-57cfd397] {\r\n border: 0;\n}\n.flex-between[data-v-57cfd397] {\r\n padding: 10px;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\n}\n.bold[data-v-57cfd397] {\r\n font-weight: bold;\r\n color: #444;\n}\n.checkbox-style[data-v-57cfd397] {\r\n /* height: 220px; */\r\n height: calc(220px - 30px); \r\n overflow-y: auto;\n}\n.select-all-container[data-v-57cfd397] {\r\n font-size: 14px;\r\n padding: 0 16px;\r\n margin: 10px 0;\r\n display: flex;\r\n justify-content: flex-end;\r\n align-items: center;\n}\n.select-all-container .van-checkbox[data-v-57cfd397] {\r\n margin-left: auto;\n}\r\n\r\n/* \u65B0\u589E\uFF1A\u8C03\u6574\u65B9\u5F62\u590D\u9009\u6846\u7684\u8FB9\u8DDD */\n.van-checkbox--square[data-v-57cfd397] {\r\n margin-left: 8px;\n}\r\n \r\n")();
|
|
17084
|
-
const _hoisted_1$
|
|
17085
|
+
const _hoisted_1$f = {
|
|
17085
17086
|
class: "pad10 flex-between showMultipleButton"
|
|
17086
17087
|
};
|
|
17087
17088
|
const _hoisted_2$9 = /* @__PURE__ */ createTextVNode("\u53D6\u6D88");
|
|
@@ -17097,7 +17098,7 @@ const _hoisted_6$6 = /* @__PURE__ */ createTextVNode("\u5168\u9009");
|
|
|
17097
17098
|
const _hoisted_7$6 = {
|
|
17098
17099
|
class: "checkbox-style"
|
|
17099
17100
|
};
|
|
17100
|
-
const _sfc_main$
|
|
17101
|
+
const _sfc_main$m = {
|
|
17101
17102
|
__name: "data_selector",
|
|
17102
17103
|
props: {
|
|
17103
17104
|
mode: {
|
|
@@ -17284,7 +17285,7 @@ const _sfc_main$o = {
|
|
|
17284
17285
|
position: "bottom",
|
|
17285
17286
|
class: "popup-style"
|
|
17286
17287
|
}, {
|
|
17287
|
-
default: withCtx(() => [createElementVNode("div", null, [createElementVNode("div", _hoisted_1$
|
|
17288
|
+
default: withCtx(() => [createElementVNode("div", null, [createElementVNode("div", _hoisted_1$f, [createVNode(_component_van_button, {
|
|
17288
17289
|
plain: "",
|
|
17289
17290
|
size: "normal",
|
|
17290
17291
|
onClick: cancelSelection
|
|
@@ -17372,16 +17373,16 @@ const _sfc_main$o = {
|
|
|
17372
17373
|
};
|
|
17373
17374
|
}
|
|
17374
17375
|
};
|
|
17375
|
-
var DataSelector = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17376
|
+
var DataSelector = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-57cfd397"]]);
|
|
17376
17377
|
var mult_list_selector_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\r\n/* // \u4FEE\u6539 confirmation-group \u548C confirmation-item \u7684\u6837\u5F0F */\n.confirmation-group[data-v-40a09897] {\r\n padding: 0 16px;\r\n --van-checkbox-disabled-icon-color: black;\n}\n.confirmation-item[data-v-40a09897] {\r\n padding: 12px 16px;\r\n margin: 0 -16px;\r\n border-bottom: 1px solid #f5f5f5;\r\n /* \u7981\u7528\u72B6\u6001\u6837\u5F0F */\n}\r\n\r\n/* // \u5728\u4E0B\u65B9\u6DFB\u52A0\u5A92\u4F53\u67E5\u8BE2\u9002\u914D\u5C0F\u5C4F\u5E55 */\n@media (max-width: 320px) {\n.confirmation-item[data-v-40a09897] {\r\n padding: 12px 8px;\r\n margin: 0 -8px;\n}\n}\n.confirmation-item[data-v-40a09897]:last-child {\r\n border-bottom: none;\n}\r\n\r\n/* \u65B0\u589E\u6837\u5F0F */\n.confirmation-tips[data-v-40a09897] {\r\n padding: 12px 16px;\r\n background: #f0faff;\r\n border-radius: 8px;\r\n margin: 10px 16px;\r\n display: flex;\r\n align-items: center;\r\n color: #1989fa;\r\n font-size: 13px;\r\n border: 1px solid #d9efff;\n}\n.confirmation-tips .van-icon[data-v-40a09897] {\r\n margin-right: 8px;\n}\r\n\r\n/* \u65B0\u589E\u5B57\u4F53\u7EE7\u627F\u6837\u5F0F */\n.confirmation-group[data-v-40a09897] {\r\n font-size: inherit; /* \u7EE7\u627F\u7236\u7EA7\u5B57\u4F53\u5927\u5C0F */\n}\n.option-text[data-v-40a09897] {\r\n font-size: 14px; /* \u660E\u786E\u6307\u5B9A\u5B57\u4F53\u5927\u5C0F */\r\n line-height: 1.5; /* \u4FDD\u6301\u884C\u9AD8\u4E00\u81F4 */\r\n /* color:black; */\n}\r\n\r\n/* \u9002\u914D\u79FB\u52A8\u7AEF\u7684\u5B57\u4F53\u8C03\u6574 */\n@media (max-width: 375px) {\n.option-text[data-v-40a09897] {\r\n font-size: 13px;\n}\n}\r\n\r\n/* \u65B0\u589E\u7981\u7528\u72B6\u6001\u6837\u5F0F */\n.custom-checkbox[data-v-40a09897]:disabled .--van-checkbox__icon {\r\n background-color: #f5f5f5;\r\n border-color: #ebedf0;\r\n transition: all 0.3s;\n}\n.custom-checkbox[data-v-40a09897]:disabled .van-checkbox__icon--checked {\r\n background-color: #1989fa;\r\n border-color: #1989fa;\r\n opacity: 0.7;\n}\n.van-checkbox--disabled[data-v-40a09897] .option-text {\r\n color: #969799;\n}\n.van-checkbox--disabled.van-checkbox--checked[data-v-40a09897] .option-text {\r\n color: #1989fa;\r\n opacity: 0.8;\n}\r\n")();
|
|
17377
|
-
const _hoisted_1$
|
|
17378
|
+
const _hoisted_1$e = {
|
|
17378
17379
|
key: 0,
|
|
17379
17380
|
class: "confirmation-tips"
|
|
17380
17381
|
};
|
|
17381
17382
|
const _hoisted_2$8 = {
|
|
17382
17383
|
class: "option-text"
|
|
17383
17384
|
};
|
|
17384
|
-
const _sfc_main$
|
|
17385
|
+
const _sfc_main$l = {
|
|
17385
17386
|
__name: "mult_list_selector",
|
|
17386
17387
|
props: {
|
|
17387
17388
|
options: {
|
|
@@ -17416,7 +17417,7 @@ const _sfc_main$n = {
|
|
|
17416
17417
|
const _component_van_icon = resolveComponent("van-icon");
|
|
17417
17418
|
const _component_van_checkbox = resolveComponent("van-checkbox");
|
|
17418
17419
|
const _component_van_checkbox_group = resolveComponent("van-checkbox-group");
|
|
17419
|
-
return openBlock(), createElementBlock(Fragment, null, [__props.tips && __props.tips.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
17420
|
+
return openBlock(), createElementBlock(Fragment, null, [__props.tips && __props.tips.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$e, [createVNode(_component_van_icon, {
|
|
17420
17421
|
name: "info",
|
|
17421
17422
|
color: "#1989fa"
|
|
17422
17423
|
}), createElementVNode("span", null, toDisplayString(__props.tips), 1)])) : createCommentVNode("", true), createVNode(_component_van_checkbox_group, {
|
|
@@ -17446,139 +17447,7 @@ const _sfc_main$n = {
|
|
|
17446
17447
|
};
|
|
17447
17448
|
}
|
|
17448
17449
|
};
|
|
17449
|
-
var MultListSelector = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17450
|
-
var product_selector_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.project-selector[data-v-dbc5bf54] {\n[data-v-dbc5bf54] .van-cell {\r\n align-items: center;\n}\n[data-v-dbc5bf54] .van-field__label {\r\n width: 90px;\r\n flex: none;\n}\n.readonly-field[data-v-dbc5bf54] {\n[data-v-dbc5bf54] .van-field__control {\r\n color: #323233;\r\n /* \u4FEE\u6539\u6587\u5B57\u989C\u8272\u4E0E\u666E\u901A\u5B57\u6BB5\u4E00\u81F4 */\r\n padding-right: 16px;\n}\r\n\r\n /* \u6DFB\u52A0\u5FC5\u586B\u661F\u53F7\u5BF9\u9F50 */\n&.van-field--required[data-v-dbc5bf54] {\n[data-v-dbc5bf54] .van-field__label::before {\r\n margin-right: 4px;\n}\n}\n}\r\n\r\n /* \u7EDF\u4E00\u5B57\u6BB5\u95F4\u8DDD */\n.readonly-field[data-v-dbc5bf54] {\r\n margin: 4px 0;\n}\n}\r\n")();
|
|
17451
|
-
const _hoisted_1$e = {
|
|
17452
|
-
class: "project-selector"
|
|
17453
|
-
};
|
|
17454
|
-
const _sfc_main$m = {
|
|
17455
|
-
__name: "product_selector",
|
|
17456
|
-
props: {
|
|
17457
|
-
modelValue: {
|
|
17458
|
-
type: Object,
|
|
17459
|
-
default: () => ({
|
|
17460
|
-
productName: "",
|
|
17461
|
-
productCode: ""
|
|
17462
|
-
})
|
|
17463
|
-
},
|
|
17464
|
-
required: {
|
|
17465
|
-
type: Boolean,
|
|
17466
|
-
default: true
|
|
17467
|
-
},
|
|
17468
|
-
readonly: {
|
|
17469
|
-
type: Boolean,
|
|
17470
|
-
default: false
|
|
17471
|
-
},
|
|
17472
|
-
rules: {
|
|
17473
|
-
type: Array,
|
|
17474
|
-
default: () => []
|
|
17475
|
-
}
|
|
17476
|
-
},
|
|
17477
|
-
emits: ["update:modelValue"],
|
|
17478
|
-
setup(__props, {
|
|
17479
|
-
emit
|
|
17480
|
-
}) {
|
|
17481
|
-
const props = __props;
|
|
17482
|
-
const productListCache = {
|
|
17483
|
-
data: ref([]),
|
|
17484
|
-
loading: ref(false),
|
|
17485
|
-
error: ref(null)
|
|
17486
|
-
};
|
|
17487
|
-
const productOptions = ref([]);
|
|
17488
|
-
const selectedProjectCode = ref("");
|
|
17489
|
-
const projectCode = ref("");
|
|
17490
|
-
const fetchProducts = () => __async(this, null, function* () {
|
|
17491
|
-
try {
|
|
17492
|
-
if (productListCache.data.value.length > 0)
|
|
17493
|
-
return;
|
|
17494
|
-
if (productListCache.loading.value)
|
|
17495
|
-
return;
|
|
17496
|
-
productListCache.loading.value = true;
|
|
17497
|
-
const response = yield util.project_list({
|
|
17498
|
-
limit: 999,
|
|
17499
|
-
page: 0
|
|
17500
|
-
});
|
|
17501
|
-
if (response.code === 200) {
|
|
17502
|
-
productListCache.data.value = response.data.list.map((item) => ({
|
|
17503
|
-
text: item.name,
|
|
17504
|
-
value: item.projectCode
|
|
17505
|
-
}));
|
|
17506
|
-
}
|
|
17507
|
-
} catch (error) {
|
|
17508
|
-
productListCache.error.value = error;
|
|
17509
|
-
console.error("\u83B7\u53D6\u4EA7\u54C1\u5217\u8868\u5931\u8D25:", error);
|
|
17510
|
-
} finally {
|
|
17511
|
-
productListCache.loading.value = false;
|
|
17512
|
-
}
|
|
17513
|
-
});
|
|
17514
|
-
const handleProjectChange = (value) => {
|
|
17515
|
-
const selectedProduct = productOptions.value.find((item) => item.value === value);
|
|
17516
|
-
if (selectedProduct) {
|
|
17517
|
-
emit("update:modelValue", {
|
|
17518
|
-
productName: selectedProduct.text,
|
|
17519
|
-
productCode: value
|
|
17520
|
-
});
|
|
17521
|
-
projectCode.value = value;
|
|
17522
|
-
}
|
|
17523
|
-
};
|
|
17524
|
-
watch(() => props.modelValue, (newVal) => {
|
|
17525
|
-
if (productOptions.value.length > 0 && newVal.productCode !== selectedProjectCode.value) {
|
|
17526
|
-
selectedProjectCode.value = newVal.productCode;
|
|
17527
|
-
projectCode.value = newVal.productCode;
|
|
17528
|
-
}
|
|
17529
|
-
}, {
|
|
17530
|
-
deep: true,
|
|
17531
|
-
immediate: true
|
|
17532
|
-
});
|
|
17533
|
-
watch(productOptions, (newOptions) => {
|
|
17534
|
-
if (props.modelValue.productCode && newOptions.length > 0) {
|
|
17535
|
-
const exists = newOptions.some((opt) => opt.value === props.modelValue.productCode);
|
|
17536
|
-
if (exists) {
|
|
17537
|
-
selectedProjectCode.value = props.modelValue.productCode;
|
|
17538
|
-
projectCode.value = props.modelValue.productCode;
|
|
17539
|
-
}
|
|
17540
|
-
}
|
|
17541
|
-
});
|
|
17542
|
-
onMounted(() => __async(this, null, function* () {
|
|
17543
|
-
if (productListCache.data.value.length === 0) {
|
|
17544
|
-
yield fetchProducts();
|
|
17545
|
-
productOptions.value = [...productListCache.data.value];
|
|
17546
|
-
} else {
|
|
17547
|
-
productOptions.value = [...productListCache.data.value];
|
|
17548
|
-
}
|
|
17549
|
-
nextTick(() => {
|
|
17550
|
-
if (props.modelValue.productCode) {
|
|
17551
|
-
selectedProjectCode.value = props.modelValue.productCode;
|
|
17552
|
-
projectCode.value = props.modelValue.productCode;
|
|
17553
|
-
}
|
|
17554
|
-
});
|
|
17555
|
-
}));
|
|
17556
|
-
return (_ctx, _cache) => {
|
|
17557
|
-
const _component_van_field = resolveComponent("van-field");
|
|
17558
|
-
return openBlock(), createElementBlock("div", _hoisted_1$e, [createVNode(DataSelector, {
|
|
17559
|
-
modelValue: selectedProjectCode.value,
|
|
17560
|
-
"onUpdate:modelValue": [_cache[0] || (_cache[0] = ($event) => selectedProjectCode.value = $event), handleProjectChange],
|
|
17561
|
-
label: "\u4EA7\u54C1\u540D\u79F0",
|
|
17562
|
-
placeholder: "\u8BF7\u9009\u62E9\u4EA7\u54C1",
|
|
17563
|
-
mode: "single",
|
|
17564
|
-
options: productOptions.value,
|
|
17565
|
-
class: "selector-field",
|
|
17566
|
-
required: props.required,
|
|
17567
|
-
rules: props.rules,
|
|
17568
|
-
readonly: props.readonly
|
|
17569
|
-
}, null, 8, ["modelValue", "options", "required", "rules", "readonly"]), createVNode(_component_van_field, {
|
|
17570
|
-
modelValue: projectCode.value,
|
|
17571
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => projectCode.value = $event),
|
|
17572
|
-
label: "\u4EA7\u54C1\u7F16\u53F7",
|
|
17573
|
-
placeholder: "\u7CFB\u7EDF\u81EA\u52A8\u586B\u5165",
|
|
17574
|
-
readonly: "",
|
|
17575
|
-
class: "readonly-field",
|
|
17576
|
-
required: props.required
|
|
17577
|
-
}, null, 8, ["modelValue", "required"])]);
|
|
17578
|
-
};
|
|
17579
|
-
}
|
|
17580
|
-
};
|
|
17581
|
-
var ProductSelector = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-dbc5bf54"]]);
|
|
17450
|
+
var MultListSelector = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-40a09897"]]);
|
|
17582
17451
|
var subdepartment_selector_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.department-popup[data-v-73eb43f3] {\r\n width: 100%;\r\n height: 60vh;\r\n border-radius: 16px 16px 0 0;\n}\n.popup-container[data-v-73eb43f3] {\r\n display: flex;\r\n flex-direction: column;\r\n flex: 1;\r\n height: 100%;\n}\n.picker-header[data-v-73eb43f3] {\r\n display: flex;\r\n align-items: center;\r\n padding: 12px;\r\n border-bottom: 1px solid #ebedf0;\r\n gap: 8px;\r\n background: #fff;\r\n /* flex-shrink: 0; */\r\n position: sticky;\r\n top: 0;\r\n z-index: 999;\r\n height: 56px;\r\n /* \u56FA\u5B9A\u5934\u90E8\u9AD8\u5EA6 */\r\n flex-shrink: 0;\r\n /* \u9632\u6B62\u5934\u90E8\u88AB\u538B\u7F29 */\n}\n.scroll-container[data-v-73eb43f3] {\r\n flex: 1;\r\n height: 0;\r\n overflow-y: auto;\r\n -webkit-overflow-scrolling: touch;\r\n /* height: calc(80vh - 170px); */\r\n /* \u8BA1\u7B97\u65B9\u5F0F\uFF1A\u603B\u9AD8\u5EA6(80vh) - \u5934\u90E8\u9AD8\u5EA6(56px) - \u641C\u7D22\u6846\u9AD8\u5EA6(52px) */\r\n position: relative;\r\n top: -1px;\n}\n.back-button[data-v-73eb43f3] {\r\n margin-right: 8px;\n}\n.current-path[data-v-73eb43f3] {\r\n flex: 1;\r\n font-size: 14px;\r\n color: #323233;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\n}\n.action-buttons[data-v-73eb43f3] {\r\n display: flex;\r\n gap: 8px;\r\n margin-left: auto;\n}\r\n\r\n/* .scroll-container {\r\n flex: 1;\r\n overflow-y: auto;\r\n -webkit-overflow-scrolling: touch;\r\n} */\n.cell-content[data-v-73eb43f3] {\r\n display: flex;\r\n align-items: center;\r\n gap: 12px;\n}\n.circle-selector[data-v-73eb43f3] {\r\n width: 20px;\r\n height: 20px;\r\n border: 1px solid #ebedf0;\r\n border-radius: 50%;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n transition: all 0.2s;\r\n flex-shrink: 0;\n}\n.circle-selector.selected[data-v-73eb43f3] {\r\n background-color: #1989fa;\r\n border-color: #1989fa;\n}\n.circle-selector.selected .van-icon[data-v-73eb43f3] {\r\n color: white;\r\n font-size: 14px;\n}\n.van-cell__right-icon[data-v-73eb43f3] {\r\n color: #969799;\r\n font-size: 16px;\r\n margin-left: 8px;\n}\n.name[data-v-73eb43f3] {\r\n flex: 1;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n white-space: nowrap;\n}\n.cancel-btn[data-v-73eb43f3] {\r\n color: #969799;\n}\n.search-field[data-v-73eb43f3] {\r\n background: #fff;\r\n padding: 10px 16px;\r\n border-bottom: 1px solid #ebedf0;\r\n position: sticky;\r\n top: 0;\r\n z-index: 999;\r\n margin-bottom: 10px;\r\n flex-shrink: 0;\r\n /* \u9632\u6B62\u538B\u7F29 */\n}\r\n")();
|
|
17583
17452
|
const _hoisted_1$d = {
|
|
17584
17453
|
class: "department-selector"
|
|
@@ -17607,7 +17476,7 @@ const _hoisted_10$2 = ["onClick"];
|
|
|
17607
17476
|
const _hoisted_11$2 = {
|
|
17608
17477
|
class: "name"
|
|
17609
17478
|
};
|
|
17610
|
-
const _sfc_main$
|
|
17479
|
+
const _sfc_main$k = {
|
|
17611
17480
|
__name: "subdepartment_selector",
|
|
17612
17481
|
props: {
|
|
17613
17482
|
modelValue: [String, Number],
|
|
@@ -17938,7 +17807,7 @@ const _sfc_main$l = {
|
|
|
17938
17807
|
};
|
|
17939
17808
|
}
|
|
17940
17809
|
};
|
|
17941
|
-
var SubdepartmentSelector = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
17810
|
+
var SubdepartmentSelector = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-73eb43f3"]]);
|
|
17942
17811
|
var user_selector_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.user-popup[data-v-6c4b4fc8] {\r\n height: 60vh;\r\n width: 100%;\n}\n.picker-header[data-v-6c4b4fc8] {\r\n padding: 10px;\r\n border-bottom: 1px solid #ebedf0;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\n}\n.scroll-container[data-v-6c4b4fc8] {\r\n height: calc(80vh - 150px);\r\n overflow-y: auto;\n}\n.search-container[data-v-6c4b4fc8] {\r\n padding: 10px;\r\n background: #fff;\r\n display: flex;\r\n align-items: center;\r\n gap: 8px;\n}\n[data-v-6c4b4fc8] .search-container .van-search {\r\n flex: 1;\n}\n.search-btn[data-v-6c4b4fc8] {\r\n flex-shrink: 0;\n}\n.select-all-container[data-v-6c4b4fc8] {\r\n font-size: 14px;\r\n padding: 0 16px;\r\n margin: 10px 0;\r\n display: flex;\r\n justify-content: flex-end;\r\n align-items: center;\n}\n[data-v-6c4b4fc8] .van-checkbox__icon--square {\r\n border-radius: 4px;\n}\n[data-v-6c4b4fc8] .van-checkbox__label {\r\n margin-left: 8px;\n}\n[data-v-6c4b4fc8] .van-radio-group .van-cell,[data-v-6c4b4fc8] .van-checkbox-group .van-cell {\r\n align-items: center;\n}\n.current-path[data-v-6c4b4fc8] {\r\n flex: 1;\r\n font-size: 14px;\r\n color: #323233;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\n}\n.header-right[data-v-6c4b4fc8] {\r\n display: flex;\r\n gap: 8px;\r\n margin-left: auto;\n}\n.cancel-btn[data-v-6c4b4fc8] {\r\n color: #969799;\r\n margin-right: 5px;\n}\r\n")();
|
|
17943
17812
|
const _hoisted_1$c = {
|
|
17944
17813
|
class: "user-selector"
|
|
@@ -17972,7 +17841,7 @@ const _hoisted_12 = /* @__PURE__ */ createTextVNode("\u641C\u7D22");
|
|
|
17972
17841
|
const _hoisted_13 = {
|
|
17973
17842
|
class: "scroll-container"
|
|
17974
17843
|
};
|
|
17975
|
-
const _sfc_main$
|
|
17844
|
+
const _sfc_main$j = {
|
|
17976
17845
|
__name: "user_selector",
|
|
17977
17846
|
props: {
|
|
17978
17847
|
modelValue: [Array, String, Number],
|
|
@@ -18466,12 +18335,12 @@ const _sfc_main$k = {
|
|
|
18466
18335
|
};
|
|
18467
18336
|
}
|
|
18468
18337
|
};
|
|
18469
|
-
var UserSelector = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18338
|
+
var UserSelector = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-6c4b4fc8"]]);
|
|
18470
18339
|
var image_picker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-7a64f836] .label {\n color: #000 !important;\n}\n[data-v-7a64f836] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
|
|
18471
18340
|
const _hoisted_1$b = {
|
|
18472
18341
|
class: "image-box"
|
|
18473
18342
|
};
|
|
18474
|
-
const _sfc_main$
|
|
18343
|
+
const _sfc_main$i = {
|
|
18475
18344
|
__name: "image_picker",
|
|
18476
18345
|
props: {
|
|
18477
18346
|
modelValue: {
|
|
@@ -18578,12 +18447,12 @@ const _sfc_main$j = {
|
|
|
18578
18447
|
};
|
|
18579
18448
|
}
|
|
18580
18449
|
};
|
|
18581
|
-
var ImagePicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18450
|
+
var ImagePicker = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-7a64f836"]]);
|
|
18582
18451
|
var images_picker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-d659bcb6] {\n text-align: center;\n}\n.widget .btn[data-v-d659bcb6] {\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}")();
|
|
18583
18452
|
const _hoisted_1$a = {
|
|
18584
18453
|
class: "image-box"
|
|
18585
18454
|
};
|
|
18586
|
-
const _sfc_main$
|
|
18455
|
+
const _sfc_main$h = {
|
|
18587
18456
|
__name: "images_picker",
|
|
18588
18457
|
props: {
|
|
18589
18458
|
modelValue: {
|
|
@@ -18704,12 +18573,12 @@ const _sfc_main$i = {
|
|
|
18704
18573
|
};
|
|
18705
18574
|
}
|
|
18706
18575
|
};
|
|
18707
|
-
var ImagesPicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18576
|
+
var ImagesPicker = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-d659bcb6"]]);
|
|
18708
18577
|
var FilePicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-78f50d19] .label {\n color: #000 !important;\n}\n[data-v-78f50d19] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
|
|
18709
18578
|
const _hoisted_1$9 = {
|
|
18710
18579
|
class: "image-box"
|
|
18711
18580
|
};
|
|
18712
|
-
const _sfc_main$
|
|
18581
|
+
const _sfc_main$g = {
|
|
18713
18582
|
__name: "FilePicker",
|
|
18714
18583
|
props: {
|
|
18715
18584
|
modelValue: {
|
|
@@ -18818,7 +18687,7 @@ const _sfc_main$h = {
|
|
|
18818
18687
|
};
|
|
18819
18688
|
}
|
|
18820
18689
|
};
|
|
18821
|
-
var FilePicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
18690
|
+
var FilePicker = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-78f50d19"]]);
|
|
18822
18691
|
var SingleUserSelector_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.user-popup[data-v-a489ca4c] {\r\n width: 100%;\r\n overflow: hidden;\n}\n.department-selector[data-v-a489ca4c] {\r\n padding: 10px;\n}\n.search-buttons[data-v-a489ca4c] {\r\n display: flex;\r\n gap: 10px;\n}\n.clear-btn[data-v-a489ca4c] {\r\n background-color: #f2f3f5;\r\n border: none;\r\n border-radius: 4px;\r\n padding: 4px 8px;\r\n font-size: 14px;\n}\n.confirm-btn[data-v-a489ca4c] {\r\n background-color: #1989fa;\r\n color: white;\r\n border: none;\r\n border-radius: 4px;\r\n padding: 4px 8px;\r\n font-size: 14px;\n}\n.no-results[data-v-a489ca4c] {\r\n text-align: center;\r\n padding: 20px;\r\n color: #969799;\n}\n.picker-header[data-v-a489ca4c] {\r\n padding: 10px;\r\n border-bottom: 1px solid #ebedf0;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\n}\n.current-path[data-v-a489ca4c] {\r\n flex: 1;\r\n font-size: 14px;\r\n color: #323233;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\n}\n.header-right[data-v-a489ca4c] {\r\n display: flex;\r\n gap: 8px;\r\n margin-left: auto;\n}\n.cancel-btn[data-v-a489ca4c] {\r\n color: #969799;\r\n margin-right: 5px;\n}\n.scroll-container[data-v-a489ca4c] {\r\n height: calc(80vh - 150px);\r\n overflow-y: auto;\n}\r\n")();
|
|
18823
18692
|
const _hoisted_1$8 = {
|
|
18824
18693
|
class: "department-selector"
|
|
@@ -18840,7 +18709,7 @@ const _hoisted_7$3 = /* @__PURE__ */ createTextVNode("\u786E\u5B9A");
|
|
|
18840
18709
|
const _hoisted_8$3 = {
|
|
18841
18710
|
class: "scroll-container"
|
|
18842
18711
|
};
|
|
18843
|
-
const _sfc_main$
|
|
18712
|
+
const _sfc_main$f = {
|
|
18844
18713
|
__name: "SingleUserSelector",
|
|
18845
18714
|
props: {
|
|
18846
18715
|
modelValue: {
|
|
@@ -19174,7 +19043,7 @@ const _sfc_main$g = {
|
|
|
19174
19043
|
};
|
|
19175
19044
|
}
|
|
19176
19045
|
};
|
|
19177
|
-
var SingleUserSelector = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19046
|
+
var SingleUserSelector = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-a489ca4c"]]);
|
|
19178
19047
|
var UserPop_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.user-popup[data-v-78c036bd] {\r\n width: 100%;\r\n overflow: hidden;\n}\n.department-selector[data-v-78c036bd] {\r\n padding: 10px;\n}\n.search-buttons[data-v-78c036bd] {\r\n display: flex;\r\n gap: 10px;\n}\n.clear-btn[data-v-78c036bd] {\r\n background-color: #f2f3f5;\r\n border: none;\r\n border-radius: 4px;\r\n padding: 4px 8px;\r\n font-size: 14px;\n}\n.confirm-btn[data-v-78c036bd] {\r\n background-color: #1989fa;\r\n color: white;\r\n border: none;\r\n border-radius: 4px;\r\n padding: 4px 8px;\r\n font-size: 14px;\n}\n.no-results[data-v-78c036bd] {\r\n text-align: center;\r\n padding: 20px;\r\n color: #969799;\n}\n.picker-header[data-v-78c036bd] {\r\n padding: 10px;\r\n border-bottom: 1px solid #ebedf0;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\n}\n.current-path[data-v-78c036bd] {\r\n flex: 1;\r\n font-size: 14px;\r\n color: #323233;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\n}\n.header-right[data-v-78c036bd] {\r\n display: flex;\r\n gap: 8px;\r\n margin-left: auto;\n}\n.cancel-btn[data-v-78c036bd] {\r\n color: #969799;\r\n margin-right: 5px;\n}\n.scroll-container[data-v-78c036bd] {\r\n height: calc(80vh - 150px);\r\n overflow-y: auto;\n}\r\n")();
|
|
19179
19048
|
const _hoisted_1$7 = {
|
|
19180
19049
|
class: "department-selector"
|
|
@@ -19196,7 +19065,7 @@ const _hoisted_7$2 = /* @__PURE__ */ createTextVNode("\u786E\u5B9A");
|
|
|
19196
19065
|
const _hoisted_8$2 = {
|
|
19197
19066
|
class: "scroll-container"
|
|
19198
19067
|
};
|
|
19199
|
-
const _sfc_main$
|
|
19068
|
+
const _sfc_main$e = {
|
|
19200
19069
|
__name: "UserPop",
|
|
19201
19070
|
props: {
|
|
19202
19071
|
show: {
|
|
@@ -19446,12 +19315,12 @@ const _sfc_main$f = {
|
|
|
19446
19315
|
};
|
|
19447
19316
|
}
|
|
19448
19317
|
};
|
|
19449
|
-
var UserPop = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19318
|
+
var UserPop = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-78c036bd"]]);
|
|
19450
19319
|
var UsersPicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.user-item[data-v-4022cd82]{\r\n margin:3px;\n}\r\n")();
|
|
19451
19320
|
const _hoisted_1$6 = {
|
|
19452
19321
|
class: "user-list"
|
|
19453
19322
|
};
|
|
19454
|
-
const _sfc_main$
|
|
19323
|
+
const _sfc_main$d = {
|
|
19455
19324
|
__name: "UsersPicker",
|
|
19456
19325
|
props: {
|
|
19457
19326
|
modelValue: {
|
|
@@ -19573,9 +19442,9 @@ const _sfc_main$e = {
|
|
|
19573
19442
|
};
|
|
19574
19443
|
}
|
|
19575
19444
|
};
|
|
19576
|
-
var UsersPicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19445
|
+
var UsersPicker = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-4022cd82"]]);
|
|
19577
19446
|
var UserPicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.user[data-v-58929b5a]{\r\n padding:4px 8px;\n}\r\n")();
|
|
19578
|
-
const _sfc_main$
|
|
19447
|
+
const _sfc_main$c = {
|
|
19579
19448
|
__name: "UserPicker",
|
|
19580
19449
|
props: {
|
|
19581
19450
|
modelValue: {
|
|
@@ -19689,7 +19558,7 @@ const _sfc_main$d = {
|
|
|
19689
19558
|
};
|
|
19690
19559
|
}
|
|
19691
19560
|
};
|
|
19692
|
-
var UserPicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19561
|
+
var UserPicker = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-58929b5a"]]);
|
|
19693
19562
|
var UserProfile_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.widget[data-v-5ebf8c56] {\r\n position: relative;\r\n display: flex;\r\n flex-direction: column;\r\n align-items: center;\r\n justify-content: space-around;\r\n padding: 20px;\r\n background: linear-gradient(to right, #4a90e2, #87ceeb);\r\n border-radius: 10px;\r\n box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);\n.user-avatar[data-v-5ebf8c56] {\r\n margin-bottom: 15px;\n}\n.user-info[data-v-5ebf8c56] {\r\n display: flex;\r\n align-items: center;\r\n justify-content: space-around;\r\n margin-bottom: 15px;\n.user-info-item[data-v-5ebf8c56] {\r\n font-size: 16px;\r\n line-height: 22px;\r\n color: #fff;\r\n text-align: center;\r\n padding: 0 3px;\n}\n}\n.space[data-v-5ebf8c56] {\r\n min-height: 10px;\r\n flex: 1;\n}\r\n\r\n /* \u6DFB\u52A0\u9000\u51FA\u6309\u94AE\u6837\u5F0F */\n.logout-button[data-v-5ebf8c56] {\r\n width: 70px;\r\n height: 30px;\r\n position: absolute;\r\n top: 20px;\r\n right: 20px;\r\n background-color: rgba(255, 255, 255, 0.2);\r\n color: white;\r\n border: none;\r\n border-radius: 15px;\r\n padding: 5px 15px;\r\n cursor: pointer;\r\n font-size: 14px;\r\n transition: background-color 0.3s;\n}\n.logout-button[data-v-5ebf8c56]:hover {\r\n background-color: rgba(255, 255, 255, 0.4);\n}\n.user-jobs[data-v-5ebf8c56] {\r\n display: flex;\r\n justify-content: center;\r\n gap: 15px;\r\n width: 100%;\r\n max-width: 300px;\n.job-item[data-v-5ebf8c56] {\r\n padding: 5px 10px;\r\n background-color: rgba(255, 255, 255, 0.2);\r\n border-radius: 20px;\r\n font-size: 12px;\r\n color: #fff;\n}\n}\n}\r\n")();
|
|
19694
19563
|
const _hoisted_1$5 = {
|
|
19695
19564
|
class: "widget"
|
|
@@ -19713,7 +19582,7 @@ const _hoisted_7$1 = {
|
|
|
19713
19582
|
class: "user-jobs"
|
|
19714
19583
|
};
|
|
19715
19584
|
const _hoisted_8$1 = /* @__PURE__ */ createTextVNode(" \u6CE8\u9500 ");
|
|
19716
|
-
const _sfc_main$
|
|
19585
|
+
const _sfc_main$b = {
|
|
19717
19586
|
__name: "UserProfile",
|
|
19718
19587
|
emits: ["logout"],
|
|
19719
19588
|
setup(__props, {
|
|
@@ -19767,103 +19636,9 @@ const _sfc_main$c = {
|
|
|
19767
19636
|
};
|
|
19768
19637
|
}
|
|
19769
19638
|
};
|
|
19770
|
-
var UserProfile = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
19771
|
-
var ProjectPicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => '@charset "UTF-8";\n.widget[data-v-47f94e12] {\n /* \u7EDF\u4E00\u5B57\u6BB5\u95F4\u8DDD */\n}\n.widget[data-v-47f94e12] .van-cell {\n align-items: center;\n}\n.widget[data-v-47f94e12] .van-field__label {\n width: 90px;\n flex: none;\n}\n.widget .readonly-field[data-v-47f94e12] {\n /* \u6DFB\u52A0\u5FC5\u586B\u661F\u53F7\u5BF9\u9F50 */\n}\n.widget .readonly-field[data-v-47f94e12] .van-field__control {\n color: #323233;\n /* \u4FEE\u6539\u6587\u5B57\u989C\u8272\u4E0E\u666E\u901A\u5B57\u6BB5\u4E00\u81F4 */\n padding-right: 16px;\n}\n.widget .readonly-field.van-field--required[data-v-47f94e12] .van-field__label::before {\n margin-right: 4px;\n}\n.widget .readonly-field[data-v-47f94e12] {\n margin: 4px 0;\n}')();
|
|
19772
|
-
const _hoisted_1$4 = {
|
|
19773
|
-
class: "widget"
|
|
19774
|
-
};
|
|
19775
|
-
const _sfc_main$b = {
|
|
19776
|
-
__name: "ProjectPicker",
|
|
19777
|
-
props: {
|
|
19778
|
-
modelValue: {
|
|
19779
|
-
type: String,
|
|
19780
|
-
default: null
|
|
19781
|
-
},
|
|
19782
|
-
required: {
|
|
19783
|
-
type: Boolean,
|
|
19784
|
-
default: true
|
|
19785
|
-
},
|
|
19786
|
-
label: {
|
|
19787
|
-
type: String,
|
|
19788
|
-
default: ""
|
|
19789
|
-
},
|
|
19790
|
-
placeholder: {
|
|
19791
|
-
type: String,
|
|
19792
|
-
default: "\u8BF7\u9009\u62E9\u9879\u76EE"
|
|
19793
|
-
},
|
|
19794
|
-
readonly: {
|
|
19795
|
-
type: Boolean,
|
|
19796
|
-
default: false
|
|
19797
|
-
},
|
|
19798
|
-
rules: {
|
|
19799
|
-
type: Array,
|
|
19800
|
-
default: () => []
|
|
19801
|
-
},
|
|
19802
|
-
auth: {
|
|
19803
|
-
type: String,
|
|
19804
|
-
default: ""
|
|
19805
|
-
},
|
|
19806
|
-
maxStage: {
|
|
19807
|
-
type: String,
|
|
19808
|
-
default: ""
|
|
19809
|
-
}
|
|
19810
|
-
},
|
|
19811
|
-
emits: ["update:modelValue", "select"],
|
|
19812
|
-
setup(__props, {
|
|
19813
|
-
emit
|
|
19814
|
-
}) {
|
|
19815
|
-
const props = __props;
|
|
19816
|
-
const {
|
|
19817
|
-
isRequired,
|
|
19818
|
-
isReadonly,
|
|
19819
|
-
isGone,
|
|
19820
|
-
isDisabled
|
|
19821
|
-
} = util.props2auth(props);
|
|
19822
|
-
const data2 = reactive({
|
|
19823
|
-
options: []
|
|
19824
|
-
});
|
|
19825
|
-
const modelValue = useVModel(props, "modelValue", emit);
|
|
19826
|
-
const query = () => __async(this, null, function* () {
|
|
19827
|
-
let params = {
|
|
19828
|
-
isBasic: true,
|
|
19829
|
-
limit: 99999,
|
|
19830
|
-
page: 1
|
|
19831
|
-
};
|
|
19832
|
-
if (props.maxStage)
|
|
19833
|
-
params.maxStage = props.maxStage;
|
|
19834
|
-
const res = yield util.project_list(params);
|
|
19835
|
-
data2.options = res.data.list.map((item) => ({
|
|
19836
|
-
text: `${item.projectCode}/${item.name}`,
|
|
19837
|
-
value: item.id
|
|
19838
|
-
}));
|
|
19839
|
-
});
|
|
19840
|
-
const onSelect = (item) => {
|
|
19841
|
-
emit("select", item);
|
|
19842
|
-
};
|
|
19843
|
-
onMounted(() => __async(this, null, function* () {
|
|
19844
|
-
query();
|
|
19845
|
-
}));
|
|
19846
|
-
return (_ctx, _cache) => {
|
|
19847
|
-
return openBlock(), createElementBlock("div", _hoisted_1$4, [!unref(isGone) ? (openBlock(), createBlock(DataSelector, {
|
|
19848
|
-
key: 0,
|
|
19849
|
-
modelValue: unref(modelValue),
|
|
19850
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(modelValue) ? modelValue.value = $event : null),
|
|
19851
|
-
label: props.label,
|
|
19852
|
-
required: unref(isRequired),
|
|
19853
|
-
rules: props.rules,
|
|
19854
|
-
disabled: unref(isDisabled),
|
|
19855
|
-
readonly: unref(isReadonly),
|
|
19856
|
-
mode: "single",
|
|
19857
|
-
options: data2.options,
|
|
19858
|
-
class: "selector-field",
|
|
19859
|
-
onSelect
|
|
19860
|
-
}, null, 8, ["modelValue", "label", "required", "rules", "disabled", "readonly", "options"])) : createCommentVNode("", true)]);
|
|
19861
|
-
};
|
|
19862
|
-
}
|
|
19863
|
-
};
|
|
19864
|
-
var ProjectPicker = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-47f94e12"]]);
|
|
19639
|
+
var UserProfile = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-5ebf8c56"]]);
|
|
19865
19640
|
var BillCard_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-68bdd6bc] {\n background-color: white;\n border-radius: 8px;\n box-shadow: var(--van-dropdown-menu-shadow);\n color: 14px;\n}\n.widget .card-box[data-v-68bdd6bc] {\n padding-bottom: 8px;\n}\n.widget .card-box .card-header[data-v-68bdd6bc] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 15px 10px;\n border-bottom: 1px solid #eee;\n}\n.widget .card-box .card-header .card-sum[data-v-68bdd6bc] {\n flex: 1;\n font-size: 14px;\n text-align: left;\n}\n.widget .card-box .card-header .user-state[data-v-68bdd6bc] {\n margin-right: 1px;\n}\n[data-v-68bdd6bc] .van-cell__value {\n flex: 2 !important;\n}\n[data-v-68bdd6bc] .van-cell__title {\n font-size: 12px !important;\n color: #666 !important;\n text-align: left !important;\n}\n[data-v-68bdd6bc] .van-cell__value {\n font-size: 12px !important;\n color: #888 !important;\n}\n[data-v-68bdd6bc] .van-cell {\n padding: 2px 10px !important;\n}")();
|
|
19866
|
-
const _hoisted_1$
|
|
19641
|
+
const _hoisted_1$4 = {
|
|
19867
19642
|
class: "widget"
|
|
19868
19643
|
};
|
|
19869
19644
|
const _hoisted_2$2 = {
|
|
@@ -19959,7 +19734,7 @@ const _sfc_main$a = {
|
|
|
19959
19734
|
const _component_van_tag = resolveComponent("van-tag");
|
|
19960
19735
|
const _component_van_cell = resolveComponent("van-cell");
|
|
19961
19736
|
const _component_van_cell_group = resolveComponent("van-cell-group");
|
|
19962
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
19737
|
+
return openBlock(), createElementBlock("div", _hoisted_1$4, [createVNode(_component_van_cell_group, {
|
|
19963
19738
|
inset: "",
|
|
19964
19739
|
class: "card-box"
|
|
19965
19740
|
}, {
|
|
@@ -20160,70 +19935,8 @@ const _sfc_main$7 = {
|
|
|
20160
19935
|
};
|
|
20161
19936
|
}
|
|
20162
19937
|
};
|
|
20163
|
-
const _sfc_main$6 = {
|
|
20164
|
-
__name: "ProjectDropdown",
|
|
20165
|
-
props: {
|
|
20166
|
-
modelValue: {
|
|
20167
|
-
type: Number,
|
|
20168
|
-
default: 0
|
|
20169
|
-
},
|
|
20170
|
-
label: {
|
|
20171
|
-
type: String,
|
|
20172
|
-
default: "\u9009\u62E9\u9879\u76EE"
|
|
20173
|
-
},
|
|
20174
|
-
placeholder: {
|
|
20175
|
-
type: String,
|
|
20176
|
-
default: "\u8BF7\u9009\u62E9\u9879\u76EE"
|
|
20177
|
-
},
|
|
20178
|
-
maxStage: {
|
|
20179
|
-
type: String,
|
|
20180
|
-
default: ""
|
|
20181
|
-
}
|
|
20182
|
-
},
|
|
20183
|
-
emits: ["update:modelValue"],
|
|
20184
|
-
setup(__props, {
|
|
20185
|
-
emit
|
|
20186
|
-
}) {
|
|
20187
|
-
const props = __props;
|
|
20188
|
-
const data2 = reactive({
|
|
20189
|
-
options: []
|
|
20190
|
-
});
|
|
20191
|
-
const modelValue = useVModel(props, "modelValue", emit);
|
|
20192
|
-
const totalOptions = computed(() => {
|
|
20193
|
-
return [{
|
|
20194
|
-
text: "\u5DE5\u7A0B\u7F16\u53F7",
|
|
20195
|
-
value: ""
|
|
20196
|
-
}, ...data2.options];
|
|
20197
|
-
});
|
|
20198
|
-
onMounted(() => {
|
|
20199
|
-
query();
|
|
20200
|
-
});
|
|
20201
|
-
const query = () => __async(this, null, function* () {
|
|
20202
|
-
let params = {
|
|
20203
|
-
isBasic: true,
|
|
20204
|
-
limit: 99999,
|
|
20205
|
-
page: 1
|
|
20206
|
-
};
|
|
20207
|
-
if (props.maxStage)
|
|
20208
|
-
params.maxStage = props.maxStage;
|
|
20209
|
-
const res = yield util.project_list(params);
|
|
20210
|
-
data2.options = res.data.list.map((item) => ({
|
|
20211
|
-
text: `${item.projectCode}/${item.name}`,
|
|
20212
|
-
value: item.id
|
|
20213
|
-
}));
|
|
20214
|
-
});
|
|
20215
|
-
return (_ctx, _cache) => {
|
|
20216
|
-
const _component_van_dropdown_item = resolveComponent("van-dropdown-item");
|
|
20217
|
-
return openBlock(), createBlock(_component_van_dropdown_item, {
|
|
20218
|
-
modelValue: unref(modelValue),
|
|
20219
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(modelValue) ? modelValue.value = $event : null),
|
|
20220
|
-
options: unref(totalOptions)
|
|
20221
|
-
}, null, 8, ["modelValue", "options"]);
|
|
20222
|
-
};
|
|
20223
|
-
}
|
|
20224
|
-
};
|
|
20225
19938
|
var Switch_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-d8d21ade] .label {\n color: #000 !important;\n}\n[data-v-d8d21ade] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
|
|
20226
|
-
const _sfc_main$
|
|
19939
|
+
const _sfc_main$6 = {
|
|
20227
19940
|
__name: "Switch",
|
|
20228
19941
|
props: {
|
|
20229
19942
|
modelValue: {
|
|
@@ -20291,9 +20004,9 @@ const _sfc_main$5 = {
|
|
|
20291
20004
|
};
|
|
20292
20005
|
}
|
|
20293
20006
|
};
|
|
20294
|
-
var Switch = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20007
|
+
var Switch = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-d8d21ade"]]);
|
|
20295
20008
|
var Sheet_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".item-box[data-v-2bd62a7a] {\n position: relative;\n padding-bottom: 5px;\n border-bottom: 1px solid #e1e1e1;\n}\n.actionbar[data-v-2bd62a7a] {\n display: flex;\n justify-content: center;\n margin-top: 5px;\n}\n[data-v-2bd62a7a] .label {\n color: #000 !important;\n}\n[data-v-2bd62a7a] .van-field__control--custom {\n display: block;\n}")();
|
|
20296
|
-
const _hoisted_1$
|
|
20009
|
+
const _hoisted_1$3 = {
|
|
20297
20010
|
key: 0,
|
|
20298
20011
|
class: "actionbar"
|
|
20299
20012
|
};
|
|
@@ -20301,7 +20014,7 @@ const _hoisted_2$1 = {
|
|
|
20301
20014
|
key: 0,
|
|
20302
20015
|
class: "actionbar"
|
|
20303
20016
|
};
|
|
20304
|
-
const _sfc_main$
|
|
20017
|
+
const _sfc_main$5 = {
|
|
20305
20018
|
__name: "Sheet",
|
|
20306
20019
|
props: {
|
|
20307
20020
|
modelValue: {
|
|
@@ -20365,7 +20078,7 @@ const _sfc_main$4 = {
|
|
|
20365
20078
|
required: unref(isRequired),
|
|
20366
20079
|
placeholder: props.placeholder
|
|
20367
20080
|
}, {
|
|
20368
|
-
input: withCtx(() => [!unref(isGone) && !unref(isDisabled) && !unref(isReadonly) ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
20081
|
+
input: withCtx(() => [!unref(isGone) && !unref(isDisabled) && !unref(isReadonly) ? (openBlock(), createElementBlock("div", _hoisted_1$3, [createVNode(_component_van_button, {
|
|
20369
20082
|
icon: "plus",
|
|
20370
20083
|
type: "primary",
|
|
20371
20084
|
size: "mini",
|
|
@@ -20394,9 +20107,9 @@ const _sfc_main$4 = {
|
|
|
20394
20107
|
};
|
|
20395
20108
|
}
|
|
20396
20109
|
};
|
|
20397
|
-
var Sheet = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20110
|
+
var Sheet = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-2bd62a7a"]]);
|
|
20398
20111
|
var TreePop_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.popup-box[data-v-571370f8] {\r\n min-height: 20vh;\r\n max-height: 40vh;\r\n overflow-y: auto;\n.checkbox-list[data-v-571370f8] {\r\n padding: 15px 25px;\n[data-v-571370f8] .van-checkbox__label {\r\n flex: 1;\r\n text-align: right;\n}\n}\n}\n.select-all-container[data-v-571370f8] {\r\n font-size: 14px;\r\n padding: 15px 25px 0 15px;\r\n margin: 10px 0;\r\n display: flex;\r\n justify-content: flex-end;\r\n align-items: center;\n}\n.select-all-container .van-checkbox[data-v-571370f8] {\r\n margin-left: auto;\n}\r\n\r\n/* \u65B0\u589E\uFF1A\u8C03\u6574\u65B9\u5F62\u590D\u9009\u6846\u7684\u8FB9\u8DDD */\n.van-checkbox--square[data-v-571370f8] {\r\n margin-left: 8px;\n}\r\n")();
|
|
20399
|
-
const _sfc_main$
|
|
20112
|
+
const _sfc_main$4 = {
|
|
20400
20113
|
__name: "TreePop",
|
|
20401
20114
|
props: {
|
|
20402
20115
|
show: {
|
|
@@ -20445,12 +20158,12 @@ const _sfc_main$3 = {
|
|
|
20445
20158
|
};
|
|
20446
20159
|
}
|
|
20447
20160
|
};
|
|
20448
|
-
var TreePop = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20161
|
+
var TreePop = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-571370f8"]]);
|
|
20449
20162
|
var TreePicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.select-item[data-v-6744b874]{\r\n margin:3px;\n}\r\n")();
|
|
20450
|
-
const _hoisted_1$
|
|
20163
|
+
const _hoisted_1$2 = {
|
|
20451
20164
|
class: "select-list"
|
|
20452
20165
|
};
|
|
20453
|
-
const _sfc_main$
|
|
20166
|
+
const _sfc_main$3 = {
|
|
20454
20167
|
__name: "TreePicker",
|
|
20455
20168
|
props: {
|
|
20456
20169
|
modelValue: {
|
|
@@ -20544,7 +20257,7 @@ const _sfc_main$2 = {
|
|
|
20544
20257
|
onClick: _cache[0] || (_cache[0] = ($event) => data2.isShowPop = !unref(isReadonly)),
|
|
20545
20258
|
"label-class": "label"
|
|
20546
20259
|
}, {
|
|
20547
|
-
input: withCtx(() => [createElementVNode("div", _hoisted_1$
|
|
20260
|
+
input: withCtx(() => [createElementVNode("div", _hoisted_1$2, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(selectOptions), (item, i) => {
|
|
20548
20261
|
return openBlock(), createBlock(_component_van_tag, {
|
|
20549
20262
|
class: "select-item",
|
|
20550
20263
|
closeable: !unref(isDisabled),
|
|
@@ -20568,9 +20281,9 @@ const _sfc_main$2 = {
|
|
|
20568
20281
|
};
|
|
20569
20282
|
}
|
|
20570
20283
|
};
|
|
20571
|
-
var TreePicker = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20284
|
+
var TreePicker = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-6744b874"]]);
|
|
20572
20285
|
var CascaderPop_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "\n.cascader-pop[data-v-e8f93d5a] {\r\n width: 100%;\r\n overflow: hidden;\n}\n.cascader-selector[data-v-e8f93d5a] {\r\n padding: 10px;\n}\n.search-buttons[data-v-e8f93d5a] {\r\n display: flex;\r\n gap: 10px;\n}\n.clear-btn[data-v-e8f93d5a] {\r\n background-color: #f2f3f5;\r\n border: none;\r\n border-radius: 4px;\r\n padding: 4px 8px;\r\n font-size: 14px;\n}\n.confirm-btn[data-v-e8f93d5a] {\r\n background-color: #1989fa;\r\n color: white;\r\n border: none;\r\n border-radius: 4px;\r\n padding: 4px 8px;\r\n font-size: 14px;\n}\n.no-results[data-v-e8f93d5a] {\r\n text-align: center;\r\n padding: 20px;\r\n color: #969799;\n}\n.cascader-header[data-v-e8f93d5a] {\r\n padding: 10px;\r\n border-bottom: 1px solid #ebedf0;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\n}\n.current-path[data-v-e8f93d5a] {\r\n flex: 1;\r\n font-size: 14px;\r\n color: #323233;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\n}\n.header-right[data-v-e8f93d5a] {\r\n display: flex;\r\n gap: 8px;\r\n margin-left: auto;\n}\n.cancel-btn[data-v-e8f93d5a] {\r\n color: #969799;\r\n margin-right: 5px;\n}\n.scroll-container[data-v-e8f93d5a] {\r\n height: calc(80vh - 150px);\r\n overflow-y: auto;\n}\n.cell-content[data-v-e8f93d5a] {\r\n display: flex;\r\n align-items: center;\r\n gap: 12px;\n}\n.circle-selector[data-v-e8f93d5a] {\r\n width: 20px;\r\n height: 20px;\r\n border-radius: 50%;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n transition: all 0.2s;\r\n flex-shrink: 0;\n}\n.circle-selector.selected[data-v-e8f93d5a] {\r\n background-color: #1989fa;\r\n border-color: #1989fa;\n}\n.circle-selector.selected .van-icon[data-v-e8f93d5a] {\r\n color: white;\r\n font-size: 14px;\n}\n.van-cell__right-icon[data-v-e8f93d5a] {\r\n color: #969799;\r\n font-size: 16px;\r\n margin-left: 8px;\n}\n.name[data-v-e8f93d5a] {\r\n flex: 1;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n white-space: nowrap;\n}\n.cancel-btn[data-v-e8f93d5a] {\r\n color: #969799;\n}\n.search-field[data-v-e8f93d5a] {\r\n background: #fff;\r\n padding: 10px 16px;\r\n border-bottom: 1px solid #ebedf0;\r\n position: sticky;\r\n top: 0;\r\n z-index: 999;\r\n margin-bottom: 10px;\r\n flex-shrink: 0;\r\n /* \u9632\u6B62\u538B\u7F29 */\n}\r\n")();
|
|
20573
|
-
const _hoisted_1 = {
|
|
20286
|
+
const _hoisted_1$1 = {
|
|
20574
20287
|
class: "cascader-selector"
|
|
20575
20288
|
};
|
|
20576
20289
|
const _hoisted_2 = {
|
|
@@ -20597,7 +20310,7 @@ const _hoisted_10 = ["onClick"];
|
|
|
20597
20310
|
const _hoisted_11 = {
|
|
20598
20311
|
class: "name"
|
|
20599
20312
|
};
|
|
20600
|
-
const _sfc_main$
|
|
20313
|
+
const _sfc_main$2 = {
|
|
20601
20314
|
__name: "CascaderPop",
|
|
20602
20315
|
props: {
|
|
20603
20316
|
modelValue: {
|
|
@@ -20738,7 +20451,7 @@ const _sfc_main$1 = {
|
|
|
20738
20451
|
position: "bottom",
|
|
20739
20452
|
class: "cascader-pop"
|
|
20740
20453
|
}, {
|
|
20741
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_1, [createElementVNode("div", _hoisted_2, [createElementVNode("div", _hoisted_3, [createVNode(_component_van_button, {
|
|
20454
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_1$1, [createElementVNode("div", _hoisted_2, [createElementVNode("div", _hoisted_3, [createVNode(_component_van_button, {
|
|
20742
20455
|
onClick: onBack,
|
|
20743
20456
|
icon: "arrow-left",
|
|
20744
20457
|
size: "small"
|
|
@@ -20805,8 +20518,8 @@ const _sfc_main$1 = {
|
|
|
20805
20518
|
};
|
|
20806
20519
|
}
|
|
20807
20520
|
};
|
|
20808
|
-
var CascaderPop = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
20809
|
-
const _sfc_main = {
|
|
20521
|
+
var CascaderPop = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-e8f93d5a"]]);
|
|
20522
|
+
const _sfc_main$1 = {
|
|
20810
20523
|
__name: "CascaderPicker",
|
|
20811
20524
|
props: {
|
|
20812
20525
|
modelValue: {
|
|
@@ -20929,6 +20642,112 @@ const _sfc_main = {
|
|
|
20929
20642
|
};
|
|
20930
20643
|
}
|
|
20931
20644
|
};
|
|
20645
|
+
var SingleApiPicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => '@charset "UTF-8";\n.widget[data-v-11b655b2] {\n /* \u7EDF\u4E00\u5B57\u6BB5\u95F4\u8DDD */\n}\n.widget[data-v-11b655b2] .van-cell {\n align-items: center;\n}\n.widget[data-v-11b655b2] .van-field__label {\n width: 90px;\n flex: none;\n}\n.widget .readonly-field[data-v-11b655b2] {\n /* \u6DFB\u52A0\u5FC5\u586B\u661F\u53F7\u5BF9\u9F50 */\n}\n.widget .readonly-field[data-v-11b655b2] .van-field__control {\n color: #323233;\n /* \u4FEE\u6539\u6587\u5B57\u989C\u8272\u4E0E\u666E\u901A\u5B57\u6BB5\u4E00\u81F4 */\n padding-right: 16px;\n}\n.widget .readonly-field.van-field--required[data-v-11b655b2] .van-field__label::before {\n margin-right: 4px;\n}\n.widget .readonly-field[data-v-11b655b2] {\n margin: 4px 0;\n}')();
|
|
20646
|
+
const _hoisted_1 = {
|
|
20647
|
+
class: "widget"
|
|
20648
|
+
};
|
|
20649
|
+
const _sfc_main = {
|
|
20650
|
+
__name: "SingleApiPicker",
|
|
20651
|
+
props: {
|
|
20652
|
+
modelValue: {
|
|
20653
|
+
type: String,
|
|
20654
|
+
default: null
|
|
20655
|
+
},
|
|
20656
|
+
label: {
|
|
20657
|
+
type: String,
|
|
20658
|
+
default: ""
|
|
20659
|
+
},
|
|
20660
|
+
placeholder: {
|
|
20661
|
+
type: String,
|
|
20662
|
+
default: ""
|
|
20663
|
+
},
|
|
20664
|
+
required: {
|
|
20665
|
+
type: Boolean,
|
|
20666
|
+
default: false
|
|
20667
|
+
},
|
|
20668
|
+
readonly: {
|
|
20669
|
+
type: Boolean,
|
|
20670
|
+
default: true
|
|
20671
|
+
},
|
|
20672
|
+
auth: {
|
|
20673
|
+
type: String,
|
|
20674
|
+
default: ""
|
|
20675
|
+
},
|
|
20676
|
+
query: {
|
|
20677
|
+
type: Function,
|
|
20678
|
+
default: () => {
|
|
20679
|
+
}
|
|
20680
|
+
}
|
|
20681
|
+
},
|
|
20682
|
+
emits: ["update:modelValue", "select"],
|
|
20683
|
+
setup(__props, {
|
|
20684
|
+
emit
|
|
20685
|
+
}) {
|
|
20686
|
+
const props = __props;
|
|
20687
|
+
const modelValue = useVModel(props, "modelValue", emit);
|
|
20688
|
+
const {
|
|
20689
|
+
isRequired,
|
|
20690
|
+
isReadonly,
|
|
20691
|
+
isGone,
|
|
20692
|
+
isDisabled
|
|
20693
|
+
} = util.props2auth(props);
|
|
20694
|
+
const data2 = reactive({
|
|
20695
|
+
isShow: false,
|
|
20696
|
+
options: []
|
|
20697
|
+
});
|
|
20698
|
+
const formatLabel = computed(() => {
|
|
20699
|
+
let one = data2.options.find((item) => item.value == modelValue.value);
|
|
20700
|
+
return one ? one.text : "";
|
|
20701
|
+
});
|
|
20702
|
+
onMounted(() => __async(this, null, function* () {
|
|
20703
|
+
props.query((options) => {
|
|
20704
|
+
data2.options = options;
|
|
20705
|
+
});
|
|
20706
|
+
}));
|
|
20707
|
+
const onConfirm = ({
|
|
20708
|
+
selectedOptions
|
|
20709
|
+
}) => {
|
|
20710
|
+
console.log("selectedOptions: " + selectedOptions);
|
|
20711
|
+
let selectOption = selectedOptions[selectedOptions.length - 1];
|
|
20712
|
+
modelValue.value = selectOption.value;
|
|
20713
|
+
emit("select", selectOption);
|
|
20714
|
+
data2.isShow = false;
|
|
20715
|
+
};
|
|
20716
|
+
const onCancel = () => {
|
|
20717
|
+
data2.isShow = false;
|
|
20718
|
+
};
|
|
20719
|
+
return (_ctx, _cache) => {
|
|
20720
|
+
const _component_van_field = resolveComponent("van-field");
|
|
20721
|
+
const _component_van_picker = resolveComponent("van-picker");
|
|
20722
|
+
const _component_van_popup = resolveComponent("van-popup");
|
|
20723
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(_component_van_field, {
|
|
20724
|
+
modelValue: unref(formatLabel),
|
|
20725
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(formatLabel) ? formatLabel.value = $event : null),
|
|
20726
|
+
"is-link": "",
|
|
20727
|
+
label: props.label,
|
|
20728
|
+
placeholder: props.placeholder,
|
|
20729
|
+
readonly: "",
|
|
20730
|
+
required: unref(isRequired),
|
|
20731
|
+
disabled: unref(isDisabled),
|
|
20732
|
+
onClick: _cache[1] || (_cache[1] = ($event) => data2.isShow = true)
|
|
20733
|
+
}, null, 8, ["modelValue", "label", "placeholder", "required", "disabled"]), createVNode(_component_van_popup, {
|
|
20734
|
+
show: data2.isShow,
|
|
20735
|
+
"onUpdate:show": _cache[2] || (_cache[2] = ($event) => data2.isShow = $event),
|
|
20736
|
+
"destroy-on-close": "",
|
|
20737
|
+
round: "",
|
|
20738
|
+
position: "bottom"
|
|
20739
|
+
}, {
|
|
20740
|
+
default: withCtx(() => [createVNode(_component_van_picker, {
|
|
20741
|
+
columns: data2.options,
|
|
20742
|
+
onCancel,
|
|
20743
|
+
onConfirm
|
|
20744
|
+
}, null, 8, ["columns"])]),
|
|
20745
|
+
_: 1
|
|
20746
|
+
}, 8, ["show"])]);
|
|
20747
|
+
};
|
|
20748
|
+
}
|
|
20749
|
+
};
|
|
20750
|
+
var SingleApiPicker = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-11b655b2"]]);
|
|
20932
20751
|
const secret_notify = () => {
|
|
20933
20752
|
showNotify({ type: "danger", message: "\u4E25\u683C\u6267\u884C\u4FE1\u606F\u4FDD\u5BC6\u8981\u6C42\uFF0C\u5207\u5B9E\u9632\u8303\u4F01\u4E1A\u6CC4\u5BC6\u98CE\u9669", duration: 3e3 });
|
|
20934
20753
|
};
|
|
@@ -20955,7 +20774,7 @@ const components = [
|
|
|
20955
20774
|
},
|
|
20956
20775
|
{
|
|
20957
20776
|
name: "WidgetQwDatetimePicker",
|
|
20958
|
-
widget: _sfc_main$
|
|
20777
|
+
widget: _sfc_main$n
|
|
20959
20778
|
},
|
|
20960
20779
|
{
|
|
20961
20780
|
name: "WidgetQwDataSelector",
|
|
@@ -20965,10 +20784,6 @@ const components = [
|
|
|
20965
20784
|
name: "WidgetQwMultListSelector",
|
|
20966
20785
|
widget: MultListSelector
|
|
20967
20786
|
},
|
|
20968
|
-
{
|
|
20969
|
-
name: "WidgetQwProductSelector",
|
|
20970
|
-
widget: ProductSelector
|
|
20971
|
-
},
|
|
20972
20787
|
{
|
|
20973
20788
|
name: "WidgetQwSubdepartmentSelector",
|
|
20974
20789
|
widget: SubdepartmentSelector
|
|
@@ -21005,10 +20820,6 @@ const components = [
|
|
|
21005
20820
|
name: "WidgetQwUserPicker",
|
|
21006
20821
|
widget: UserPicker
|
|
21007
20822
|
},
|
|
21008
|
-
{
|
|
21009
|
-
name: "WidgetQwProjectPicker",
|
|
21010
|
-
widget: ProjectPicker
|
|
21011
|
-
},
|
|
21012
20823
|
{
|
|
21013
20824
|
name: "WidgetQwUserProfile",
|
|
21014
20825
|
widget: UserProfile
|
|
@@ -21025,10 +20836,6 @@ const components = [
|
|
|
21025
20836
|
name: "WidgetQwDayDropdown",
|
|
21026
20837
|
widget: _sfc_main$7
|
|
21027
20838
|
},
|
|
21028
|
-
{
|
|
21029
|
-
name: "WidgetQwProjectDropdown",
|
|
21030
|
-
widget: _sfc_main$6
|
|
21031
|
-
},
|
|
21032
20839
|
{
|
|
21033
20840
|
name: "WidgetQwSwitch",
|
|
21034
20841
|
widget: Switch
|
|
@@ -21047,7 +20854,11 @@ const components = [
|
|
|
21047
20854
|
},
|
|
21048
20855
|
{
|
|
21049
20856
|
name: "WidgetQwCascaderPicker",
|
|
21050
|
-
widget: _sfc_main
|
|
20857
|
+
widget: _sfc_main$1
|
|
20858
|
+
},
|
|
20859
|
+
{
|
|
20860
|
+
name: "WidgetQwSingleApiPicker",
|
|
20861
|
+
widget: SingleApiPicker
|
|
21051
20862
|
}
|
|
21052
20863
|
];
|
|
21053
20864
|
const WidgetQw = {
|