yc-vep-ui 0.3.51 → 0.3.52
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.
|
@@ -1770,7 +1770,7 @@ var default_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ define
|
|
|
1770
1770
|
page: 1,
|
|
1771
1771
|
pageSize: 999,
|
|
1772
1772
|
name: e
|
|
1773
|
-
})
|
|
1773
|
+
}))?.table || []).map((e) => {
|
|
1774
1774
|
let n = a === "all" ? `${e.name}(${e.account})` : e[a];
|
|
1775
1775
|
return {
|
|
1776
1776
|
...e,
|
|
@@ -2015,11 +2015,11 @@ var _hoisted_1$4 = { style: {
|
|
|
2015
2015
|
l.value && g();
|
|
2016
2016
|
});
|
|
2017
2017
|
async function g() {
|
|
2018
|
-
let e = await request_default.get("/department/queryDepartmentTree")
|
|
2018
|
+
let e = await request_default.get("/department/queryDepartmentTree");
|
|
2019
2019
|
u.staffData = e.data || [], e.data?.[0] && v(e.data?.[0]);
|
|
2020
2020
|
}
|
|
2021
2021
|
async function _(e) {
|
|
2022
|
-
return request_default.post("/user/pageQueryUser", e)
|
|
2022
|
+
return request_default.post("/user/pageQueryUser", e);
|
|
2023
2023
|
}
|
|
2024
2024
|
async function v(e, n) {
|
|
2025
2025
|
let r = !!e?.data?.code, i = e?.data?.code || e?.code;
|
|
@@ -2170,7 +2170,7 @@ var _hoisted_1$4 = { style: {
|
|
|
2170
2170
|
}, 8, ["modelValue"])], 64);
|
|
2171
2171
|
};
|
|
2172
2172
|
}
|
|
2173
|
-
}), dialog_default = /* @__PURE__ */ _plugin_vue_export_helper_default(dialog_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
2173
|
+
}), dialog_default = /* @__PURE__ */ _plugin_vue_export_helper_default(dialog_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-f1cfc05c"]]), index_vue_vue_type_script_setup_true_lang_default$3 = /* @__PURE__ */ defineComponent({
|
|
2174
2174
|
__name: "index",
|
|
2175
2175
|
props: {
|
|
2176
2176
|
multiple: { type: Boolean },
|
|
@@ -2392,8 +2392,8 @@ var _hoisted_1$4 = { style: {
|
|
|
2392
2392
|
"remove"
|
|
2393
2393
|
],
|
|
2394
2394
|
setup(e, { emit: n }) {
|
|
2395
|
-
let r = n, i = e, { type: a = "file", onChange: o, limit: s, action: c, data: l, prop: u, fileList: d, accept: f, ...p } = i, m = c || baseUrl + "/attachment/uploadAttachment", g =
|
|
2396
|
-
if (!_.value) return !0;
|
|
2395
|
+
let r = n, i = e, { type: a = "file", onChange: o, limit: s, action: c, data: l, prop: u, fileList: d, accept: f, ...p } = i, m = c || baseUrl + "/attachment/uploadAttachment", g = reactive({ token: localStorage.getItem("TOKEN") || "" }), _ = computed(() => f?.length ? new Set(f.map((e) => e.startsWith(".") ? e.toLowerCase() : `.${e.toLowerCase()}`)) : null), v = (e) => {
|
|
2396
|
+
if (g.token = localStorage.getItem("TOKEN") || "", !_.value) return !0;
|
|
2397
2397
|
let n = "." + e.name.split(".").pop().toLowerCase();
|
|
2398
2398
|
return _.value.has(n) ? !0 : (VepMessage.warning(`只能上传 ${f?.join("、")} 格式的文件`), !1);
|
|
2399
2399
|
}, y = computed(() => l && u && l[u] ? l[u] : i.fileList || []), b = computed(() => y.value.length);
|
|
@@ -2412,7 +2412,7 @@ var _hoisted_1$4 = { style: {
|
|
|
2412
2412
|
}
|
|
2413
2413
|
function T(e, n) {
|
|
2414
2414
|
if (e?.code !== "ok") return VepMessage.error(e?.message);
|
|
2415
|
-
let a = baseUrl + `/attachment/downloadAttachment?objectKey=${e.data?.objectKey}&fileName=${e.data?.fileName}&token=${g.
|
|
2415
|
+
let a = baseUrl + `/attachment/downloadAttachment?objectKey=${e.data?.objectKey}&fileName=${e.data?.fileName}&token=${g.token}`, o = l && u && l[u] ? l[u] : i.fileList || [], s = o.some((r) => r?.uid === n.uid || r?.objectKey === e.data?.objectKey), c;
|
|
2416
2416
|
c = s ? o.map((r) => r.uid === n.uid ? {
|
|
2417
2417
|
...r,
|
|
2418
2418
|
status: "success",
|
|
@@ -2434,7 +2434,7 @@ var _hoisted_1$4 = { style: {
|
|
|
2434
2434
|
ref: "uploadInstance",
|
|
2435
2435
|
name: "file",
|
|
2436
2436
|
action: unref(m),
|
|
2437
|
-
headers: g
|
|
2437
|
+
headers: g,
|
|
2438
2438
|
"on-change": S,
|
|
2439
2439
|
"on-exceed": C,
|
|
2440
2440
|
"on-remove": w,
|
package/dist/hooks/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { c as e, d as t, f as n, l as r, s as i, u as a } from "../entry-
|
|
1
|
+
import { c as e, d as t, f as n, l as r, s as i, u as a } from "../entry-DI2J71Zx.js";
|
|
2
2
|
export { e as useDictionary, n as useFetch, r as useRoute, a as useRouter, t as useTable, i as useUser };
|
package/dist/index.css
CHANGED
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
-
.staff-tree[data-v-
|
|
145
|
+
.staff-tree[data-v-f1cfc05c] {
|
|
146
146
|
position: relative;
|
|
147
147
|
height: 90%;
|
|
148
148
|
overflow-y: auto;
|
|
@@ -150,28 +150,28 @@
|
|
|
150
150
|
border-radius: 4px;
|
|
151
151
|
margin-top: 8px;
|
|
152
152
|
}
|
|
153
|
-
.staff-select-trigger[data-v-
|
|
153
|
+
.staff-select-trigger[data-v-f1cfc05c] {
|
|
154
154
|
width: 100%;
|
|
155
155
|
cursor: pointer;
|
|
156
156
|
}
|
|
157
|
-
.staff-select-trigger[data-v-
|
|
157
|
+
.staff-select-trigger[data-v-f1cfc05c] .el-select {
|
|
158
158
|
width: 100%;
|
|
159
159
|
pointer-events: none;
|
|
160
160
|
}
|
|
161
161
|
.staff-item {
|
|
162
|
-
&[data-v-
|
|
162
|
+
&[data-v-f1cfc05c] {
|
|
163
163
|
line-height: 28px;
|
|
164
164
|
padding: 0% 20px 0% 10px;
|
|
165
165
|
display: flex;
|
|
166
166
|
justify-content: space-between;
|
|
167
167
|
align-items: center;
|
|
168
168
|
}
|
|
169
|
-
&[data-v-
|
|
169
|
+
&[data-v-f1cfc05c]:hover {
|
|
170
170
|
background-color: rgba(102, 177, 255, 0.5);
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
173
|
.is-required {
|
|
174
|
-
&[data-v-
|
|
174
|
+
&[data-v-f1cfc05c] .el-select__wrapper {
|
|
175
175
|
border: 1px solid red;
|
|
176
176
|
}
|
|
177
177
|
}
|
package/dist/utils/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { O as e, _ as t, b as n, v as r, y as i } from "../entry-
|
|
1
|
+
import { O as e, _ as t, b as n, v as r, y as i } from "../entry-DI2J71Zx.js";
|
|
2
2
|
export { t as baseUrl, n as request, e as tempToRender, r as uniq, i as uniqBy };
|
package/dist/vep-ui.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as e, C as t, D as n, E as r, S as i, T as a, a as o, g as s, h as c, i as l, k as u, m as d, n as f, o as p, p as m, r as h, t as g, w as _, x as v } from "./entry-
|
|
1
|
+
import { A as e, C as t, D as n, E as r, S as i, T as a, a as o, g as s, h as c, i as l, k as u, m as d, n as f, o as p, p as m, r as h, t as g, w as _, x as v } from "./entry-DI2J71Zx.js";
|
|
2
2
|
export { e as UiCard, i as UiDescriptions, v as UiDialog, a as UiEditor, n as UiFilter, r as UiForm, t as UiInfiniteScroll, d as UiStaffSelect, u as UiTable, _ as UiTree, m as UiUpload, s as WcUtils, o as YcApproval, c as YcMessage, l as YcPageAgent, h as default, h as ycPlugin, g as getHostVue, p as hooks, f as setHostVue };
|