|
@@ -11,13 +11,13 @@
|
|
|
<div class="data-sheet-main" id="box">
|
|
|
<div class="main-left left" id="left" v-show="!isSlideLeft">
|
|
|
<div class="datasheet_top">
|
|
|
- <el-button v-permission="permissionBtn.statisticPermission.statisticFeature_addChart"
|
|
|
+ <el-button v-permission="permissionBtn.statisticPermission.crossVariety_addChart"
|
|
|
type="primary" @click="goAddChart">添加图表</el-button>
|
|
|
</div>
|
|
|
|
|
|
<div class="search-cont">
|
|
|
<el-checkbox v-model="isShowMe"
|
|
|
- v-permission="permissionBtn.statisticPermission.statisticFeature_onlyMine"
|
|
|
+ v-permission="permissionBtn.statisticPermission.crossVariety_onlyMine"
|
|
|
@change="() => { getTreeData();getPublicList() }">只看我的</el-checkbox>
|
|
|
<el-select
|
|
|
v-model="search_txt"
|
|
@@ -70,7 +70,7 @@
|
|
|
placeholder="请输入值"
|
|
|
class="label-input"
|
|
|
v-model="new_label"
|
|
|
- v-if="data.isEdit&&permissionBtn.isShowBtn('statisticPermission','statisticFeature_classifyOpt_edit')"
|
|
|
+ v-if="data.isEdit&&permissionBtn.isShowBtn('statisticPermission','crossVariety_classifyOpt_edit')"
|
|
|
@blur="changeValue(data)"
|
|
|
/>
|
|
|
<span
|
|
@@ -97,7 +97,7 @@
|
|
|
alt=""
|
|
|
style="width: 15px; height: 14px; margin-right: 8px"
|
|
|
@click.stop="editNode(node, data)"
|
|
|
- v-if="!data.ChartInfoId&&permissionBtn.isShowBtn('statisticPermission','statisticFeature_classifyOpt_edit')"
|
|
|
+ v-if="!data.ChartInfoId&&permissionBtn.isShowBtn('statisticPermission','crossVariety_classifyOpt_edit')"
|
|
|
/>
|
|
|
<img
|
|
|
slot="reference"
|
|
@@ -105,7 +105,7 @@
|
|
|
alt=""
|
|
|
style="width: 14px; height: 14px"
|
|
|
@click.stop="removeNode(node, data)"
|
|
|
- v-if="!data.ChartInfoId&&permissionBtn.isShowBtn('statisticPermission','statisticFeature_classifyOpt_delete')"
|
|
|
+ v-if="!data.ChartInfoId&&permissionBtn.isShowBtn('statisticPermission','crossVariety_classifyOpt_delete')"
|
|
|
/>
|
|
|
</span>
|
|
|
</span>
|
|
@@ -164,6 +164,37 @@
|
|
|
/>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
+
|
|
|
+ <el-table
|
|
|
+ :data="tableData"
|
|
|
+ ref="tableRef"
|
|
|
+ highlight-current-row
|
|
|
+ border
|
|
|
+ >
|
|
|
+ <el-table-column
|
|
|
+ v-for="item in tableColums"
|
|
|
+ :key="item.label"
|
|
|
+ :label="item.label"
|
|
|
+ :width="item.widthsty"
|
|
|
+ :min-width="item.minwidthsty"
|
|
|
+ align="center"
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{ scope.row[item.key] }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="操作" key="Copy" align="center" width="140">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span class="editsty" @click="copyCode(scope.row)">
|
|
|
+ <i class="el-icon-document-copy" /> 复制数据</span
|
|
|
+ ><br />
|
|
|
+ <span class="editsty" @click="viewTarget(scope.row)">查看数据</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <div slot="empty">
|
|
|
+ <tableNoData text="暂无指标" size="mini"/>
|
|
|
+ </div>
|
|
|
+ </el-table>
|
|
|
</div>
|
|
|
<!-- 列表 -->
|
|
|
<chartListWrap
|
|
@@ -200,7 +231,7 @@
|
|
|
<SaveChartOther
|
|
|
:show.sync="isShowSaveOther"
|
|
|
fromType="chartsetting"
|
|
|
- source="statistic_feature"
|
|
|
+ source="cross_variety"
|
|
|
:data="chartInfo"
|
|
|
@ensure="getTreeData"
|
|
|
/>
|
|
@@ -466,14 +497,19 @@ export default {
|
|
|
}).then(res => {
|
|
|
if(res.Ret !== 200) return
|
|
|
|
|
|
- const { ChartInfo,DataResp } = res.Data;
|
|
|
+ const { ChartInfo,DataResp,EdbInfoList } = res.Data;
|
|
|
+
|
|
|
this.chartInfo = ChartInfo;
|
|
|
- // if(ChartInfo.Source===9) {
|
|
|
- // this.statisticFrequencyData = DataResp;
|
|
|
- // this.setStatisticFrequency();
|
|
|
- // }else {
|
|
|
- // this.setDefaultChart([DataResp])
|
|
|
- // }
|
|
|
+ this.tableData = EdbInfoList;
|
|
|
+ this.crossVarietyChartData = DataResp;
|
|
|
+ this.chartLimit = {
|
|
|
+ min: DataResp.YMinValue,
|
|
|
+ max: DataResp.YMaxValue ,
|
|
|
+ x_min: DataResp.XMinValue,
|
|
|
+ x_max: DataResp.XMaxValue,
|
|
|
+ }
|
|
|
+
|
|
|
+ this.setCrossVarietyChart()
|
|
|
})
|
|
|
},
|
|
|
|
|
@@ -500,17 +536,15 @@ export default {
|
|
|
spinner: 'el-icon-loading',
|
|
|
background: 'rgba(255, 255, 255, 0.8)',
|
|
|
});
|
|
|
- crossVarietyInterface
|
|
|
- .refreshChart({
|
|
|
+ crossVarietyInterface.refreshChart({
|
|
|
ChartInfoId: this.chartInfo.ChartInfoId,
|
|
|
- })
|
|
|
- .then((res) => {
|
|
|
- this.refreshLoading.close();
|
|
|
- if (res.Ret === 200) {
|
|
|
- this.getDetailHandle();
|
|
|
- this.$message.success(res.Msg);
|
|
|
- }
|
|
|
- });
|
|
|
+ }).then((res) => {
|
|
|
+ this.refreshLoading.close();
|
|
|
+ if (res.Ret === 200) {
|
|
|
+ this.getDetailHandle();
|
|
|
+ this.$message.success(res.Msg);
|
|
|
+ }
|
|
|
+ });
|
|
|
},
|
|
|
|
|
|
/* 编辑图表 */
|
|
@@ -557,7 +591,7 @@ export default {
|
|
|
},500),
|
|
|
|
|
|
handleDblClick(data){
|
|
|
- if(!this.permissionBtn.isShowBtn('statisticPermission','statisticFeature_classifyOpt_edit')) return
|
|
|
+ if(!this.permissionBtn.isShowBtn('statisticPermission','crossVariety_classifyOpt_edit')) return
|
|
|
this.editNodeLabel(data)
|
|
|
}
|
|
|
},
|