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