Browse Source

图表,及审核修改

master_tdsql
xzt 1 year ago
parent
commit
fc6a18dd1e
  1. 19
      src/api/yg/aqrw.js
  2. 16
      src/api/yg/szrw.js
  3. 12
      src/views/safetyManage/declarationManage/sluice/declare/components/dataCharts.vue
  4. 10
      src/views/safetyManage/declarationManage/sluice/declare/components/listPage/options/electromechanicalEquipment.vue
  5. 4
      src/views/safetyManage/declarationManage/sluice/declare/components/listPage/options/index.vue
  6. 12
      src/views/safetyManage/declarationManage/sluice/examine/components/dataCharts.vue
  7. 6
      src/views/safetyManage/declarationManage/sluice/examine/components/listPage/index.vue
  8. 10
      src/views/safetyManage/declarationManage/sluice/examine/components/listPage/options/electromechanicalEquipment.vue
  9. 12
      src/views/safetyManage/responsiblePersonManage/sluice/dataCharts.vue
  10. 12
      src/views/safetyManage/safeProduction/sluice/dataCharts.vue
  11. 4
      src/views/safetyManage/safeProduction/sluice/index.vue
  12. 45
      src/views/safetyManage/safetyAppraisal/safetyAppraisalStatistics.vue
  13. 177
      src/views/safetyManage/safetyAppraisal/sluice/components/statisticsOne.vue
  14. 190
      src/views/safetyManage/safetyAppraisal/sluice/components/statisticsThree.vue
  15. 185
      src/views/safetyManage/safetyAppraisal/sluice/components/statisticsTwo.vue
  16. 118
      src/views/safetyManage/safetyAppraisal/sluice/list.vue
  17. 149
      src/views/safetyManage/safetyAppraisal/sluice/statistics.vue

19
src/api/yg/aqrw.js

