Browse Source

判断source逻辑修改

Karsa 3 years ago
parent
commit
9075a9dbb5
1 changed files with 6 additions and 6 deletions
  1. 6 6
      src/views/chartShow/index.vue

+ 6 - 6
src/views/chartShow/index.vue

@@ -72,16 +72,16 @@ export default defineComponent({
 
     /* 处理图表来源 只限第三方 */
     const dealSourceHandle = (): void => {
-      const thirdArr = [1,2,3,10,11,15,16,17,18,19,20,21];
+      // const thirdArr = [1,2,3,10,11,15,16,17,18,19,20,21];
 
       // 取出第三方来源 
-      const arr = state.dataList.map(item => ({
-        key: item.Source,
-        name: item.SourceName
-      })).filter(item => thirdArr.includes(item.key));
+      const arr = state.dataList.filter(item => item.EdbType === 1 && item.Source!== 9).map(item => ({
+          key: item.Source,
+          name: item.SourceName,
+        })
+      );
 
       let res_arr = arr.length ? _.uniqBy(arr,'key') : [];
-      // console.log(res_arr)
 
       let str = '';
       res_arr.forEach((item: any) => {