|
@@ -251,31 +251,49 @@
|
|
|
<!--v-hasPermi="['process:moc:export']"-->
|
|
|
<!-->{{ $t('导出') }}</el-button>-->
|
|
|
<!--</el-col>-->
|
|
|
- <!--<el-col :span="1.5">-->
|
|
|
- <!--<el-button-->
|
|
|
- <!--type="primary"-->
|
|
|
- <!--icon="el-icon-s-data"-->
|
|
|
- <!--size="mini"-->
|
|
|
- <!--@click="handleData"-->
|
|
|
- <!-->{{ $t('数据分析') }}</el-button>-->
|
|
|
- <!--</el-col>-->
|
|
|
+ <el-col :span="1.5">
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ icon="el-icon-s-data"
|
|
|
+ size="mini"
|
|
|
+ @click="handleData"
|
|
|
+ >{{ $t('数据分析') }}</el-button>
|
|
|
+ </el-col>
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
</el-row>
|
|
|
|
|
|
<el-table v-loading="loading" :data="mocList" @selection-change="handleSelectionChange" :cell-style="tableCellStyle" :cell-class-name="tableCellClassName" :height="clientHeight" border>
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
- <el-table-column :label="$t('MOC编号')" align="center" width="120" prop="mocNo" :show-overflow-tooltip="true"/>
|
|
|
+ <el-table-column align="center" width="120" prop="mocNo" :show-overflow-tooltip="true" >
|
|
|
+ <template slot="header">
|
|
|
+ <span
|
|
|
+ @click="mocNoChart.open = true"
|
|
|
+ id="moc-no">
|
|
|
+ MOC编号
|
|
|
+ <i class="el-icon-s-data"></i>
|
|
|
+ </span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<!--<el-table-column :label="$t('装置编号')" align="center" width="120" prop="plantNumber" :show-overflow-tooltip="true"/>-->
|
|
|
<el-table-column :label="$t('公司MOC编号')" align="center" width="120" prop="companyMocNo" :show-overflow-tooltip="true"/>
|
|
|
<el-table-column :label="$t('项目号')" align="center" width="120" prop="projectNo" :show-overflow-tooltip="true"/>
|
|
|
- <el-table-column :label="$t('区域')" align="center" prop="area" :formatter="areaFormat" />
|
|
|
+ <el-table-column :label="$t('区域')" align="center" prop="area" :formatter="areaFormat">
|
|
|
+ <template slot="header">
|
|
|
+ <span
|
|
|
+ @click="areaChart.open = true"
|
|
|
+ id="area">
|
|
|
+ 区域
|
|
|
+ <i class="el-icon-s-data"></i>
|
|
|
+ </span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column :label="$t('标题')" align="center" width="320" prop="title" :show-overflow-tooltip="true"/>
|
|
|
- <el-table-column prop="mocType" label="":show-overflow-tooltip="true" :formatter="mocTypeFormat" width="120">
|
|
|
+ <el-table-column prop="mocType" align="center" :show-overflow-tooltip="true" :formatter="mocTypeFormat" width="120">
|
|
|
<template slot="header">
|
|
|
- MOC类型
|
|
|
<span
|
|
|
@click="mocTypeInfo.open = true"
|
|
|
id="moc-type">
|
|
|
+ MOC类型
|
|
|
<i class="el-icon-question"></i>
|
|
|
</span>
|
|
|
</template>
|
|
@@ -724,6 +742,20 @@
|
|
|
<el-button @click="doc.open = false">{{ $t('返 回') }}</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
+ <!-- 区域统计对话框 -->
|
|
|
+ <el-dialog v-dialogDrag :title="areaChart.title" :visible.sync="areaChart.open" width="500px" append-to-body>
|
|
|
+ <pie-demo></pie-demo>
|
|
|
+ <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>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button type="primary" @click="mocNoChart.open = false">{{ $t('确 定') }}</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
<!-- MOC类型说明对话框 -->
|
|
|
<el-dialog v-dialogDrag :title="mocTypeInfo.title" :visible.sync="mocTypeInfo.open" width="1000px" append-to-body>
|
|
|
<el-image
|
|
@@ -831,12 +863,14 @@ import TrueStateData from "./trueStateData";
|
|
|
import ChangeData from "./changeData";
|
|
|
import CategoryData from "./categoryData";
|
|
|
import RiskData from "./riskData";
|
|
|
+import barDemo from "./chartDemo/barDemo";
|
|
|
+import pieDemo from "./chartDemo/pieDemo";
|
|
|
|
|
|
import {addCommonfile, allFileList, delCommonfile, updateCommonfile} from "@/api/common/commonfile";
|
|
|
|
|
|
export default {
|
|
|
name: "PermanentMoc",
|
|
|
- components: {RiskData, CategoryData, ChangeData, TrueStateData, YearChart, Treeselect},
|
|
|
+ components: { barDemo, pieDemo, RiskData, CategoryData, ChangeData, TrueStateData, YearChart, Treeselect },
|
|
|
data() {
|
|
|
var validateDocUpdate = (rule, value, callback) => {
|
|
|
if (value == 1) {
|
|
@@ -850,6 +884,14 @@ export default {
|
|
|
}
|
|
|
};
|
|
|
return {
|
|
|
+ areaChart: {
|
|
|
+ open: false,
|
|
|
+ title: '区域数据统计'
|
|
|
+ },
|
|
|
+ mocNoChart: {
|
|
|
+ open: false,
|
|
|
+ title: 'MOC编号数据统计'
|
|
|
+ },
|
|
|
mocTypeInfo: {
|
|
|
open: false,
|
|
|
title: 'MOC类型说明'
|
|
@@ -1629,9 +1671,15 @@ export default {
|
|
|
};
|
|
|
</script>
|
|
|
<style>
|
|
|
+ #area:hover{
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
#moc-type:hover{
|
|
|
cursor: pointer;
|
|
|
}
|
|
|
+ #moc-no:hover{
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
.text {
|
|
|
font-size: 14px;
|
|
|
}
|