@ -1,6 +1,23 @@
import request from '@/utils/request'
// 查询水闸安全鉴定任务信息列表
// 查询水闸安全鉴定 统计 信息列表(一、二)
export function getStatistics(taskId) {
return request({
url: '/aqrw/getList/'+taskId,
method: 'get',
})
}
// 查询水闸安全鉴定 统计 信息列表(第三个)
export function getStatisticsLevel(taskId) {
return request({
url: '/aqrw/getLevel/'+taskId,
method: 'get',
})
}
// 查询水闸安全鉴定 任务 信息列表
export function listAqrw(query) {
return request({
url: '/aqrw/list',

16
src/api/yg/szrw.js

@ -35,14 +35,14 @@ export function listSyxjl(query) {
// })
// }
// // 修改水闸鉴定任务关联
// export function updateSzrw(data) {
// return request({
// url: '/sz/szrw',
// method: 'put',
// data: data
// })
// }
// 修改水闸鉴定任务关联
export function updateSzrw(data) {
return request({
url: '/sz/szrw',
method: 'put',
data: data
})
}
// // 删除水闸鉴定任务关联
// export function delSzrw(id) {

12
src/views/safetyManage/declarationManage/sluice/declare/components/dataCharts.vue

@ -107,10 +107,22 @@ export default {
},
xAxis: {
type: "category",
axisLine: {
show: false,
},
axisTick: {
alignWithLabel: true,
},
data: Object.keys(this.barChartData),
},
yAxis: {
type: "value",
axisLine: {
show: false,
},
axisTick: {
show: false,
},
splitLine: {
//线
show: true, //

10
src/views/safetyManage/declarationManage/sluice/declare/components/listPage/options/electromechanicalEquipment.vue

@ -137,7 +137,7 @@ export default {
pageSize: 10,
ids: null,
data: {
sluiceId: null,
wagaId: null,
openingClosingEquipment: null,
hoistsNumber: null,
machineForce: null,
@ -216,7 +216,7 @@ export default {
/** 查询机电设备列表 */
getList() {
this.loading = true;
this.queryParams.data.sluiceId = this.$route.query.baseDataId;
this.queryParams.data.wagaId = this.$route.query.baseDataId;
listJdsb(this.queryParams).then((response) => {
if (response.records[0]) {
this.form = response.records[0];
@ -242,7 +242,7 @@ export default {
reset() {
this.form = {
id: null,
sluiceId: null,
wagaId: null,
openingClosingEquipment: null,
hoistsNumber: null,
machineForce: null,
@ -271,7 +271,7 @@ export default {
pageSize: 10,
data: {
id: null,
sluiceId: null,
wagaId: null,
openingClosingEquipment: null,
hoistsNumber: null,
machineForce: null,
@ -345,7 +345,7 @@ export default {
}
});
} else {
this.form.sluiceId = this.$route.query.baseDataId;
this.form.wagaId = this.$route.query.baseDataId;
addJdsb(this.form).then((response) => {
if (response.code === 200) {
this.msgSuccess("新增成功");

4
src/views/safetyManage/declarationManage/sluice/declare/components/listPage/options/index.vue

@ -13,7 +13,7 @@
<div class="pageTop">
<el-page-header @back="goBack" :content="routeList[1].routeName">
</el-page-header>
<el-popconfirm
<!-- <el-popconfirm
icon="el-icon-info"
icon-color="green"
:title="
@ -24,7 +24,7 @@
@confirm="upSignIn"
>
<el-button slot="reference" type="primary">提交登记</el-button>
</el-popconfirm>
</el-popconfirm> -->
</div>
<div class="noPass" v-if="this.form.status == '5'">
<div class="noPassTitle">审核核实不通过意见</div>

12
src/views/safetyManage/declarationManage/sluice/examine/components/dataCharts.vue

@ -107,10 +107,22 @@ export default {
},
xAxis: {
type: "category",
axisLine: {
show: false,
},
axisTick: {
alignWithLabel: true,
},
data: Object.keys(this.barChartData),
},
yAxis: {
type: "value",
axisLine: {
show: false,
},
axisTick: {
show: false,
},
splitLine: {
//线
show: true, //

6
src/views/safetyManage/declarationManage/sluice/examine/components/listPage/index.vue

@ -514,10 +514,10 @@
<el-popconfirm
icon="el-icon-info"
icon-color="green"
title="确定通过审核吗,请核实对好数据"
title="确定注销吗,请核实对好数据"
@confirm="zxForm"
>
<el-button slot="reference" type="primary">同意注销</el-button>
<el-button slot="reference" type="danger">同意注销</el-button>
</el-popconfirm>
<!-- 注销审核不通过 -->
<el-popover
@ -541,7 +541,7 @@
</el-button>
</div>
<el-button slot="reference" type="danger"> 不同意注销 </el-button>
<el-button slot="reference" type="primary"> 不同意注销 </el-button>
</el-popover>
</div>
</el-dialog>

10
src/views/safetyManage/declarationManage/sluice/examine/components/listPage/options/electromechanicalEquipment.vue

@ -106,7 +106,7 @@ export default {
pageSize: 10,
ids: null,
data: {
sluiceId: null,
wagaId: null,
openingClosingEquipment: null,
hoistsNumber: null,
machineForce: null,
@ -185,7 +185,7 @@ export default {
/** 查询机电设备列表 */
getList() {
this.loading = true;
this.queryParams.data.sluiceId = this.$route.query.baseDataId;
this.queryParams.data.wagaId = this.$route.query.baseDataId;
listJdsb(this.queryParams).then((response) => {
if (response.records[0]) {
this.form = response.records[0];
@ -211,7 +211,7 @@ export default {
reset() {
this.form = {
id: null,
sluiceId: null,
wagaId: null,
openingClosingEquipment: null,
hoistsNumber: null,
machineForce: null,
@ -240,7 +240,7 @@ export default {
pageSize: 10,
data: {
id: null,
sluiceId: null,
wagaId: null,
openingClosingEquipment: null,
hoistsNumber: null,
machineForce: null,
@ -314,7 +314,7 @@ export default {
}
});
} else {
this.form.sluiceId = this.$route.query.baseDataId;
this.form.wagaId = this.$route.query.baseDataId;
addJdsb(this.form).then((response) => {
if (response.code === 200) {
this.msgSuccess("新增成功");

12
src/views/safetyManage/responsiblePersonManage/sluice/dataCharts.vue

@ -104,10 +104,22 @@ export default {
},
xAxis: {
type: "category",
axisLine: {
show: false,
},
axisTick: {
alignWithLabel: true,
},
data: Object.keys(this.barChartData),
},
yAxis: {
type: "value",
axisLine: {
show: false,
},
axisTick: {
show: false,
},
splitLine: {
//线
show: true, //

12
src/views/safetyManage/safeProduction/sluice/dataCharts.vue

@ -107,10 +107,22 @@ export default {
},
xAxis: {
type: "category",
axisLine: {
show: false,
},
axisTick: {
alignWithLabel: true,
},
data: Object.keys(this.barChartData),
},
yAxis: {
type: "value",
axisLine: {
show: false,
},
axisTick: {
show: false,
},
splitLine: {
//线
show: true, //

4
src/views/safetyManage/safeProduction/sluice/index.vue

@ -45,7 +45,7 @@
size="mini"
@click="handleAdd"
v-hasPermi="['yhxx:yhxx:add']"
>新增</el-button
>新增隐患</el-button
>
</el-col>
<el-col :span="1.5">
@ -180,7 +180,7 @@
@click="handleResolve(scope.row)"
v-hasPermi="['yhxx:yhxx:resolve']"
>
{{ scope.row.status == "0" ? "解决" : "已解决" }}
{{ scope.row.status == "0" ? "解决隐患" : "已解决" }}
</el-button>
<el-button
size="mini"

45
src/views/safetyManage/safetyAppraisal/safetyAppraisalStatistics.vue

@ -0,0 +1,45 @@
<template>
<div class="app-container">
<!-- 面包屑 -->
<el-breadcrumb separator="/" style="margin-bottom: 20px">
<el-breadcrumb-item
v-for="(item, index) in routeList"
:key="item + index"
:to="{ path: item.path }"
>
{{ item.routeName }}
</el-breadcrumb-item>
</el-breadcrumb>
<reservoirResponsible v-if="selectTab == 0" />
<sluiceResponsible v-if="selectTab == 1" />
<dykeResponsible v-if="selectTab == 2" />
</div>
</template>
<script>
import sluiceResponsible from "./sluice/statistics.vue";
import dykeResponsible from "./dyke/index.vue";
import reservoirResponsible from "./reservoir/index.vue";
export default {
components: {
sluiceResponsible,
dykeResponsible,
reservoirResponsible,
},
computed: {
selectTab() {
return this.$store.state.topTab.selectTab;
},
},
data() {
return {
//
routeList: [
{
path: "/safetyManage/safetyAppraisal/safetyAppraisalTask",
routeName: "安全鉴定统计",
},
],
};
},
};
</script>

177
src/views/safetyManage/safetyAppraisal/sluice/components/statisticsOne.vue

@ -0,0 +1,177 @@
<template>
<div>
<div class="content">
<div ref="barEle" style="width: 100%; height: 100%"></div>
</div>
<el-table v-loading="loading" :data="statisticsList">
<el-table-column
label="行政划区"
align="center"
prop="adcdName"
min-width="120"
/>
<el-table-column
label="水闸任务总数"
align="center"
prop="total"
min-width="120"
/>
<el-table-column
label="待填报"
align="center"
prop="zeroNum"
min-width="120"
/>
<el-table-column
label="待审核"
align="center"
prop="oneNum"
min-width="120"
/>
<el-table-column
label="审核不通过"
align="center"
prop="twoNum"
min-width="120"
/>
<el-table-column
label="已完成"
align="center"
prop="threeNum"
min-width="120"
/>
<el-table-column
label="完成率"
align="center"
prop="rate"
min-width="120"
/>
</el-table>
</div>
</template>
<script>
import { getStatistics, listAqrw } from "@/api/yg/aqrw";
import * as echarts from "echarts";
export default {
props: ["taskId"],
data() {
return {
loading: false,
statisticsList: [],
barChartData: {
name: [],
value: [],
},
};
},
created() {
this.getList();
},
watch: {
taskId: function (n, o) {
this.getList();
},
},
methods: {
getList() {
this.loading = true;
getStatistics(this.taskId).then((response) => {
// console.log(11, response);
this.statisticsList = response.data;
this.barChartData.name = response.data?.map((res) => res.adcdName);
this.barChartData.value = response.data?.map((res) => res.rate);
this.loading = false;
this.barInit();
});
},
barInit() {
let chartDom = this.$refs.barEle;
let myChart = echarts.init(chartDom);
let option = {
title: {
// text: "World Population",
},
color: ["#38A0FF", "#4CCA73", "#FBD437"],
tooltip: {
trigger: "axis",
axisPointer: {
type: "shadow",
},
},
// legend: {
// orient: "horizontal",
// bottom: "2%",
// icon: "circle",
// },
grid: {
left: "3%",
right: "4%",
top: "10%",
bottom: "10%",
containLabel: true,
},
xAxis: {
type: "category",
axisLine: {
show: false,
},
axisTick: {
alignWithLabel: true,
},
data: this.barChartData.name,
},
yAxis: {
type: "value",
axisLine: {
show: false,
},
axisTick: {
show: false,
},
splitLine: {
//线
show: true, //
lineStyle: {
//线
// color: "#0735a2", //线
// width: 1, //线
type: "dashed", //线
},
},
minInterval: 1, //1
max: function (value) {
return value.max + Math.ceil(0.2 * value.max);
},
// boundaryGap: [0, 1],
},
series: [
{
type: "bar",
data: this.barChartData.value,
barMaxWidth: "10%",
},
],
};
option && myChart.setOption(option);
window.addEventListener("resize", function () {
myChart.resize();
});
},
},
};
</script>
<style lang="scss" scoped>
.content {
height: 250px;
margin-top: 20px;
// border: 1px solid #000;
background: #fff;
// box-shadow: 2px 4px 6px 2px rgba(0, 0, 0, 0.2);
margin-bottom: 10px;
display: flex;
}
</style>

190
src/views/safetyManage/safetyAppraisal/sluice/components/statisticsThree.vue

@ -0,0 +1,190 @@
<template>
<div>
<div class="content">
<div ref="barEle" style="width: 100%; height: 100%"></div>
</div>
<el-table v-loading="loading" :data="statisticsList">
<el-table-column
label="行政划区"
align="center"
prop="adcdName"
min-width="120"
/>
<el-table-column
label="水闸任务总数"
align="center"
prop="total"
min-width="120"
/>
<el-table-column
label="已完成"
align="center"
prop="threeNum"
min-width="120"
/>
<el-table-column
label="一级水闸"
align="center"
prop="one"
min-width="120"
/>
<el-table-column
label="二级水闸"
align="center"
prop="two"
min-width="120"
/>
<el-table-column
label="三级水闸"
align="center"
prop="three"
min-width="120"
/>
</el-table>
</div>
</template>
<script>
import { getStatisticsLevel, listAqrw } from "@/api/yg/aqrw";
import * as echarts from "echarts";
export default {
props: ["taskId"],
data() {
return {
loading: false,
statisticsList: [],
barChartData: {
name: [],
value1: [],
value2: [],
value3: [],
},
};
},
created() {
this.getList();
},
watch: {
taskId: function (n, o) {
this.getList();
},
},
methods: {
getList() {
this.loading = true;
getStatisticsLevel(this.taskId).then((response) => {
console.log(11, response);
this.statisticsList = response.data;
this.barChartData.name = response.data?.map((res) => res.adcdName);
this.barChartData.value1 = response.data?.map((res) => res.one);
this.barChartData.value2 = response.data?.map((res) => res.two);
this.barChartData.value3 = response.data?.map((res) => res.three);
this.loading = false;
this.barInit();
});
},
barInit() {
let chartDom = this.$refs.barEle;
let myChart = echarts.init(chartDom);
let option = {
title: {
// text: "World Population",
},
color: ["#38A0FF", "#4CCA73", "#FBD437"],
tooltip: {
trigger: "axis",
axisPointer: {
type: "shadow",
},
},
legend: {
orient: "horizontal",
bottom: "2%",
itemWidth: 10,
itemHeight: 10,
icon: "rect",
},
grid: {
left: "3%",
right: "4%",
top: "10%",
bottom: "15%",
containLabel: true,
},
xAxis: {
type: "category",
axisLine: {
show: false,
},
axisTick: {
alignWithLabel: true,
},
data: this.barChartData.name,
},
yAxis: {
type: "value",
axisLine: {
show: false,
},
axisTick: {
show: false,
},
splitLine: {
//线
show: true, //
lineStyle: {
//线
// color: "#0735a2", //线
// width: 1, //线
type: "dashed", //线
},
},
minInterval: 1, //1
max: function (value) {
return value.max + Math.ceil(0.2 * value.max);
},
// boundaryGap: [0, 1],
},
series: [
{
name: "一类水闸",
type: "bar",
data: this.barChartData.value1,
barMaxWidth: "10%",
},
{
name: "二类水闸",
type: "bar",
data: this.barChartData.value2,
barMaxWidth: "10%",
},
{
name: "三类水闸",
type: "bar",
data: this.barChartData.value3,
barMaxWidth: "10%",
},
],
};
option && myChart.setOption(option);
window.addEventListener("resize", function () {
myChart.resize();
});
},
},
};
</script>
<style lang="scss" scoped>
.content {
height: 250px;
margin-top: 20px;
// border: 1px solid #000;
background: #fff;
// box-shadow: 2px 4px 6px 2px rgba(0, 0, 0, 0.2);
margin-bottom: 10px;
display: flex;
}
</style>

185
src/views/safetyManage/safetyAppraisal/sluice/components/statisticsTwo.vue

@ -0,0 +1,185 @@
<template>
<div>
<div class="content">
<div ref="barEle" style="width: 100%; height: 100%"></div>
</div>
<el-table v-loading="loading" :data="statisticsList">
<el-table-column
label="行政划区"
align="center"
prop="adcdName"
min-width="120"
/>
<el-table-column
label="水闸任务总数"
align="center"
prop="total"
min-width="120"
/>
<el-table-column
label="待填报"
align="center"
prop="zeroNum"
min-width="120"
/>
<el-table-column
label="待审核"
align="center"
prop="oneNum"
min-width="120"
/>
<el-table-column
label="已完成"
align="center"
prop="threeNum"
min-width="120"
/>
</el-table>
</div>
</template>
<script>
import { getStatistics, listAqrw } from "@/api/yg/aqrw";
import * as echarts from "echarts";
export default {
props: ["taskId"],
data() {
return {
loading: false,
statisticsList: [],
barChartData: {
name: [],
value1: [],
value2: [],
value3: [],
},
};
},
created() {
this.getList();
},
watch: {
taskId: function (n, o) {
this.getList();
},
},
methods: {
getList() {
this.loading = true;
getStatistics(this.taskId).then((response) => {
// console.log(11, response);
this.statisticsList = response.data;
this.barChartData.name = response.data?.map((res) => res.adcdName);
this.barChartData.value1 = response.data?.map((res) => res.zeroNum);
this.barChartData.value2 = response.data?.map((res) => res.oneNum);
this.barChartData.value3 = response.data?.map((res) => res.threeNum);
this.loading = false;
this.barInit();
});
},
barInit() {
let chartDom = this.$refs.barEle;
let myChart = echarts.init(chartDom);
let option = {
title: {
// text: "World Population",
},
color: ["#38A0FF", "#4CCA73", "#FBD437"],
tooltip: {
trigger: "axis",
axisPointer: {
type: "shadow",
},
},
legend: {
orient: "horizontal",
bottom: "2%",
itemWidth: 10,
itemHeight: 10,
icon: "rect",
},
grid: {
left: "3%",
right: "4%",
top: "10%",
bottom: "15%",
containLabel: true,
},
xAxis: {
type: "category",
axisLine: {
show: false,
},
axisTick: {
alignWithLabel: true,
},
data: this.barChartData.name,
},
yAxis: {
type: "value",
axisLine: {
show: false,
},
axisTick: {
show: false,
},
splitLine: {
//线
show: true, //
lineStyle: {
//线
// color: "#0735a2", //线
// width: 1, //线
type: "dashed", //线
},
},
minInterval: 1, //1
max: function (value) {
return value.max + Math.ceil(0.2 * value.max);
},
// boundaryGap: [0, 1],
},
series: [
{
name: "待填报",
type: "bar",
data: this.barChartData.value1,
barMaxWidth: "10%",
},
{
name: "待审核",
type: "bar",
data: this.barChartData.value2,
barMaxWidth: "10%",
},
{
name: "已完成",
type: "bar",
data: this.barChartData.value3,
barMaxWidth: "10%",
},
],
};
option && myChart.setOption(option);
window.addEventListener("resize", function () {
myChart.resize();
});
},
},
};
</script>
<style lang="scss" scoped>
.content {
height: 250px;
margin-top: 20px;
// border: 1px solid #000;
background: #fff;
// box-shadow: 2px 4px 6px 2px rgba(0, 0, 0, 0.2);
margin-bottom: 10px;
display: flex;
}
</style>

118
src/views/safetyManage/safetyAppraisal/sluice/list.vue

@ -124,6 +124,7 @@
label="任务状态"
align="center"
prop="status"
:formatter="taskStatusFormat"
min-width="120"
/>
<el-table-column
@ -161,8 +162,15 @@
icon="el-icon-edit"
@click="fillOut(scope.row)"
v-hasPermi="['sz:szrw:fillOut']"
>填报</el-button
>
{{
scope.row.status == "0"
? "填报"
: scope.row.status == "1"
? "审核中"
: "修改填报"
}}
</el-button>
<el-button
size="mini"
type="text"
@ -200,6 +208,10 @@
:close-on-click-modal="false"
@close="close"
>
<div class="noPass" v-if="this.form.status == '2'">
<div class="noPassTitle">审核不通过意见</div>
<div class="noPassContent">{{ this.form.remark }}</div>
</div>
<el-tabs v-model="activeName" style="margin-bottom: 20px" v-if="open">
<el-tab-pane label="安全鉴定信息" name="listBaseInfo" :lazy="true">
<listBaseInfo
@ -251,15 +263,49 @@
</el-tabs>
<div slot="footer" class="dialog-footer">
<el-button type="primary"> </el-button>
<el-button>不通过</el-button>
<!-- <el-button type="primary" @click="pass"> </el-button>
<el-button @click="noPass">不通过</el-button> -->
<!-- 注销审核通过 -->
<el-popconfirm
icon="el-icon-info"
icon-color="green"
title="确定通过吗,请核实对好数据"
@confirm="pass"
>
<el-button slot="reference" type="primary"> </el-button>
</el-popconfirm>
<!-- 注销审核不通过 -->
<el-popover
placement="top"
width="300"
v-model="visible"
style="margin: 0 10px"
>
<el-input
v-model="remark"
placeholder="请输入驳回意见"
type="textarea"
style="margin-bottom: 10px"
></el-input>
<div style="text-align: right; margin: 0">
<el-button type="primary" size="mini" @click="noPass">
确定
</el-button>
<el-button size="mini" type="text" @click="visible = false">
取消
</el-button>
</div>
<el-button slot="reference" type="warning"> 不通过 </el-button>
</el-popover>
</div>
</el-dialog>
</div>
</template>
<script>
import { listSyxjl } from "@/api/yg/szrw";
import { listSyxjl, updateSzrw } from "@/api/yg/szrw";
import { listJbxx, getJbxx } from "@/api/yg/jbxx";
import listBaseInfo from "./components/listBaseInfo.vue";
import listSafetyDetection from "./components/listSafetyDetection.vue";
@ -301,6 +347,7 @@ export default {
emOpen: false,
//
sluiceTypeOptions: [],
taskStatusOptions: [],
//
wagaNameOptions: [],
//
@ -331,6 +378,8 @@ export default {
//
rules: {},
szrwId: "",
visible: false,
remark: "",
};
},
created() {
@ -342,16 +391,47 @@ export default {
this.getDicts("sluice_type").then((response) => {
this.sluiceTypeOptions = response.data;
});
this.getDicts("task_status").then((response) => {
this.taskStatusOptions = response.data;
console.log(856464, this.taskStatusOptions);
});
},
methods: {
pass() {
this.form.status = "3";
updateSzrw(this.form).then((response) => {
if (response.code === 200) {
this.msgSuccess("审核通过成功");
this.emOpen = false;
this.getList();
}
});
},
noPass() {
this.form.status = "2";
this.form.remark = this.remark;
updateSzrw(this.form).then((response) => {
if (response.code === 200) {
this.msgSuccess("不通过成功");
this.emOpen = false;
this.visible = false;
this.remark = "";
this.getList();
}
});
},
close() {
this.activeName = "listBaseInfo";
this.emActiveName = "listBaseInfoEm";
this.getList();
},
//
sluiceTypeFormat(row, column) {
return this.selectDictLabel(this.sluiceTypeOptions, row.wagaType);
},
taskStatusFormat(row, column) {
return this.selectDictLabel(this.taskStatusOptions, row.status);
},
/** 查询水闸鉴定任务关联列表 */
getList() {
this.loading = true;
@ -420,6 +500,7 @@ export default {
/** 填按钮操作 */
fillOut(row) {
// this.reset();
this.form = row;
this.szrwId = row.id;
this.wagaName = row.wagaName;
this.open = true;
@ -431,6 +512,7 @@ export default {
// });
},
examine(row) {
this.form = row;
this.szrwId = row.id;
this.wagaName = row.wagaName;
this.emOpen = true;
@ -443,8 +525,8 @@ export default {
@import "@/assets/css/dialog.scss";
::v-deep {
.el-dialog {
margin-top: 8vh !important;
height: 800px;
margin-top: 2vh !important;
height: 900px;
overflow: auto;
position: relative;
.el-dialog__footer {
@ -463,6 +545,30 @@ export default {
border-radius: 10px;
}
}
.noPass {
// padding: 10px 0;
// display: inline;
border: 1px solid #ccc;
display: flex;
// height: 50px;
margin-bottom: 20px;
.noPassTitle {
display: flex;
justify-content: center;
align-items: center;
padding: 20px 10px;
background: #f0f0f0;
border-right: 1px solid #ccc;
}
.noPassContent {
flex: 1;
padding: 20px;
display: flex;
justify-content: center;
align-items: center;
}
}
}
}
</style>

149
src/views/safetyManage/safetyAppraisal/sluice/statistics.vue

@ -0,0 +1,149 @@
<template>
<div>
<el-form
:model="queryParams"
ref="queryForm"
:inline="true"
label-width="68px"
style="border-bottom: 1px solid #e4e7ed"
>
<el-form-item label="任务名称" prop="taskName">
<el-select
v-model="taskId"
placeholder="请选择水闸名称"
style="width: 100%"
filterable
clearable
>
<el-option
v-for="dict in aqrwList"
:key="dict.id"
:label="dict.taskName"
:value="dict.id"
></el-option>
</el-select>
</el-form-item>
</el-form>
<div class="tab">
<div class="list">
<span :class="isActive == '1' ? 'active' : ''" @click="isActive = '1'"
>任务填报情况</span
>
<span :class="isActive == '2' ? 'active' : ''" @click="isActive = '2'"
>安全鉴定进展</span
>
<span :class="isActive == '3' ? 'active' : ''" @click="isActive = '3'"
>工程安全类别</span
>
</div>
</div>
<statisticsOne
v-if="isActive == '1'"
ref="statisticsOne"
:taskId="taskId"
/>
<statisticsTwo
v-if="isActive == '2'"
ref="statisticsTwo"
:taskId="taskId"
/>
<statisticsThree
v-if="isActive == '3'"
ref="statisticsThree"
:taskId="taskId"
/>
</div>
</template>
<script>
import { getStatistics, listAqrw } from "@/api/yg/aqrw";
import statisticsOne from "./components/statisticsOne.vue";
import statisticsTwo from "./components/statisticsTwo.vue";
import statisticsThree from "./components/statisticsThree.vue";
export default {
components: {
statisticsOne,
statisticsTwo,
statisticsThree,
},
data() {
return {
//
loading: true,
taskId: "",
aqrwList: [],
//
queryParams: {
pageNum: 1,
pageSize: 10,
ids: null,
data: {
wagaIds: null,
planCompletionTime: null,
taskSluiceNumber: null,
completionNumber: null,
incompletionNumber: null,
taskStatus: null,
distributeTime: null,
completionTime: null,
createUid: null,
updateUid: null,
owerDept: null,
relation: null,
},
//
params: {
//
orderBy: "create_time",
// descasc
sortBy: "desc",
},
},
isActive: "1",
};
},
created() {
listAqrw(this.queryParams).then((response) => {
this.aqrwList = response.records;
this.taskId = response.records[0].id;
});
},
methods: {},
};
</script>
<style lang="scss" scoped>
.tab {
display: flex;
justify-content: center;
.list {
border-bottom: 4px solid #e4e7ed;
padding: 0 40px;
span {
display: inline-block;
padding: 20px 0;
margin-right: 30px;
cursor: pointer;
color: #909399;
transform: translateY(4px);
}
span:nth-last-child(1) {
margin-right: 0;
}
.active {
color: #000;
border-bottom: 4px solid #36b29e;
}
}
}
// .content {
// height: 200px;
// margin-top: 20px;
// // border: 1px solid #000;
// background: #fff;
// // box-shadow: 2px 4px 6px 2px rgba(0, 0, 0, 0.2);
// margin-bottom: 10px;
// display: flex;
// }
</style>
Loading…
Cancel
Save