Karsa 1 vuosi sitten
vanhempi
commit
b0ffdbeab3

+ 1 - 1
src/views/ppt_manage/newVersion/pptEnEditor.vue

@@ -139,7 +139,7 @@
                 <div class="chart-list" v-infinite-scroll="loadReportHandle" :infinite-scroll-immediate="false" ref="chartListRef">
                     <template v-if="chartList.length">
                     <div v-for="(item, index) in chartList" :key="index" @click="chooseChart(item,'chart')" class="chart-item" :style="item.Disabled && 'cursor: not-allowed;'">
-                        <div class="chartEn-mark" style="top: 0;left:0;" @click.stop="setEnHandle(item)">
+                        <div class="chartEn-mark" style="top: 0;left:0;" @click.stop="setEnHandle(item)" v-if="item.HaveOperaAuth">
                           <span v-if="item.IsEnChart">En</span>
                           <i class="el-icon-edit" v-else style="font-size:15px"/>
                         </div>

+ 1 - 1
src/views/report_manage/reportEn/reportEditor.vue

@@ -230,7 +230,7 @@
 								:style="item.Disabled && 'cursor: not-allowed;'"
 								class="liststy"
 							>
-								<div class="chartEn-mark" style="top: 0;left:0;" @click="setEnHandle(item)">
+								<div class="chartEn-mark" style="top: 0;left:0;" @click="setEnHandle(item)" v-if="item.HaveOperaAuth">
 									<span v-if="item.IsEnChart">En</span>
 									<i class="el-icon-edit" v-else style="font-size:18px"/>
 								</div>

+ 53 - 49
src/views/sandbox_manage/sandFlowNew/components/addLInkDia.vue

@@ -78,56 +78,60 @@
         <div class="link-box-content">
           <!-- 指标 -->
           <div class="link-content-dataIndex" v-if="addLinkSearchParams.linkType==1 && databaseTableData && databaseTableData.length>0">
-            <el-table :data="databaseTableData" border style="box-shadow: rgba(155, 170, 219, 0.2) 0px 3px 6px;">
-              <el-table-column :label="$t('Table.edb_id')" align="center">
-                <template slot-scope="scope">{{ scope.row.EdbCode }}</template>
-              </el-table-column>
-              <el-table-column :label="$t('Table.edb_name')" align="center" width="200">
-                <template slot-scope="scope">{{ scope.row.EdbName }}</template>
-              </el-table-column>
-              <el-table-column :label="$t('Table.frequency')" align="center" width="50">
-                <template slot-scope="scope">{{ scope.row.Frequency }}</template>
-              </el-table-column>
-              <el-table-column :label="$t('Table.unit')" align="center">
-                <template slot-scope="scope">{{ scope.row.Unit }}</template>
-              </el-table-column>
-              <el-table-column :label="$t('Table.start_time')" align="center" width="100">
-                <template slot-scope="scope">{{ scope.row.StartDate }}</template>
-              </el-table-column>
-              <el-table-column :label="$t('Table.update_time')" align="center" width="160">
-                <template slot-scope="scope">{{ scope.row.ModifyTime }}</template>
-              </el-table-column>
-              <el-table-column :label="$t('Table.source')" align="center">
-                <template slot-scope="scope">{{ scope.row.SourceName }}</template>
-              </el-table-column>
-              <el-table-column :label="$t('Table.column_operations')" align="center" width="50">
-                <template slot-scope="scope">
-                  <span class="delete-button">{{$t('Table.delete_btn')}}</span>
-                </template>
-              </el-table-column>
-            </el-table>
-            <ul 
-              class="value-ul" 
-              ref="valueUl" 
-              @scroll="databaseScrollHandle" 
-              v-show="databaseList.length">
-              <li
-                class="value-item"
-                v-for="item in databaseList"
-                :key="item.EdbDataId"
-              >
-                <span class="value-label">
-                  <span style="position: relative;">
-                    <i class="new-tag" v-if="databaseTableData[0].LatestDate===item.DataTime"></i>
-                    {{item.DataTime}}
+            <template v-if="databaseTableData[0].HaveOperaAuth">
+              <el-table :data="databaseTableData" border style="box-shadow: rgba(155, 170, 219, 0.2) 0px 3px 6px;">
+                <el-table-column :label="$t('Table.edb_id')" align="center">
+                  <template slot-scope="scope">{{ scope.row.EdbCode }}</template>
+                </el-table-column>
+                <el-table-column :label="$t('Table.edb_name')" align="center" width="200">
+                  <template slot-scope="scope">{{ scope.row.EdbName }}</template>
+                </el-table-column>
+                <el-table-column :label="$t('Table.frequency')" align="center" width="50">
+                  <template slot-scope="scope">{{ scope.row.Frequency }}</template>
+                </el-table-column>
+                <el-table-column :label="$t('Table.unit')" align="center">
+                  <template slot-scope="scope">{{ scope.row.Unit }}</template>
+                </el-table-column>
+                <el-table-column :label="$t('Table.start_time')" align="center" width="100">
+                  <template slot-scope="scope">{{ scope.row.StartDate }}</template>
+                </el-table-column>
+                <el-table-column :label="$t('Table.update_time')" align="center" width="160">
+                  <template slot-scope="scope">{{ scope.row.ModifyTime }}</template>
+                </el-table-column>
+                <el-table-column :label="$t('Table.source')" align="center">
+                  <template slot-scope="scope">{{ scope.row.SourceName }}</template>
+                </el-table-column>
+                <el-table-column :label="$t('Table.column_operations')" align="center" width="50">
+                  <template slot-scope="scope">
+                    <span class="delete-button">{{$t('Table.delete_btn')}}</span>
+                  </template>
+                </el-table-column>
+              </el-table>
+              <ul 
+                class="value-ul" 
+                ref="valueUl" 
+                @scroll="databaseScrollHandle" 
+                v-show="databaseList.length">
+                <li
+                  class="value-item"
+                  v-for="item in databaseList"
+                  :key="item.EdbDataId"
+                >
+                  <span class="value-label">
+                    <span style="position: relative;">
+                      <i class="new-tag" v-if="databaseTableData[0].LatestDate===item.DataTime"></i>
+                      {{item.DataTime}}
+                    </span>
                   </span>
-                </span>
-                <span :class="['value-label',{'predict-act': databaseTableData[0].DataInsertConfig.Date===item.DataTime}]" style="min-width:200px;text-align:center;">
-                  <span :class="['value-style',{'predict-act': databaseTableData[0].DataInsertConfig.Date===item.DataTime}]">{{item.Value}}</span>
-                </span>
-              </li>
-              <li class="nodata value-item" v-if="!databaseList.length">{{$t('Table.prompt_slogan')}}</li>
-            </ul>
+                  <span :class="['value-label',{'predict-act': databaseTableData[0].DataInsertConfig.Date===item.DataTime}]" style="min-width:200px;text-align:center;">
+                    <span :class="['value-style',{'predict-act': databaseTableData[0].DataInsertConfig.Date===item.DataTime}]">{{item.Value}}</span>
+                  </span>
+                </li>
+                <li class="nodata value-item" v-if="!databaseList.length">{{$t('Table.prompt_slogan')}}</li>
+              </ul>
+            </template>
+
+            <noDataAuth v-if="databaseTableData[0].HaveOperaAuth===false" :text="$t('MsgPrompt.no_edb_auth')"/>
           </div>
           <div class="link-content-chartIndex" v-else-if="addLinkSearchParams.linkType==2 && this.chartInfo && this.chartInfo.ChartInfoId">
             <template v-if="chartInfo.HaveOperaAuth">