@yoooloo42/joker 1.0.67 → 1.0.69
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 +113 -112
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +113 -112
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -22458,8 +22458,8 @@ const _hoisted_6$6 = { key: 0 };
|
|
|
22458
22458
|
const _hoisted_7$6 = { key: 16 };
|
|
22459
22459
|
const _hoisted_8$5 = ["innerHTML"];
|
|
22460
22460
|
const _hoisted_9$4 = { key: 17 };
|
|
22461
|
-
const _hoisted_10$
|
|
22462
|
-
const _hoisted_11$
|
|
22461
|
+
const _hoisted_10$3 = ["width", "height", "poster"];
|
|
22462
|
+
const _hoisted_11$2 = ["src"];
|
|
22463
22463
|
const _hoisted_12 = ["src"];
|
|
22464
22464
|
const _hoisted_13 = ["src"];
|
|
22465
22465
|
const _hoisted_14 = { key: 0 };
|
|
@@ -23079,7 +23079,7 @@ return (_ctx, _cache) => {
|
|
|
23079
23079
|
createElementVNode("source", {
|
|
23080
23080
|
src: video.src,
|
|
23081
23081
|
type: "video/mp4"
|
|
23082
|
-
}, null, 8 /* PROPS */, _hoisted_11$
|
|
23082
|
+
}, null, 8 /* PROPS */, _hoisted_11$2),
|
|
23083
23083
|
createCommentVNode(" MP4/H.264/AAC - 最广泛支持 "),
|
|
23084
23084
|
createElementVNode("source", {
|
|
23085
23085
|
src: video.src,
|
|
@@ -23091,7 +23091,7 @@ return (_ctx, _cache) => {
|
|
|
23091
23091
|
type: "video/ogg"
|
|
23092
23092
|
}, null, 8 /* PROPS */, _hoisted_13),
|
|
23093
23093
|
createCommentVNode(" Ogg/Theora/Vorbis - 较旧的开源格式 ")
|
|
23094
|
-
], 8 /* PROPS */, _hoisted_10$
|
|
23094
|
+
], 8 /* PROPS */, _hoisted_10$3)
|
|
23095
23095
|
]),
|
|
23096
23096
|
createCommentVNode(" 设置了视频删除功能,同时视频不为空 "),
|
|
23097
23097
|
(!!__props.item.videoDelete && !!__props.dataBox.fieldsValue[__props.item.fieldName])
|
|
@@ -41803,29 +41803,36 @@ const _hoisted_3$5 = { class: "value-code" };
|
|
|
41803
41803
|
const _hoisted_4$5 = { class: "value-text" };
|
|
41804
41804
|
const _hoisted_5$5 = { class: "value-code" };
|
|
41805
41805
|
const _hoisted_6$5 = { class: "value-text" };
|
|
41806
|
-
const _hoisted_7$5 = {
|
|
41807
|
-
const _hoisted_8$4 = {
|
|
41808
|
-
const _hoisted_9$3 = { class: "select-
|
|
41806
|
+
const _hoisted_7$5 = { style: {"width":"100%"} };
|
|
41807
|
+
const _hoisted_8$4 = { style: {"padding-top":"10px","padding-bottom":"10px"} };
|
|
41808
|
+
const _hoisted_9$3 = { class: "select-row" };
|
|
41809
|
+
const _hoisted_10$2 = { class: "select-row" };
|
|
41810
|
+
const _hoisted_11$1 = { class: "select-submit" };
|
|
41809
41811
|
|
|
41810
41812
|
|
|
41811
41813
|
var script$5 = {
|
|
41812
41814
|
__name: 'index',
|
|
41813
|
-
props:
|
|
41815
|
+
props: {
|
|
41816
|
+
myProps: {
|
|
41817
|
+
type: Object,
|
|
41818
|
+
default: () => ({ readOnly: false, value: '', _id: null }) // 提供清晰的默认值
|
|
41819
|
+
}
|
|
41820
|
+
},
|
|
41814
41821
|
emits: ['get-value'],
|
|
41815
41822
|
setup(__props, { emit: __emit }) {
|
|
41816
41823
|
|
|
41817
41824
|
const props = __props;
|
|
41818
41825
|
const emit = __emit;
|
|
41819
41826
|
|
|
41820
|
-
const value =
|
|
41827
|
+
const value = reactive({
|
|
41821
41828
|
code2: '',
|
|
41822
41829
|
text2: '',
|
|
41823
41830
|
code4: '',
|
|
41824
41831
|
text4: '',
|
|
41825
41832
|
code6: '',
|
|
41826
41833
|
text6: '',
|
|
41827
|
-
}
|
|
41828
|
-
const popup =
|
|
41834
|
+
});
|
|
41835
|
+
const popup = reactive({
|
|
41829
41836
|
visible: false,
|
|
41830
41837
|
select: {
|
|
41831
41838
|
arrCode2: [],
|
|
@@ -41837,107 +41844,101 @@ const popup = ref({
|
|
|
41837
41844
|
}
|
|
41838
41845
|
});
|
|
41839
41846
|
|
|
41840
|
-
onMounted(()=>{
|
|
41841
|
-
|
|
41847
|
+
onMounted(async ()=>{
|
|
41848
|
+
// 异步函数直接在 onMounted 顶层调用是允许的
|
|
41849
|
+
const result = await request.ly0.storpro({
|
|
41842
41850
|
noSession: true,
|
|
41843
41851
|
storproName: 'ly0d3.gbt2260code2.init',
|
|
41844
|
-
}).then(result=>{
|
|
41845
|
-
popup.value.select.arrCode2 = result.arrCode2;
|
|
41846
41852
|
});
|
|
41853
|
+
popup.select.arrCode2 = result.arrCode2.filter(item => item.code2);
|
|
41847
41854
|
});
|
|
41848
41855
|
|
|
41849
41856
|
watch(() => props.myProps.value,
|
|
41850
|
-
(valNew, valOld) => {
|
|
41851
|
-
|
|
41857
|
+
async (valNew, valOld) => {
|
|
41858
|
+
// 只有当传入的值有效时才进行网络请求
|
|
41859
|
+
if (!valNew) return;
|
|
41860
|
+
|
|
41861
|
+
const result = await request.ly0.storpro({
|
|
41852
41862
|
noSession: true,
|
|
41853
41863
|
storproName: 'ly0d3.gbt2260code6.get',
|
|
41854
|
-
data: {
|
|
41855
|
-
code6: valNew,
|
|
41856
|
-
},
|
|
41857
|
-
}).then(result=>{
|
|
41858
|
-
if(result.itemCode6){
|
|
41859
|
-
value.value = result.itemCode6;
|
|
41860
|
-
}
|
|
41864
|
+
data: { code6: valNew },
|
|
41861
41865
|
});
|
|
41866
|
+
|
|
41867
|
+
if(result.itemCode6){
|
|
41868
|
+
// 保持响应式
|
|
41869
|
+
Object.assign(value, result.itemCode6);
|
|
41870
|
+
|
|
41871
|
+
// 确保按顺序加载级联数据
|
|
41872
|
+
if (value.code2) {
|
|
41873
|
+
await hdlChangeCode2(value.code2);
|
|
41874
|
+
}
|
|
41875
|
+
if (value.code4) {
|
|
41876
|
+
await hdlChangeCode4(value.code4);
|
|
41877
|
+
}
|
|
41878
|
+
}
|
|
41862
41879
|
},
|
|
41863
|
-
{
|
|
41864
|
-
immediate: true // 关键:让它在组件初始化时立即运行
|
|
41865
|
-
}
|
|
41880
|
+
{ immediate: true }
|
|
41866
41881
|
);
|
|
41867
41882
|
|
|
41868
|
-
const hdlPopup = () => {
|
|
41883
|
+
const hdlPopup = async () => {
|
|
41869
41884
|
if (!props.myProps.readOnly) {
|
|
41870
|
-
popup.
|
|
41871
|
-
hdlChangeCode2(popup.
|
|
41872
|
-
|
|
41873
|
-
|
|
41874
|
-
|
|
41875
|
-
|
|
41876
|
-
|
|
41877
|
-
|
|
41885
|
+
popup.select.code2 = value.code2;
|
|
41886
|
+
await hdlChangeCode2(popup.select.code2);
|
|
41887
|
+
|
|
41888
|
+
popup.select.code4 = value.code4;
|
|
41889
|
+
await hdlChangeCode4(popup.select.code4);
|
|
41890
|
+
|
|
41891
|
+
popup.select.code6 = value.code6;
|
|
41892
|
+
popup.visible = true;
|
|
41878
41893
|
}
|
|
41879
41894
|
};
|
|
41880
41895
|
|
|
41881
|
-
const hdlChangeCode2 = value => {
|
|
41882
|
-
|
|
41883
|
-
|
|
41884
|
-
|
|
41885
|
-
|
|
41886
|
-
|
|
41887
|
-
|
|
41888
|
-
|
|
41889
|
-
|
|
41890
|
-
|
|
41891
|
-
|
|
41892
|
-
resolve();
|
|
41893
|
-
});
|
|
41894
|
-
})
|
|
41896
|
+
const hdlChangeCode2 = async value => { // 使用 async 标记
|
|
41897
|
+
const result = await request.ly0.storpro({
|
|
41898
|
+
noSession: true,
|
|
41899
|
+
storproName: 'ly0d3.gbt2260code4.code2',
|
|
41900
|
+
data: {code2: value},
|
|
41901
|
+
});
|
|
41902
|
+
|
|
41903
|
+
popup.select.arrCode4 = result.arrCode4.filter(item => item.code4);
|
|
41904
|
+
popup.select.code4 = '';
|
|
41905
|
+
popup.select.arrCode6 = [];
|
|
41906
|
+
popup.select.code6 = '';
|
|
41895
41907
|
};
|
|
41896
41908
|
|
|
41897
|
-
const hdlChangeCode4 = value => {
|
|
41898
|
-
|
|
41899
|
-
|
|
41900
|
-
|
|
41901
|
-
|
|
41902
|
-
|
|
41903
|
-
|
|
41904
|
-
|
|
41905
|
-
|
|
41906
|
-
resolve();
|
|
41907
|
-
});
|
|
41908
|
-
})
|
|
41909
|
+
const hdlChangeCode4 = async value => {
|
|
41910
|
+
const result = await request.ly0.storpro({
|
|
41911
|
+
noSession: true,
|
|
41912
|
+
storproName: 'ly0d3.gbt2260code6.code4',
|
|
41913
|
+
data: {code4: value},
|
|
41914
|
+
});
|
|
41915
|
+
|
|
41916
|
+
popup.select.arrCode6 = result.arrCode6.filter(item => item.code6);
|
|
41917
|
+
popup.select.code6 = '';
|
|
41909
41918
|
};
|
|
41910
41919
|
|
|
41911
41920
|
const hdlSubmit = () => {
|
|
41912
|
-
|
|
41913
|
-
value.
|
|
41914
|
-
|
|
41915
|
-
|
|
41916
|
-
|
|
41917
|
-
|
|
41918
|
-
value.
|
|
41919
|
-
value.
|
|
41920
|
-
|
|
41921
|
-
|
|
41922
|
-
}).text4
|
|
41923
|
-
: '';
|
|
41924
|
-
value.value.code6 = popup.value.select.code6;
|
|
41925
|
-
value.value.text6 = value.value.code6
|
|
41926
|
-
? popup.value.select.arrCode6.find(i => {
|
|
41927
|
-
return i.code6 === value.value.code6
|
|
41928
|
-
}).text6
|
|
41929
|
-
: '';
|
|
41921
|
+
// ... (安全查找逻辑) ...
|
|
41922
|
+
value.code2 = popup.select.code2;
|
|
41923
|
+
const foundItem2 = popup.select.arrCode2.find(i => i.code2 === value.code2);
|
|
41924
|
+
value.text2 = foundItem2 ? foundItem2.text2 : '';
|
|
41925
|
+
value.code4 = popup.select.code4;
|
|
41926
|
+
const foundItem4 = popup.select.arrCode4.find(i => i.code4 === value.code4);
|
|
41927
|
+
value.text4 = foundItem4 ? foundItem4.text4 : '';
|
|
41928
|
+
value.code6 = popup.select.code6;
|
|
41929
|
+
const foundItem6 = popup.select.arrCode6.find(i => i.code6 === value.code6);
|
|
41930
|
+
value.text6 = foundItem6 ? foundItem6.text6 : '';
|
|
41930
41931
|
emit("get-value", {
|
|
41931
|
-
code6: value.
|
|
41932
|
-
? value.
|
|
41933
|
-
: value.
|
|
41934
|
-
? value.
|
|
41935
|
-
: value.
|
|
41936
|
-
? value.
|
|
41932
|
+
code6: value.code6
|
|
41933
|
+
? value.code6
|
|
41934
|
+
: value.code4
|
|
41935
|
+
? value.code4
|
|
41936
|
+
: value.code2
|
|
41937
|
+
? value.code2
|
|
41937
41938
|
: '',
|
|
41938
41939
|
_id: '_id' in props.myProps ? props.myProps._id : null,
|
|
41939
41940
|
});
|
|
41940
|
-
popup.
|
|
41941
|
+
popup.visible = false;
|
|
41941
41942
|
};
|
|
41942
41943
|
|
|
41943
41944
|
return (_ctx, _cache) => {
|
|
@@ -41966,35 +41967,35 @@ return (_ctx, _cache) => {
|
|
|
41966
41967
|
: createCommentVNode("v-if", true)
|
|
41967
41968
|
]),
|
|
41968
41969
|
createElementVNode("td", null, [
|
|
41969
|
-
createElementVNode("span", _hoisted_1$5, toDisplayString('[' + (value.
|
|
41970
|
+
createElementVNode("span", _hoisted_1$5, toDisplayString('[' + (value.code2 ? value.code2 : '省') + ']'), 1 /* TEXT */)
|
|
41970
41971
|
]),
|
|
41971
41972
|
createElementVNode("td", null, [
|
|
41972
|
-
createElementVNode("span", _hoisted_2$5, toDisplayString(value.
|
|
41973
|
+
createElementVNode("span", _hoisted_2$5, toDisplayString(value.text2 ? value.text2 : ''), 1 /* TEXT */)
|
|
41973
41974
|
])
|
|
41974
41975
|
]),
|
|
41975
41976
|
createElementVNode("tr", null, [
|
|
41976
41977
|
_cache[4] || (_cache[4] = createElementVNode("td", null, null, -1 /* CACHED */)),
|
|
41977
41978
|
createElementVNode("td", null, [
|
|
41978
|
-
createElementVNode("span", _hoisted_3$5, toDisplayString('[' + (value.
|
|
41979
|
+
createElementVNode("span", _hoisted_3$5, toDisplayString('[' + (value.code4 ? value.code4 : '市') + ']'), 1 /* TEXT */)
|
|
41979
41980
|
]),
|
|
41980
41981
|
createElementVNode("td", null, [
|
|
41981
|
-
createElementVNode("span", _hoisted_4$5, toDisplayString(value.
|
|
41982
|
+
createElementVNode("span", _hoisted_4$5, toDisplayString(value.text4 ? value.text4 : ''), 1 /* TEXT */)
|
|
41982
41983
|
])
|
|
41983
41984
|
]),
|
|
41984
41985
|
createElementVNode("tr", null, [
|
|
41985
41986
|
_cache[5] || (_cache[5] = createElementVNode("td", null, null, -1 /* CACHED */)),
|
|
41986
41987
|
createElementVNode("td", null, [
|
|
41987
|
-
createElementVNode("span", _hoisted_5$5, toDisplayString('[' + (value.
|
|
41988
|
+
createElementVNode("span", _hoisted_5$5, toDisplayString('[' + (value.code6 ? value.code6 : '县') + ']'), 1 /* TEXT */)
|
|
41988
41989
|
]),
|
|
41989
41990
|
createElementVNode("td", null, [
|
|
41990
|
-
createElementVNode("span", _hoisted_6$5, toDisplayString(value.
|
|
41991
|
+
createElementVNode("span", _hoisted_6$5, toDisplayString(value.text6 ? value.text6 : ''), 1 /* TEXT */)
|
|
41991
41992
|
])
|
|
41992
41993
|
])
|
|
41993
41994
|
])
|
|
41994
41995
|
]),
|
|
41995
41996
|
createVNode(_component_el_dialog, {
|
|
41996
|
-
modelValue: popup.
|
|
41997
|
-
"onUpdate:modelValue": _cache[3] || (_cache[3] = $event => ((popup.
|
|
41997
|
+
modelValue: popup.visible,
|
|
41998
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = $event => ((popup.visible) = $event)),
|
|
41998
41999
|
"custom-class": 'code-template-dialog',
|
|
41999
42000
|
"close-on-press-escape": true,
|
|
42000
42001
|
"append-to-body": "",
|
|
@@ -42003,26 +42004,26 @@ return (_ctx, _cache) => {
|
|
|
42003
42004
|
"destroy-on-close": true
|
|
42004
42005
|
}, {
|
|
42005
42006
|
default: withCtx(() => [
|
|
42006
|
-
createElementVNode("table",
|
|
42007
|
+
createElementVNode("table", _hoisted_7$5, [
|
|
42007
42008
|
createElementVNode("tbody", null, [
|
|
42008
|
-
createElementVNode("tr",
|
|
42009
|
+
createElementVNode("tr", _hoisted_8$4, [
|
|
42009
42010
|
_cache[6] || (_cache[6] = createElementVNode("td", { style: {"width":"30%"} }, [
|
|
42010
42011
|
createElementVNode("div", { class: "select-label" }, "省")
|
|
42011
42012
|
], -1 /* CACHED */)),
|
|
42012
42013
|
createElementVNode("td", null, [
|
|
42013
42014
|
createVNode(_component_el_select, {
|
|
42014
|
-
modelValue: popup.
|
|
42015
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((popup.
|
|
42015
|
+
modelValue: popup.select.code2,
|
|
42016
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((popup.select.code2) = $event)),
|
|
42016
42017
|
filterable: "",
|
|
42017
42018
|
class: "select",
|
|
42018
42019
|
onChange: hdlChangeCode2
|
|
42019
42020
|
}, {
|
|
42020
42021
|
default: withCtx(() => [
|
|
42021
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(popup.
|
|
42022
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(popup.select.arrCode2, (item, index) => {
|
|
42022
42023
|
return (openBlock(), createBlock(_component_el_option, {
|
|
42023
42024
|
label: item.text2,
|
|
42024
42025
|
value: item.code2,
|
|
42025
|
-
key:
|
|
42026
|
+
key: item.code2
|
|
42026
42027
|
}, null, 8 /* PROPS */, ["label", "value"]))
|
|
42027
42028
|
}), 128 /* KEYED_FRAGMENT */))
|
|
42028
42029
|
]),
|
|
@@ -42030,24 +42031,24 @@ return (_ctx, _cache) => {
|
|
|
42030
42031
|
}, 8 /* PROPS */, ["modelValue"])
|
|
42031
42032
|
])
|
|
42032
42033
|
]),
|
|
42033
|
-
createElementVNode("tr",
|
|
42034
|
+
createElementVNode("tr", _hoisted_9$3, [
|
|
42034
42035
|
_cache[7] || (_cache[7] = createElementVNode("td", null, [
|
|
42035
42036
|
createElementVNode("div", { class: "select-label" }, "市")
|
|
42036
42037
|
], -1 /* CACHED */)),
|
|
42037
42038
|
createElementVNode("td", null, [
|
|
42038
42039
|
createVNode(_component_el_select, {
|
|
42039
|
-
modelValue: popup.
|
|
42040
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => ((popup.
|
|
42040
|
+
modelValue: popup.select.code4,
|
|
42041
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => ((popup.select.code4) = $event)),
|
|
42041
42042
|
filterable: "",
|
|
42042
42043
|
class: "select",
|
|
42043
42044
|
onChange: hdlChangeCode4
|
|
42044
42045
|
}, {
|
|
42045
42046
|
default: withCtx(() => [
|
|
42046
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(popup.
|
|
42047
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(popup.select.arrCode4, (item, index) => {
|
|
42047
42048
|
return (openBlock(), createBlock(_component_el_option, {
|
|
42048
42049
|
label: item.text4,
|
|
42049
42050
|
value: item.code4,
|
|
42050
|
-
key:
|
|
42051
|
+
key: item.code4
|
|
42051
42052
|
}, null, 8 /* PROPS */, ["label", "value"]))
|
|
42052
42053
|
}), 128 /* KEYED_FRAGMENT */))
|
|
42053
42054
|
]),
|
|
@@ -42055,23 +42056,23 @@ return (_ctx, _cache) => {
|
|
|
42055
42056
|
}, 8 /* PROPS */, ["modelValue"])
|
|
42056
42057
|
])
|
|
42057
42058
|
]),
|
|
42058
|
-
createElementVNode("tr",
|
|
42059
|
+
createElementVNode("tr", _hoisted_10$2, [
|
|
42059
42060
|
_cache[8] || (_cache[8] = createElementVNode("td", null, [
|
|
42060
42061
|
createElementVNode("div", { class: "select-label" }, "县")
|
|
42061
42062
|
], -1 /* CACHED */)),
|
|
42062
42063
|
createElementVNode("td", null, [
|
|
42063
42064
|
createVNode(_component_el_select, {
|
|
42064
|
-
modelValue: popup.
|
|
42065
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => ((popup.
|
|
42065
|
+
modelValue: popup.select.code6,
|
|
42066
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => ((popup.select.code6) = $event)),
|
|
42066
42067
|
filterable: "",
|
|
42067
42068
|
class: "select"
|
|
42068
42069
|
}, {
|
|
42069
42070
|
default: withCtx(() => [
|
|
42070
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(popup.
|
|
42071
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(popup.select.arrCode6, (item, index) => {
|
|
42071
42072
|
return (openBlock(), createBlock(_component_el_option, {
|
|
42072
42073
|
label: item.text6,
|
|
42073
42074
|
value: item.code6,
|
|
42074
|
-
key:
|
|
42075
|
+
key: item.code6
|
|
42075
42076
|
}, null, 8 /* PROPS */, ["label", "value"]))
|
|
42076
42077
|
}), 128 /* KEYED_FRAGMENT */))
|
|
42077
42078
|
]),
|
|
@@ -42082,7 +42083,7 @@ return (_ctx, _cache) => {
|
|
|
42082
42083
|
])
|
|
42083
42084
|
]),
|
|
42084
42085
|
_cache[10] || (_cache[10] = createElementVNode("div", { class: "line" }, null, -1 /* CACHED */)),
|
|
42085
|
-
createElementVNode("div",
|
|
42086
|
+
createElementVNode("div", _hoisted_11$1, [
|
|
42086
42087
|
createVNode(_component_el_button, {
|
|
42087
42088
|
type: "danger",
|
|
42088
42089
|
plain: "",
|