@yoooloo42/joker 1.0.110 → 1.0.112
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/index.cjs.js +105 -96
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +105 -96
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -23242,7 +23242,7 @@ return (_ctx, _cache) => {
|
|
|
23242
23242
|
]))
|
|
23243
23243
|
: createCommentVNode("v-if", true),
|
|
23244
23244
|
createCommentVNode(" 行政区划 "),
|
|
23245
|
-
(unref(propsItem_box).inputType === '
|
|
23245
|
+
(unref(propsItem_box).inputType === 'ly0gbt2260')
|
|
23246
23246
|
? (openBlock(), createElementBlock("div", _hoisted_23, [
|
|
23247
23247
|
createVNode(_component_ly0gbt2260, {
|
|
23248
23248
|
modelValue: unref(formData_box)[unref(propsItem_box).fieldName],
|
|
@@ -23252,7 +23252,7 @@ return (_ctx, _cache) => {
|
|
|
23252
23252
|
]))
|
|
23253
23253
|
: createCommentVNode("v-if", true),
|
|
23254
23254
|
createCommentVNode(" 商品分类 "),
|
|
23255
|
-
(unref(propsItem_box).inputType === '
|
|
23255
|
+
(unref(propsItem_box).inputType === 'ly0d7group')
|
|
23256
23256
|
? (openBlock(), createElementBlock("div", _hoisted_24, [
|
|
23257
23257
|
createVNode(_component_ly0d7group, {
|
|
23258
23258
|
modelValue: unref(formData_box)[unref(propsItem_box).fieldName],
|
|
@@ -23262,7 +23262,7 @@ return (_ctx, _cache) => {
|
|
|
23262
23262
|
]))
|
|
23263
23263
|
: createCommentVNode("v-if", true),
|
|
23264
23264
|
createCommentVNode(" 邮寄地址 "),
|
|
23265
|
-
(unref(propsItem_box).inputType === '
|
|
23265
|
+
(unref(propsItem_box).inputType === 'ly0d7postal')
|
|
23266
23266
|
? (openBlock(), createElementBlock("div", _hoisted_25, [
|
|
23267
23267
|
createVNode(_component_ly0d7postal, {
|
|
23268
23268
|
modelValue: unref(formData_box)[unref(propsItem_box).fieldName],
|
|
@@ -23272,7 +23272,7 @@ return (_ctx, _cache) => {
|
|
|
23272
23272
|
]))
|
|
23273
23273
|
: createCommentVNode("v-if", true),
|
|
23274
23274
|
createCommentVNode(" 商品标价 "),
|
|
23275
|
-
(unref(propsItem_box).inputType === '
|
|
23275
|
+
(unref(propsItem_box).inputType === 'ly0d7price')
|
|
23276
23276
|
? (openBlock(), createElementBlock("div", _hoisted_26, [
|
|
23277
23277
|
createVNode(_component_ly0d7price, {
|
|
23278
23278
|
modelValue: unref(formData_box)[unref(propsItem_box).fieldName],
|
|
@@ -23282,7 +23282,7 @@ return (_ctx, _cache) => {
|
|
|
23282
23282
|
]))
|
|
23283
23283
|
: createCommentVNode("v-if", true),
|
|
23284
23284
|
createCommentVNode(" 商品规格 "),
|
|
23285
|
-
(unref(propsItem_box).inputType === '
|
|
23285
|
+
(unref(propsItem_box).inputType === 'ly0d7size')
|
|
23286
23286
|
? (openBlock(), createElementBlock("div", _hoisted_27, [
|
|
23287
23287
|
createVNode(_component_ly0d7size, {
|
|
23288
23288
|
modelValue: unref(formData_box)[unref(propsItem_box).fieldName],
|
|
@@ -23292,7 +23292,7 @@ return (_ctx, _cache) => {
|
|
|
23292
23292
|
]))
|
|
23293
23293
|
: createCommentVNode("v-if", true),
|
|
23294
23294
|
createCommentVNode(" 商品缩略图 "),
|
|
23295
|
-
(unref(propsItem_box).inputType === '
|
|
23295
|
+
(unref(propsItem_box).inputType === 'ly0d7thumb')
|
|
23296
23296
|
? (openBlock(), createElementBlock("div", _hoisted_28, [
|
|
23297
23297
|
createVNode(_component_ly0d7thumb, {
|
|
23298
23298
|
modelValue: unref(formData_box),
|
|
@@ -41995,69 +41995,70 @@ watch(() => props.modelValue,
|
|
|
41995
41995
|
|
|
41996
41996
|
// 确保按顺序加载级联数据
|
|
41997
41997
|
if (modelValue_box.code2) {
|
|
41998
|
-
await
|
|
41998
|
+
await hdl.changeCode2(modelValue_box.code2);
|
|
41999
41999
|
}
|
|
42000
42000
|
if (modelValue_box.code4) {
|
|
42001
|
-
await
|
|
42001
|
+
await hdl.changeCode4(modelValue_box.code4);
|
|
42002
42002
|
}
|
|
42003
42003
|
}
|
|
42004
42004
|
},
|
|
42005
42005
|
{ immediate: true }
|
|
42006
42006
|
);
|
|
42007
42007
|
|
|
42008
|
-
const
|
|
42009
|
-
|
|
42010
|
-
|
|
42011
|
-
|
|
42012
|
-
|
|
42013
|
-
|
|
42014
|
-
|
|
42015
|
-
|
|
42016
|
-
|
|
42017
|
-
|
|
42008
|
+
const hdl = {
|
|
42009
|
+
popup: async () => {
|
|
42010
|
+
if (props.myProps.readOnly) {
|
|
42011
|
+
return
|
|
42012
|
+
}
|
|
42013
|
+
|
|
42014
|
+
popup.formData.code2 = modelValue_box.code2;
|
|
42015
|
+
await hdl.changeCode2(popup.formData.code2);
|
|
42016
|
+
|
|
42017
|
+
popup.formData.code4 = modelValue_box.code4;
|
|
42018
|
+
await hdl.changeCode4(popup.formData.code4);
|
|
42019
|
+
|
|
42020
|
+
popup.formData.code6 = modelValue_box.code6;
|
|
42021
|
+
popup.visible = true;
|
|
42022
|
+
},
|
|
42018
42023
|
|
|
42019
|
-
|
|
42020
|
-
|
|
42021
|
-
|
|
42022
|
-
|
|
42023
|
-
|
|
42024
|
-
|
|
42025
|
-
|
|
42026
|
-
|
|
42027
|
-
|
|
42028
|
-
|
|
42024
|
+
changeCode2: async value => { // 使用 async 标记
|
|
42025
|
+
const result = await request.ly0.storpro({
|
|
42026
|
+
noSession: true,
|
|
42027
|
+
storproName: 'ly0d3.gbt2260code4.code2',
|
|
42028
|
+
data: {code2: value},
|
|
42029
|
+
});
|
|
42030
|
+
|
|
42031
|
+
popup.formData.arrCode4 = result.arrCode4.filter(item => item.code4);
|
|
42032
|
+
popup.formData.code4 = '';
|
|
42033
|
+
popup.formData.arrCode6 = [];
|
|
42034
|
+
popup.formData.code6 = '';
|
|
42035
|
+
},
|
|
42029
42036
|
|
|
42030
|
-
|
|
42031
|
-
|
|
42032
|
-
|
|
42033
|
-
|
|
42034
|
-
}
|
|
42035
|
-
|
|
42036
|
-
|
|
42037
|
-
|
|
42038
|
-
|
|
42039
|
-
|
|
42040
|
-
data: {code4: value},
|
|
42041
|
-
});
|
|
42037
|
+
changeCode4: async value => {
|
|
42038
|
+
const result = await request.ly0.storpro({
|
|
42039
|
+
noSession: true,
|
|
42040
|
+
storproName: 'ly0d3.gbt2260code6.code4',
|
|
42041
|
+
data: {code4: value},
|
|
42042
|
+
});
|
|
42043
|
+
|
|
42044
|
+
popup.formData.arrCode6 = result.arrCode6.filter(item => item.code6);
|
|
42045
|
+
popup.formData.code6 = '';
|
|
42046
|
+
},
|
|
42042
42047
|
|
|
42043
|
-
|
|
42044
|
-
|
|
42045
|
-
|
|
42046
|
-
|
|
42047
|
-
|
|
42048
|
-
|
|
42049
|
-
|
|
42050
|
-
|
|
42051
|
-
|
|
42052
|
-
|
|
42053
|
-
|
|
42054
|
-
|
|
42055
|
-
|
|
42056
|
-
|
|
42057
|
-
modelValue_box.text6 = foundItem6 ? foundItem6.text6 : '';
|
|
42058
|
-
// 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
|
|
42059
|
-
emit("update:modelValue", modelValue_box.code6 ?? modelValue_box.code4 ?? modelValue_box.code2 ?? '');
|
|
42060
|
-
popup.visible = false;
|
|
42048
|
+
submit: () => {
|
|
42049
|
+
modelValue_box.code2 = popup.formData.code2;
|
|
42050
|
+
const foundItem2 = popup.formData.arrCode2.find(i => i.code2 === modelValue_box.code2);
|
|
42051
|
+
modelValue_box.text2 = foundItem2 ? foundItem2.text2 : '';
|
|
42052
|
+
modelValue_box.code4 = popup.formData.code4;
|
|
42053
|
+
const foundItem4 = popup.formData.arrCode4.find(i => i.code4 === modelValue_box.code4);
|
|
42054
|
+
modelValue_box.text4 = foundItem4 ? foundItem4.text4 : '';
|
|
42055
|
+
modelValue_box.code6 = popup.formData.code6;
|
|
42056
|
+
const foundItem6 = popup.formData.arrCode6.find(i => i.code6 === modelValue_box.code6);
|
|
42057
|
+
modelValue_box.text6 = foundItem6 ? foundItem6.text6 : '';
|
|
42058
|
+
// 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
|
|
42059
|
+
emit("update:modelValue", modelValue_box.code6 ?? modelValue_box.code4 ?? modelValue_box.code2 ?? '');
|
|
42060
|
+
popup.visible = false;
|
|
42061
|
+
}
|
|
42061
42062
|
};
|
|
42062
42063
|
|
|
42063
42064
|
const style = reactive({
|
|
@@ -42103,7 +42104,9 @@ return (_ctx, _cache) => {
|
|
|
42103
42104
|
const _component_el_button = resolveComponent("el-button");
|
|
42104
42105
|
const _component_el_dialog = resolveComponent("el-dialog");
|
|
42105
42106
|
|
|
42106
|
-
return (openBlock(), createElementBlock("div", {
|
|
42107
|
+
return (openBlock(), createElementBlock("div", {
|
|
42108
|
+
onClick: _cache[4] || (_cache[4] = (...args) => (hdl.popup && hdl.popup(...args)))
|
|
42109
|
+
}, [
|
|
42107
42110
|
createElementVNode("table", null, [
|
|
42108
42111
|
createElementVNode("tbody", null, [
|
|
42109
42112
|
createElementVNode("tr", null, [
|
|
@@ -42132,7 +42135,7 @@ return (_ctx, _cache) => {
|
|
|
42132
42135
|
])
|
|
42133
42136
|
]),
|
|
42134
42137
|
createElementVNode("tr", null, [
|
|
42135
|
-
_cache[
|
|
42138
|
+
_cache[5] || (_cache[5] = createElementVNode("td", null, null, -1 /* CACHED */)),
|
|
42136
42139
|
createElementVNode("td", null, [
|
|
42137
42140
|
createElementVNode("span", {
|
|
42138
42141
|
style: normalizeStyle(style.modelValue_box.code)
|
|
@@ -42145,7 +42148,7 @@ return (_ctx, _cache) => {
|
|
|
42145
42148
|
])
|
|
42146
42149
|
]),
|
|
42147
42150
|
createElementVNode("tr", null, [
|
|
42148
|
-
_cache[
|
|
42151
|
+
_cache[6] || (_cache[6] = createElementVNode("td", null, null, -1 /* CACHED */)),
|
|
42149
42152
|
createElementVNode("td", null, [
|
|
42150
42153
|
createElementVNode("span", {
|
|
42151
42154
|
style: normalizeStyle(style.modelValue_box.code)
|
|
@@ -42185,7 +42188,7 @@ return (_ctx, _cache) => {
|
|
|
42185
42188
|
placeholder: "请选择 省",
|
|
42186
42189
|
filterable: "",
|
|
42187
42190
|
style: normalizeStyle(style.popup.select),
|
|
42188
|
-
onChange:
|
|
42191
|
+
onChange: hdl.changeCode2
|
|
42189
42192
|
}, {
|
|
42190
42193
|
default: withCtx(() => [
|
|
42191
42194
|
(openBlock(true), createElementBlock(Fragment, null, renderList(popup.formData.arrCode2, (item, index) => {
|
|
@@ -42197,7 +42200,7 @@ return (_ctx, _cache) => {
|
|
|
42197
42200
|
}), 128 /* KEYED_FRAGMENT */))
|
|
42198
42201
|
]),
|
|
42199
42202
|
_: 1 /* STABLE */
|
|
42200
|
-
}, 8 /* PROPS */, ["modelValue", "style"])
|
|
42203
|
+
}, 8 /* PROPS */, ["modelValue", "style", "onChange"])
|
|
42201
42204
|
])
|
|
42202
42205
|
]),
|
|
42203
42206
|
createElementVNode("tr", null, [
|
|
@@ -42213,7 +42216,7 @@ return (_ctx, _cache) => {
|
|
|
42213
42216
|
placeholder: "请选择 市",
|
|
42214
42217
|
filterable: "",
|
|
42215
42218
|
style: normalizeStyle(style.popup.select),
|
|
42216
|
-
onChange:
|
|
42219
|
+
onChange: hdl.changeCode4
|
|
42217
42220
|
}, {
|
|
42218
42221
|
default: withCtx(() => [
|
|
42219
42222
|
(openBlock(true), createElementBlock(Fragment, null, renderList(popup.formData.arrCode4, (item, index) => {
|
|
@@ -42225,7 +42228,7 @@ return (_ctx, _cache) => {
|
|
|
42225
42228
|
}), 128 /* KEYED_FRAGMENT */))
|
|
42226
42229
|
]),
|
|
42227
42230
|
_: 1 /* STABLE */
|
|
42228
|
-
}, 8 /* PROPS */, ["modelValue", "style"])
|
|
42231
|
+
}, 8 /* PROPS */, ["modelValue", "style", "onChange"])
|
|
42229
42232
|
])
|
|
42230
42233
|
]),
|
|
42231
42234
|
createElementVNode("tr", null, [
|
|
@@ -42266,13 +42269,13 @@ return (_ctx, _cache) => {
|
|
|
42266
42269
|
createVNode(_component_el_button, {
|
|
42267
42270
|
type: "danger",
|
|
42268
42271
|
plain: "",
|
|
42269
|
-
onClick:
|
|
42272
|
+
onClick: hdl.submit
|
|
42270
42273
|
}, {
|
|
42271
|
-
default: withCtx(() => [...(_cache[
|
|
42274
|
+
default: withCtx(() => [...(_cache[7] || (_cache[7] = [
|
|
42272
42275
|
createTextVNode("确认", -1 /* CACHED */)
|
|
42273
42276
|
]))]),
|
|
42274
42277
|
_: 1 /* STABLE */
|
|
42275
|
-
})
|
|
42278
|
+
}, 8 /* PROPS */, ["onClick"])
|
|
42276
42279
|
], 4 /* STYLE */)
|
|
42277
42280
|
]),
|
|
42278
42281
|
_: 1 /* STABLE */
|
|
@@ -42327,10 +42330,11 @@ const popup = reactive({
|
|
|
42327
42330
|
const hdl = {
|
|
42328
42331
|
// 弹出编辑窗口
|
|
42329
42332
|
popup() {
|
|
42330
|
-
if (
|
|
42331
|
-
|
|
42332
|
-
popup.visible = true;
|
|
42333
|
+
if (props.myProps.readOnly) {
|
|
42334
|
+
return
|
|
42333
42335
|
}
|
|
42336
|
+
popup.formData = JSON.parse(JSON.stringify(modelValue_box));
|
|
42337
|
+
popup.visible = true;
|
|
42334
42338
|
},
|
|
42335
42339
|
append() {
|
|
42336
42340
|
popup.formData.push({ value: '' });
|
|
@@ -42339,7 +42343,8 @@ const hdl = {
|
|
|
42339
42343
|
popup.formData.splice(index, 1);
|
|
42340
42344
|
},
|
|
42341
42345
|
submit() {
|
|
42342
|
-
|
|
42346
|
+
// 这里不能使用JSON.parse(JSON.stringify()),否则会切断modelValue_box的响应性
|
|
42347
|
+
modelValue_box.splice(0, modelValue_box.length, ...popup.formData);
|
|
42343
42348
|
// 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
|
|
42344
42349
|
emit("update:modelValue", submittingValue);
|
|
42345
42350
|
popup.visible = false;
|
|
@@ -42564,7 +42569,6 @@ var script$3 = {
|
|
|
42564
42569
|
}
|
|
42565
42570
|
})
|
|
42566
42571
|
}
|
|
42567
|
-
|
|
42568
42572
|
},
|
|
42569
42573
|
emits: ['update:modelValue', 'change'],
|
|
42570
42574
|
setup(__props, { emit: __emit }) {
|
|
@@ -42581,10 +42585,11 @@ const popup = reactive({
|
|
|
42581
42585
|
|
|
42582
42586
|
const hdl = {
|
|
42583
42587
|
popup() {
|
|
42584
|
-
if (
|
|
42585
|
-
|
|
42586
|
-
popup.visible = true;
|
|
42588
|
+
if (props.myProps.readOnly) {
|
|
42589
|
+
return
|
|
42587
42590
|
}
|
|
42591
|
+
popup.formData = JSON.parse(JSON.stringify(modelValue_box));
|
|
42592
|
+
popup.visible = true;
|
|
42588
42593
|
},
|
|
42589
42594
|
append() {
|
|
42590
42595
|
popup.formData.push({
|
|
@@ -42598,9 +42603,10 @@ const hdl = {
|
|
|
42598
42603
|
popup.formData.splice(index, 1);
|
|
42599
42604
|
},
|
|
42600
42605
|
submit() {
|
|
42601
|
-
|
|
42606
|
+
// 这里不能使用JSON.parse(JSON.stringify()),否则会切断modelValue_box的响应性
|
|
42607
|
+
modelValue_box.splice(0, modelValue_box.length, ...popup.formData);
|
|
42602
42608
|
let arrPromise = [];
|
|
42603
|
-
|
|
42609
|
+
modelValue_box.forEach(i => {
|
|
42604
42610
|
arrPromise.push(
|
|
42605
42611
|
request.ly0.storpro({
|
|
42606
42612
|
noSession: true,
|
|
@@ -42611,11 +42617,11 @@ const hdl = {
|
|
|
42611
42617
|
});
|
|
42612
42618
|
Promise.all(arrPromise).then(result => {
|
|
42613
42619
|
result.forEach((item, index) => {
|
|
42614
|
-
|
|
42620
|
+
modelValue_box[index].gbt2260text =
|
|
42615
42621
|
item.itemCode6.text2 + '-' + item.itemCode6.text4 + '-' + item.itemCode6.text6;
|
|
42616
42622
|
});
|
|
42617
42623
|
// 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
|
|
42618
|
-
emit("update:modelValue",
|
|
42624
|
+
emit("update:modelValue", modelValue_box);
|
|
42619
42625
|
popup.visible = false;
|
|
42620
42626
|
});
|
|
42621
42627
|
}
|
|
@@ -42654,7 +42660,7 @@ const style = reactive({
|
|
|
42654
42660
|
return (_ctx, _cache) => {
|
|
42655
42661
|
const _component_Edit = resolveComponent("Edit");
|
|
42656
42662
|
const _component_el_icon = resolveComponent("el-icon");
|
|
42657
|
-
const
|
|
42663
|
+
const _component_ly0gbt2260 = resolveComponent("ly0gbt2260");
|
|
42658
42664
|
const _component_el_input = resolveComponent("el-input");
|
|
42659
42665
|
const _component_Delete = resolveComponent("Delete");
|
|
42660
42666
|
const _component_el_button = resolveComponent("el-button");
|
|
@@ -42769,7 +42775,7 @@ return (_ctx, _cache) => {
|
|
|
42769
42775
|
return (openBlock(), createElementBlock("tr", { key: index }, [
|
|
42770
42776
|
createCommentVNode(" 左对齐,使用<td> "),
|
|
42771
42777
|
createElementVNode("td", null, [
|
|
42772
|
-
createVNode(
|
|
42778
|
+
createVNode(_component_ly0gbt2260, {
|
|
42773
42779
|
modelValue: item.gbt2260code,
|
|
42774
42780
|
"onUpdate:modelValue": $event => ((item.gbt2260code) = $event),
|
|
42775
42781
|
myProps: { readonly: true }
|
|
@@ -42914,12 +42920,11 @@ const hdl = {
|
|
|
42914
42920
|
if (props.myProps.readOnly) {
|
|
42915
42921
|
return
|
|
42916
42922
|
}
|
|
42917
|
-
|
|
42918
|
-
popup.formData
|
|
42919
|
-
...item,
|
|
42923
|
+
popup.formData = JSON.parse(JSON.stringify(modelValue_box));
|
|
42924
|
+
popup.formData.forEach(i => {
|
|
42920
42925
|
// 价格从“分”转换为“元”
|
|
42921
|
-
price
|
|
42922
|
-
})
|
|
42926
|
+
i.price = i.price / 100;
|
|
42927
|
+
});
|
|
42923
42928
|
popup.visible = true;
|
|
42924
42929
|
},
|
|
42925
42930
|
append() {
|
|
@@ -42935,13 +42940,14 @@ const hdl = {
|
|
|
42935
42940
|
popup.formData.splice(index, 1);
|
|
42936
42941
|
},
|
|
42937
42942
|
submit() {
|
|
42938
|
-
|
|
42939
|
-
|
|
42943
|
+
// 这里不能使用JSON.parse(JSON.stringify()),否则会切断modelValue_box的响应性
|
|
42944
|
+
modelValue_box.splice(0, modelValue_box.length, ...popup.formData);
|
|
42945
|
+
modelValue_box.forEach(i => {
|
|
42940
42946
|
// 确保 price 是数字,然后转为“分”
|
|
42941
|
-
|
|
42947
|
+
i.price = Math.floor(Number(i.price) * 100);
|
|
42942
42948
|
});
|
|
42943
42949
|
// 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
|
|
42944
|
-
emit("update:modelValue",
|
|
42950
|
+
emit("update:modelValue", modelValue_box);
|
|
42945
42951
|
popup.visible = false;
|
|
42946
42952
|
},
|
|
42947
42953
|
};
|
|
@@ -43259,10 +43265,11 @@ const popup = reactive({
|
|
|
43259
43265
|
|
|
43260
43266
|
const hdl = {
|
|
43261
43267
|
popup() {
|
|
43262
|
-
if (
|
|
43263
|
-
|
|
43264
|
-
popup.visible = true;
|
|
43268
|
+
if (props.myProps.readOnly) {
|
|
43269
|
+
return
|
|
43265
43270
|
}
|
|
43271
|
+
popup.formData = JSON.parse(JSON.stringify(modelValue_box));
|
|
43272
|
+
popup.visible = true;
|
|
43266
43273
|
},
|
|
43267
43274
|
append() {
|
|
43268
43275
|
popup.formData.push({
|
|
@@ -43275,7 +43282,8 @@ const hdl = {
|
|
|
43275
43282
|
popup.formData.splice(index, 1);
|
|
43276
43283
|
},
|
|
43277
43284
|
submit() {
|
|
43278
|
-
|
|
43285
|
+
// 这里不能使用JSON.parse(JSON.stringify()),否则会切断modelValue_box的响应性
|
|
43286
|
+
modelValue_box.splice(0, modelValue_box.length, ...popup.formData);
|
|
43279
43287
|
// 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
|
|
43280
43288
|
emit("update:modelValue", submittingValue);
|
|
43281
43289
|
popup.visible = false;
|
|
@@ -43586,8 +43594,9 @@ const hdl = {
|
|
|
43586
43594
|
popup.visible = true;
|
|
43587
43595
|
},
|
|
43588
43596
|
submit() {
|
|
43589
|
-
//
|
|
43597
|
+
// 这里不能使用JSON.parse(JSON.stringify()),否则会切断modelValue_box的响应性
|
|
43590
43598
|
Object.assign(modelValue_box, popup.formData);
|
|
43599
|
+
// 触发 update:modelValue 事件更新父组件的 v-model 绑定的值
|
|
43591
43600
|
emit("update:modelValue", modelValue_box);
|
|
43592
43601
|
popup.visible = false;
|
|
43593
43602
|
},
|