소스 검색

在线活跃度联调

linyanfei 3 년 전
부모
커밋
2a0266a10d

+ 16 - 0
shanXiPlatform/src/api/branchoff/index.js

@@ -56,3 +56,19 @@ export function  getjfqk( depotId , homeType) {
56 56
     method: 'get'
57 57
   })
58 58
 }
59
+
60
+export function  getmorehyd( data  ) {
61
+  return request({              
62
+    url: `/csc-szls-business/sysUserActivity/getByPage`,
63
+    method: 'post',
64
+    data : data
65
+  })
66
+}
67
+export function  gethyd( depotId , homeType) {
68
+  return request({
69
+    url: `/csc-szls-business/sysUserActivity/getGroupByDepotId?depotId=${depotId}&homeType=${homeType} `,
70
+    method: 'get'
71
+  })
72
+}
73
+
74
+

+ 15 - 1
shanXiPlatform/src/router/index.js

@@ -361,6 +361,20 @@ export const constantRoutes = [
361 361
         hidden: true,
362 362
         meta: { title: '工作完成情况', icon: 'dashboard',isshowLibrary:true, affix: true },
363 363
       },
364
+      {
365
+        path: 'hydtable',
366
+        component: () => import('@/views/home/hydtable'),
367
+        name: 'hydtable',
368
+        hidden: true,
369
+        meta: { title: '在线活跃度详情', icon: 'dashboard',isshowLibrary:true, affix: true },
370
+      },
371
+      {
372
+        path: 'hydmoretable',
373
+        component: () => import('@/views/home/hydmoretable'),
374
+        name: 'hydmoretable',
375
+        hidden: true,
376
+        meta: { title: '在线活跃度', icon: 'dashboard',isshowLibrary:true, affix: true },
377
+      },
364 378
     ]
365 379
 
366 380
   },
@@ -707,7 +721,7 @@ export const constantRoutes = [
707 721
             name: 'AllGrain',
708 722
 
709 723
             hidden: true,
710
-            meta: { title: '最新粮情检查记录', icon: 'dashboard', affix: false, relation: 'house', istable: true },
724
+            meta: { title: '全部粮情检查记录', icon: 'dashboard', affix: false, relation: 'house', istable: true },
711 725
           },
712 726
 
713 727
 

+ 200 - 151
shanXiPlatform/src/views/home/branchOffice.vue

@@ -229,7 +229,7 @@
229 229
                                 <p class="lsp">
230 230
                                     <img src="../../assets/images/rightarrow.png" alt />
231 231
                                     上月在线活跃度排名
232
-                                    <span v-if="crumbs.length != 2" class="echartSpan" @click="yclq()">更多>></span>
232
+                                    <span v-if="crumbs.length != 2" class="echartSpan" @click="hyd()">更多>></span>
233 233
                                 </p>
234 234
                                 <div id="myChartrt" class="rtoprto"></div>
235 235
                                 <!-- <img src="../../assets/images/huoyue.png" alt /> -->
@@ -270,7 +270,9 @@ import {
270 270
     getpointll,
271 271
     getzxt,
272 272
     getmorejfqk,
273
-    getjfqk
273
+    getjfqk,
274
+    // ,
275
+    gethyd
274 276
 } from "@/api/branchoff/index.js"
275 277
 import { getUser } from "@/utils/auth"
