|
@@ -1,16 +1,5 @@
|
|
-<!DOCTYPE html>
|
|
|
|
-<html>
|
|
|
|
-<head>
|
|
|
|
- <meta charset="utf-8">
|
|
|
|
- <title>试验类型统计</title>
|
|
|
|
- <link href="#(path)/static/js/element-ui.css" rel="stylesheet"/>
|
|
|
|
- <style>
|
|
|
|
- body {background-color: #f1f1f4;}
|
|
|
|
- .bar{height:570px;margin-top: 50px;}
|
|
|
|
- .el-table thead{color: #515151!important;font-weight:bold;}
|
|
|
|
- [v-cloak] {display: none;}
|
|
|
|
- </style>
|
|
|
|
-</head>
|
|
|
|
|
|
+#set(title="试验类型统计")
|
|
|
|
+#@header()
|
|
<body>
|
|
<body>
|
|
<div id="app" v-cloak>
|
|
<div id="app" v-cloak>
|
|
<el-form :inline="true" label-width="auto">
|
|
<el-form :inline="true" label-width="auto">
|
|
@@ -38,16 +27,18 @@
|
|
<el-form-item>
|
|
<el-form-item>
|
|
<el-button type="primary" icon="el-icon-search" @click="search()">搜索</el-button>
|
|
<el-button type="primary" icon="el-icon-search" @click="search()">搜索</el-button>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <div style="float:right;">耗时: {{time}}</div>
|
|
|
|
|
|
+ <div style="float:right;">耗时: {{param.time}}</div>
|
|
</el-form>
|
|
</el-form>
|
|
<div id="echart" class="bar"></div>
|
|
<div id="echart" class="bar"></div>
|
|
- <el-dialog title="试验类型统计" width="80%" :visible.sync="dialogVisible" append-to-body>
|
|
|
|
|
|
+ <el-dialog :title="param.name" width="80%" :visible.sync="dialogVisible" top="2%" append-to-body>
|
|
<el-table :data="tableData" style="width: 100%;">
|
|
<el-table :data="tableData" style="width: 100%;">
|
|
<el-table-column prop="ITEM_TITLE" label="名称"></el-table-column>
|
|
<el-table-column prop="ITEM_TITLE" label="名称"></el-table-column>
|
|
<el-table-column prop="ITEM_EXPERIMENT_TYPE" align="center" label="类型"></el-table-column>
|
|
<el-table-column prop="ITEM_EXPERIMENT_TYPE" align="center" label="类型"></el-table-column>
|
|
- <el-table-column label="操作" width="250">
|
|
|
|
|
|
+ <el-table-column label="操作" align="center">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <el-button size="mini" type="primary">支付</el-button>
|
|
|
|
|
|
+ <a target="_blank"
|
|
|
|
+ :href="'http://192.168.0.251/obpm/portal/good/html/form.html?appId=__gAPYBW4YxB3UePM3lqO&docid='+scope.row.ID+'&formId=__0FLGNncOS1lz0T9jsFn&parentId=&isRelate=undefined&opentarget=detail&_=1667359158434'"
|
|
|
|
+ @click="detail()">查看</a>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
@@ -56,7 +47,7 @@
|
|
</body>
|
|
</body>
|
|
<script src="#(path)/static/js/jquery.min.js"></script>
|
|
<script src="#(path)/static/js/jquery.min.js"></script>
|
|
<script src="#(path)/static/js/layer/layer.js"></script>
|
|
<script src="#(path)/static/js/layer/layer.js"></script>
|
|
-<script src="#(path)/static/js/vue.min.js"></script>
|
|
|
|
|
|
+<script src="#(path)/static/js/vue.js"></script>
|
|
<script src="#(path)/static/js/common.js"></script>
|
|
<script src="#(path)/static/js/common.js"></script>
|
|
<script src="#(path)/static/js/echarts.min.js"></script>
|
|
<script src="#(path)/static/js/echarts.min.js"></script>
|
|
<script src="#(path)/static/js/element-ui.js"></script>
|
|
<script src="#(path)/static/js/element-ui.js"></script>
|
|
@@ -65,15 +56,14 @@
|
|
let vm = new Vue({
|
|
let vm = new Vue({
|
|
el: "#app",
|
|
el: "#app",
|
|
data: {
|
|
data: {
|
|
- time:'',
|
|
|
|
- dialogVisible:false,
|
|
|
|
- tableData:[],
|
|
|
|
|
|
+ dialogVisible: false,
|
|
|
|
+ tableData: [],
|
|
param: {
|
|
param: {
|
|
DOMAINID: '#(DOMAINID)',
|
|
DOMAINID: '#(DOMAINID)',
|
|
ID: '#(ID)',
|
|
ID: '#(ID)',
|
|
- value:['#(value)'],
|
|
|
|
- begin:'#(begin)',
|
|
|
|
- end:'#(end)',
|
|
|
|
|
|
+ value: ['#(value)'],
|
|
|
|
+ begin: '#(begin)',
|
|
|
|
+ end: '#(end)',
|
|
created: ['#(begin)', '#(end)']
|
|
created: ['#(begin)', '#(end)']
|
|
},
|
|
},
|
|
props: {
|
|
props: {
|
|
@@ -87,11 +77,11 @@
|
|
this.getData();
|
|
this.getData();
|
|
myChart = echarts.init(document.getElementById('echart'));
|
|
myChart = echarts.init(document.getElementById('echart'));
|
|
myChart.on('click', function (params) {
|
|
myChart.on('click', function (params) {
|
|
- vm.dialogVisible=true;
|
|
|
|
- vm.param.type=params.name;
|
|
|
|
|
|
+ vm.dialogVisible = true;
|
|
|
|
+ vm.param.name = params.name;
|
|
sendAjax("#(path)/report/type_list", vm.param, res => {
|
|
sendAjax("#(path)/report/type_list", vm.param, res => {
|
|
cancelLoding();
|
|
cancelLoding();
|
|
- vm.tableData=res.data;
|
|
|
|
|
|
+ vm.tableData = res.data;
|
|
})
|
|
})
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@@ -107,9 +97,9 @@
|
|
getData() {
|
|
getData() {
|
|
sendAjax("#(path)/report/type", this.param, res => {
|
|
sendAjax("#(path)/report/type", this.param, res => {
|
|
cancelLoding();
|
|
cancelLoding();
|
|
- vm.tableData=res.data;
|
|
|
|
|
|
+ vm.tableData = res.data;
|
|
vm.initEcharts(res.data);
|
|
vm.initEcharts(res.data);
|
|
- vm.time=res.time;
|
|
|
|
|
|
+ vm.param.time = res.time;
|
|
})
|
|
})
|
|
},
|
|
},
|
|
initEcharts(data) {
|
|
initEcharts(data) {
|
|
@@ -118,20 +108,20 @@
|
|
data.forEach(item => {
|
|
data.forEach(item => {
|
|
legend.push(item.ITEM_EXPERIMENT_TYPE);
|
|
legend.push(item.ITEM_EXPERIMENT_TYPE);
|
|
series.push(item.ITEM_INVALUE);
|
|
series.push(item.ITEM_INVALUE);
|
|
- });
|
|
|
|
- let option = {
|
|
|
|
- title: {
|
|
|
|
- text: '试验类型统计',
|
|
|
|
|
|
+ });
|
|
|
|
+ let option = {
|
|
|
|
+ title: {
|
|
|
|
+ text: '试验类型统计',
|
|
|
|
+ },
|
|
|
|
+ tooltip: {
|
|
|
|
+ trigger: 'axis',
|
|
|
|
+ axisPointer: {
|
|
|
|
+ type: 'shadow'
|
|
|
|
+ }
|
|
},
|
|
},
|
|
- tooltip: {
|
|
|
|
- trigger: 'axis',
|
|
|
|
- axisPointer: {
|
|
|
|
- type: 'shadow'
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
xAxis: {
|
|
xAxis: {
|
|
type: 'category',
|
|
type: 'category',
|
|
- data:legend
|
|
|
|
|
|
+ data: legend
|
|
},
|
|
},
|
|
yAxis: {
|
|
yAxis: {
|
|
name: '分钟',
|
|
name: '分钟',
|
|
@@ -139,8 +129,19 @@
|
|
},
|
|
},
|
|
series: [
|
|
series: [
|
|
{
|
|
{
|
|
- data:series,
|
|
|
|
- type: 'bar'
|
|
|
|
|
|
+ data: series,
|
|
|
|
+ type: 'bar',
|
|
|
|
+ itemStyle: {
|
|
|
|
+ normal: {
|
|
|
|
+ label: {
|
|
|
|
+ show: true,
|
|
|
|
+ position: 'top',
|
|
|
|
+ textStyle: {
|
|
|
|
+ fontSize: 16
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
]
|
|
]
|
|
};
|
|
};
|