@witlink/usercenter 1.2.65 → 1.2.67
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 +207 -175
- package/dist/usercenter.umd.js +1 -1
- package/package.json +1 -1
package/dist/usercenter.es.js
CHANGED
|
@@ -8,7 +8,7 @@ import { useI18n } from "vue-i18n";
|
|
|
8
8
|
import { defineStore, createPinia } from "pinia";
|
|
9
9
|
import Axios from "axios";
|
|
10
10
|
import { notification, message, App, Drawer, Button, ConfigProvider, Modal, Checkbox as Checkbox$1, Divider as Divider$1 } from "ant-design-vue";
|
|
11
|
-
import { ref, render, h, reactive, inject, computed, provide, createCommentVNode, defineComponent, watch, onMounted, nextTick, onUnmounted, TransitionGroup, Teleport, resolveComponent, onActivated, onDeactivated, onBeforeUnmount, openBlock, createElementBlock, createVNode, withCtx, unref, createElementVNode, createTextVNode, toDisplayString,
|
|
11
|
+
import { ref, render, h, reactive, inject, computed, provide, createCommentVNode, defineComponent, watch, onMounted, nextTick, onUnmounted, TransitionGroup, Teleport, resolveComponent, onActivated, onDeactivated, onBeforeUnmount, openBlock, createElementBlock, createVNode, withCtx, unref, createBlock, createElementVNode, createTextVNode, toDisplayString, Fragment, renderList, normalizeClass, normalizeStyle, mergeProps, onBeforeMount, withDirectives, vShow, useSlots, createSlots, renderSlot, normalizeProps, guardReactiveProps, withModifiers, watchEffect, mergeModels, useModel, resolveDirective } from "vue";
|
|
12
12
|
import { getUserInfo as getUserInfo$1, hasPermission } from "@witlink/components/utils";
|
|
13
13
|
import en_US from "ant-design-vue/es/locale/en_US";
|
|
14
14
|
import zh_CN from "ant-design-vue/es/locale/zh_CN";
|
|
@@ -32137,7 +32137,8 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
32137
32137
|
url: "",
|
|
32138
32138
|
parentId: null,
|
|
32139
32139
|
selects: [],
|
|
32140
|
-
options: []
|
|
32140
|
+
options: [],
|
|
32141
|
+
helperId: null
|
|
32141
32142
|
});
|
|
32142
32143
|
const parentMenuOptions = ref([]);
|
|
32143
32144
|
const handleCancel = () => {
|
|
@@ -32162,6 +32163,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
32162
32163
|
})) || [];
|
|
32163
32164
|
};
|
|
32164
32165
|
onMounted(() => {
|
|
32166
|
+
var _a;
|
|
32165
32167
|
init2();
|
|
32166
32168
|
formState.value = {
|
|
32167
32169
|
funName: props.data.funName,
|
|
@@ -32169,7 +32171,8 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
32169
32171
|
url: props.data.url,
|
|
32170
32172
|
parentId: props.data.parentId,
|
|
32171
32173
|
selects: props.data.selects,
|
|
32172
|
-
options: props.data.options
|
|
32174
|
+
options: props.data.options,
|
|
32175
|
+
helperId: ((_a = props.data) == null ? void 0 : _a.helperId) || null
|
|
32173
32176
|
};
|
|
32174
32177
|
});
|
|
32175
32178
|
return (_ctx, _cache) => {
|
|
@@ -32228,6 +32231,22 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
32228
32231
|
]),
|
|
32229
32232
|
_: 1
|
|
32230
32233
|
}, 8, ["label", "rules"]),
|
|
32234
|
+
createCommentVNode(" \u5E2E\u52A9\u4E2D\u5FC3\u5173\u8054id "),
|
|
32235
|
+
__props.systemId == "cis" ? (openBlock(), createBlock(_component_a_form_item, {
|
|
32236
|
+
key: 0,
|
|
32237
|
+
label: _ctx.$t("uc_fun.ucHelpLinkID"),
|
|
32238
|
+
name: "helperId"
|
|
32239
|
+
}, {
|
|
32240
|
+
default: withCtx(() => [
|
|
32241
|
+
createVNode(_component_a_input, {
|
|
32242
|
+
placeholder: _ctx.$t("uc_common.plsEnter"),
|
|
32243
|
+
value: formState.value.helperId,
|
|
32244
|
+
"onUpdate:value": _cache[2] || (_cache[2] = ($event) => formState.value.helperId = $event),
|
|
32245
|
+
autocomplete: "off"
|
|
32246
|
+
}, null, 8, ["placeholder", "value"])
|
|
32247
|
+
]),
|
|
32248
|
+
_: 1
|
|
32249
|
+
}, 8, ["label"])) : createCommentVNode("v-if", true),
|
|
32231
32250
|
createVNode(_component_a_form_item, {
|
|
32232
32251
|
label: _ctx.$t("uc_fun.image"),
|
|
32233
32252
|
name: "image"
|
|
@@ -32236,7 +32255,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
32236
32255
|
createVNode(_component_a_input, {
|
|
32237
32256
|
placeholder: _ctx.$t("uc_common.plsEnter"),
|
|
32238
32257
|
value: formState.value.image,
|
|
32239
|
-
"onUpdate:value": _cache[
|
|
32258
|
+
"onUpdate:value": _cache[3] || (_cache[3] = ($event) => formState.value.image = $event),
|
|
32240
32259
|
autocomplete: "off"
|
|
32241
32260
|
}, null, 8, ["placeholder", "value"])
|
|
32242
32261
|
]),
|
|
@@ -32253,7 +32272,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
32253
32272
|
disabled: props.isEdit,
|
|
32254
32273
|
options: parentMenuOptions.value,
|
|
32255
32274
|
value: formState.value.parentId,
|
|
32256
|
-
"onUpdate:value": _cache[
|
|
32275
|
+
"onUpdate:value": _cache[4] || (_cache[4] = ($event) => formState.value.parentId = $event)
|
|
32257
32276
|
}, null, 8, ["placeholder", "disabled", "options", "value"])
|
|
32258
32277
|
]),
|
|
32259
32278
|
_: 1
|
|
@@ -32266,7 +32285,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
32266
32285
|
createVNode(_component_a_checkbox_group, {
|
|
32267
32286
|
options: formState.value.options,
|
|
32268
32287
|
value: formState.value.selects,
|
|
32269
|
-
"onUpdate:value": _cache[
|
|
32288
|
+
"onUpdate:value": _cache[5] || (_cache[5] = ($event) => formState.value.selects = $event)
|
|
32270
32289
|
}, null, 8, ["options", "value"])
|
|
32271
32290
|
])
|
|
32272
32291
|
]),
|
|
@@ -32484,6 +32503,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
32484
32503
|
modalStore.drawerDestroy();
|
|
32485
32504
|
},
|
|
32486
32505
|
onSubmit: async (data) => {
|
|
32506
|
+
var _a2, _b;
|
|
32487
32507
|
if (!row) {
|
|
32488
32508
|
const { result } = await setFunctionsInsert({
|
|
32489
32509
|
funName: data.funName,
|
|
@@ -32491,7 +32511,8 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
32491
32511
|
url: data.url,
|
|
32492
32512
|
systemId: selectedSys.value,
|
|
32493
32513
|
parentId: data.parentId ? data.parentId : rowData.parentId,
|
|
32494
|
-
actions: data.selects.join(",")
|
|
32514
|
+
actions: data.selects.join(","),
|
|
32515
|
+
helperId: (_a2 = data.helperId) != null ? _a2 : void 0
|
|
32495
32516
|
});
|
|
32496
32517
|
if (result) {
|
|
32497
32518
|
message.success(t2("uc_fun.create_success"));
|
|
@@ -32506,7 +32527,8 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
32506
32527
|
code: rowData.code,
|
|
32507
32528
|
systemId: selectedSys.value,
|
|
32508
32529
|
parentId: data.parentId ? data.parentId : rowData.parentId,
|
|
32509
|
-
actions: data.selects.join(",")
|
|
32530
|
+
actions: data.selects.join(","),
|
|
32531
|
+
helperId: (_b = data.helperId) != null ? _b : void 0
|
|
32510
32532
|
});
|
|
32511
32533
|
if (result) {
|
|
32512
32534
|
message.success(t2("uc_fun.edit_success"));
|
|
@@ -33264,29 +33286,31 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
33264
33286
|
type: "",
|
|
33265
33287
|
actionType: ""
|
|
33266
33288
|
});
|
|
33267
|
-
const rules =
|
|
33268
|
-
|
|
33269
|
-
|
|
33270
|
-
|
|
33271
|
-
|
|
33272
|
-
|
|
33273
|
-
|
|
33274
|
-
|
|
33275
|
-
|
|
33276
|
-
|
|
33277
|
-
|
|
33278
|
-
|
|
33279
|
-
|
|
33280
|
-
|
|
33289
|
+
const rules = computed(() => {
|
|
33290
|
+
return {
|
|
33291
|
+
name: [
|
|
33292
|
+
{
|
|
33293
|
+
required: true,
|
|
33294
|
+
message: t2("uc_organ.branchName_msg1"),
|
|
33295
|
+
trigger: "blur"
|
|
33296
|
+
}
|
|
33297
|
+
],
|
|
33298
|
+
refCode: [
|
|
33299
|
+
{
|
|
33300
|
+
required: false,
|
|
33301
|
+
trigger: "change",
|
|
33302
|
+
validator: (rule, value) => {
|
|
33303
|
+
if (!value) {
|
|
33304
|
+
return Promise.resolve();
|
|
33305
|
+
}
|
|
33306
|
+
if (!/^\d{0,4}$/.test(value)) {
|
|
33307
|
+
return Promise.reject(t2("uc_organ.refCodePlaceholder"));
|
|
33308
|
+
}
|
|
33281
33309
|
return Promise.resolve();
|
|
33282
33310
|
}
|
|
33283
|
-
if (!/^\d{0,4}$/.test(value)) {
|
|
33284
|
-
return Promise.reject(t2("uc_organ.refCodePlaceholder"));
|
|
33285
|
-
}
|
|
33286
|
-
return Promise.resolve();
|
|
33287
33311
|
}
|
|
33288
|
-
|
|
33289
|
-
|
|
33312
|
+
]
|
|
33313
|
+
};
|
|
33290
33314
|
});
|
|
33291
33315
|
const initData = async () => {
|
|
33292
33316
|
loading.value = true;
|
|
@@ -33409,7 +33433,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
33409
33433
|
layout: "vertical",
|
|
33410
33434
|
ref_key: "formRef",
|
|
33411
33435
|
ref: formRef,
|
|
33412
|
-
rules,
|
|
33436
|
+
rules: rules.value,
|
|
33413
33437
|
class: "clear-formctrl-lh rm-form-item-mb"
|
|
33414
33438
|
}, {
|
|
33415
33439
|
default: withCtx(() => [
|
|
@@ -35887,36 +35911,38 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
35887
35911
|
return Promise.reject(t2("uc_user.user_code_msg2"));
|
|
35888
35912
|
}
|
|
35889
35913
|
};
|
|
35890
|
-
const rules = {
|
|
35891
|
-
|
|
35892
|
-
|
|
35893
|
-
|
|
35894
|
-
|
|
35895
|
-
|
|
35896
|
-
|
|
35897
|
-
|
|
35898
|
-
|
|
35899
|
-
|
|
35900
|
-
|
|
35914
|
+
const rules = computed(() => {
|
|
35915
|
+
return {
|
|
35916
|
+
userName: [
|
|
35917
|
+
{
|
|
35918
|
+
required: true,
|
|
35919
|
+
trigger: ["change", "blur"],
|
|
35920
|
+
message: t2("uc_user.user_name_msg1"),
|
|
35921
|
+
validator: (rule, value) => {
|
|
35922
|
+
if (!value || /^\s+$/.test(value)) {
|
|
35923
|
+
return Promise.reject(t2("uc_user.user_name_msg1"));
|
|
35924
|
+
} else {
|
|
35925
|
+
return Promise.resolve();
|
|
35926
|
+
}
|
|
35901
35927
|
}
|
|
35902
35928
|
}
|
|
35903
|
-
|
|
35904
|
-
|
|
35905
|
-
|
|
35906
|
-
|
|
35907
|
-
|
|
35908
|
-
|
|
35909
|
-
|
|
35910
|
-
|
|
35911
|
-
|
|
35912
|
-
|
|
35913
|
-
|
|
35914
|
-
|
|
35915
|
-
|
|
35916
|
-
|
|
35917
|
-
|
|
35918
|
-
|
|
35919
|
-
};
|
|
35929
|
+
],
|
|
35930
|
+
branchId: [
|
|
35931
|
+
{
|
|
35932
|
+
required: true,
|
|
35933
|
+
trigger: ["change", "blur"],
|
|
35934
|
+
message: t2("uc_user.branch_msg1")
|
|
35935
|
+
}
|
|
35936
|
+
],
|
|
35937
|
+
roleId: [
|
|
35938
|
+
{
|
|
35939
|
+
required: true,
|
|
35940
|
+
message: t2("uc_user.role_msg1"),
|
|
35941
|
+
trigger: ["change", "blur"]
|
|
35942
|
+
}
|
|
35943
|
+
]
|
|
35944
|
+
};
|
|
35945
|
+
});
|
|
35920
35946
|
const resetForm = () => {
|
|
35921
35947
|
formRef.value && formRef.value.resetFields();
|
|
35922
35948
|
};
|
|
@@ -36075,7 +36101,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
36075
36101
|
model: form.value,
|
|
36076
36102
|
ref_key: "formRef",
|
|
36077
36103
|
ref: formRef,
|
|
36078
|
-
rules,
|
|
36104
|
+
rules: rules.value,
|
|
36079
36105
|
style: { "padding-bottom": "30px" },
|
|
36080
36106
|
layout: "vertical"
|
|
36081
36107
|
}, {
|
|
@@ -36336,7 +36362,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
36336
36362
|
})
|
|
36337
36363
|
]),
|
|
36338
36364
|
_: 1
|
|
36339
|
-
}, 8, ["model"]),
|
|
36365
|
+
}, 8, ["model", "rules"]),
|
|
36340
36366
|
createVNode(_component_a_space, { class: "drawer-btns" }, {
|
|
36341
36367
|
default: withCtx(() => [
|
|
36342
36368
|
createVNode(_component_a_button, { onClick: onCancel }, {
|
|
@@ -37965,31 +37991,33 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
37965
37991
|
const visible = ref(false);
|
|
37966
37992
|
const destroyOnClose = ref(true);
|
|
37967
37993
|
const params = ref({});
|
|
37968
|
-
const rules = {
|
|
37969
|
-
|
|
37970
|
-
|
|
37971
|
-
|
|
37972
|
-
|
|
37973
|
-
|
|
37974
|
-
|
|
37975
|
-
|
|
37976
|
-
|
|
37977
|
-
|
|
37978
|
-
|
|
37979
|
-
|
|
37980
|
-
|
|
37981
|
-
|
|
37982
|
-
|
|
37983
|
-
|
|
37984
|
-
|
|
37985
|
-
|
|
37986
|
-
|
|
37987
|
-
|
|
37994
|
+
const rules = computed(() => {
|
|
37995
|
+
return {
|
|
37996
|
+
userPwd: [
|
|
37997
|
+
{
|
|
37998
|
+
required: true,
|
|
37999
|
+
message: t2("uc_user.user_pwd1_msg1"),
|
|
38000
|
+
trigger: ["blur", "change"]
|
|
38001
|
+
}
|
|
38002
|
+
],
|
|
38003
|
+
userPwd1: [
|
|
38004
|
+
{
|
|
38005
|
+
required: true,
|
|
38006
|
+
trigger: ["blur", "change"],
|
|
38007
|
+
validator: (rule, value) => {
|
|
38008
|
+
if (!value) {
|
|
38009
|
+
return Promise.reject(t2("uc_user.user_pwd2_msg2"));
|
|
38010
|
+
}
|
|
38011
|
+
if (form.userPwd === value) {
|
|
38012
|
+
return Promise.resolve();
|
|
38013
|
+
} else {
|
|
38014
|
+
return Promise.reject(t2("uc_user.user_pwd2_msg1"));
|
|
38015
|
+
}
|
|
37988
38016
|
}
|
|
37989
38017
|
}
|
|
37990
|
-
|
|
37991
|
-
|
|
37992
|
-
};
|
|
38018
|
+
]
|
|
38019
|
+
};
|
|
38020
|
+
});
|
|
37993
38021
|
const showModal = (data) => {
|
|
37994
38022
|
visible.value = true;
|
|
37995
38023
|
params.value = data.params;
|
|
@@ -38067,7 +38095,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
38067
38095
|
class: "inline-query-form clear-formctrl-lh",
|
|
38068
38096
|
ref_key: "formRef",
|
|
38069
38097
|
ref: formRef,
|
|
38070
|
-
rules
|
|
38098
|
+
rules: rules.value
|
|
38071
38099
|
}, {
|
|
38072
38100
|
default: withCtx(() => [
|
|
38073
38101
|
createVNode(_component_a_form_item, {
|
|
@@ -38105,7 +38133,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
38105
38133
|
}, 8, ["label"])
|
|
38106
38134
|
]),
|
|
38107
38135
|
_: 1
|
|
38108
|
-
}, 8, ["model"])
|
|
38136
|
+
}, 8, ["model", "rules"])
|
|
38109
38137
|
]),
|
|
38110
38138
|
_: 1
|
|
38111
38139
|
}, 8, ["open", "title", "destroyOnClose"]);
|
|
@@ -41729,29 +41757,31 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
41729
41757
|
const onCancel = () => {
|
|
41730
41758
|
emit("close");
|
|
41731
41759
|
};
|
|
41732
|
-
const rules = {
|
|
41733
|
-
|
|
41734
|
-
|
|
41735
|
-
|
|
41736
|
-
|
|
41737
|
-
|
|
41738
|
-
|
|
41739
|
-
|
|
41740
|
-
|
|
41741
|
-
|
|
41742
|
-
|
|
41743
|
-
|
|
41744
|
-
|
|
41745
|
-
|
|
41746
|
-
|
|
41747
|
-
|
|
41748
|
-
|
|
41749
|
-
|
|
41760
|
+
const rules = computed(() => {
|
|
41761
|
+
return {
|
|
41762
|
+
userPwd: [
|
|
41763
|
+
{
|
|
41764
|
+
required: true,
|
|
41765
|
+
message: t2("uc_org.user_pwd1_msg1")
|
|
41766
|
+
}
|
|
41767
|
+
],
|
|
41768
|
+
userPwd1: [
|
|
41769
|
+
{
|
|
41770
|
+
required: true,
|
|
41771
|
+
validator: (rule, value) => {
|
|
41772
|
+
if (!value) {
|
|
41773
|
+
return Promise.reject(requiredMessage(t2("uc_org.newPwd1")));
|
|
41774
|
+
}
|
|
41775
|
+
if (value == form.userPwd) {
|
|
41776
|
+
return Promise.resolve();
|
|
41777
|
+
} else {
|
|
41778
|
+
return Promise.reject(t2("uc_org.user_pwd2_msg1"));
|
|
41779
|
+
}
|
|
41750
41780
|
}
|
|
41751
41781
|
}
|
|
41752
|
-
|
|
41753
|
-
|
|
41754
|
-
};
|
|
41782
|
+
]
|
|
41783
|
+
};
|
|
41784
|
+
});
|
|
41755
41785
|
return (_ctx, _cache) => {
|
|
41756
41786
|
const _component_a_input = Input;
|
|
41757
41787
|
const _component_a_form_item = FormItem;
|
|
@@ -41795,7 +41825,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
41795
41825
|
model: form,
|
|
41796
41826
|
ref_key: "formRef",
|
|
41797
41827
|
ref: formRef,
|
|
41798
|
-
rules,
|
|
41828
|
+
rules: rules.value,
|
|
41799
41829
|
class: "clear-formctrl-lh rwd-content",
|
|
41800
41830
|
layout: "vertical"
|
|
41801
41831
|
}, {
|
|
@@ -41837,7 +41867,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
41837
41867
|
}, 16, ["label"])
|
|
41838
41868
|
]),
|
|
41839
41869
|
_: 1
|
|
41840
|
-
}, 8, ["model"])
|
|
41870
|
+
}, 8, ["model", "rules"])
|
|
41841
41871
|
]),
|
|
41842
41872
|
_: 1
|
|
41843
41873
|
}, 8, ["open", "title", "destroyOnClose"])
|
|
@@ -42432,80 +42462,82 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
42432
42462
|
}
|
|
42433
42463
|
});
|
|
42434
42464
|
};
|
|
42435
|
-
const rules = {
|
|
42436
|
-
|
|
42437
|
-
|
|
42438
|
-
|
|
42439
|
-
|
|
42440
|
-
|
|
42441
|
-
|
|
42442
|
-
|
|
42443
|
-
|
|
42444
|
-
|
|
42445
|
-
|
|
42446
|
-
|
|
42447
|
-
|
|
42448
|
-
|
|
42449
|
-
|
|
42450
|
-
|
|
42465
|
+
const rules = computed(() => {
|
|
42466
|
+
return {
|
|
42467
|
+
orgName: [
|
|
42468
|
+
{
|
|
42469
|
+
required: true,
|
|
42470
|
+
message: t2("uc_org.org_name_msg1")
|
|
42471
|
+
}
|
|
42472
|
+
],
|
|
42473
|
+
orgType: [
|
|
42474
|
+
{
|
|
42475
|
+
required: true,
|
|
42476
|
+
trigger: "change",
|
|
42477
|
+
validator: (rule, value) => {
|
|
42478
|
+
if (Array.isArray(value) && value.length !== 0) {
|
|
42479
|
+
return Promise.resolve();
|
|
42480
|
+
} else {
|
|
42481
|
+
return Promise.reject(t2("uc_org.org_type_msg1"));
|
|
42482
|
+
}
|
|
42451
42483
|
}
|
|
42452
42484
|
}
|
|
42453
|
-
|
|
42454
|
-
|
|
42455
|
-
|
|
42456
|
-
|
|
42457
|
-
|
|
42458
|
-
|
|
42459
|
-
|
|
42460
|
-
|
|
42461
|
-
|
|
42462
|
-
|
|
42463
|
-
|
|
42485
|
+
],
|
|
42486
|
+
industryCode: [
|
|
42487
|
+
{
|
|
42488
|
+
required: true,
|
|
42489
|
+
trigger: "change",
|
|
42490
|
+
validator: (rule, value) => {
|
|
42491
|
+
if (Array.isArray(value) && value.length !== 0) {
|
|
42492
|
+
return Promise.resolve();
|
|
42493
|
+
} else {
|
|
42494
|
+
return Promise.reject(t2("uc_org.industry_msg1"));
|
|
42495
|
+
}
|
|
42464
42496
|
}
|
|
42465
42497
|
}
|
|
42466
|
-
|
|
42467
|
-
|
|
42468
|
-
|
|
42469
|
-
|
|
42470
|
-
|
|
42471
|
-
|
|
42472
|
-
|
|
42473
|
-
|
|
42474
|
-
|
|
42475
|
-
|
|
42476
|
-
|
|
42498
|
+
],
|
|
42499
|
+
zoneCode: [
|
|
42500
|
+
{
|
|
42501
|
+
required: true,
|
|
42502
|
+
trigger: ["change", "blur"],
|
|
42503
|
+
validator: (rule, value) => {
|
|
42504
|
+
if (value == "") {
|
|
42505
|
+
return Promise.reject(t2("uc_org.zone_code_msg1"));
|
|
42506
|
+
} else {
|
|
42507
|
+
return Promise.resolve();
|
|
42508
|
+
}
|
|
42477
42509
|
}
|
|
42478
42510
|
}
|
|
42479
|
-
|
|
42480
|
-
|
|
42481
|
-
|
|
42482
|
-
|
|
42483
|
-
|
|
42484
|
-
|
|
42485
|
-
|
|
42486
|
-
|
|
42487
|
-
|
|
42488
|
-
|
|
42489
|
-
|
|
42511
|
+
],
|
|
42512
|
+
langId: [
|
|
42513
|
+
{
|
|
42514
|
+
required: true,
|
|
42515
|
+
trigger: "change",
|
|
42516
|
+
validator: (rule, value) => {
|
|
42517
|
+
if (Array.isArray(value) && value.length !== 0) {
|
|
42518
|
+
return Promise.resolve();
|
|
42519
|
+
} else {
|
|
42520
|
+
return Promise.reject(t2("uc_org.lang_msg1"));
|
|
42521
|
+
}
|
|
42490
42522
|
}
|
|
42491
42523
|
}
|
|
42492
|
-
|
|
42493
|
-
|
|
42494
|
-
|
|
42495
|
-
|
|
42496
|
-
|
|
42497
|
-
|
|
42498
|
-
|
|
42499
|
-
|
|
42500
|
-
|
|
42501
|
-
|
|
42502
|
-
|
|
42503
|
-
|
|
42504
|
-
|
|
42505
|
-
|
|
42506
|
-
|
|
42507
|
-
|
|
42508
|
-
};
|
|
42524
|
+
],
|
|
42525
|
+
userNum: [
|
|
42526
|
+
{
|
|
42527
|
+
required: true,
|
|
42528
|
+
message: requiredMessage(t2("uc_org.user_num")),
|
|
42529
|
+
trigger: ["blur", "change"]
|
|
42530
|
+
}
|
|
42531
|
+
],
|
|
42532
|
+
equiNum: [
|
|
42533
|
+
{
|
|
42534
|
+
required: true,
|
|
42535
|
+
message: requiredMessage(t2("uc_org.org_maxOperator")),
|
|
42536
|
+
trigger: ["blur", "change"]
|
|
42537
|
+
}
|
|
42538
|
+
]
|
|
42539
|
+
};
|
|
42540
|
+
});
|
|
42509
42541
|
onMounted(() => {
|
|
42510
42542
|
initModel(props.params);
|
|
42511
42543
|
});
|
|
@@ -42525,7 +42557,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
42525
42557
|
ref_key: "formRef",
|
|
42526
42558
|
ref: formRef,
|
|
42527
42559
|
layout: "vertical",
|
|
42528
|
-
rules
|
|
42560
|
+
rules: rules.value
|
|
42529
42561
|
}, {
|
|
42530
42562
|
default: withCtx(() => [
|
|
42531
42563
|
props.params.opType == "1" ? (openBlock(), createBlock(_component_a_form_item, {
|
|
@@ -42859,7 +42891,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
42859
42891
|
})) : createCommentVNode("v-if", true)
|
|
42860
42892
|
]),
|
|
42861
42893
|
_: 1
|
|
42862
|
-
}, 8, ["model"])), [
|
|
42894
|
+
}, 8, ["model", "rules"])), [
|
|
42863
42895
|
[_directive_row, 24]
|
|
42864
42896
|
]),
|
|
42865
42897
|
createVNode(_component_a_space, { class: "drawer-btns" }, {
|