agilebuilder-ui 1.1.62 → 1.1.64

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.
Files changed (70) hide show
  1. package/lib/{401-199428df.js → 401-a349b753.js} +1 -1
  2. package/lib/{404-4bf69786.js → 404-c2d92a94.js} +1 -1
  3. package/lib/{_baseUniq-BXtq6_NW-4c8da3e7.js → _baseUniq-BXtq6_NW-4528764f.js} +2 -2
  4. package/lib/{arc-Js_tyW10-fda7779e.js → arc-Js_tyW10-fbbc703f.js} +1 -1
  5. package/lib/architecture-O4VJ6CD3-ZoZ2IAk2-a15ec654.js +11 -0
  6. package/lib/{architectureDiagram-SUXI7LT5-kyYGGrHN-3a7759a9.js → architectureDiagram-SUXI7LT5-kyYGGrHN-3e9c38bc.js} +8 -8
  7. package/lib/{blockDiagram-6J76NXCF-IAr4zDV3-acae4640.js → blockDiagram-6J76NXCF-IAr4zDV3-4d3dec40.js} +7 -7
  8. package/lib/{c4Diagram-6F6E4RAY-Dv27rXcJ-749c2103.js → c4Diagram-6F6E4RAY-Dv27rXcJ-bcc54a35.js} +3 -3
  9. package/lib/{channel-BBZy6zOT-ddf61d20.js → channel-BBZy6zOT-90a537fc.js} +1 -1
  10. package/lib/{chunk-353BL4L5-Dn_Y_Yna-51a2efc8.js → chunk-353BL4L5-Dn_Y_Yna-e58cf347.js} +1 -1
  11. package/lib/{chunk-67H74DCK-Br5U8bfD-07dfd6ef.js → chunk-67H74DCK-Br5U8bfD-2735a714.js} +1 -1
  12. package/lib/{chunk-AACKK3MU-DH_MKxca-b213fbd3.js → chunk-AACKK3MU-DH_MKxca-a49b5e93.js} +1 -1
  13. package/lib/{chunk-BFAMUDN2-DHLCoYMN-9eab7dcc.js → chunk-BFAMUDN2-DHLCoYMN-28fc42d2.js} +1 -1
  14. package/lib/{chunk-E2GYISFI-DQPHyyga-6c28a7bf.js → chunk-E2GYISFI-DQPHyyga-2fe5b8d8.js} +1 -1
  15. package/lib/{chunk-OW32GOEJ-CQOSE6Bn-e9253ece.js → chunk-OW32GOEJ-CQOSE6Bn-309397bf.js} +3 -3
  16. package/lib/{chunk-SKB7J2MH-BlwHRDiW-1cb6a619.js → chunk-SKB7J2MH-BlwHRDiW-ddf8d6fa.js} +1 -1
  17. package/lib/{chunk-SZ463SBG-DEp8buKJ-9626f549.js → chunk-SZ463SBG-DEp8buKJ-75a391a4.js} +4 -4
  18. package/lib/{classDiagram-M3E45YP4-D0ySDe-v-533eb855.js → classDiagram-M3E45YP4-D0ySDe-v-3df86958.js} +6 -6
  19. package/lib/{classDiagram-v2-YAWTLIQI-D0ySDe-v-533eb855.js → classDiagram-v2-YAWTLIQI-D0ySDe-v-3df86958.js} +6 -6
  20. package/lib/{clone-CEJtuQzg-e23a7ac2.js → clone-CEJtuQzg-882c7a6d.js} +1 -1
  21. package/lib/{dagre-JOIXM2OF-5zx0JY2T-a0197967.js → dagre-JOIXM2OF-5zx0JY2T-1db818d6.js} +7 -7
  22. package/lib/{diagram-5UYTHUR4-C19nyAKc-f0d5c279.js → diagram-5UYTHUR4-C19nyAKc-94341b7c.js} +7 -7
  23. package/lib/{diagram-VMROVX33-DkGwo-hj-10857482.js → diagram-VMROVX33-DkGwo-hj-6a692cf0.js} +8 -8
  24. package/lib/{diagram-ZTM2IBQH-CBgHCu9L-2694c4e0.js → diagram-ZTM2IBQH-CBgHCu9L-8805611a.js} +7 -7
  25. package/lib/{erDiagram-3M52JZNH-cttdAJXW-432892bd.js → erDiagram-3M52JZNH-cttdAJXW-7d7c9b11.js} +5 -5
  26. package/lib/{flowDiagram-KYDEHFYC-9HpsqDdB-6f06748b.js → flowDiagram-KYDEHFYC-9HpsqDdB-58a786c3.js} +6 -6
  27. package/lib/{ganttDiagram-EK5VF46D-8QB3ofs6-36976869.js → ganttDiagram-EK5VF46D-8QB3ofs6-c3e10fd9.js} +3 -3
  28. package/lib/gitGraph-ZV4HHKMB-BSmtVGRu-5bf7ff52.js +11 -0
  29. package/lib/{gitGraphDiagram-GW3U2K7C-DNzc0Vx_-5ebba6fc.js → gitGraphDiagram-GW3U2K7C-DNzc0Vx_-16e97484.js} +8 -8
  30. package/lib/{graph-3zJxsO-i-aaa67ddf.js → graph-3zJxsO-i-2bd62ef8.js} +3 -3
  31. package/lib/{iframe-page-0deb590b.js → iframe-page-1aaff642.js} +1 -1
  32. package/lib/{index-f28c8390.js → index-5b6965ad.js} +24 -18
  33. package/lib/info-63CPKGFF-C8sYWczU-5ecb6d17.js +11 -0
  34. package/lib/{infoDiagram-LHK5PUON-C-vFFPTf-69b39387.js → infoDiagram-LHK5PUON-C-vFFPTf-97528b98.js} +6 -6
  35. package/lib/{journeyDiagram-EWQZEKCU-BJrw4-AG-d9701ccc.js → journeyDiagram-EWQZEKCU-BJrw4-AG-4b038569.js} +5 -5
  36. package/lib/{kanban-definition-ZSS6B67P-BptAnqU--5a25c0bf.js → kanban-definition-ZSS6B67P-BptAnqU--807924b1.js} +3 -3
  37. package/lib/{layout-sGZIJplX-c41602f4.js → layout-sGZIJplX-7ec0ed99.js} +5 -5
  38. package/lib/{linear-DqgVh5FN-7d6a0039.js → linear-DqgVh5FN-7dbb16c3.js} +1 -1
  39. package/lib/{mermaid-parser.core-CH9ryA1K-02f37cfa.js → mermaid-parser.core-CH9ryA1K-10bc2e61.js} +12 -12
  40. package/lib/{mermaid.core-CAqkCmS1-857883cc.js → mermaid.core-CAqkCmS1-05df47fd.js} +30 -30
  41. package/lib/{min-BngCxx8g-e02eeaa5.js → min-BngCxx8g-524ed8b2.js} +3 -3
  42. package/lib/{mindmap-definition-6CBA2TL7-Cp_EeEsh-2218d478.js → mindmap-definition-6CBA2TL7-Cp_EeEsh-f5984329.js} +2 -2
  43. package/lib/packet-HUATNLJX-bfFWFja0-a57889e1.js +11 -0
  44. package/lib/pie-WTHONI2E-QPrWs3SR-445d4804.js +11 -0
  45. package/lib/{pieDiagram-NIOCPIFQ-C46Y_4C6-24992a5c.js → pieDiagram-NIOCPIFQ-C46Y_4C6-14805052.js} +8 -8
  46. package/lib/{quadrantDiagram-2OG54O6I-Dgf6d6F_-a9aee689.js → quadrantDiagram-2OG54O6I-Dgf6d6F_-fd7932bc.js} +3 -3
  47. package/lib/radar-NJJJXTRR-BnUCJhQL-204d5f56.js +11 -0
  48. package/lib/{requirementDiagram-QOLK2EJ7-CSF6N7HA-ae4b0d18.js → requirementDiagram-QOLK2EJ7-CSF6N7HA-9f360bda.js} +4 -4
  49. package/lib/{sankeyDiagram-4UZDY2LN-BAHB7dMS-82e16e40.js → sankeyDiagram-4UZDY2LN-BAHB7dMS-2bef0b12.js} +2 -2
  50. package/lib/{sequenceDiagram-SKLFT4DO-10gLJ50N-f6c3ed7b.js → sequenceDiagram-SKLFT4DO-10gLJ50N-aee7e91a.js} +4 -4
  51. package/lib/{stateDiagram-MI5ZYTHO-D6p6nCaj-5ab32497.js → stateDiagram-MI5ZYTHO-D6p6nCaj-233c4fe7.js} +9 -9
  52. package/lib/{stateDiagram-v2-5AN5P6BG-DaN5hC-t-ae44d01a.js → stateDiagram-v2-5AN5P6BG-DaN5hC-t-b2c20413.js} +5 -5
  53. package/lib/super-ui.js +1 -1
  54. package/lib/super-ui.umd.cjs +1 -1
  55. package/lib/{tab-content-iframe-index-f46a1375.js → tab-content-iframe-index-033ef471.js} +1 -1
  56. package/lib/{tab-content-index-92a1b881.js → tab-content-index-5f14c4e6.js} +1 -1
  57. package/lib/{tache-subprocess-history-97c77ac4.js → tache-subprocess-history-fdff909d.js} +1 -1
  58. package/lib/{timeline-definition-MYPXXCX6-gLqnWxDu-aac04978.js → timeline-definition-MYPXXCX6-gLqnWxDu-a9d86afa.js} +3 -3
  59. package/lib/treemap-75Q7IDZK-B2atdfMH-cd6fd4ec.js +11 -0
  60. package/lib/{xychartDiagram-H2YORKM3-Whqa4ezL-00f4d70f.js → xychartDiagram-H2YORKM3-Whqa4ezL-d040fede.js} +3 -3
  61. package/package.json +1 -1
  62. package/packages/super-grid/src/components/select-input.vue +73 -31
  63. package/packages/super-grid/src/dynamic-input.vue +8 -2
  64. package/lib/architecture-O4VJ6CD3-ZoZ2IAk2-4071a604.js +0 -11
  65. package/lib/gitGraph-ZV4HHKMB-BSmtVGRu-b1445ba9.js +0 -11
  66. package/lib/info-63CPKGFF-C8sYWczU-f6b636b0.js +0 -11
  67. package/lib/packet-HUATNLJX-bfFWFja0-7b03abaf.js +0 -11
  68. package/lib/pie-WTHONI2E-QPrWs3SR-8636db61.js +0 -11
  69. package/lib/radar-NJJJXTRR-BnUCJhQL-3864d94f.js +0 -11
  70. package/lib/treemap-75Q7IDZK-B2atdfMH-c5d83a00.js +0 -11
