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