Commit e517fa06272a7adcfaa1c3c1cd5374d0c3e52237

Authored by ww
1 parent 66cfc268

perf: perf interaction and dynamic effect enabled state set to false after save

... ... @@ -6615,6 +6615,13 @@ DataFormatPanel.prototype.addDataFont = function (container) {
6615 6615 }
6616 6616
6617 6617 /**
  6618 + * @description
  6619 + */
  6620 + const recordData = {
  6621 + enabled: false
  6622 + }
  6623 +
  6624 + /**
6618 6625 * @description 回显数据
6619 6626 */
6620 6627 function echoFormData(data) {
... ... @@ -6641,6 +6648,7 @@ DataFormatPanel.prototype.addDataFont = function (container) {
6641 6648 contentId: currentPageId.id,
6642 6649 id: graphId,
6643 6650 orgId: 'b4dd6e2b-6e0f-413c-bf5a-70133bd571e8',
  6651 + ...recordData,
6644 6652 content: {
6645 6653 type: formVal[enumConst.ACTION],
6646 6654 value: formVal[enumGetValue[formVal[enumConst.ACTION]]],
... ... @@ -6749,6 +6757,7 @@ DataFormatPanel.prototype.addDataFont = function (container) {
6749 6757 })
6750 6758 generatorEventListen()
6751 6759 const info = getLayerBindInfo('event', type)
  6760 + Object.assign(recordData, { enabled: info.enabled })
6752 6761 form.render(null, enumActionEl.FORM_FILTER)
6753 6762 if (info) echoFormData(info)
6754 6763 },
... ... @@ -6809,6 +6818,10 @@ DataFormatPanel.prototype.addDataFont = function (container) {
6809 6818 */
6810 6819 let addRowNumber = 0
6811 6820
  6821 + const recordData = {
  6822 + enabled: false
  6823 + }
  6824 +
6812 6825 function generatorDisplayOptions() {
6813 6826 const options = [
6814 6827 { name: '显示', id: enumDisplayType.SHOW },
... ... @@ -6967,6 +6980,7 @@ DataFormatPanel.prototype.addDataFont = function (container) {
6967 6980 id: graphId,
6968 6981 condition: tableData,
6969 6982 type: event.data.type,
  6983 + ...recordData
6970 6984 }
6971 6985 await to(autoSaveGraphInfo())
6972 6986 const [err, res] = await to(ConfigurationNodeApi.updateNodeAct(formModel))
... ... @@ -7032,7 +7046,8 @@ DataFormatPanel.prototype.addDataFont = function (container) {
7032 7046 $(`#${enumActionEl.DATA_SOURCE_COMP_EL}`).append(component)
7033 7047 form.render()
7034 7048 const info = getLayerBindInfo('act', type)
7035   - const { condition = [] } = info
  7049 + const { condition = [], enabled } = info
  7050 + Object.assign(recordData, { enabled })
7036 7051 if (info && condition.length) {
7037 7052 echoDataSource(info)
7038 7053 echoData(info)
... ...