@witlink/usercenter 1.2.79 → 1.2.81
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/dist/usercenter.es.js +23 -13
- package/dist/usercenter.umd.js +1 -1
- package/package.json +1 -1
package/dist/usercenter.es.js
CHANGED
|
@@ -38060,6 +38060,10 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
38060
38060
|
const handleSubmit = async () => {
|
|
38061
38061
|
if (!fileList.value.length)
|
|
38062
38062
|
return;
|
|
38063
|
+
if (fileList.value[0].type !== "application/json") {
|
|
38064
|
+
message.error(t2("uc_fun.import_menu_error"));
|
|
38065
|
+
return;
|
|
38066
|
+
}
|
|
38063
38067
|
const formData = new FormData();
|
|
38064
38068
|
formData.append("file", fileList.value[0]);
|
|
38065
38069
|
formData.append("systemId", String(props.systemId));
|
|
@@ -38679,6 +38683,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
38679
38683
|
id: "",
|
|
38680
38684
|
type: ""
|
|
38681
38685
|
});
|
|
38686
|
+
const countFormatter = ({ count, maxLength }) => `${count} / ${maxLength}`;
|
|
38682
38687
|
const rules = computed(() => ({
|
|
38683
38688
|
name: [{ required: true, message: t2("uc_organ.deptName_msg1") }],
|
|
38684
38689
|
refCode: [
|
|
@@ -38867,7 +38872,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
38867
38872
|
default: withCtx(() => [
|
|
38868
38873
|
createVNode(_component_a_input, {
|
|
38869
38874
|
placeholder: _ctx.$t("uc_organ.deptName"),
|
|
38870
|
-
|
|
38875
|
+
maxlength: 100,
|
|
38871
38876
|
value: form.name,
|
|
38872
38877
|
"onUpdate:value": _cache[2] || (_cache[2] = ($event) => form.name = $event),
|
|
38873
38878
|
autocomplete: "off"
|
|
@@ -38896,7 +38901,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
38896
38901
|
value: formState.refCodeSuffix,
|
|
38897
38902
|
"onUpdate:value": _cache[4] || (_cache[4] = ($event) => formState.refCodeSuffix = $event),
|
|
38898
38903
|
placeholder: _ctx.$t("uc_common.plsEnter"),
|
|
38899
|
-
|
|
38904
|
+
maxlength: 4,
|
|
38900
38905
|
autocomplete: "off"
|
|
38901
38906
|
}, null, 8, ["value", "placeholder"])
|
|
38902
38907
|
]),
|
|
@@ -38919,8 +38924,8 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
38919
38924
|
createVNode(_component_a_textarea, {
|
|
38920
38925
|
value: form.remarks,
|
|
38921
38926
|
"onUpdate:value": _cache[6] || (_cache[6] = ($event) => form.remarks = $event),
|
|
38922
|
-
|
|
38923
|
-
|
|
38927
|
+
"show-count": countFormatter,
|
|
38928
|
+
maxlength: 200,
|
|
38924
38929
|
placeholder: _ctx.$t("uc_organ.remarks")
|
|
38925
38930
|
}, null, 8, ["value", "placeholder"])
|
|
38926
38931
|
]),
|
|
@@ -38968,6 +38973,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
38968
38973
|
type: "",
|
|
38969
38974
|
actionType: ""
|
|
38970
38975
|
});
|
|
38976
|
+
const countFormatter = ({ count, maxLength }) => `${count} / ${maxLength}`;
|
|
38971
38977
|
const rules = computed(() => {
|
|
38972
38978
|
return {
|
|
38973
38979
|
name: [
|
|
@@ -39157,7 +39163,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
39157
39163
|
default: withCtx(() => [
|
|
39158
39164
|
createVNode(_component_a_input, {
|
|
39159
39165
|
placeholder: _ctx.$t("uc_common.plsEnter"),
|
|
39160
|
-
|
|
39166
|
+
maxlength: 100,
|
|
39161
39167
|
autocomplete: "off",
|
|
39162
39168
|
value: form.name,
|
|
39163
39169
|
"onUpdate:value": _cache[1] || (_cache[1] = ($event) => form.name = $event)
|
|
@@ -39186,7 +39192,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
39186
39192
|
value: formState.refCodeSuffix,
|
|
39187
39193
|
"onUpdate:value": _cache[3] || (_cache[3] = ($event) => formState.refCodeSuffix = $event),
|
|
39188
39194
|
placeholder: _ctx.$t("uc_common.plsEnter"),
|
|
39189
|
-
|
|
39195
|
+
maxlength: 4,
|
|
39190
39196
|
autocomplete: "off"
|
|
39191
39197
|
}, null, 8, ["value", "placeholder"])
|
|
39192
39198
|
]),
|
|
@@ -39209,8 +39215,8 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
39209
39215
|
createVNode(_component_a_textarea, {
|
|
39210
39216
|
value: form.remarks,
|
|
39211
39217
|
"onUpdate:value": _cache[5] || (_cache[5] = ($event) => form.remarks = $event),
|
|
39212
|
-
|
|
39213
|
-
|
|
39218
|
+
"show-count": countFormatter,
|
|
39219
|
+
maxlength: 200,
|
|
39214
39220
|
placeholder: _ctx.$t("uc_common.plsEnter")
|
|
39215
39221
|
}, null, 8, ["value", "placeholder"])
|
|
39216
39222
|
]),
|
|
@@ -41286,7 +41292,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
41286
41292
|
key: 0,
|
|
41287
41293
|
onClick: ($event) => handleDetail(record),
|
|
41288
41294
|
type: "link",
|
|
41289
|
-
style: { "padding": "0", "height": "auto" }
|
|
41295
|
+
style: { "padding": "0", "height": "auto", "width": "100%", "text-align": "left" }
|
|
41290
41296
|
}, {
|
|
41291
41297
|
default: withCtx(() => [
|
|
41292
41298
|
createVNode(TextEllipsis, {
|
|
@@ -43020,7 +43026,11 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
43020
43026
|
key: 1,
|
|
43021
43027
|
text: record.name
|
|
43022
43028
|
}, null, 8, ["text"])) : createCommentVNode("v-if", true),
|
|
43023
|
-
column.key === "
|
|
43029
|
+
column.key === "mainRoleName" ? (openBlock(), createBlock(TextEllipsis, {
|
|
43030
|
+
key: 2,
|
|
43031
|
+
text: record.mainRoleName
|
|
43032
|
+
}, null, 8, ["text"])) : createCommentVNode("v-if", true),
|
|
43033
|
+
column.key === "userCode" ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
|
|
43024
43034
|
detailShow.value ? (openBlock(), createBlock(_component_a_button, {
|
|
43025
43035
|
key: 0,
|
|
43026
43036
|
type: "link",
|
|
@@ -43034,14 +43044,14 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
43034
43044
|
}, 1032, ["onClick"])) : (openBlock(), createElementBlock("span", _hoisted_3$3, toDisplayString(record.code), 1))
|
|
43035
43045
|
], 64)) : createCommentVNode("v-if", true),
|
|
43036
43046
|
column.key === "userStatus" ? (openBlock(), createBlock(_component_uc_btn_switch, {
|
|
43037
|
-
key:
|
|
43047
|
+
key: 4,
|
|
43038
43048
|
checked: record.status == 0,
|
|
43039
43049
|
onClick: (checked) => onSwitch(checked, record)
|
|
43040
43050
|
}, null, 8, ["checked", "onClick"])) : createCommentVNode("v-if", true),
|
|
43041
|
-
column.key === "createTime" ? (openBlock(), createElementBlock(Fragment, { key:
|
|
43051
|
+
column.key === "createTime" ? (openBlock(), createElementBlock(Fragment, { key: 5 }, [
|
|
43042
43052
|
createTextVNode(toDisplayString(unref(formatDate)(record.createTime) || "-"), 1)
|
|
43043
43053
|
], 64)) : createCommentVNode("v-if", true),
|
|
43044
|
-
column.key === "action" ? (openBlock(), createElementBlock(Fragment, { key:
|
|
43054
|
+
column.key === "action" ? (openBlock(), createElementBlock(Fragment, { key: 6 }, [
|
|
43045
43055
|
createVNode(_component_uc_btn_edit, {
|
|
43046
43056
|
onClick: ($event) => onUpdate(record),
|
|
43047
43057
|
type: "link"
|