|
@@ -290,11 +290,16 @@
|
|
|
<el-table-column :label="$t('标题')" align="center" width="320" prop="title" :show-overflow-tooltip="true"/>
|
|
|
<el-table-column prop="mocType" align="center" :show-overflow-tooltip="true" :formatter="mocTypeFormat" width="120">
|
|
|
<template slot="header">
|
|
|
- <span
|
|
|
- @click="mocTypeInfo.open = true"
|
|
|
- id="moc-type">
|
|
|
- MOC类型
|
|
|
- <i class="el-icon-question"></i>
|
|
|
+ <span id="moc-type">
|
|
|
+ <span @click="mocTypeChart.open = true">
|
|
|
+ MOC类型
|
|
|
+ </span>
|
|
|
+ <span @click="mocTypeChart.open = true">
|
|
|
+ <i class="el-icon-s-data"></i>
|
|
|
+ </span>
|
|
|
+ <span @click="mocTypeInfo.open = true">
|
|
|
+ <i class="el-icon-question"></i>
|
|
|
+ </span>
|
|
|
</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -742,16 +747,23 @@
|
|
|
<el-button @click="doc.open = false">{{ $t('返 回') }}</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
- <!-- 区域统计对话框 -->
|
|
|
+ <!-- 永久MOC类型统计对话框 -->
|
|
|
+ <el-dialog v-dialogDrag :title="mocTypeChart.title" :visible.sync="mocTypeChart.open" width="500px" append-to-body>
|
|
|
+ <moc-type-chart :timeliness="1"></moc-type-chart>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button type="primary" @click="areaChart.open = false">{{ $t('确 定') }}</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
+ <!-- 永久MOC区域统计对话框 -->
|
|
|
<el-dialog v-dialogDrag :title="areaChart.title" :visible.sync="areaChart.open" width="500px" append-to-body>
|
|
|
- <pie-demo></pie-demo>
|
|
|
+ <area-chart :timeliness="1"></area-chart>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<el-button type="primary" @click="areaChart.open = false">{{ $t('确 定') }}</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
<!-- MOC编号统计对话框 -->
|
|
|
<el-dialog v-dialogDrag :title="mocNoChart.title" :visible.sync="mocNoChart.open" width="500px" append-to-body>
|
|
|
- <bar-demo></bar-demo>
|
|
|
+ <moc-no-chart></moc-no-chart>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<el-button type="primary" @click="mocNoChart.open = false">{{ $t('确 定') }}</el-button>
|
|
|
</div>
|
|
@@ -865,12 +877,15 @@ import CategoryData from "./categoryData";
|
|
|
import RiskData from "./riskData";
|
|
|
import barDemo from "./chartDemo/barDemo";
|
|
|
import pieDemo from "./chartDemo/pieDemo";
|
|
|
+import mocNoChart from "../chart/mocNoChart";
|
|
|
+import areaChart from "../chart/areaChart";
|
|
|
+import mocTypeChart from "../chart/mocTypeChart";
|
|
|
|
|
|
import {addCommonfile, allFileList, delCommonfile, updateCommonfile} from "@/api/common/commonfile";
|
|
|
|
|
|
export default {
|
|
|
name: "PermanentMoc",
|
|
|
- components: { barDemo, pieDemo, RiskData, CategoryData, ChangeData, TrueStateData, YearChart, Treeselect },
|
|
|
+ components: { mocTypeChart, areaChart, mocNoChart, barDemo, pieDemo, RiskData, CategoryData, ChangeData, TrueStateData, YearChart, Treeselect },
|
|
|
data() {
|
|
|
var validateDocUpdate = (rule, value, callback) => {
|
|
|
if (value == 1) {
|
|
@@ -884,9 +899,13 @@ export default {
|
|
|
}
|
|
|
};
|
|
|
return {
|
|
|
+ mocTypeChart: {
|
|
|
+ open: false,
|
|
|
+ title: '永久MOC类型数据统计'
|
|
|
+ },
|
|
|
areaChart: {
|
|
|
open: false,
|
|
|
- title: '区域数据统计'
|
|
|
+ title: '永久MOC区域数据统计'
|
|
|
},
|
|
|
mocNoChart: {
|
|
|
open: false,
|