Browse Source

统计分析,表格控制只看我的;数据权限操作模块去除

shanbinzhang 2 months ago
parent
commit
57dd7a6f1e

+ 3 - 3
src/views/chartRelevance_manage/crossVarietyAnalysis/list.vue

@@ -16,9 +16,9 @@
 				</div>
 
 				<div class="search-cont">
-					<el-checkbox v-model="isShowMe"  
+					<!-- <el-checkbox v-model="isShowMe"  
 						v-permission="permissionBtn.statisticPermission.crossVariety_onlyMine"
-						@change="() => { getTreeData();getPublicList() }">{{$t('StatisticAnalysis.ChartRelevance.only_see_mine')}}</el-checkbox>
+						@change="() => { getTreeData();getPublicList() }">{{$t('StatisticAnalysis.ChartRelevance.only_see_mine')}}</el-checkbox> -->
 					<el-select
 						v-model="search_txt"
 						v-loadMore="searchLoad"
@@ -296,7 +296,7 @@ export default {
 		return {
 			showData: false,
 			refreshLoading: false,
-			isShowMe: false,
+			isShowMe: true,
 			search_txt: '',
 			searchOptions:[],
 			isSlideLeft: false,//左侧分类收起

+ 3 - 3
src/views/chartRelevance_manage/fittingEquation/fittingEquationList.vue

@@ -17,9 +17,9 @@
 				</div>
 
 				<div class="search-cont">
-					<el-checkbox v-model="isShowMe"  
+					<!-- <el-checkbox v-model="isShowMe"  
 						v-permission="permissionBtn.statisticPermission.fittingEq_onlyMine"
-						@change="() => { getTreeData();getPublicList() }">{{$t('Chart.only_see_mine')}}</el-checkbox>
+						@change="() => { getTreeData();getPublicList() }">{{$t('Chart.only_see_mine')}}</el-checkbox> -->
 					<el-select
 						v-model="search_txt"
 						v-loadMore="searchLoad"
@@ -263,7 +263,7 @@ export default {
 		return {
 			showData: false,
 			refreshLoading: false,
-			isShowMe: false,
+			isShowMe: true,
 			search_txt: '',
 			searchOptions:[],
 			isSlideLeft: false,//左侧分类收起

+ 3 - 3
src/views/chartRelevance_manage/relevance/list.vue

@@ -18,10 +18,10 @@
           style="padding: 0 20px; display: flex; justify-content: space-between"
         >
           <span>{{$t('StatisticAnalysis.ChartRelevance.catagory')}}</span>
-          <el-checkbox v-model="isOnlyMe" @change="onlyMeHandler"
+          <!-- <el-checkbox v-model="isOnlyMe" @change="onlyMeHandler"
             v-permission="permissionBtn.statisticPermission.corrAnalysis_onlyMine"
             >{{$t('StatisticAnalysis.ChartRelevance.only_see_mine')}}</el-checkbox
-          >
+          > -->
         </div>
         <div class="search-cont">
           <el-select
@@ -396,7 +396,7 @@ export default {
       search_have_more: false,
       current_search: "",
 
-      isOnlyMe: false, //仅仅看我的
+      isOnlyMe: true, //仅仅看我的
 
       classify_tab: 0, //分类类型
     };

+ 3 - 3
src/views/chartRelevance_manage/statistic/statisticFeatureList.vue

@@ -16,9 +16,9 @@
 				</div>
 
 				<div class="search-cont">
-					<el-checkbox v-model="isShowMe"  
+					<!-- <el-checkbox v-model="isShowMe"  
 						v-permission="permissionBtn.statisticPermission.statisticFeature_onlyMine"
-						@change="() => { getTreeData();getPublicList() }">{{$t('StatisticAnalysis.ChartRelevance.only_see_mine')}}</el-checkbox>
+						@change="() => { getTreeData();getPublicList() }">{{$t('StatisticAnalysis.ChartRelevance.only_see_mine')}}</el-checkbox> -->
 					<el-select
 						v-model="search_txt"
 						v-loadMore="searchLoad"
@@ -260,7 +260,7 @@ export default {
 		return {
 			showData: false,
 			refreshLoading: false,
-			isShowMe: false,
+			isShowMe: true,
 			search_txt: '',
 			searchOptions:[],
 			isSlideLeft: false,//左侧分类收起

+ 6 - 1
src/views/datasheet_manage/sheetList.vue

@@ -19,6 +19,7 @@
           <el-button v-if="permissionBtn.checkPermissionBtn(permissionBtn.etaTablePermission.etaTable_customize_balance_sheetAdd)&&sourceMap[$route.path]===5" type="primary" @click="showAddBalanceTable=true">{{$t('OnlineExcelPage.add_balance_table_btn')}}</el-button >
 
           <el-checkbox 
+            v-if="!showOnlyMeDefault"
             v-model="isShowMe"
             style="margin-left:20px"
             @change="() => { getTreeData();getPublicList() }"
@@ -490,6 +491,10 @@ export default {
           { required: true, message: this.$t('OnlineExcelPage.cannot_be_empty_table') , trigger: "blur" },
         ],
       }
+    },
+    /* 是否默认只看我的 */
+    showOnlyMeDefault() {
+      return ['/sheetTimeList','/sheetMixedList'].includes(this.$route.path)
     }
   },
   data() {
@@ -549,7 +554,7 @@ export default {
       autoSaveType:'',//自动保存类型,有的自动保存后需要其他操作
       cancelAutoSave:false, //自动保存时延迟的
 
-      isShowMe: false,//只看我的
+      isShowMe: this.showOnlyMeDefault?true:false,//只看我的
 
       sheetRefreshing:false,//表格刷新状态
 

+ 3 - 3
src/views/intervalAnalysis/list.vue

@@ -17,7 +17,7 @@
         </div>
 
         <div class="search-cont">
-          <el-checkbox
+          <!-- <el-checkbox
             v-permission="permissionBtn.statisticPermission.rangeAnalysis_onlyMine"
             v-model="isShowMe"
             @change="
@@ -29,7 +29,7 @@
             >{{
               $t("StatisticAnalysis.ChartRelevance.only_see_mine")
             }}</el-checkbox
-          >
+          > -->
           <el-select
             v-model="search_txt"
             v-loadMore="searchLoad"
@@ -437,7 +437,7 @@ export default {
     return {
       showData: false,
       refreshLoading: false,
-      isShowMe: false,
+      isShowMe: true,
       search_txt: '',
       searchOptions: [],
       isSlideLeft: false,//左侧分类收起

+ 3 - 3
src/views/predictEdb_manage/predictEdb.vue

@@ -49,8 +49,8 @@
 				</div>
         <div style="margin:20px 0;padding:0 20px;display:flex;justify-content:space-between">
 					<span><!-- 目录 -->{{$t('Common.category')}}</span>
-					<el-checkbox v-model="isOnlyMe" v-permission="permissionBtn.predictEdbPermission.edbPreData_isOnlyMine"
-						@change="onlyMeHandler"><!-- 只看我的 -->{{$t('PredictEdbPage.only_see_mine')}}</el-checkbox>
+					<!-- <el-checkbox v-model="isOnlyMe" v-permission="permissionBtn.predictEdbPermission.edbPreData_isOnlyMine"
+						@change="onlyMeHandler">{{$t('PredictEdbPage.only_see_mine')}}</el-checkbox> -->
 				</div>
 				<div class="tree-cont">
 					<div class="target_tree">
@@ -609,7 +609,7 @@ export default {
 			computed_source: 1,//计算类型 1常规 2批量
 			isBatchComputed: false,//批量计算弹窗
 
-      isOnlyMe:false,//只看我的
+      isOnlyMe:true,//只看我的
 
 			/* 查看历史弹窗 */
 			isLookHistory: false,

+ 5 - 5
src/views/system_manage/dataOperaAuth.vue

@@ -6,7 +6,7 @@
           v-model="currAuthSet"
           @change="changeSet"
         >
-          <el-option :label="$t('SystemManage.OperateAuth.set_assets_tab')" :value="1"/>
+          <!-- <el-option :label="$t('SystemManage.OperateAuth.set_assets_tab')" :value="1"/> -->
           <el-option :label="$t('SystemManage.OperateAuth.set_data_tab')" :value="2"/>
         </el-select>
         <el-cascader
@@ -302,10 +302,10 @@ export default {
     tabs(){
       const tabs = [
         { label: '数据查看', key: 3 },
-        { label: '指标加工', key: 7 },
-        { label: '衍生指标', key: 4 },
-        { label: this.$t('SystemManage.OperateAuth.tab05'), key: 5 },
-        { label: this.$t('SystemManage.OperateAuth.tab06'), key: 6 },
+        // { label: '指标加工', key: 7 },
+        // { label: '衍生指标', key: 4 },
+        // { label: this.$t('SystemManage.OperateAuth.tab05'), key: 5 },
+        // { label: this.$t('SystemManage.OperateAuth.tab06'), key: 6 },
       ]
       return this.currAuthSet===1 ? tabs : tabs.filter(item => [3,4,5,6,7].includes(item.key))
     },