@witlink/usercenter 1.2.40 → 1.2.41
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 +123 -64
- package/dist/usercenter.umd.js +1 -1
- package/package.json +1 -1
- package/version.md +2 -0
package/dist/usercenter.es.js
CHANGED
@@ -11,7 +11,7 @@ import { notification, message, Modal } from "ant-design-vue";
|
|
11
11
|
import en_US from "ant-design-vue/es/locale/en_US";
|
12
12
|
import zh_CN from "ant-design-vue/es/locale/zh_CN";
|
13
13
|
import fr_FR from "ant-design-vue/es/locale/fr_FR";
|
14
|
-
import { Table, SelectOption, Select, Tree, Input, FormItem, CheckboxGroup, Form, Button, Spin, Col, Divider, Tooltip, Card, Row, ConfigProvider, Textarea, Modal as Modal$1, Drawer, InputSearch, MenuItem, Menu, Dropdown, Checkbox, ListItem, List, Cascader, Avatar, ListItemMeta, Rate, Upload, TabPane, Tabs, InputNumber,
|
14
|
+
import { Table, SelectOption, Select, Tree, Input, FormItem, CheckboxGroup, Form, Button, Spin, Col, Divider, Tooltip, Card, Row, ConfigProvider, Textarea, Modal as Modal$1, Drawer, InputSearch, MenuItem, Menu, Dropdown, Checkbox, ListItem, List, Cascader, Avatar, ListItemMeta, Rate, Upload, TabPane, Tabs, InputNumber, DropdownButton, Switch, DatePicker } from "ant-design-vue/es";
|
15
15
|
import { useSlots, ref, reactive, onMounted, openBlock, createBlock, mergeProps, createSlots, renderList, unref, withCtx, renderSlot, normalizeProps, guardReactiveProps, defineComponent, watch, createElementBlock, Fragment, createTextVNode, toDisplayString, createCommentVNode, createVNode, createElementVNode, onBeforeMount, computed, resolveComponent, withDirectives, vShow, h, normalizeClass, nextTick, normalizeStyle, onBeforeUnmount, resolveDynamicComponent } from "vue";
|
16
16
|
import * as Icon from "@ant-design/icons-vue";
|
17
17
|
import Icon__default, { AppstoreOutlined, CloseCircleOutlined, CaretDownOutlined, CaretRightOutlined, DownOutlined, ExclamationCircleOutlined, UploadOutlined, PlusOutlined, MinusOutlined, CloudUploadOutlined, FormOutlined, EditOutlined, DeleteOutlined, QuestionCircleOutlined, DownloadOutlined, PrinterOutlined, CheckOutlined, StopOutlined, SolutionOutlined } from "@ant-design/icons-vue";
|
@@ -12515,14 +12515,18 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
12515
12515
|
setup(__props, { emit: __emit }) {
|
12516
12516
|
const emit = __emit;
|
12517
12517
|
const props = __props;
|
12518
|
+
const SHOWSYSCODE = ["01", "02", "04"];
|
12518
12519
|
const formRef = ref();
|
12519
|
-
const loading = ref(
|
12520
|
+
const loading = ref(false);
|
12520
12521
|
const formData = reactive({
|
12521
12522
|
parentCode: "",
|
12522
12523
|
items: {}
|
12523
12524
|
});
|
12524
|
-
const
|
12525
|
-
|
12525
|
+
const formState = ref({
|
12526
|
+
["01"]: null,
|
12527
|
+
["02"]: null,
|
12528
|
+
["04"]: null
|
12529
|
+
});
|
12526
12530
|
const formItemLayout = {
|
12527
12531
|
labelCol: {
|
12528
12532
|
span: 6,
|
@@ -12540,44 +12544,37 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
12540
12544
|
if (!props.record.code) {
|
12541
12545
|
return;
|
12542
12546
|
}
|
12547
|
+
loading.value = true;
|
12543
12548
|
const { result } = await getParameterSearchTypeDetail({
|
12544
12549
|
parentCode: props.record.code
|
12545
12550
|
});
|
12546
12551
|
formData.parentCode = props.record.code;
|
12547
12552
|
loading.value = false;
|
12548
|
-
|
12549
|
-
|
12550
|
-
|
12551
|
-
|
12552
|
-
item.isChecked = item.v1 == "Y" ? true : false;
|
12553
|
+
const obj = {};
|
12554
|
+
result == null ? void 0 : result.forEach((item) => {
|
12555
|
+
if (SHOWSYSCODE.includes(item.code)) {
|
12556
|
+
obj[item.code] = item.v1;
|
12553
12557
|
}
|
12554
12558
|
});
|
12555
|
-
|
12559
|
+
formState.value = obj;
|
12556
12560
|
};
|
12557
|
-
const onSubmit =
|
12558
|
-
|
12559
|
-
|
12560
|
-
|
12561
|
-
|
12562
|
-
|
12563
|
-
item.isChecked ? item.v1 == "Y" : item.v1 == "N";
|
12561
|
+
const onSubmit = () => {
|
12562
|
+
formRef.value && formRef.value.validate().then(async () => {
|
12563
|
+
formData.items = JSON.stringify(formState.value);
|
12564
|
+
const { result } = await setParameterUpdate(formData);
|
12565
|
+
if (result) {
|
12566
|
+
emit("ok");
|
12564
12567
|
}
|
12565
|
-
itemsData[item.code] = item.v1;
|
12566
12568
|
});
|
12567
|
-
formData.items = JSON.stringify(itemsData);
|
12568
|
-
const { result } = await setParameterUpdate(formData);
|
12569
|
-
if (result) {
|
12570
|
-
emit("ok");
|
12571
|
-
}
|
12572
12569
|
};
|
12573
12570
|
onMounted(() => {
|
12574
12571
|
initData();
|
12575
12572
|
});
|
12576
12573
|
return (_ctx, _cache) => {
|
12577
|
-
const _component_a_input = Input;
|
12578
12574
|
const _component_a_input_number = InputNumber;
|
12579
|
-
const _component_a_switch = Switch;
|
12580
12575
|
const _component_a_form_item = FormItem;
|
12576
|
+
const _component_a_select_option = SelectOption;
|
12577
|
+
const _component_a_select = Select;
|
12581
12578
|
const _component_a_form = Form;
|
12582
12579
|
const _component_a_button = Button;
|
12583
12580
|
const _component_a_spin = Spin;
|
@@ -12586,49 +12583,111 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
12586
12583
|
default: withCtx(() => [
|
12587
12584
|
createVNode(_component_a_form, {
|
12588
12585
|
class: "form",
|
12589
|
-
model:
|
12586
|
+
model: formState.value,
|
12590
12587
|
ref_key: "formRef",
|
12591
12588
|
ref: formRef
|
12592
12589
|
}, {
|
12593
12590
|
default: withCtx(() => [
|
12594
|
-
(
|
12595
|
-
|
12596
|
-
|
12597
|
-
|
12598
|
-
|
12599
|
-
|
12600
|
-
|
12601
|
-
|
12602
|
-
|
12603
|
-
|
12604
|
-
|
12605
|
-
|
12606
|
-
|
12607
|
-
|
12608
|
-
|
12609
|
-
|
12610
|
-
|
12611
|
-
|
12612
|
-
|
12613
|
-
|
12614
|
-
|
12615
|
-
|
12616
|
-
|
12617
|
-
|
12618
|
-
|
12619
|
-
|
12620
|
-
|
12621
|
-
|
12622
|
-
|
12623
|
-
|
12624
|
-
|
12625
|
-
|
12626
|
-
|
12627
|
-
|
12628
|
-
])
|
12629
|
-
|
12630
|
-
|
12631
|
-
}
|
12591
|
+
createVNode(_component_a_form_item, mergeProps({
|
12592
|
+
label: _ctx.$t("dct.SYS01")
|
12593
|
+
}, formItemLayout, {
|
12594
|
+
name: "01",
|
12595
|
+
required: ""
|
12596
|
+
}), {
|
12597
|
+
default: withCtx(() => [
|
12598
|
+
createVNode(_component_a_input_number, {
|
12599
|
+
style: { "width": "100%" },
|
12600
|
+
id: "inputNumber",
|
12601
|
+
value: formState.value["01"],
|
12602
|
+
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => formState.value["01"] = $event),
|
12603
|
+
min: 1,
|
12604
|
+
precision: 0,
|
12605
|
+
controls: false
|
12606
|
+
}, null, 8, ["value"])
|
12607
|
+
]),
|
12608
|
+
_: 1
|
12609
|
+
}, 16, ["label"]),
|
12610
|
+
createVNode(_component_a_form_item, mergeProps({
|
12611
|
+
label: _ctx.$t("dct.SYS02")
|
12612
|
+
}, formItemLayout, {
|
12613
|
+
name: "02",
|
12614
|
+
required: ""
|
12615
|
+
}), {
|
12616
|
+
default: withCtx(() => [
|
12617
|
+
createVNode(_component_a_input_number, {
|
12618
|
+
style: { "width": "100%" },
|
12619
|
+
id: "inputNumber",
|
12620
|
+
value: formState.value["02"],
|
12621
|
+
"onUpdate:value": _cache[1] || (_cache[1] = ($event) => formState.value["02"] = $event),
|
12622
|
+
min: 1,
|
12623
|
+
precision: 0,
|
12624
|
+
controls: false
|
12625
|
+
}, null, 8, ["value"])
|
12626
|
+
]),
|
12627
|
+
_: 1
|
12628
|
+
}, 16, ["label"]),
|
12629
|
+
createCommentVNode(` <a-form-item :label="$t('dct.SYS03')" v-bind="formItemLayout" name="03" required>\r
|
12630
|
+
<a-input-number\r
|
12631
|
+
style="width: 100%"\r
|
12632
|
+
id="inputNumber"\r
|
12633
|
+
v-model:value="formState['03']"\r
|
12634
|
+
:min="1"\r
|
12635
|
+
:precision="0"\r
|
12636
|
+
:controls="false"\r
|
12637
|
+
/>\r
|
12638
|
+
</a-form-item> `),
|
12639
|
+
createVNode(_component_a_form_item, mergeProps({
|
12640
|
+
label: _ctx.$t("dct.SYS04")
|
12641
|
+
}, formItemLayout, {
|
12642
|
+
name: "04",
|
12643
|
+
required: ""
|
12644
|
+
}), {
|
12645
|
+
default: withCtx(() => [
|
12646
|
+
createCommentVNode(` <a-input-number\r
|
12647
|
+
style="width: 100%"\r
|
12648
|
+
id="inputNumber"\r
|
12649
|
+
v-model:value="formState['04']"\r
|
12650
|
+
:min="0"\r
|
12651
|
+
:max="3"\r
|
12652
|
+
:precision="0"\r
|
12653
|
+
:controls="false"\r
|
12654
|
+
/> `),
|
12655
|
+
createVNode(_component_a_select, {
|
12656
|
+
value: formState.value["04"],
|
12657
|
+
"onUpdate:value": _cache[2] || (_cache[2] = ($event) => formState.value["04"] = $event),
|
12658
|
+
style: { "width": "100%" }
|
12659
|
+
}, {
|
12660
|
+
default: withCtx(() => [
|
12661
|
+
createVNode(_component_a_select_option, { value: "0" }, {
|
12662
|
+
default: withCtx(() => _cache[3] || (_cache[3] = [
|
12663
|
+
createTextVNode("0")
|
12664
|
+
])),
|
12665
|
+
_: 1
|
12666
|
+
}),
|
12667
|
+
createVNode(_component_a_select_option, { value: "1" }, {
|
12668
|
+
default: withCtx(() => _cache[4] || (_cache[4] = [
|
12669
|
+
createTextVNode("1")
|
12670
|
+
])),
|
12671
|
+
_: 1
|
12672
|
+
}),
|
12673
|
+
createVNode(_component_a_select_option, { value: "2" }, {
|
12674
|
+
default: withCtx(() => _cache[5] || (_cache[5] = [
|
12675
|
+
createTextVNode("2")
|
12676
|
+
])),
|
12677
|
+
_: 1
|
12678
|
+
}),
|
12679
|
+
createVNode(_component_a_select_option, { value: "3" }, {
|
12680
|
+
default: withCtx(() => _cache[6] || (_cache[6] = [
|
12681
|
+
createTextVNode("3")
|
12682
|
+
])),
|
12683
|
+
_: 1
|
12684
|
+
})
|
12685
|
+
]),
|
12686
|
+
_: 1
|
12687
|
+
}, 8, ["value"])
|
12688
|
+
]),
|
12689
|
+
_: 1
|
12690
|
+
}, 16, ["label"])
|
12632
12691
|
]),
|
12633
12692
|
_: 1
|
12634
12693
|
}, 8, ["model"]),
|