baidu / amis

前端低代码框架,通过 JSON 配置就能生成各种页面。
https://baidu.github.io/amis/
Apache License 2.0
17.33k stars 2.51k forks source link

联动和异步请求导致的页面加载选项异常 #5249

Closed AkkaXdXd closed 2 years ago

AkkaXdXd commented 2 years ago

描述问题:

代码在编辑器那里运行正常,但是使用sdk之后,编辑弹框里的condition-builder选项偶尔会出现空的选项

截图或视频:

这是使用sdk的页面的请求顺序,其中会多一个queryNormalDimConditions请求 image image image image 这是编辑器里的请求顺序 image

如何复现(请务必完整填写下面内容):

  1. 你是如何使用 amis 的? sdk

  2. amis 版本是什么?请先在最新 beta 版本测试问题是否存在 2.1.0 试过beta版本问题依旧

  3. 粘贴有问题的完整 amis schema 代码:

    {"type":"page","body":[{"type":"crud","api":"post:/pltapi/alarm/monitorStrategy/queryForm","syncLocation":false,"filter":{"title":"","body":[{"type":"hidden","name":"tabType","id":"u:2f8c4a9e256d","value":"summary"},{"type":"tree-select","name":"menuCode","label":"监控菜单","size":"md","clearable":true,"id":"u:a9507a02a59b","cache":360,"initiallyOpen":false,"labelField":"menuName","searchable":true,"source":{"data":{"parentMenuId":"jscydd_ydd_bb","systemCode":"app_jsc"},"method":"post","responseData":{"options":"${menuList}"},"url":"/pltapi/alarm/jscMenu/queryMenuTree"},"valueField":"menuId"},{"type":"input-text","name":"tableName","label":"监控报表","size":"md","clearable":true,"id":"u:a4c06e2d7e0b"},{"type":"input-text","name":"columnName","label":"监控指标","size":"md","clearable":true,"id":"u:ffb49a998bc6"},{"type":"select","name":"ruleStatus","label":"监控状态","size":"md","id":"u:f916914c2c46","clearable":true,"options":[{"label":"全部","value":""},{"label":"启用","value":"1"},{"label":"停用","value":"2"}]},{"type":"input-text","name":"bizInvolvedPeople","label":"业务干系人","id":"u:ba6722eef4cd","placeholder":"请输入工号","size":"md"},{"type":"tree-select","name":"alarmObject","label":"告警通知人","id":"u:3f5ea66ba302","initiallyOpen":false,"joinValues":true,"labelField":"name","multiple":false,"searchable":true,"source":{"method":"post","responseData":{"options":"${orgUserResultList}"},"url":"/pltapi/alarm/orgUser/queryOrgUserTree"},"valueField":"code"},{"id":"u:bc912e73631f","label":"告警更新人","name":"modifier","placeholder":"请输入工号","size":"md","type":"input-text"}],"actions":[{"type":"button","label":"查询","actionType":"submit","level":"light","className":"query-button","id":"queryButton"},{"type":"reset","label":"重置","actionType":"dialog","id":"u:476449dff1cb"},{"level":"primary","type":"button","label":"新增策略","actionType":"dialog","dialog":{"title":"","body":[{"$ref":"formDef","debug":false}],"size":"full","type":"dialog"},"reload":"monitorStrategyCrud","id":"u:7a4a9ac1e774"},{"type":"button","level":"primary","label":"业务指标维度配置","actionType":"dialog","dialog":{"title":"","body":[{"$ref":"bizIndexDimformDef"}],"size":"xl","type":"dialog","actions":[]},"id":"u:7b9e5a53eb23"}],"id":"u:d8422bc4af01"},"headerToolbar":[{"type":"columns-toggler","align":"right","draggable":true,"icon":"fas fa-cog","overlay":true,"footerBtnSize":"sm"},{"buttons":[{"actionType":"reload","id":"u:fb66ba964d2a","label":"监控汇总","target":"monitorStrategyCrud?tabType=summary","type":"button","disabledOn":"this.tabType=='summary'"},{"actionType":"reload","id":"u:fe49948c94d4","label":"监控策略明细","target":"monitorStrategyCrud?tabType=detail","type":"button","disabledOn":"this.tabType=='detail'"}],"type":"button-group","id":"u:249a0de3bc09"}],"pageField":"pageNum","perPageField":"pageSize","combineNum":4,"name":"monitorStrategyCrud","id":"u:96634eef134c"}],"definitions":{"formDef":{"type":"form","api":{"url":"/pltapi/alarm/monitorStrategy/saveNewStrategy","method":"post"},"wrapWithPanel":false,"body":[{"type":"fieldSet","title":"基本信息","body":[{"type":"group","body":[{"type":"input-text","name":"strategyName","required":true,"size":"sm","mode":"inline","label":"策略名称"},{"type":"select","name":"strategyType","required":true,"size":"sm","value":"1","mode":"inline","label":"策略类型","source":{"method":"post","url":"/pltapi/alarm/dict/queryDictList","cache":600000,"responseData":{"options":"${resultList|pick:label~dictValue,value~dictKey}"},"data":{"dictParentCode":"APP_BD_AMIS_SJZLJKPT_DICT_CLLX"}},"onEvent":{"change":{"actions":[{"actionType":"reset","componentId":"menuInfo"},{"actionType":"reset","componentId":"tableInfo"},{"actionType":"reset","componentId":"dateColumnInfo"},{"actionType":"reset","componentId":"dateType"},{"actionType":"reset","componentId":"indexCheckRuleList"}]}}}]}]},{"type":"fieldSet","title":"选择监控菜单","body":[{"type":"group","body":[{"type":"select","name":"systemCode","placeholder":"请选择应用","required":true,"options":[{"label":"驾驶舱app","value":"app_jsc"},{"label":"驾驶舱pc","value":"bigdata_jscpc"}],"size":"sm","mode":"inline","value":"app_jsc"},{"type":"tree-select","name":"menuInfo","required":true,"placeholder":"请选择菜单","label":"菜单","size":"md","source":{"method":"get","url":"/pltapi/alarm/allMenu/queryMenuTree?systemCode=${systemCode}","responseData":{"options":"${menuList}"}},"labelField":"menuName","valueField":"menuId","initiallyOpen":false,"searchable":true,"clearable":true,"cache":360,"visibleOn":"this.systemCode!=\"other\"","multiple":false,"joinValues":false,"mode":"inline","onEvent":{"change":{"actions":[{"actionType":"reset","componentId":"tableInfo"},{"actionType":"reset","componentId":"dateType"},{"actionType":"reset","componentId":"indexCheckRuleList"}]}},"id":"menuInfo"}]}]},{"type":"fieldSet","title":"监控条件","body":[{"type":"group","body":[{"type":"select","name":"tableInfo","id":"tableInfo","required":true,"size":"md","mode":"inline","searchable":true,"placeholder":"请选择表","joinValues":false,"source":{"method":"post","url":"/pltapi/alarm/datasource/listTableWithDimConfig","responseData":{"options":"${resultList}"},"trackExpression":"${menuInfo.menuId}","sendOn":"menuInfo !== null","data":{"menuCode":"${menuInfo[menuId]}","strategyType":"${strategyType}"}}},{"type":"static-text","mode":"inline","value":"====","visibleOn":"this.strategyType != 3"},{"type":"select","mode":"inline","name":"dateType","id":"dateType","required":true,"size":"sm","placeholder":"请选择日期类型","source":{"method":"post","url":"/pltapi/alarm/menuTableDimConfig/querySupportDateDim","data":{"databaseCode":"${tableInfo[databaseCode]}","tableSchema":"${tableInfo[tableSchema]}","tableName":"${tableInfo[value]}"},"trackExpression":"${tableInfo.tableName}","sendOn":"this.tableInfo && tableInfo != null","responseData":{"options":"${resultList}"}},"visibleOn":"this.strategyType != 3"}]},{"type":"group","body":[{"type":"combo","required":true,"id":"indexCheckRuleList","name":"indexCheckRuleList","items":[{"name":"ruleStatus","type":"switch","label":"","trueValue":1,"falseValue":2,"required":true,"mode":"inline","value":1},{"name":"indexCnName","type":"input-text","mode":"inline","required":true,"placeholder":"请输入指标名称","id":"indexCnName","clearable":true},{"type":"select","name":"columnInfo","required":true,"placeholder":"请选择字段","searchable":false,"mode":"inline","size":"lg","source":{"method":"post","url":"/pltapi/alarm/datasource/listColumn","cache":600000,"responseData":{"options":"${resultList}"},"trackExpression":"${tableInfo.tableName}","data":{"dbType":"${tableInfo[dbType]}","databaseCode":"${tableInfo[databaseCode]}","tableName":"${tableInfo[value]}"},"sendOn":"tableInfo"},"clearable":true,"joinValues":false,"menuTpl":"<span class='label label-${klass}'>${columnName} ${comment}</span>"},{"name":"orgDimConditions","placeholder":"请选择监控机构","mode":"inline","required":true,"size":"sm","type":"select","source":{"method":"post","url":"/pltapi/alarm/menuTableDimConfig/queryOrg","responseData":{"options":"${resultList}"},"data":{"databaseCode":"${tableInfo[databaseCode]}","tableSchema":"${tableInfo[tableSchema]}","tableName":"${tableInfo[value]}"},"trackExpression":"${tableInfo.tableName}","sendOn":"this.tableInfo && tableInfo != null"},"joinValues":false,"autoComplete":{"method":"post","url":"/pltapi/alarm/menuTableDimConfig/queryOrgSearch","data":{"databaseCode":"${tableInfo[databaseCode]}","tableName":"${tableInfo.tableName}","term":"${term}","tableSchema":"${tableInfo[tableSchema]}"},"responseData":{"options":"${resultList}"}},"multiple":true,"clearable":true,"value":[]},{"name":"conditions","type":"condition-builder","initFetch":false,"source":{"method":"post","url":"/pltapi/alarm/menuTableDimConfig/queryNormalDimConditions","trackExpression":"${tableInfo.tableName}","responseData":{"fields":"${resultList}"},"data":{"databaseCode":"${tableInfo[databaseCode]}","tableSchema":"${tableInfo[tableSchema]}","tableName":"${tableInfo[value]}"}},"id":"conditions","label":"","title":"普通维度条件","builderMode":"simple","description":"请选择维度和条件"},{"name":"checkType","mode":"inline","size":"sm","type":"select","placeholder":"请选择检查类型","source":{"method":"post","url":"/pltapi/alarm/dict/queryDictList","cache":600000,"responseData":{"options":"${resultList|pick:label~dictValue,value~dictKey}"},"data":{"dictParentCode":"APP_BD_AMIS_SJZLJKPT_DICT_YWZBJCLX"}},"required":true},{"name":"relationOperator","mode":"inline","size":"xs","type":"select","requiredOn":"this.checkType != 'distinct'","source":{"method":"post","url":"/pltapi/alarm/monitorStrategy/getOperator?checkType=${checkType}","cache":600000},"id":"relationOperator"},{"name":"operatorVal","mode":"inline","size":"sm","type":"input-text","placeholder":"请输入值","requiredOn":"this.checkType != 'distinct'"}],"mode":"inline","multiple":true,"resetValue":[{"ruleStatus":1,"orgDimConditions":[]}],"value":[{"ruleStatus":1,"orgDimConditions":[]}],"hash":"unique","canAccessSuperData":true,"strictMode":false,"addButtonClassName":"float-right","itemClassName":"rounded-md border-solid border p-4"}]}],"visibleOn":"this.strategyType == 1 || this.strategyType == 3"},{"type":"group","body":[{"type":"button","columnRatio":1,"label":"测试","level":"primary","actionType":"ajax","feedback":{"title":"测试指标配置","size":"lg","body":{"type":"tpl","tpl":"<% if (data.items && data.items.length) { %> <% data.items.forEach(function(item) { %> <span class='label label-default'> 指标名称: <%= item.indexCnName %> </span> <% if (item.tableHeaders && item.tableHeaders.length) { %> <div class= \"cxd-Table \"> <div class= \"cxd-Table-contentWrap \"> <div class= \"cxd-Table-fixedLeft \"></div> <div class= \"cxd-Table-fixedRight \"></div> <div class= \"cxd-Table-content \" style= \"position: relative; \"> <table class= \"cxd-Table-table \"> <thead> <tr> <% item.tableHeaders.forEach(function(header) { %> <th> <div class= \"cxd-TableCell--title \"> <span class= \"cxd-TplField \"> <%= header %> </span> </div> </th> <% }) %> </tr> <thead> <% item.tableBodyRowList.forEach(function(row) { %> <tbody> <tr class= \"cxd-Table-tr--odd cxd-Table-tr--1th \"> <% row.forEach(function(cell) {%> <td> <span class= \"cxd-PlainField \"> <%= cell %> </span> </td> <% }) %> </tr> </tbody> <% }) %> </table> </div> </div> </div> <% } %> <% }) %> <% } %>"}},"api":"post:/pltapi/alarm/monitorStrategy/test"}],"visibleOn":"this.strategyType != 2","className":"justify-end","label":"","mode":"","subFormMode":"","horizontal":{"leftFixed":"","left":5,"right":6},"subFormHorizontal":null,"clearValueOnHidden":false,"visible":true},{"type":"fieldSet","title":"监控条件","body":[{"type":"group","body":[{"type":"select","name":"tableInfo","required":true,"size":"md","mode":"inline","searchable":true,"placeholder":"请选择表","joinValues":false,"source":{"method":"post","url":"/pltapi/alarm/datasource/listTable","responseData":{"options":"${resultList}"},"trackExpression":"${menuInfo.menuId}","data":{"menuCode":"${menuInfoInfo[menuId]}","devTable":"1"}},"id":"tableInfo"},{"type":"select","id":"dateColumnInfo","name":"dateColumnInfo","required":true,"mode":"inline","size":"sm","placeholder":"请选择日期字段","source":{"method":"post","url":"/pltapi/alarm/datasource/getDateField","responseData":{"options":"${resultList}"},"trackExpression":"${tableInfo.tableName}","data":{"dbType":"${tableInfo[dbType]}","databaseCode":"${tableInfo[databaseCode]}","tableName":"${tableInfo[value]}"}},"joinValues":false},{"type":"static-text","value":"====","mode":"inline"},{"name":"dateType","id":"dateType","type":"select","required":true,"mode":"inline","placeholder":"请选择日期类型","source":{"method":"post","url":"/pltapi/alarm/dict/queryDictList","cache":600000,"responseData":{"options":"${resultList|pick:label~dictValue,value~dictKey}"},"data":{"dictParentCode":"APP_BD_AMIS_SJZLJKPT_DICT_RQLX"}},"size":"sm"}]},{"type":"group","body":[{"type":"combo","required":true,"id":"indexCheckRuleList","name":"indexCheckRuleList","items":[{"name":"ruleStatus","type":"switch","mode":"inline","label":"","required":true,"trueValue":1,"falseValue":2,"value":1},{"name":"checkType","type":"select","size":"sm","mode":"inline","source":{"method":"post","url":"/pltapi/alarm/dict/queryDictList","cache":600000,"responseData":{"options":"${resultList|pick:label~dictValue,value~dictKey}"},"data":{"dictParentCode":"APP_BD_AMIS_SJZLJKPT_DICT_SJZBJCLX"}},"required":true,"placeholder":"请选择检查类型"},{"type":"select","name":"condition","size":"sm","mode":"inline","required":true,"source":{"method":"post","url":"/pltapi/alarm/datasource/getMatchDim","cache":600000,"responseData":{"options":"${resultList}"},"trackExpression":"${tableInfo.tableName}","data":{"dbType":"${tableInfo[dbType]}","databaseCode":"${tableInfo[databaseCode]}","tableName":"${tableInfo[value]}"}},"placeholder":"请选择维度","searchable":true,"labelField":"dimTypeName","valueField":"dimTypeCode","disabledOn":"this.checkType == 'data_prod_time'","requiredOn":"this.checkType != 'data_prod_time'"},{"name":"relationOperator","mode":"inline","type":"select","size":"xs","requiredOn":"this.checkType != 'distinct'","source":{"method":"post","url":"/pltapi/alarm/monitorStrategy/getOperator?checkType=${checkType}","cache":600000},"id":"relationOperator"},{"name":"operatorVal","mode":"inline","type":"input-text","required":true,"size":"md","placeholder":"请输入","requiredOn":"this.checkType != 'distinct'"}],"mode":"inline","multiple":true,"resetValue":[{"ruleStatus":1}],"value":[{"ruleStatus":1}],"hash":"unique","canAccessSuperData":true,"strictMode":false,"itemClassName":"rounded-md border-solid border p-4","addButtonClassName":"float-right"}]}],"visibleOn":"this.strategyType == 2"},{"type":"fieldSet","title":"确认监控规则","body":[{"type":"tree-select","name":"alarmObject","label":"通知对象","required":true,"searchable":true,"source":{"method":"post","url":"/pltapi/alarm/orgUser/queryOrgUserTree","responseData":{"options":"${orgUserResultList}"}},"joinValues":false,"labelField":"name","valueField":"code","initiallyOpen":false,"multiple":true,"extractValue":true},{"type":"picker","required":false,"name":"bizInvolvedPeople","label":"业务干系人","source":{"url":"/pltapi/alarm/orgUser/queryCompanyUser","method":"post","responseData":{"options":"${orgUserResultList}"}},"joinValues":false,"labelField":"name","valueField":"code","multiple":true,"size":"md","pickerSchema":{"mode":"table","name":"thelist","draggable":true,"headerToolbar":{"wrapWithPanel":false,"type":"form","className":"text-right","target":"thelist","mode":"inline","body":[{"type":"input-text","name":"keyword","addOn":{"type":"submit","label":"搜索","level":"primary","icon":"fa fa-search pull-left"}}]},"columns":[{"label":"工号","name":"code"},{"label":"姓名","name":"name"}],"size":"md"},"extractValue":true},{"type":"select","label":"事故星级","name":"problemStarLvl","required":true,"source":{"method":"post","data":{"dictParentCode":"APP_BD_AMIS_SJZLJKPT_DICT_SGXJ"},"url":"/pltapi/alarm/dict/queryDictList","responseData":{"options":"${resultList|pick:label~dictValue,value~dictKey}"},"cache":600000},"clearable":false},{"type":"checkboxes","label":"通知方式","name":"alarmSendMethod","required":true,"source":{"method":"post","data":{"dictParentCode":"APP_BD_AMIS_SJZLJKPT_DICT_TSFS"},"url":"/pltapi/alarm/dict/queryDictList","responseData":{"options":"${resultList|pick:label~dictValue,value~dictKey}"},"cache":600000},"joinValues":false,"extractValue":true},{"name":"dingTalkNotifyType","type":"radios","label":"","selectFirst":true,"options":[{"label":"个人","value":1},{"label":"组","value":2}]}]}],"mode":"horizontal","name":"newMonitorStrategyForm","data":{"menuInfo":null,"tableInfo":null}},"bizIndexDimformDef":{"type":"wizard","steps":[{"title":"选择菜单","body":[{"type":"fieldSet","title":"选择菜单","body":[{"type":"group","body":[{"type":"select","name":"systemCode","placeholder":"请选择应用","required":true,"options":[{"label":"驾驶舱app","value":"app_jsc"},{"label":"驾驶舱pc","value":"bigdata_jscpc"}],"size":"sm","mode":"inline","value":"app_jsc"},{"type":"tree-select","name":"menuInfo","required":true,"placeholder":"请选择菜单","label":"菜单","size":"md","source":{"method":"get","url":"/pltapi/alarm/allMenu/queryMenuTree?systemCode=${systemCode}","responseData":{"options":"${menuList}"}},"labelField":"menuName","valueField":"menuId","initiallyOpen":false,"clearable":true,"cache":360,"visibleOn":"this.systemCode!=\"other\"","multiple":false,"joinValues":false,"mode":"inline","onEvent":{"change":{"actions":[{"actionType":"reset","componentId":"tableInfo"},{"actionType":"reset","componentId":"dateColumnInfo"},{"actionType":"reset","componentId":"tableIndexConfigList"}]}},"id":"menuInfo","searchable":true}]}]}],"debug":false},{"title":"配置维度","debug":false,"body":[{"type":"fieldSet","title":"配置维度","body":[{"type":"combo","multiple":true,"itemClassName":"rounded-md border-solid border p-4","multiLine":true,"resetValue":[{"tableOrgDimDefList":[{}],"supportDateDimList":["D"]}],"value":[{}],"canAccessSuperData":true,"strictMode":false,"items":[{"type":"group","body":[{"type":"select","name":"tableInfo","id":"tableInfo","required":true,"size":"md","mode":"inline","searchable":true,"label":"数据表","placeholder":"请选择结果表","joinValues":false,"source":{"method":"post","url":"/pltapi/alarm/datasource/listTable","responseData":{"options":"${resultList}"},"data":{"menuCode":"${menuInfo[menuId]}"}}},{"type":"select","name":"dateColumnInfo","id":"dateColumnInfo","required":true,"mode":"inline","size":"sm","placeholder":"请选择日期字段","source":{"method":"post","url":"/pltapi/alarm/datasource/getDateField","responseData":{"options":"${resultList}"},"trackExpression":"${tableInfo.tableName}","data":{"dbType":"${tableInfo[dbType]}","databaseCode":"${tableInfo[databaseCode]}","tableName":"${tableInfo[value]}"}},"joinValues":false,"label":"日期字段"}]},{"type":"checkboxes","name":"supportDateDimList","value":["D"],"label":"日期维度","required":true,"joinValues":false,"options":[{"label":"日","value":"D"},{"label":"月","value":"M"},{"label":"年","value":"Y"},{"label":"实时","value":"R"}],"mode":"inline","extractValue":true,"id":"supportDateDimList"},{"type":"group","body":[{"type":"combo","label":"实时结果表配置","name":"realTimeConfig","items":[{"type":"input-time","name":"sliceInitGenTime","placeholder":"首个批次时间","size":"sm","mode":"inline","format":"HH:mm"},{"type":"input-number","name":"sliceIntervalVal","displayMode":"enhance","placeholder":"间隔值","min":1,"keyboard":true,"max":60,"size":"sm","mode":"inline","value":1},{"type":"select","name":"sliceIntervalUnit","size":"sm","mode":"inline","value":1,"options":[{"label":"分钟","value":1},{"label":"小时","value":2}]}],"mode":"inline","required":true}],"visibleOn":"this.supportDateDimList && this.supportDateDimList.length == 1 && this.supportDateDimList.includes('R')"},{"type":"combo","draggable":true,"name":"tableOrgDimDefList","multiple":true,"resetValue":[{"orgTypeMapping":{"HEAD":"REGION_MANAGE"}}],"value":[{"orgTypeMapping":{"HEAD":"REGION_MANAGE"}}],"hash":"unique","canAccessSuperData":true,"strictMode":false,"items":[{"type":"select","name":"orgDimType","label":"","mode":"inline","options":[{"label":"全国","value":"HEAD"},{"label":"省区","value":"REGION_MANAGE"},{"label":"中心","value":"TRANSFER_CENTER"},{"label":"分公司","value":"BRANCH"},{"label":"分部","value":"SUB_DEPARTMENT"}],"required":"true"},{"name":"orgCodeColInfo","type":"select","mode":"inline","source":{"method":"post","url":"/pltapi/alarm/datasource/listColumn","cache":600000,"responseData":{"options":"${resultList}"},"sendOn":"tableInfo","trackExpression":"${tableInfo.tableName}","data":{"dbType":"${tableInfo[dbType]}","databaseCode":"${tableInfo[databaseCode]}","tableName":"${tableInfo[value]}"}},"placeholder":"请选择字段","joinValues":false,"size":"lg","menuTpl":"<span class='label label-${klass}'>${columnName} ${comment}</span>","clearable":true,"required":false,"searchable":false},{"type":"static","mode":"inline","value":"="},{"type":"input-text","disabled":true,"mode":"inline","value":"组织编码"},{"name":"orgTypeColInfo","type":"select","mode":"inline","clearable":true,"joinValues":false,"menuTpl":"<span class='label label-${klass}'>${columnName} ${comment}</span>","placeholder":"请选择字段","searchable":false,"size":"lg","source":{"cache":600000,"method":"post","responseData":{"options":"${resultList}"},"url":"/pltapi/alarm/datasource/listColumn","sendOn":"tableInfo","data":{"dbType":"${tableInfo[dbType]}","databaseCode":"${tableInfo[databaseCode]}","tableName":"${tableInfo[value]}"},"trackExpression":"${tableInfo.tableName}"}},{"mode":"inline","type":"static","value":"="},{"disabled":true,"mode":"inline","type":"input-text","value":"组织类型"},{"falseValue":"2","mode":"inline","name":"useOrgTypeMapping","option":"自定义机构类型映射","trueValue":"1","type":"checkbox","value":2},{"keyPlaceholder":"标准机构类型","label":"","mode":"inline","name":"orgTypeMapping","type":"input-kv","valuePlaceholder":"实际机构类型","visibleOn":"useOrgTypeMapping == 1","value":{"HEAD":"REGION_MANAGE"}}],"label":"组织维度","itemClassName":"rounded-md border-solid border p-4","addButtonClassName":"float-right","multiLine":true,"required":true},{"addButtonClassName":"float-right","canAccessSuperData":true,"draggable":true,"hash":"unique","itemClassName":"rounded-md border-solid border p-4","items":[{"label":"维度名称","mode":"inline","name":"dimCnName","type":"input-text","id":"dimCnName"},{"joinValues":false,"menuTpl":"<span class='label label-${klass}'>${columnName} ${comment}</span>","mode":"inline","name":"dimColInfo","placeholder":"请选择字段","size":"lg","source":{"cache":600000,"method":"post","responseData":{"options":"${resultList}"},"url":"/pltapi/alarm/datasource/listColumn","trackExpression":"${tableInfo.tableName}","data":{"dbType":"${tableInfo[dbType]}","databaseCode":"${tableInfo[databaseCode]}","tableName":"${tableInfo[value]}"},"sendOn":"tableInfo"},"type":"select","label":"字段","visibleOn":"this.useDerivedDim == 2"},{"mode":"inline","type":"input-text","label":"维度定义sql","name":"dimDefSql","size":"sm","visibleOn":"this.useDerivedDim == 1"},{"type":"input-kv","keyPlaceholder":"值","label":"值配置","name":"dimValueDef","valuePlaceholder":"值描述"},{"mode":"inline","name":"useDerivedDim","type":"checkbox","falseValue":"2","label":"使用sql定义派生维度","option":"是","optionType":"button","trueValue":"1","value":2}],"label":"普通维度","multiple":true,"name":"tableDimDefList","resetValue":[],"strictMode":false,"type":"combo","value":[]}],"tabsMode":true,"tabsStyle":"radio","maxLength":10,"tabsLabelTpl":"${tableInfo.tableName|default:'请选择表'}","name":"tableDimConfigList"}]}],"api":"/pltapi/alarm/menuTableDimConfig/saveUpdate","initApi":{"url":"/pltapi/alarm/menuTableDimConfig/queryByMenu","method":"post","data":{"menuCode":"${menuInfo.menuId}"}}}],"api":"/pltapi/alarm/menuTableIndexConfig/save"}},"id":"u:c9bf438048ec"}
  4. 操作步骤 点击编辑页面,重复多次,condition-builder组件出现空选项

github-actions[bot] commented 2 years ago

👍 Thanks for this! 🏷 I have applied any labels matching special text in your issue.

Please review the labels and make any necessary changes.

pq-dong commented 1 year ago

大佬这个问题最后是怎么解决的呢?

AkkaXdXd commented 1 year ago

大佬这个问题最后是怎么解决的呢?

让那个异常的请求报错