@yoooloo42/joker 1.0.68 → 1.0.70

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.
@@ -30,41 +30,6 @@
30
30
  .avatar[data-v-6fc32e0e]:hover {
31
31
  border-color: #409EFF;
32
32
  }
33
- .value-code {
34
- color: #6a6a6a;
35
- }
36
-
37
- .value-text {
38
- color: #0000bb;
39
- padding-left: 10px;
40
- }
41
-
42
- .select {
43
- width: 300px;
44
- margin-top: 10px;
45
- margin-bottom: 10px;
46
- }
47
- .select :deep(.el-select__wrapper) {
48
- height: 40px;
49
- line-height: 40px;
50
- }
51
-
52
- .select-label {
53
- text-align: right;
54
- font-size: medium;
55
- padding-right: 20px;
56
- }
57
-
58
- .select-submit {
59
- text-align: right;
60
- }
61
-
62
- .line {
63
- height: 1px;
64
- background-color: #999999;
65
- margin-top: 10px;
66
- margin-bottom: 10px;
67
- }
68
33
  .value-item {
69
34
  display: inline-block;
70
35
  margin: 10px;
package/dist/index.cjs.js CHANGED
@@ -22455,13 +22455,13 @@ script$h.__file = "src/form/LabelBox.vue";
22455
22455
 
22456
22456
  const _hoisted_1$e = { key: 12 };
22457
22457
  const _hoisted_2$d = { key: 0 };
22458
- const _hoisted_3$8 = { key: 13 };
22459
- const _hoisted_4$7 = { key: 0 };
22460
- const _hoisted_5$6 = { key: 14 };
22461
- const _hoisted_6$6 = { key: 0 };
22462
- const _hoisted_7$6 = { key: 16 };
22463
- const _hoisted_8$5 = ["innerHTML"];
22464
- const _hoisted_9$4 = { key: 17 };
22458
+ const _hoisted_3$7 = { key: 13 };
22459
+ const _hoisted_4$6 = { key: 0 };
22460
+ const _hoisted_5$5 = { key: 14 };
22461
+ const _hoisted_6$5 = { key: 0 };
22462
+ const _hoisted_7$5 = { key: 16 };
22463
+ const _hoisted_8$4 = ["innerHTML"];
22464
+ const _hoisted_9$3 = { key: 17 };
22465
22465
  const _hoisted_10$2 = ["width", "height", "poster"];
22466
22466
  const _hoisted_11$1 = ["src"];
22467
22467
  const _hoisted_12 = ["src"];
@@ -22989,7 +22989,7 @@ return (_ctx, _cache) => {
22989
22989
  vue.createCommentVNode(" 图片&富文本&视频 "),
22990
22990
  vue.createCommentVNode(" 图片 "),
22991
22991
  (__props.item.inputType === 'image')
22992
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$8, [
22992
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$7, [
22993
22993
  vue.createElementVNode("div", null, [
22994
22994
  vue.createVNode(_component_el_image, {
22995
22995
  style: vue.normalizeStyle(style.image(__props.item, __props.myProps)),
@@ -23001,7 +23001,7 @@ return (_ctx, _cache) => {
23001
23001
  ]),
23002
23002
  vue.createCommentVNode(" 设置了图片删除功能,同时图片不为空 "),
23003
23003
  (!!__props.item.imageDelete && !!__props.dataBox.fieldsValue[__props.item.fieldName])
23004
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$7, [
23004
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$6, [
23005
23005
  vue.createVNode(_component_el_button, {
23006
23006
  size: "small",
23007
23007
  icon: !__props.dataBox.fieldsValue[__props.item.imageDelete] ? 'el-icon-delete' : 'el-icon-magic-stick',
@@ -23018,7 +23018,7 @@ return (_ctx, _cache) => {
23018
23018
  : vue.createCommentVNode("v-if", true),
23019
23019
  vue.createCommentVNode(" 多个图片 "),
23020
23020
  (__props.item.inputType === 'images')
23021
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$6, [
23021
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$5, [
23022
23022
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.dataBox.fieldsValue[__props.item.fieldName], (itemImages, indexImages) => {
23023
23023
  return (vue.openBlock(), vue.createElementBlock("div", {
23024
23024
  key: indexImages,
@@ -23032,7 +23032,7 @@ return (_ctx, _cache) => {
23032
23032
  }, null, 8 /* PROPS */, ["style", "src", "preview-src-list"])
23033
23033
  ]),
23034
23034
  (!!__props.item.imageDelete)
23035
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$6, [
23035
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$5, [
23036
23036
  vue.createVNode(_component_el_button, {
23037
23037
  size: "small",
23038
23038
  icon: "el-icon-delete",
@@ -23064,15 +23064,15 @@ return (_ctx, _cache) => {
23064
23064
  : vue.createCommentVNode("v-if", true),
23065
23065
  vue.createCommentVNode(" 富文本show "),
23066
23066
  (__props.item.inputType === 'richtextShow')
23067
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$6, [
23067
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$5, [
23068
23068
  vue.createElementVNode("div", {
23069
23069
  innerHTML: __props.dataBox.fieldsValue[__props.item.fieldName]
23070
- }, null, 8 /* PROPS */, _hoisted_8$5)
23070
+ }, null, 8 /* PROPS */, _hoisted_8$4)
23071
23071
  ]))
23072
23072
  : vue.createCommentVNode("v-if", true),
23073
23073
  vue.createCommentVNode(" 视频 "),
23074
23074
  (__props.item.inputType === 'video')
23075
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_9$4, [
23075
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_9$3, [
23076
23076
  vue.createElementVNode("div", null, [
23077
23077
  vue.createElementVNode("video", {
23078
23078
  width: style.video(__props.item, __props.myProps).width,
@@ -23274,8 +23274,8 @@ script$g.__file = "src/form/InputBox.vue";
23274
23274
 
23275
23275
  const _hoisted_1$d = { key: 0 };
23276
23276
  const _hoisted_2$c = ["colspan"];
23277
- const _hoisted_3$7 = { key: 0 };
23278
- const _hoisted_4$6 = ["colspan"];
23277
+ const _hoisted_3$6 = { key: 0 };
23278
+ const _hoisted_4$5 = ["colspan"];
23279
23279
 
23280
23280
 
23281
23281
  var script$f = {
@@ -23367,7 +23367,7 @@ return (_ctx, _cache) => {
23367
23367
  ? item2.hdlVisible(__props.scopeThis, __props.dataBox.fieldsValue)
23368
23368
  : true
23369
23369
  )
23370
- ? (vue.openBlock(), vue.createElementBlock("tr", _hoisted_3$7, [
23370
+ ? (vue.openBlock(), vue.createElementBlock("tr", _hoisted_3$6, [
23371
23371
  (item2.label)
23372
23372
  ? (vue.openBlock(), vue.createElementBlock("td", {
23373
23373
  key: 0,
@@ -23391,7 +23391,7 @@ return (_ctx, _cache) => {
23391
23391
  dataBox: __props.dataBox,
23392
23392
  item: item2
23393
23393
  }, null, 8 /* PROPS */, ["scopeThis", "myProps", "dataBox", "item"])
23394
- ], 12 /* STYLE, PROPS */, _hoisted_4$6)
23394
+ ], 12 /* STYLE, PROPS */, _hoisted_4$5)
23395
23395
  ]))
23396
23396
  : vue.createCommentVNode("v-if", true)
23397
23397
  ], 64 /* STABLE_FRAGMENT */))
@@ -41720,7 +41720,7 @@ var script$6 = {
41720
41720
 
41721
41721
  const _hoisted_1$6 = { class: "el-upload__tip" };
41722
41722
  const _hoisted_2$6 = ["src"];
41723
- const _hoisted_3$6 = {
41723
+ const _hoisted_3$5 = {
41724
41724
  key: 0,
41725
41725
  style: {"font-size":"xx-small"}
41726
41726
  };
@@ -41771,7 +41771,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
41771
41771
  _: 1 /* STABLE */
41772
41772
  }, 8 /* PROPS */, ["modelValue"]),
41773
41773
  (_ctx.fileList.length>0)
41774
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$6, vue.toDisplayString("已上传"+_ctx.fileList.length+"个图片"), 1 /* TEXT */))
41774
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$5, vue.toDisplayString("已上传"+_ctx.fileList.length+"个图片"), 1 /* TEXT */))
41775
41775
  : vue.createCommentVNode("v-if", true),
41776
41776
  (_ctx.fileList.length>0)
41777
41777
  ? (vue.openBlock(), vue.createBlock(_component_el_button, {
@@ -41801,15 +41801,8 @@ var upload = {
41801
41801
  Upload_pictureCard: script$6
41802
41802
  };
41803
41803
 
41804
- const _hoisted_1$5 = { class: "value-code" };
41805
- const _hoisted_2$5 = { class: "value-text" };
41806
- const _hoisted_3$5 = { class: "value-code" };
41807
- const _hoisted_4$5 = { class: "value-text" };
41808
- const _hoisted_5$5 = { class: "value-code" };
41809
- const _hoisted_6$5 = { class: "value-text" };
41810
- const _hoisted_7$5 = { class: "select-row" };
41811
- const _hoisted_8$4 = { class: "select-row" };
41812
- const _hoisted_9$3 = { class: "select-submit" };
41804
+ const _hoisted_1$5 = { style: {"width":"100%"} };
41805
+ const _hoisted_2$5 = { style: {"width":"30%"} };
41813
41806
 
41814
41807
 
41815
41808
  var script$5 = {
@@ -41846,29 +41839,26 @@ const popup = vue.reactive({
41846
41839
  }
41847
41840
  });
41848
41841
 
41849
- vue.onMounted(async ()=>{
41850
- // 异步函数直接在 onMounted 顶层调用是允许的
41851
- const result = await request.ly0.storpro({
41852
- noSession: true,
41853
- storproName: 'ly0d3.gbt2260code2.init',
41854
- });
41855
- popup.select.arrCode2 = result.arrCode2;
41856
- });
41857
-
41858
41842
  vue.watch(() => props.myProps.value,
41859
41843
  async (valNew, valOld) => {
41860
41844
  // 只有当传入的值有效时才进行网络请求
41861
41845
  if (!valNew) return;
41862
41846
 
41863
- const result = await request.ly0.storpro({
41847
+ const result2 = await request.ly0.storpro({
41848
+ noSession: true,
41849
+ storproName: 'ly0d3.gbt2260code2.init',
41850
+ });
41851
+ popup.select.arrCode2 = result2.arrCode2.filter(item => item.code2);
41852
+
41853
+ const result6 = await request.ly0.storpro({
41864
41854
  noSession: true,
41865
41855
  storproName: 'ly0d3.gbt2260code6.get',
41866
41856
  data: { code6: valNew },
41867
41857
  });
41868
41858
 
41869
- if(result.itemCode6){
41859
+ if(result6.itemCode6){
41870
41860
  // 保持响应式
41871
- Object.assign(value, result.itemCode6);
41861
+ Object.assign(value, result6.itemCode6);
41872
41862
 
41873
41863
  // 确保按顺序加载级联数据
41874
41864
  if (value.code2) {
@@ -41902,7 +41892,7 @@ const hdlChangeCode2 = async value => { // 使用 async 标记
41902
41892
  data: {code2: value},
41903
41893
  });
41904
41894
 
41905
- popup.select.arrCode4 = result.arrCode4;
41895
+ popup.select.arrCode4 = result.arrCode4.filter(item => item.code4);
41906
41896
  popup.select.code4 = '';
41907
41897
  popup.select.arrCode6 = [];
41908
41898
  popup.select.code6 = '';
@@ -41915,7 +41905,7 @@ const hdlChangeCode4 = async value => {
41915
41905
  data: {code4: value},
41916
41906
  });
41917
41907
 
41918
- popup.select.arrCode6 = result.arrCode6;
41908
+ popup.select.arrCode6 = result.arrCode6.filter(item => item.code6);
41919
41909
  popup.select.code6 = '';
41920
41910
  };
41921
41911
 
@@ -41943,6 +41933,41 @@ const hdlSubmit = () => {
41943
41933
  popup.visible = false;
41944
41934
  };
41945
41935
 
41936
+ const style = vue.reactive({
41937
+ value: {
41938
+ code: {
41939
+ color: '#6a6a6a',
41940
+ },
41941
+ text: {
41942
+ color: '#0000bb',
41943
+ 'padding-left': '10px',
41944
+ }
41945
+ },
41946
+ popup: {
41947
+ label: {
41948
+ 'text-align': 'right',
41949
+ 'font-size': 'medium',
41950
+ 'padding-right': '20px'
41951
+ },
41952
+ select: {
41953
+ width: '300px',
41954
+ 'margin-top': '10px',
41955
+ 'margin-bottom': '10px',
41956
+ height: '40px',
41957
+ 'line-height': '40px'
41958
+ },
41959
+ submit: {
41960
+ 'text-align': 'right'
41961
+ }
41962
+ },
41963
+ line: {
41964
+ height: '1px',
41965
+ 'background-color': '#999999',
41966
+ 'margin-top': '10px',
41967
+ 'margin-bottom': '10px'
41968
+ }
41969
+ });
41970
+
41946
41971
  return (_ctx, _cache) => {
41947
41972
  const _component_edit = vue.resolveComponent("edit");
41948
41973
  const _component_el_icon = vue.resolveComponent("el-icon");
@@ -41969,28 +41994,40 @@ return (_ctx, _cache) => {
41969
41994
  : vue.createCommentVNode("v-if", true)
41970
41995
  ]),
41971
41996
  vue.createElementVNode("td", null, [
41972
- vue.createElementVNode("span", _hoisted_1$5, vue.toDisplayString('[' + (value.code2 ? value.code2 : '省') + ']'), 1 /* TEXT */)
41997
+ vue.createElementVNode("span", {
41998
+ style: vue.normalizeStyle(style.value.code)
41999
+ }, vue.toDisplayString('[' + (value.code2 ? value.code2 : '省') + ']'), 5 /* TEXT, STYLE */)
41973
42000
  ]),
41974
42001
  vue.createElementVNode("td", null, [
41975
- vue.createElementVNode("span", _hoisted_2$5, vue.toDisplayString(value.text2 ? value.text2 : ''), 1 /* TEXT */)
42002
+ vue.createElementVNode("span", {
42003
+ style: vue.normalizeStyle(style.value.text)
42004
+ }, vue.toDisplayString(value.text2 ? value.text2 : ''), 5 /* TEXT, STYLE */)
41976
42005
  ])
41977
42006
  ]),
41978
42007
  vue.createElementVNode("tr", null, [
41979
42008
  _cache[4] || (_cache[4] = vue.createElementVNode("td", null, null, -1 /* CACHED */)),
41980
42009
  vue.createElementVNode("td", null, [
41981
- vue.createElementVNode("span", _hoisted_3$5, vue.toDisplayString('[' + (value.code4 ? value.code4 : '市') + ']'), 1 /* TEXT */)
42010
+ vue.createElementVNode("span", {
42011
+ style: vue.normalizeStyle(style.value.code)
42012
+ }, vue.toDisplayString('[' + (value.code4 ? value.code4 : '市') + ']'), 5 /* TEXT, STYLE */)
41982
42013
  ]),
41983
42014
  vue.createElementVNode("td", null, [
41984
- vue.createElementVNode("span", _hoisted_4$5, vue.toDisplayString(value.text4 ? value.text4 : ''), 1 /* TEXT */)
42015
+ vue.createElementVNode("span", {
42016
+ style: vue.normalizeStyle(style.value.text)
42017
+ }, vue.toDisplayString(value.text4 ? value.text4 : ''), 5 /* TEXT, STYLE */)
41985
42018
  ])
41986
42019
  ]),
41987
42020
  vue.createElementVNode("tr", null, [
41988
42021
  _cache[5] || (_cache[5] = vue.createElementVNode("td", null, null, -1 /* CACHED */)),
41989
42022
  vue.createElementVNode("td", null, [
41990
- vue.createElementVNode("span", _hoisted_5$5, vue.toDisplayString('[' + (value.code6 ? value.code6 : '县') + ']'), 1 /* TEXT */)
42023
+ vue.createElementVNode("span", {
42024
+ style: vue.normalizeStyle(style.value.code)
42025
+ }, vue.toDisplayString('[' + (value.code6 ? value.code6 : '县') + ']'), 5 /* TEXT, STYLE */)
41991
42026
  ]),
41992
42027
  vue.createElementVNode("td", null, [
41993
- vue.createElementVNode("span", _hoisted_6$5, vue.toDisplayString(value.text6 ? value.text6 : ''), 1 /* TEXT */)
42028
+ vue.createElementVNode("span", {
42029
+ style: vue.normalizeStyle(style.value.text)
42030
+ }, vue.toDisplayString(value.text6 ? value.text6 : ''), 5 /* TEXT, STYLE */)
41994
42031
  ])
41995
42032
  ])
41996
42033
  ])
@@ -42006,18 +42043,20 @@ return (_ctx, _cache) => {
42006
42043
  "destroy-on-close": true
42007
42044
  }, {
42008
42045
  default: vue.withCtx(() => [
42009
- vue.createElementVNode("table", null, [
42046
+ vue.createElementVNode("table", _hoisted_1$5, [
42010
42047
  vue.createElementVNode("tbody", null, [
42011
42048
  vue.createElementVNode("tr", null, [
42012
- _cache[6] || (_cache[6] = vue.createElementVNode("td", { style: {"width":"30%"} }, [
42013
- vue.createElementVNode("div", { class: "select-label" }, "省")
42014
- ], -1 /* CACHED */)),
42049
+ vue.createElementVNode("td", _hoisted_2$5, [
42050
+ vue.createElementVNode("div", {
42051
+ style: vue.normalizeStyle(style.popup.label)
42052
+ }, "省", 4 /* STYLE */)
42053
+ ]),
42015
42054
  vue.createElementVNode("td", null, [
42016
42055
  vue.createVNode(_component_el_select, {
42017
42056
  modelValue: popup.select.code2,
42018
42057
  "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((popup.select.code2) = $event)),
42019
42058
  filterable: "",
42020
- class: "select",
42059
+ style: vue.normalizeStyle(style.popup.select),
42021
42060
  onChange: hdlChangeCode2
42022
42061
  }, {
42023
42062
  default: vue.withCtx(() => [
@@ -42030,19 +42069,21 @@ return (_ctx, _cache) => {
42030
42069
  }), 128 /* KEYED_FRAGMENT */))
42031
42070
  ]),
42032
42071
  _: 1 /* STABLE */
42033
- }, 8 /* PROPS */, ["modelValue"])
42072
+ }, 8 /* PROPS */, ["modelValue", "style"])
42034
42073
  ])
42035
42074
  ]),
42036
- vue.createElementVNode("tr", _hoisted_7$5, [
42037
- _cache[7] || (_cache[7] = vue.createElementVNode("td", null, [
42038
- vue.createElementVNode("div", { class: "select-label" }, "市")
42039
- ], -1 /* CACHED */)),
42075
+ vue.createElementVNode("tr", null, [
42076
+ vue.createElementVNode("td", null, [
42077
+ vue.createElementVNode("div", {
42078
+ style: vue.normalizeStyle(style.popup.label)
42079
+ }, "市", 4 /* STYLE */)
42080
+ ]),
42040
42081
  vue.createElementVNode("td", null, [
42041
42082
  vue.createVNode(_component_el_select, {
42042
42083
  modelValue: popup.select.code4,
42043
42084
  "onUpdate:modelValue": _cache[1] || (_cache[1] = $event => ((popup.select.code4) = $event)),
42044
42085
  filterable: "",
42045
- class: "select",
42086
+ style: vue.normalizeStyle(style.popup.select),
42046
42087
  onChange: hdlChangeCode4
42047
42088
  }, {
42048
42089
  default: vue.withCtx(() => [
@@ -42055,19 +42096,21 @@ return (_ctx, _cache) => {
42055
42096
  }), 128 /* KEYED_FRAGMENT */))
42056
42097
  ]),
42057
42098
  _: 1 /* STABLE */
42058
- }, 8 /* PROPS */, ["modelValue"])
42099
+ }, 8 /* PROPS */, ["modelValue", "style"])
42059
42100
  ])
42060
42101
  ]),
42061
- vue.createElementVNode("tr", _hoisted_8$4, [
42062
- _cache[8] || (_cache[8] = vue.createElementVNode("td", null, [
42063
- vue.createElementVNode("div", { class: "select-label" }, "县")
42064
- ], -1 /* CACHED */)),
42102
+ vue.createElementVNode("tr", null, [
42103
+ vue.createElementVNode("td", null, [
42104
+ vue.createElementVNode("div", {
42105
+ style: vue.normalizeStyle(style.popup.label)
42106
+ }, "县", 4 /* STYLE */)
42107
+ ]),
42065
42108
  vue.createElementVNode("td", null, [
42066
42109
  vue.createVNode(_component_el_select, {
42067
42110
  modelValue: popup.select.code6,
42068
42111
  "onUpdate:modelValue": _cache[2] || (_cache[2] = $event => ((popup.select.code6) = $event)),
42069
42112
  filterable: "",
42070
- class: "select"
42113
+ style: vue.normalizeStyle(style.popup.select)
42071
42114
  }, {
42072
42115
  default: vue.withCtx(() => [
42073
42116
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(popup.select.arrCode6, (item, index) => {
@@ -42079,24 +42122,28 @@ return (_ctx, _cache) => {
42079
42122
  }), 128 /* KEYED_FRAGMENT */))
42080
42123
  ]),
42081
42124
  _: 1 /* STABLE */
42082
- }, 8 /* PROPS */, ["modelValue"])
42125
+ }, 8 /* PROPS */, ["modelValue", "style"])
42083
42126
  ])
42084
42127
  ])
42085
42128
  ])
42086
42129
  ]),
42087
- _cache[10] || (_cache[10] = vue.createElementVNode("div", { class: "line" }, null, -1 /* CACHED */)),
42088
- vue.createElementVNode("div", _hoisted_9$3, [
42130
+ vue.createElementVNode("div", {
42131
+ style: vue.normalizeStyle(style.line)
42132
+ }, null, 4 /* STYLE */),
42133
+ vue.createElementVNode("div", {
42134
+ style: vue.normalizeStyle(style.popup.submit)
42135
+ }, [
42089
42136
  vue.createVNode(_component_el_button, {
42090
42137
  type: "danger",
42091
42138
  plain: "",
42092
42139
  onClick: hdlSubmit
42093
42140
  }, {
42094
- default: vue.withCtx(() => [...(_cache[9] || (_cache[9] = [
42141
+ default: vue.withCtx(() => [...(_cache[6] || (_cache[6] = [
42095
42142
  vue.createTextVNode("确认", -1 /* CACHED */)
42096
42143
  ]))]),
42097
42144
  _: 1 /* STABLE */
42098
42145
  })
42099
- ])
42146
+ ], 4 /* STYLE */)
42100
42147
  ]),
42101
42148
  _: 1 /* STABLE */
42102
42149
  }, 8 /* PROPS */, ["modelValue"])
@@ -42106,7 +42153,6 @@ return (_ctx, _cache) => {
42106
42153
 
42107
42154
  };
42108
42155
 
42109
- script$5.__scopeId = "data-v-38e9d5a6";
42110
42156
  script$5.__file = "src/gbt2260/index.vue";
42111
42157
 
42112
42158
  const _hoisted_1$4 = { key: 0 };