wangting
2024-04-29 208548501db7256ab364f904196f614c4f1a0b40
Source/ProjectWeb/src/components/dynamic-components/dynamic-button.vue
@@ -134,7 +134,7 @@
      const paramVOS=buttonitem.paramVOS;
      const DefineVO = this.componentVO.treeDefineVO || this.componentVO.tableDefineVO || this.componentVO.treeTableDefineVO || this.componentVO.formDefineVO;
      if (!paramVOS['title']) {
        paramVOS['title'] = buttonitem.name + (DefineVO.title || DefineVO.componentTitle || '');
        paramVOS['title'] = buttonitem.name + (DefineVO.title || this.componentVO.description || '');
      }
      if (!paramVOS['type']) {
@@ -146,12 +146,13 @@
        let values = paramVOS['initvalue'].split(';');
        let initValues = {}
        values.forEach((item,i) => {
          if(isShow){
          item = item.replace(':', '=');
          if (item.indexOf('${') > -1) {
            if (item.split('=')[1].indexOf('.') > -1) {
              if (this.sourceData.length < 1 || !this.sourceData.oid) {
                isShow = false;
                this.$message.error("请先选择一条来源数据");
                  this.$message.error("请先选择一条来源数据")
                return false;
              }
              let name = item.split('=')[1].split('.')[1].replace('${', '').replace('}', '');
@@ -167,8 +168,11 @@
            }
          }
          }
        })
        if(isShow){
        paramVOS['initvalue'] = initValues
        }
      }
      if(paramVOS['BSContent'] || paramVOS['BSContext']){
        paramVOS['context']=paramVOS['BSContext'] || paramVOS['BSContent']
@@ -177,6 +181,8 @@
      const that=this;
      if(isShow) {
        //paramVOS.customBtn //弹窗默认有保存按钮,customBtn为true时内容展示自定义按钮
        //paramVOS.form="editknowledgefolderall"
        doAction(buttonitem, {
          paramVOS: paramVOS,
          dataStore: this.dataStore || [],