276 278
 export default {
@@ -996,171 +998,208 @@ export default {
996 998
             this.$router.push({ path: "/countQuality/warehouseInformation" })
997 999
         },
998 1000
         drawtrt() {
999
-            var chartData = [6, 7, 8, 9, 10, 10, 9, 8, 7, 6] // 数据
1000
-            var chartDataone = [10, 10, 10, 10, 10, 10, 10, 10, 10, 10] // 数据
1001
-            var chartName = [
1002
-                "中央储备大同直属库有限公司",
1003
-                "中央储备太原直属库有限公司",
1004
-                "中央储备太原直属库有限公司",
1005
-                "中央储备太原直属库有限公司",
1006
-                "中央储备太原直属库有限公司",
1007
-                "中央储备太原直属库有限公司",
1008
-                "中央储备太原直属库有限公司",
1009
-                "中央储备太原直属库有限公司",
1010
-                "中央储备太原直属库有限公司",
1011
-                "中央储备长治直属库有限公司"
1012
-            ]
1013
-            const myChartrt = this.$echarts.init(
1014
-                document.getElementById("myChartrt")
1015
-            )
1016
-            // 绘制图表
1017
-            myChartrt.setOption({
1018
-                grid: {
1019
-                    top: "3%",
1020
-                    left: "3%",
1021
-                    bottom: "3%",
1022
-                    right: "3%",
1023
-                    containLabel: true
1024
-                },
1025
-                xAxis: {
1026
-                    type: "value",
1027
-                    axisLine: {
1028
-                        lineStyle: {
1029
-                            color: "#ccc"
1030
-                        }
1001
+            gethyd(this.midprovinceid, this.homeType).then(res => {
1002
+                var chartDataone = [
1003
+                    100,
1004
+                    100,
1005
+                    100,
1006
+                    100,
1007
+                    100,
1008
+                    100,
1009
+                    100,
1010
+                    100,
1011
+                    100,
1012
+                    100,
1013
+                    100,
1014
+                    100,
1015
+                    100,
1016
+                    100,
1017
+                    100,
1018
+                    100,
1019
+                    100,
1020
+                    100,
1021
+                    100,
1022
+                    100,
1023
+                    100,
1024
+                    100,
1025
+                    100,
1026
+                    100,
1027
+                    100,
1028
+                    100,
1029
+                    100,
1030
+                    100,
1031
+                    100,
1032
+                    100,
1033
+                    100,
1034
+                    100,
1035
+                    100,
1036
+                    100,
1037
+                    100,
1038
+                    100,
1039
+                    100,
1040
+                    100,
1041
+                    100,
1042
+                    100,
1043
+                    100,
1044
+                    100,
1045
+                    100,
1046
+                    100,
1047
+                    100,
1048
+                    100
1049
+                ] // 数据
1050
+                var chartName = res.data.depotName
1051
+                var chartData = res.data.series
1052
+                const myChartrt = this.$echarts.init(
1053
+                    document.getElementById("myChartrt")
1054
+                )
1055
+                // 绘制图表
1056
+                myChartrt.setOption({
1057
+                    grid: {
1058
+                        top: "3%",
1059
+                        left: "3%",
1060
+                        bottom: "3%",
1061
+                        right: "3%",
1062
+                        containLabel: true
1031 1063
                     },
1032
-                    show: false,
1033
-                    splitLine: {
1034
-                        show: false
1035
-                    }
1036
-                },
1037
-                yAxis: [
1038
-                    {
1039
-                        type: "category",
1040
-                        data: chartName,
1041
-                        splitLine: {
1042
-                            show: false
1043
-                        },
1044
-                        show: false,
1064
+                    xAxis: {
1065
+                        type: "value",
1045 1066
                         axisLine: {
1046 1067
                             lineStyle: {
1047 1068
                                 color: "#ccc"
1048 1069
                             }
1049
-                        }
1050
-                    },
1051
-                    {
1052
-                        // 第二个y轴 为了让数据在右侧末尾显示
1053
-                        show: true,
1054
-                        inverse: true,
1055
-                        data: chartData,
1056
-                        nameTextStyle: {}, // 坐标轴名称的文字样式。 官网上是这样的解释, 但是 我试了这个并不能改变坐标轴的文字样式
1057
-                        axisLabel: {
1058
-                            textStyle: {
1059
-                                fontSize: 12, // 坐标轴名称的大小
1060
-                                color: "#333", // 坐标轴名称的颜色
1061
-                                fontWeight: 700
1062
-                            }
1063
-                        },
1064
-                        axisLine: {
1065
-                            show: false,
1066
-                            lineStyle: {
1067
-                                color: "#8CC4A1"
1068
-                            }
1069 1070
                         },
1071
+                        show: false,
1070 1072
                         splitLine: {
1071
-                            show: true
1072
-                        },
1073
-                        axisTick: {
1074
-                            show: true
1075
-                        },
1076
-                        data: chartData
1077
-                    }
1078
-                ],
1079
-                series: [
1080
-                    {
1081
-                        name: "我是打底",
1082
-                        type: "pictorialBar",
1083
-                        symbol: "rect", // 类型
1084
-                        yAxisIndex: 0,
1085
-                        barWidth: 10,
1086
-                        itemStyle: {
1087
-                            normal: {
1088
-                                // barBorderRadius: 5,
1089
-                                color: "#ccc"
1090
-                            }
1091
-                        },
1092
-                        label: {
1093
-                            normal: {
1094
-                                position: "right"
1095
-                            }
1096
-                        },
1097
-                        symbolRepeat: true,
1098
-                        // symbolRotate: '45',
1099
-                        symbolSize: [10, 16],
1100
-                        // symbolMargin: 2,
1101
-                        data: chartDataone
1102
-                    },
1103
-                    {
1104
-                        name: "我是上层方块",
1105
-                        type: "pictorialBar",
1106
-                        symbol: "rect",
1107
-                        itemStyle: {
1108
-                            normal: {
1109
-                                color: "green"
1110
-                            }
1111
-                        },
1112
-                        label: {
1113
-                            normal: {
1114
-                                // show: true, // 数据大小的显示, 100 200 300
1115
-                                textStyle: {
1116
-                                    color: "#000000" // 颜色
1117
-                                },
1118
-                                position: "right"
1119
-                            }
1120
-                        },
1121
-                        barWidth: 10,
1122
-                        symbolRepeat: true,
1123
-                        // symbolRotate: '45',
1124
-                        symbolSize: [10, 16],
1125
-                        // symbolMargin: 2,
1126
-                        data: chartData
1073
+                            show: false
1074
+                        }
1127 1075
                     },
1128
-                    // 数据条--------------------我是分割线君------------------------------//
1129
-                    {
1130
-                        show: true,
1131
-                        type: "bar",
1132
-                        // xAxisIndex: 1, //代表使用第二个X轴刻度
1133
-                        barGap: "-150%",
1134
-                        barWidth: "25%",
1135
-                        itemStyle: {
1136
-                            normal: {
1137
-                                barBorderRadius: 50,
1138
-                                // color: 'yellow',
1139
-                                color: "transparent" // rgba(22,203,115,0.05) 数据条柱状图的填充颜色,, 一开始我的有一点点背景颜色
1076
+                    yAxis: [
1077
+                        {
1078
+                            type: "category",
1079
+                            data: chartName,
1080
+                            splitLine: {
1081
+                                show: false
1082
+                            },
1083
+                            show: false,
1084
+                            axisLine: {
1085
+                                lineStyle: {
1086
+                                    color: "#ccc"
1087
+                                }
1140 1088
                             }
1141 1089
                         },
1142
-                        label: {
1143
-                            normal: {
1144
-                                show: true,
1145
-                                position: [-160, 0],
1090
+                        {
1091
+                            // 第二个y轴 为了让数据在右侧末尾显示
1092
+                            show: true,
1093
+                            inverse: true,
1094
+                            data: chartData,
1095
+                            nameTextStyle: {}, // 坐标轴名称的文字样式。 官网上是这样的解释, 但是 我试了这个并不能改变坐标轴的文字样式
1096
+                            axisLabel: {
1146 1097
                                 textStyle: {
1147
-                                    fontSize: 12,
1148
-                                    color: "#666",
1098
+                                    fontSize: 12, // 坐标轴名称的大小
1099
+                                    color: "#333", // 坐标轴名称的颜色
1149 1100
                                     fontWeight: 700
1150
-                                },
1151
-                                formatter: function(data) {
1152
-                                    return chartName[data.dataIndex]
1153 1101
                                 }
1154
-                            }
1102
+                            },
1103
+                            axisLine: {
1104
+                                show: false,
1105
+                                lineStyle: {
1106
+                                    color: "#8CC4A1"
1107
+                                }
1108
+                            },
1109
+                            splitLine: {
1110
+                                show: true
1111
+                            },
1112
+                            axisTick: {
1113
+                                show: true
1114
+                            },
1115
+                            data: chartData
1116
+                        }
1117
+                    ],
1118
+                    series: [
1119
+                        {
1120
+                            name: "我是打底",
1121
+                            type: "pictorialBar",
1122
+                            symbol: "rect", // 类型
1123
+                            yAxisIndex: 0,
1124
+                            barWidth: 10,
1125
+                            itemStyle: {
1126
+                                normal: {
1127
+                                    // barBorderRadius: 5,
1128
+                                    color: "#ccc"
1129
+                                }
1130
+                            },
1131
+                            label: {
1132
+                                normal: {
1133
+                                    position: "right"
1134
+                                }
1135
+                            },
1136
+                            symbolRepeat: true,
1137
+                            // symbolRotate: '45',
1138
+                            symbolSize: [10, 16],
1139
+                            // symbolMargin: 2,
1140
+                            data: chartDataone
1155 1141
                         },
1156
-                        data: chartDataone
1157
-                    }
1158
-                ]
1142
+                        {
1143
+                            name: "我是上层方块",
1144
+                            type: "pictorialBar",
1145
+                            symbol: "rect",
1146
+                            itemStyle: {
1147
+                                normal: {
1148
+                                    color: "green"
1149
+                                }
1150
+                            },
1151
+                            label: {
1152
+                                normal: {
1153
+                                    // show: true, // 数据大小的显示, 100 200 300
1154
+                                    textStyle: {
1155
+                                        color: "#000000" // 颜色
1156
+                                    },
1157
+                                    position: "right"
1158
+                                }
1159
+                            },
1160
+                            barWidth: 10,
1161
+                            symbolRepeat: true,
1162
+                            // symbolRotate: '45',
1163
+                            symbolSize: [10, 16],
1164
+                            // symbolMargin: 2,
1165
+                            data: chartData
1166
+                        },
1167
+                        // 数据条--------------------我是分割线君------------------------------//
1168
+                        {
1169
+                            show: true,
1170
+                            type: "bar",
1171
+                            // xAxisIndex: 1, //代表使用第二个X轴刻度
1172
+                            barGap: "-150%",
1173
+                            barWidth: "25%",
1174
+                            itemStyle: {
1175
+                                normal: {
1176
+                                    barBorderRadius: 50,
1177
+                                    // color: 'yellow',
1178
+                                    color: "transparent" // rgba(22,203,115,0.05) 数据条柱状图的填充颜色,, 一开始我的有一点点背景颜色
1179
+                                }
1180
+                            },
1181
+                            label: {
1182
+                                normal: {
1183
+                                    show: true,
1184
+                                    position: [-240, 0],
1185
+                                    textStyle: {
1186
+                                        fontSize: 12,
1187
+                                        color: "#666",
1188
+                                        fontWeight: 700
1189
+                                    },
1190
+                                    formatter: function(data) {
1191
+                                        return chartName[data.dataIndex]
1192
+                                    }
1193
+                                }
1194
+                            },
1195
+                            data: chartDataone
1196
+                        }
1197
+                    ]
1198
+                })
1159 1199
             })
1160 1200
         },
1161 1201
         drawtrb() {
1162
-            getjfqk(this.midprovinceid , this.homeType ).then(res => {
1163
-                console.log( res.data , '777777777777777777777777777777777777777777777777777777777777777777777777' )
1202
+            getjfqk(this.midprovinceid, this.homeType).then(res => {
1164 1203
                 const myChartrb = this.$echarts.init(
1165 1204
                     document.getElementById("myChartrb")
1166 1205
                 )
@@ -1260,7 +1299,8 @@ export default {
1260 1299
                 name: "yclqTable",
1261 1300
                 query: {
1262 1301
                     depotId: this.midprovinceid,
1263
-                    midprovinceName: this.midprovinceName
1302
+                    midprovinceName: this.midprovinceName,
1303
+                    isshow: this.isxian
1264 1304
                 }
1265 1305
             })
1266 1306
         },
@@ -1273,6 +1313,15 @@ export default {
1273 1313
                 }
1274 1314
             })
1275 1315
         },
1316
+        hyd() {
1317
+            this.$router.push({
1318
+                name: "hydtable",
1319
+                query: {
1320
+                    depotId: this.midprovinceid,
1321
+                    midprovinceName: this.midprovinceName
1322
+                }
1323
+            })
1324
+        },
1276 1325
     }
1277 1326
 }
1278 1327
 </script>

+ 2 - 1
shanXiPlatform/src/views/home/gzjftable.vue

@@ -76,7 +76,8 @@ export default {
76 76
             var condition = {
77 77
                 // depotId: this.$store.state.depotId,
78 78
                 depotId: this.$route.query.depotId,
79
-                sTime: this.checkYear
79
+                sTime: this.checkYear,
80
+                type:''
80 81
             }
81 82
             condition = JSON.stringify(condition)
82 83
             let data = {

+ 122 - 0
shanXiPlatform/src/views/home/hydmoretable.vue

@@ -0,0 +1,122 @@
1
+<template>
2
+    <div class="global">
3
+        <div class="contentContainerGg">
4
+            <div class="container">
5
+                <el-form :inline="true">
6
+                    <el-form-item label="时间:">
7
+                        <el-date-picker @change="timechange" id="getWeek" v-model="datetime" type="month" format="yyyy-MM" placeholder="选择月">
8
+                        </el-date-picker>
9
+                    </el-form-item>
10
+                    <el-form-item>
11
+                        <el-button icon="el-icon-search" type="success" plain @click="getList()">
12
+                            查询</el-button>
13
+                    </el-form-item>
14
+                </el-form>
15
+                <el-table border :data="tableList" highlight-current-row style="width:100%" :header-cell-style="{background:'#f8f8f8'}">
16
+                    <el-table-column property="sTime" label="时间" align="center" >
17
+                        <template slot-scope="scope">
18
+                            {{ scope.row.actTime.slice(0,7) }}
19
+                        </template>
20
+                    </el-table-column>
21
+                    <el-table-column prop="personnelName" label="人员" align="center" />
22
+                    <el-table-column prop="sposition" label="职位" align="center" />
23
+                    <el-table-column prop="depotName" label="所属粮库" align="center" />
24
+                    <el-table-column prop="depotRanking" label="活跃度所在粮库排名" align="center" />
25
+                    <el-table-column prop="provinceRanking" label="活跃度全省排名" align="center" />
26
+                    <el-table-column prop="usActivity" label="得分" align="center" />
27
+                </el-table>
28
+                <div class="pagination-container">
29
+                    <el-pagination class="right" background :current-page.sync="listQuery.page" :page-size="listQuery.limit" :page-sizes="[10,20,30,40]" :total="total" @size-change="sizeChange" @current-change="pageChange" layout="total, sizes, prev, pager, next, jumper"></el-pagination>
30
+                </div>
31
+            </div>
32
+        </div>
33
+    </div>
34
+</template>
35
+<script>
36
+import { getcf } from "@/api/organizationalStructureManagement/index.js"
37
+import { getmorehyd } from "@/api/branchoff/index.js"
38
+export default {
39
+    data() {
40
+        return {
41
+            datetime: "",
42
+            // 列表数据
43
+            tableList: [],
44
+            // 分页
45
+            total: 0,
46
+            listLoading: true,
47
+            listQuery: {
48
+                page: 1,
49
+                limit: 10
50
+            },
51
+            roleList: [],
52
+            depotDic: []
53
+        }
54
+    },
55
+    created() {
56
+        this.getList()
57
+        this.depotDic = JSON.parse(localStorage.getItem("deportDic"))
58
+    },
59
+    methods: {
60
+        timechange() {
61
+            this.$nextTick(() => {
62
+                let week = document.querySelector("#getWeek").value
63
+                this.checkYear = week
64
+            })
65
+        },
66
+        getList() {
67
+            var condition = {
68
+                // depotId: this.$store.state.depotId,
69
+                depotId: this.$route.query.depotId,
70
+                sTime: this.checkYear,
71
+                type:'1'
72
+            }
73
+            condition = JSON.stringify(condition)
74
+            let data = {
75
+                condition: condition,
76
+                pageIndex: this.listQuery.page,
77
+                pageSize: this.listQuery.limit
78
+            }
79
+            getmorehyd(data)
80
+                .then(res => {
81
+                    if (res.code == 200) {
82
+                        this.tableList = res.data.records
83
+                        this.listQuery.limit = res.data.size
84
+                        this.total = res.data.total
85
+                    } else {
86
+                        this.$message({
87
+                            type: "error",
88
+                            message: res.msg
89
+                        })
90
+                    }
91
+                })
92
+                .catch(err => {
93
+                    console.log(err)
94
+                })
95
+        },
96
+        sizeChange(v) {
97
+            this.listQuery.limit = v
98
+            this.getList()
99
+        },
100
+        pageChange(v) {
101
+            this.listQuery.page = v
102
+            this.getList()
103
+        },
104
+     
105
+    }
106
+}
107
+</script>
108
+<style lang="scss" scoped>
109
+.top {
110
+    height: 40px;
111
+    line-height: 40px;
112
+    border-bottom: 1px solid #ccc;
113
+}
114
+.container {
115
+    padding: 10px;
116
+}
117
+.pagination-container {
118
+    margin-top: 10px;
119
+    margin-right: 20px;
120
+    text-align: right;
121
+}
122
+</style>

+ 132 - 0
shanXiPlatform/src/views/home/hydtable.vue

@@ -0,0 +1,132 @@
1
+<template>
2
+    <div class="global">
3
+        <div class="contentContainerGg">
4
+            <div class="container">
5
+                <el-form :inline="true">
6
+                    <el-form-item label="时间:">
7
+                        <el-date-picker @change="timechange" id="getWeek" v-model="datetime" type="month" format="yyyy-MM" placeholder="选择月">
8
+                        </el-date-picker>
9
+                    </el-form-item>
10
+                    <el-form-item>
11
+                        <el-button icon="el-icon-search" type="success" plain @click="getList()">
12
+                            查询</el-button>
13
+                    </el-form-item>
14
+                </el-form>
15
+                <el-table border :data="tableList" highlight-current-row style="width:100%" :header-cell-style="{background:'#f8f8f8'}">
16
+                    <el-table-column property="sTime" label="时间" align="center">
17
+                        <template slot-scope="scope">
18
+                            {{ scope.row.actTime.slice(0,7) }}
19
+                        </template>
20
+                    </el-table-column>
21
+                    <el-table-column prop="depotName" label="公司" align="center" />
22
+                    <el-table-column prop="provinceRanking" label="活跃度全省排名" align="center" />
23
+                    <el-table-column prop="usActivity" label="得分" align="center" />
24
+                     <el-table-column property="operation" label="操作" align="center">
25
+                        <template slot-scope="scope">
26
+                            <el-button size="mini" type="detailbtn" @click="detailbtn(scope.$index, scope.row)">查看库内活跃排名</el-button>
27
+                        </template>
28
+                    </el-table-column>
29
+                </el-table>
30
+                <div class="pagination-container">
31
+                    <el-pagination class="right" background :current-page.sync="listQuery.page" :page-size="listQuery.limit" :page-sizes="[10,20,30,40]" :total="total" @size-change="sizeChange" @current-change="pageChange" layout="total, sizes, prev, pager, next, jumper"></el-pagination>
32
+                </div>
33
+            </div>
34
+        </div>
35
+    </div>
36
+</template>
37
+<script>
38
+import { getcf } from "@/api/organizationalStructureManagement/index.js"
39
+import { getmorehyd } from "@/api/branchoff/index.js"
40
+export default {
41
+    data() {
42
+        return {
43
+            datetime: "",
44
+            // 列表数据
45
+            tableList: [],
46
+            // 分页
47
+            total: 0,
48
+            listLoading: true,
49
+            listQuery: {
50
+                page: 1,
51
+                limit: 10
52
+            },
53
+            roleList: [],
54
+            depotDic: []
55
+        }
56
+    },
57
+    created() {
58
+        this.getList()
59
+        this.depotDic = JSON.parse(localStorage.getItem("deportDic"))
60
+    },
61
+    methods: {
62
+        timechange() {
63
+            this.$nextTick(() => {
64
+                let week = document.querySelector("#getWeek").value
65
+                this.checkYear = week
66
+            })
67
+        },
68
+        getList() {
69
+            var condition = {
70
+                // depotId: this.$store.state.depotId,
71
+                depotId: this.$route.query.depotId,
72
+                sTime: this.checkYear,
73
+                type: ""
74
+            }
75
+            condition = JSON.stringify(condition)
76
+            let data = {
77
+                condition: condition,
78
+                pageIndex: this.listQuery.page,
79
+                pageSize: this.listQuery.limit
80
+            }
81
+            getmorehyd(data)
82
+                .then(res => {
83
+                    if (res.code == 200) {
84
+                        this.tableList = res.data.records
85
+                        this.listQuery.limit = res.data.size
86
+                        this.total = res.data.total
87
+                    } else {
88
+                        this.$message({
89
+                            type: "error",
90
+                            message: res.msg
91
+                        })
92
+                    }
93
+                })
94
+                .catch(err => {
95
+                    console.log(err)
96
+                })
97
+        },
98
+        sizeChange(v) {
99
+            this.listQuery.limit = v
100
+            this.getList()
101
+        },
102
+        pageChange(v) {
103
+            this.listQuery.page = v
104
+            this.getList()
105
+        },
106
+         detailbtn( index, row  ) {
107
+              this.$router.push({
108
+                name: "hydmoretable",
109
+                query: {
110
+                    depotId: row.depotId,
111
+                    midprovinceName: this.$route.query.midprovinceName
112
+                }
113
+            })
114
+        }
115
+    }
116
+}
117
+</script>
118
+<style lang="scss" scoped>
119
+.top {
120
+    height: 40px;
121
+    line-height: 40px;
122
+    border-bottom: 1px solid #ccc;
123
+}
124
+.container {
125
+    padding: 10px;
126
+}
127
+.pagination-container {
128
+    margin-top: 10px;
129
+    margin-right: 20px;
130
+    text-align: right;
131
+}
132
+</style>

+ 2 - 1
shanXiPlatform/src/views/home/kngzjftable.vue

@@ -70,7 +70,8 @@ export default {
70 70
             var condition = {
71 71
                 // depotId: this.$store.state.depotId,
72 72
                 depotId: this.$route.query.depotId,
73
-                sTime: this.checkYear
73
+                sTime: this.checkYear,
74
+                type:'1'
74 75
             }
75 76
             condition = JSON.stringify(condition)
76 77
             let data = {

+ 49 - 10
shanXiPlatform/src/views/home/yclqtable.vue

@@ -2,7 +2,7 @@
2 2
     <div class="global">
3 3
         <div class="contentContainerGg">
4 4
             <div class="container">
5
-                <el-form  :inline="true">
5
+                <el-form :inline="true">
6 6
                     <el-form-item label="时间:">
7 7
                         <el-date-picker @change="timechange" id="getWeek" v-model="datetime" type="week" format="yyyy年WW周" placeholder="选择周">
8 8
                         </el-date-picker>
@@ -13,15 +13,32 @@
13 13
                     </el-form-item>
14 14
                 </el-form>
15 15
                 <el-table border :data="tableList" highlight-current-row style="width:100%" :header-cell-style="{background:'#f8f8f8'}">
16
-                    <el-table-column prop="operationTime" label="时间" align="center" />
17
-                      <el-table-column property="depotName" label="公司" align="center">
16
+                    <!-- <el-table-column prop="operationTime" label="时间" align="center" /> -->
17
+                    <el-table-column property="depotName" label="时间" align="center">
18 18
                         <template slot-scope="scope">
19
-                             {{ depotDic[scope.row.depotId] }}
19
+                            {{ scope.row.checkYear }}年 {{ scope.row.checkYearWeek}}周
20 20
                         </template>
21 21
                     </el-table-column>
22
-                    <!-- <el-table-column prop="storageStatus" label="所属市" align="center" /> -->
23
-                    <el-table-column prop="grainVarieties" label="仓房数量(个)" align="center" />
24
-                    <el-table-column prop="warehouseStatus" label="粮情异常仓房数量(个)" align="center" />
22
+                    <el-table-column v-if="this.$route.query.isshow" property="depotName" label="仓房" align="center">
23
+                        <template slot-scope="scope">
24
+                            <span style="color:green;" > {{ scope.row.depotId }}</span>
25
+                        </template>
26
+                    </el-table-column>
27
+                    <el-table-column  property="depotName" label="公司" align="center">
28
+                        <template slot-scope="scope" >
29
+                             {{ depotDic[scope.row.depotId] }} 
30
+                        </template>
31
+                    </el-table-column>
32
+                    <el-table-column v-if="this.$route.query.isshow" label="粮情异常情况" align="center">
33
+                        <template slot-scope="scope">
34
+                            <p style="height:45px;line-height:45px;margin:0;padding-top:7px;">
35
+                                <span class='colorspano' v-if="scope.row.grainError == '191'"></span>
36
+                                <span class='colorspant' v-if="scope.row.grainError != '191'"></span>
37
+                            </p>
38
+                        </template>
39
+                    </el-table-column>
40
+                    <el-table-column v-if="!this.$route.query.isshow" prop="grainVarieties" label="仓房数量(个)" align="center" />
41
+                    <el-table-column v-if="!this.$route.query.isshow" prop="warehouseStatus" label="粮情异常仓房数量(个)" align="center" />
25 42
                     <el-table-column property="operation" label="操作" align="center">
26 43
                         <template slot-scope="scope">
27 44
                             <el-button size="mini" type="detailbtn" @click="detailbtn(scope.$index, scope.row)">详情</el-button>
@@ -37,7 +54,7 @@
37 54
 </template>
38 55
 <script>
39 56
 import { getcf } from "@/api/organizationalStructureManagement/index.js"
40
-import {  getyclq } from "@/api/branchoff/index.js"
57
+import { getyclq } from "@/api/branchoff/index.js"
41 58
 export default {
42 59
     data() {
43 60
         return {
@@ -52,7 +69,7 @@ export default {
52 69
                 limit: 10
53 70
             },
54 71
             roleList: [],
55
-            depotDic: [],
72
+            depotDic: []
56 73
         }
57 74
     },
58 75
     created() {
@@ -105,7 +122,15 @@ export default {
105 122
             this.listQuery.page = v
106 123
             this.getList()
107 124
         },
108
-        detailbtn() {}
125
+        detailbtn(index, row) {
126
+            this.$router.push({
127
+                name: "AllGrain",
128
+                query: {
129
+                    // depotId: row.depotId,
130
+                    // midprovinceName: this.$route.query.midprovinceName
131
+                }
132
+            })
133
+        }
109 134
     }
110 135
 }
111 136
 </script>
@@ -123,4 +148,18 @@ export default {
123 148
     margin-right: 20px;
124 149
     text-align: right;
125 150
 }
151
+.colorspano {
152
+    width: 140px;
153
+    height: 30px;
154
+    background-color: #199856;
155
+    display: inline-block;
156
+    border-radius: 5px;
157
+}
158
+.colorspant {
159
+    width: 140px;
160
+    height: 30px;
161
+    background-color: #ffff00;
162
+    display: inline-block;
163
+    border-radius: 5px;
164
+}
126 165
 </style>