wangting
2024-12-12 e36426b5999f9db7bd7d3c62ae90c15c8b67d3b4
修改自定义url取值
已修改5个文件
27 ■■■■■ 文件已修改
Source/plt-web/plt-web-ui/src/components/PLT-basic-component/basicForm.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-form.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-table-form.vue 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-table.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-tree.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/components/PLT-basic-component/basicForm.vue
@@ -199,6 +199,7 @@
            : this.span,
        value: item.value || item.defaultValue,
        display: item.display || !item.hidden,
        suffixIcon: item.suffixIcon || item.prefix,
        labelSuffix: item.labelSuffix || item.suffix,
        tip: item.tip || item.tooltips,
        dictCode: item.dictCode || item.comboxKey,
Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-form.vue
@@ -182,8 +182,8 @@
      if (Object.keys(this.sourceData).length > 0 && this.isShow && this.actionType != "add") {
        this.loading = true;
        let url=''
        if(this.componentVO.bsCustQueryCLsOrUrl && this.componentVO.bsCustQueryCLsOrUrl.indexOf('/')!=-1){
          url=this.componentVO.bsCustQueryCLsOrUrl
        if(this.componentVO.bsDataModel && this.componentVO.bsDataModel.indexOf('/')!=-1){
          url=this.componentVO.bsDataModel
        }
        dataForm(this.params,  this.paramVOS.getdataurl || url, this.paramVOS.getdatamethod).then(res => {
          this.form = res.data.obj.data;
Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-table-form.vue
@@ -95,19 +95,15 @@
        const typeValue = item.type === 'text' ? 'input' : item.type === 'combox' ? 'select' : item.type;
        return {
          ...item,
          label: item.text,
          prop: item.field,
          prop: item.prop || item.field,
          type: typeValue,
          value: item.defaultValue,
          dicData: item.type === 'combox' ? item.dicData : item.dicUrl,
          readonly: item.readOnly,
          disabled: item.disabled,
          labelSuffix: item.suffix,
          suffixIcon: item.prefix,
          placeholder:item.placeholder,
          clearable:item.clearable,
          suffixIcon: item.suffixIcon || item.prefix,
          labelSuffix: item.labelSuffix || item.suffix,
          tip: item.tooltips,
          keyAttr: item.keyAttr,
          rules: [{
            required: item.required,
            message: `请输入${item.text}!`,
Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-table.vue
@@ -357,8 +357,8 @@
        this.tableList = [];
        this.loading = true;
        let url='';
        if(this.componentVO.bsCustQueryCLsOrUrl && this.componentVO.bsCustQueryCLsOrUrl.indexOf('/')!=-1){
          url=this.componentVO.bsCustQueryCLsOrUrl;
        if(this.componentVO.bsDataModel && this.componentVO.bsDataModel.indexOf('/')!=-1){
          url=this.componentVO.bsDataModel;
        }
        getList(page.currentPage, page.pageSize, Object.assign({},this.params,this.query,params),url).then(res => {
          let data = [];
Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-tree.vue
@@ -250,9 +250,9 @@
        || (node.data.attributes && node.data.attributes.btmname)
        || '';
      const params = this.params;
      let url='';debugger;
      if(this.componentVO.bsCustQueryCLsOrUrl && this.componentVO.bsCustQueryCLsOrUrl.indexOf('/')!=-1){
        url=this.componentVO.bsCustQueryCLsOrUrl;
      let url='';
      if(this.componentVO.bsDataModel && this.componentVO.bsDataModel.indexOf('/')!=-1){
        url=this.componentVO.bsDataModel;
      }
      if (node.level === 0) {
        params.queryRoot = true;