@@ -1,5 +1,5 @@
1
1
  import { openBlock as r, createElementBlock as t, createCommentVNode as o } from "vue";
2
- import { a8 as s } from "./index-f28c8390.js";
2
+ import { a8 as s } from "./index-5b6965ad.js";
3
3
  const a = ["src"], f = s({ data: () => ({ src: null }), watch: { $route(n, c) {
4
4
  this.src = this.$route.query.src;
5
5
  } }, mounted() {
@@ -1,4 +1,4 @@
1
- import { a8 as v, aa as I, ab as N, ac as $, ad as S, ae as E, af as F, ag as C, ah as O, ai as W, aj as R, ak as B, al as w, am as V } from "./index-f28c8390.js";
1
+ import { a8 as v, aa as I, ab as N, ac as $, ad as S, ae as E, af as F, ag as C, ah as O, ai as W, aj as R, ak as B, al as w, am as V } from "./index-5b6965ad.js";
2
2
  import { createVNode as g, resolveComponent as d, openBlock as u, createBlock as p, withCtx as h, renderSlot as L, createElementBlock as f, normalizeClass as A, createCommentVNode as x, Fragment as k, renderList as P, defineComponent as D, h as b, createTextVNode as U, toDisplayString as T, TransitionGroup as j, createElementVNode as _ } from "vue";
3
3
  $(["sidebar", "protectedRouters"]);
4
4
  const J = v(D({ name: "MenuItem", functional: !0, props: { icon: { type: String, default: "" }, title: { type: String, default: "" }, hasChildren: { type: Boolean, default: !1 }, isRoot: { type: Boolean, default: !1 }, code: { type: Boolean, default: !1 }, backlogTotal: { type: Number, default: 0 }, menuLayer: { type: Number, default: null } }, render(e) {
@@ -1,5 +1,5 @@
1
1
  import { resolveComponent as t, openBlock as l, createElementBlock as s, createElementVNode as y, createVNode as a, withCtx as r, createTextVNode as n, toDisplayString as p, createCommentVNode as c, createBlock as h } from "vue";
2
- import { a8 as I } from "./index-f28c8390.js";
2
+ import { a8 as I } from "./index-5b6965ad.js";
3
3
  const g = { style: { "padding-bottom": "10px" } }, k = { key: 0, class: "graphDiv" }, N = I({ name: "TacheSubprocessHistory", data: () => ({ type: "graph", workflowId: null }), created() {
4
4
  const o = this.$route.query.workflowId;
5
5
  o && (this.workflowId = parseInt(o));
@@ -1,6 +1,6 @@
1
- import { _ as a, D as yt, ag as gt, z as ft, d as G, c as mt, l as S, ac as xt, ad as bt, ae as _t, af as kt } from "./mermaid.core-CAqkCmS1-857883cc.js";
2
- import { d as K } from "./arc-Js_tyW10-fda7779e.js";
3
- import "./index-f28c8390.js";
1
+ import { _ as a, D as yt, ag as gt, z as ft, d as G, c as mt, l as S, ac as xt, ad as bt, ae as _t, af as kt } from "./mermaid.core-CAqkCmS1-05df47fd.js";
2
+ import { d as K } from "./arc-Js_tyW10-fbbc703f.js";
3
+ import "./index-5b6965ad.js";
4
4
  import "vue";
5
5
  var q = function() {
6
6
  var n = a(function(s, d, l, h) {
@@ -0,0 +1,11 @@
1
+ import { T as s, h as T } from "./mermaid-parser.core-CH9ryA1K-10bc2e61.js";
2
+ import "./index-5b6965ad.js";
3
+ import "vue";
4
+ import "./mermaid.core-CAqkCmS1-05df47fd.js";
5
+ import "./_baseUniq-BXtq6_NW-4528764f.js";
6
+ import "./min-BngCxx8g-524ed8b2.js";
7
+ import "./clone-CEJtuQzg-882c7a6d.js";
8
+ export {
9
+ s as TreemapModule,
10
+ T as createTreemapServices
11
+ };
@@ -1,8 +1,8 @@
1
- import { _ as n, a1 as hi, G as gt, F as Bt, H as oi, aD as ri, l as zt, a9 as kt, i as li, t as Ot, b as ci, a as gi, q as ui, g as xi, s as di, z as pi, K as fi, e as mi } from "./mermaid.core-CAqkCmS1-857883cc.js";
1
+ import { _ as n, a1 as hi, G as gt, F as Bt, H as oi, aD as ri, l as zt, a9 as kt, i as li, t as Ot, b as ci, a as gi, q as ui, g as xi, s as di, z as pi, K as fi, e as mi } from "./mermaid.core-CAqkCmS1-05df47fd.js";
2
2
  import { i as yi } from "./init-ZxktEp_H-731b6c9b.js";
3
3
  import { o as bi } from "./ordinal-DSZU4PqD-57a34423.js";
4
- import { l as _t } from "./linear-DqgVh5FN-7d6a0039.js";
5
- import "./index-f28c8390.js";
4
+ import { l as _t } from "./linear-DqgVh5FN-7dbb16c3.js";
5
+ import "./index-5b6965ad.js";
6
6
  import "vue";
7
7
  import "./defaultLocale-DVr69WTU-dbb4acef.js";
8
8
  var Tt, Rt, Dt, Lt, Pt, vt, Et, Mt, It, $t;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agilebuilder-ui",
3
- "version": "1.1.62",
3
+ "version": "1.1.64",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "main": "./lib/super-ui.js",
@@ -93,7 +93,7 @@
93
93
  </span>
94
94
  </template>
95
95
  <script lang="ts" setup>
96
- import { onMounted, ref, defineProps, defineEmits } from 'vue'
96
+ import { onMounted, ref, defineProps, defineEmits, watch } from 'vue'
97
97
  import { useI18n } from 'vue-i18n'
98
98
  import {
99
99
  getClassOptionTitleCommon,
@@ -172,10 +172,18 @@ const props = defineProps({
172
172
  })
173
173
 
174
174
  const { t } = useI18n()
175
- const emits = defineEmits(['update:modelValue', 'cellEvent', 'extendParams', 'setCellValue', 'callCustomEventWithParam' ])
175
+ const emits = defineEmits(['update:modelValue', 'cellEvent', 'extendParams', 'setCellValue', 'callCustomEventWithParam', 'setCellValueWithProp' ])
176
176
  const innerValue:any = ref(props.modelValue)
177
177
  const isJoinTable:any = ref(false) // 是否是关联表
178
-
178
+ // 监控props.modelValue,解决js代码修改属性值时,下拉框显示值不改变问题
179
+ watch(
180
+ () => props.modelValue,
181
+ (newVal, oldVal) => {
182
+ console.log('watch---props.modelValue---newVal=', newVal)
183
+ innerValue.value = newVal
184
+ },
185
+ { immediate: true }
186
+ )
179
187
  const copyBtnId = 'copyBtn_'+new Date().getTime()
180
188
  const gridParams = store.get(props.listCode)
181
189
  if (gridParams && gridParams.basicInfo && gridParams.basicInfo.hasJoinTable) {
@@ -224,7 +232,7 @@ onMounted(()=>{
224
232
  const changeValue = (val: any) => {
225
233
  innerValue.value = val
226
234
  console.log('changeValue----val=', val)
227
- if (valueSetOptionsObj.type && valueSetOptionsObj.type === 'dataTable' && props.valueSetOptions && props.valueSetOptions.length > 0) {
235
+ if (valueSetOptionsObj?.type && valueSetOptionsObj.type === 'dataTable' && props.valueSetOptions && props.valueSetOptions.length > 0) {
228
236
  // 如果有valueSetOptions,则根据valueSetOptions设置对应的值
229
237
  if(val === undefined || val === null || val === '') {
230
238
  // 清空时会走该判断
@@ -235,15 +243,23 @@ const changeValue = (val: any) => {
235
243
  props.valueSetOptions.forEach((item: any) => {
236
244
  if (item.valueField !== props.prop) {
237
245
  const value = selectedOptions[item.columnName]
238
- emits('setCellValue', item.valueField, value, 'change')
239
- emits('cellEvent','change', value)
246
+ console.log('changeValue-----setCellValue')
247
+ emits('setCellValueWithProp', item.valueField, value)
248
+ console.log('changeValue-----setCellValue后')
249
+ // console.log('changeValue-----cellEvent前')
250
+ // emits('cellEvent','change', value)
251
+ // console.log('changeValue-----cellEvent后')
240
252
  }
241
253
  })
242
254
  }
243
255
  }
244
256
  }
257
+ console.log('changeValue-----update:modelValue前')
245
258
  emits('update:modelValue', val)
246
- emits('cellEvent', 'change', val)
259
+ console.log('changeValue-----update:modelValue后')
260
+ console.log('changeValue-----setCellValue前222')
261
+ emits('setCellValue', props.prop, val, 'change')
262
+ console.log('changeValue-----setCellValue后222')
247
263
  }
248
264
 
249
265
  /**
@@ -308,15 +324,24 @@ function selectChange(arr, selectedItem) {
308
324
  // console.log('multiselectChange3---innerValue.value=', innerValue.value)
309
325
  const val = innerValue.value && innerValue.value.length > 0 ? innerValue.value.join(',') : null
310
326
  if (isSaveAll) {
327
+ console.log('selectChange-----input前')
311
328
  emits('cellEvent','input', val)
329
+ console.log('selectChange-----input后')
312
330
  }
331
+ console.log('selectChange-----update:modelValue前')
313
332
  emits('update:modelValue', val)
314
- emits('cellEvent','change', val)
333
+ console.log('selectChange-----update:modelValue后')
334
+ // console.log('selectChange-----cellEvent change前')
335
+ // emits('cellEvent','change', val)
336
+ // console.log('selectChange-----cellEvent change后')
337
+ console.log('selectChange-----setCellValue前')
315
338
  emits('setCellValue', props.prop, val, 'change')
339
+ console.log('selectChange-----setCellValue后')
316
340
  // this.setCellValue(this.column.prop, val, 'change')
317
341
  } else {
342
+ console.log('selectChange-----22222')
318
343
  emits('update:modelValue', arr)
319
- emits('cellEvent','change', arr)
344
+ // emits('cellEvent','change', arr)
320
345
  emits('setCellValue', props.prop, arr, 'change')
321
346
  }
322
347
  }
@@ -324,7 +349,7 @@ function selectChange(arr, selectedItem) {
324
349
  // 非动态数据源时映射字段设值
325
350
  function autoSetOtherFieldsWhenMulti() {
326
351
  console.log('autoSetOtherFields----innerValue.value=', innerValue.value)
327
- if (valueSetOptionsObj.type && valueSetOptionsObj.type === 'dataTable' && props.valueSetOptions && props.valueSetOptions.length > 0) {
352
+ if (valueSetOptionsObj?.type && valueSetOptionsObj.type === 'dataTable' && props.valueSetOptions && props.valueSetOptions.length > 0) {
328
353
  if(!isDynamicDataSource.value){
329
354
  if(!innerValue.value || innerValue.value.length === 0){
330
355
  clearValue()
@@ -351,11 +376,19 @@ function autoSetOtherFieldsWhenMulti() {
351
376
  const valueArr = autoSets[valueField]
352
377
  if(valueArr){
353
378
  const valueStr = valueArr.join(',')
354
- emits('setCellValue', valueField, valueStr, 'change')
355
- emits('cellEvent','change', valueStr)
379
+ console.log('autoSetOtherFieldsWhenMulti-----setCellValue')
380
+ emits('setCellValueWithProp', valueField, valueStr)
381
+ console.log('autoSetOtherFieldsWhenMulti-----setCellValue后')
382
+ // console.log('autoSetOtherFieldsWhenMulti-----cellEvent前')
383
+ // emits('cellEvent','change', valueStr)
384
+ // console.log('autoSetOtherFieldsWhenMulti-----cellEvent后')
356
385
  } else {
357
- emits('setCellValue', valueField, null, 'change')
358
- emits('cellEvent','change', null)
386
+ console.log('autoSetOtherFieldsWhenMulti-----setCellValue前222')
387
+ emits('setCellValueWithProp', valueField, null)
388
+ console.log('autoSetOtherFieldsWhenMulti-----setCellValue后222')
389
+ // console.log('autoSetOtherFieldsWhenMulti-----cellEvent前222')
390
+ // emits('cellEvent','change', null)
391
+ // console.log('autoSetOtherFieldsWhenMulti-----cellEvent后222')
359
392
  }
360
393
  }
361
394
  }
@@ -364,16 +397,23 @@ function autoSetOtherFieldsWhenMulti() {
364
397
  }
365
398
 
366
399
  function setDynamicSourceSelectValue({ value, sourceColumnName, targetColumnName, options, selectedItem }) {
400
+ console.log('setDynamicSourceSelectValue------params=', value, sourceColumnName, targetColumnName, options, selectedItem)
367
401
  if (targetColumnName) {
368
- emits('setCellValue', targetColumnName, value, 'input')
369
- // this.setCellValue(targetColumnName, value, 'input')
370
- emits('callCustomEventWithParam', 'input', {
371
- value,
372
- extendParams: selectedItem,
373
- row: props.entity,
374
- column: props.column,
375
- targetColumnName
376
- })
402
+ if(targetColumnName === props.prop){
403
+ // 表示是当前下拉选字段时,需要赋值并执行事件
404
+ emits('setCellValue', targetColumnName, value, 'input')
405
+ // setCellValue中有执行事件callCustomEventWithParam的代码
406
+ // emits('callCustomEventWithParam', 'input', {
407
+ // value,
408
+ // extendParams: selectedItem,
409
+ // row: props.entity,
410
+ // column: props.column,
411
+ // targetColumnName
412
+ // })
413
+ } else {
414
+ // 当时映射字段时,只需要赋值,不需要事件
415
+ emits('setCellValueWithProp', targetColumnName, value)
416
+ }
377
417
  }
378
418
  }
379
419
 
@@ -431,7 +471,7 @@ function remoteMethod(searchText, isInit) {
431
471
  if (!dataSourceObj.props) {
432
472
  dataSourceObj.props = {}
433
473
  }
434
- dataSourceObj.props.tableName = valueSetOptionsObj.props?.tableName
474
+ dataSourceObj.props.tableName = valueSetOptionsObj?.props?.tableName
435
475
  dataSourceObj.props.prop = props.prop
436
476
 
437
477
  const param:any = {
@@ -466,13 +506,15 @@ function remoteMethod(searchText, isInit) {
466
506
  }
467
507
 
468
508
  function clearValue() {
469
- props.valueSetOptions.forEach((item: any) => {
470
- if (item.valueField !== props.prop) {
471
- // 映射字段值清空
472
- emits('setCellValue', item.valueField, null, 'change')
473
- emits('cellEvent','change', null)
474
- }
475
- })
509
+ if(props.valueSetOptions){
510
+ props.valueSetOptions.forEach((item: any) => {
511
+ if (item.valueField !== props.prop) {
512
+ // 映射字段值清空
513
+ emits('setCellValueWithProp', item.valueField, null)
514
+ // emits('cellEvent','change', null)
515
+ }
516
+ })
517
+ }
476
518
  }
477
519
 
478
520
  </script>
@@ -356,7 +356,6 @@
356
356
  <SelectInput
357
357
  v-else-if="type === 'multiselect' || type === 'select'"
358
358
  v-model="innerValue"
359
- @update:modelValue="innerValue = $event"
360
359
  :disabled="disabled"
361
360
  :options="options"
362
361
  :value-set-options="valueSetOptions"
@@ -372,9 +371,11 @@
372
371
  :isSql="isSql"
373
372
  :parentFormData="parentFormData"
374
373
  :tableName="tableName"
374
+ @update:modelValue="innerValue = $event"
375
375
  @cellEvent="cellEvent"
376
376
  @extendParams="setExtendParams"
377
377
  @setCellValue="setCellValue"
378
+ @setCellValueWithProp="setCellValueWithProp"
378
379
  @callCustomEventWithParam="callCustomEventWithParam"
379
380
  />
380
381
  <el-input-number
@@ -1347,13 +1348,18 @@ export default {
1347
1348
  // eventNames 事件名称值为input或clear,input表示值改变时触发的事件,clear表示值清空时触发的事件
1348
1349
  setCellValue(prop, value, eventNames) {
1349
1350
  console.log('setCellValue---', prop, value, eventNames)
1350
- this.row[prop] = value
1351
+ this.setCellValueWithProp(prop, value)
1351
1352
  if (eventNames) {
1352
1353
  eventNames.split(',').forEach((eventName) => {
1353
1354
  this.callCustomEventWithParam(eventName, { value, row: this.row, column: this.column, prop })
1354
1355
  })
1355
1356
  }
1356
1357
  },
1358
+ // 设置指定字段的值,不需要走事件
1359
+ setCellValueWithProp(prop, value) {
1360
+ console.log('setCellValueWithProp---', prop, value)
1361
+ this.row[prop] = value
1362
+ },
1357
1363
  // 单选上传完成后存储
1358
1364
  radioStorageFile(fileSetObj, responseFile) {
1359
1365
  if (fileSetObj.showNameData) {
@@ -1,11 +0,0 @@
1
- import { A as a, e as s } from "./mermaid-parser.core-CH9ryA1K-02f37cfa.js";
2
- import "./index-f28c8390.js";
3
- import "vue";
4
- import "./mermaid.core-CAqkCmS1-857883cc.js";
5
- import "./_baseUniq-BXtq6_NW-4c8da3e7.js";
6
- import "./min-BngCxx8g-e02eeaa5.js";
7
- import "./clone-CEJtuQzg-e23a7ac2.js";
8
- export {
9
- a as ArchitectureModule,
10
- s as createArchitectureServices
11
- };
@@ -1,11 +0,0 @@
1
- import { G, f as s } from "./mermaid-parser.core-CH9ryA1K-02f37cfa.js";
2
- import "./index-f28c8390.js";
3
- import "vue";
4
- import "./mermaid.core-CAqkCmS1-857883cc.js";
5
- import "./_baseUniq-BXtq6_NW-4c8da3e7.js";
6
- import "./min-BngCxx8g-e02eeaa5.js";
7
- import "./clone-CEJtuQzg-e23a7ac2.js";
8
- export {
9
- G as GitGraphModule,
10
- s as createGitGraphServices
11
- };
@@ -1,11 +0,0 @@
1
- import { I as c, c as f } from "./mermaid-parser.core-CH9ryA1K-02f37cfa.js";
2
- import "./index-f28c8390.js";
3
- import "vue";
4
- import "./mermaid.core-CAqkCmS1-857883cc.js";
5
- import "./_baseUniq-BXtq6_NW-4c8da3e7.js";
6
- import "./min-BngCxx8g-e02eeaa5.js";
7
- import "./clone-CEJtuQzg-e23a7ac2.js";
8
- export {
9
- c as InfoModule,
10
- f as createInfoServices
11
- };
@@ -1,11 +0,0 @@
1
- import { P as c, a as s } from "./mermaid-parser.core-CH9ryA1K-02f37cfa.js";
2
- import "./index-f28c8390.js";
3
- import "vue";
4
- import "./mermaid.core-CAqkCmS1-857883cc.js";
5
- import "./_baseUniq-BXtq6_NW-4c8da3e7.js";
6
- import "./min-BngCxx8g-e02eeaa5.js";
7
- import "./clone-CEJtuQzg-e23a7ac2.js";
8
- export {
9
- c as PacketModule,
10
- s as createPacketServices
11
- };
@@ -1,11 +0,0 @@
1
- import { b as s, d as c } from "./mermaid-parser.core-CH9ryA1K-02f37cfa.js";
2
- import "./index-f28c8390.js";
3
- import "vue";
4
- import "./mermaid.core-CAqkCmS1-857883cc.js";
5
- import "./_baseUniq-BXtq6_NW-4c8da3e7.js";
6
- import "./min-BngCxx8g-e02eeaa5.js";
7
- import "./clone-CEJtuQzg-e23a7ac2.js";
8
- export {
9
- s as PieModule,
10
- c as createPieServices
11
- };
@@ -1,11 +0,0 @@
1
- import { R as d, g as s } from "./mermaid-parser.core-CH9ryA1K-02f37cfa.js";
2
- import "./index-f28c8390.js";
3
- import "vue";
4
- import "./mermaid.core-CAqkCmS1-857883cc.js";
5
- import "./_baseUniq-BXtq6_NW-4c8da3e7.js";
6
- import "./min-BngCxx8g-e02eeaa5.js";
7
- import "./clone-CEJtuQzg-e23a7ac2.js";
8
- export {
9
- d as RadarModule,
10
- s as createRadarServices
11
- };
@@ -1,11 +0,0 @@
1
- import { T as s, h as T } from "./mermaid-parser.core-CH9ryA1K-02f37cfa.js";
2
- import "./index-f28c8390.js";
3
- import "vue";
4
- import "./mermaid.core-CAqkCmS1-857883cc.js";
5
- import "./_baseUniq-BXtq6_NW-4c8da3e7.js";
6
- import "./min-BngCxx8g-e02eeaa5.js";
7
- import "./clone-CEJtuQzg-e23a7ac2.js";
8
- export {
9
- s as TreemapModule,
10
- T as createTreemapServices
11
- };