Bladeren bron

去除列表及关联数据组件无用逻辑

cfort 1 jaar geleden
bovenliggende
commit
384419e998

+ 0 - 5
src/business/platform/data/templaterender/link-data/index.vue

@@ -336,11 +336,6 @@ export default {
             const opt = this.treeDataOptions.find(opt => {
             const opt = this.treeDataOptions.find(opt => {
                 return opt.value === item[this.pkKey]
                 return opt.value === item[this.pkKey]
             })
             })
-            // 添加个年份的判断
-            if (key === 'label' && opt && opt[key] && opt[key].slice(5, 10) === '01-01') {
-                if (opt[key].slice(5, 10) == '00:00:00') return (opt[key] = opt[key].slice(0, 4))
-                else if (this.props['label'] === 'nian_fen_') return (opt[key] = opt[key].slice(0, 4))
-            }
             return opt ? opt[key] : ''
             return opt ? opt[key] : ''
         },
         },
         getTreeData (id) {
         getTreeData (id) {

+ 2 - 2
src/business/platform/data/templaterender/templates/list.vue

@@ -729,8 +729,8 @@ export default {
                         tableEl.setSelectionRadio(row)
                         tableEl.setSelectionRadio(row)
                     }
                     }
                     // fixbug: 替换所有选中列表中的数据为最新数据,避免脚本返回的选中数据不更新
                     // fixbug: 替换所有选中列表中的数据为最新数据,避免脚本返回的选中数据不更新
-                    const index = this.selectionAll.findIndex(item => this.getPkValue(item) === pkValue)
-                    this.selectionAll[index] = row
+                    // const index = this.selectionAll.findIndex(item => this.getPkValue(item) === pkValue)
+                    // this.selectionAll[index] = row
                 }
                 }
             })
             })
         },
         },