index.vue 11.5 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
1111
<template>
  <div class="exa">
    <div class="exaone">
      <div class="topleft">
        <div class="exaleft">
          <div style="color: #188df0">优秀</div>
          <div>考核级别</div>
          <div style="width: 30px;border-bottom: 1px solid #188df0;margin-top: 10px"></div>
        </div>
        <div class="exacenter" id="myChartpieone" :style="{width: '250px', height: '100%'}"></div>
        <div class="exaright">
          <div style="color: #188df0">
            <span>0</span>
            <img src="../../assets/up.png" style="width: 15px;height: 12px;margin-bottom: 3px">
          </div>
          <div>排名</div>
          <div style="width: 30px;border-bottom: 1px solid #188df0;margin-top: 10px"></div>
        </div>
      </div>
      <div class="topright">
22
        <div class="exatop">2024年度全县共处置<span style="color: #b65bff;font-size: 20px;">0件</span>燃气事故,事故办结率<span style="color: red;font-size: 20px;">0%</span>,平均办结时效<span style="color: #1c84c6;font-size: 20px;">24小时</span>;</div>
zhangjianqian's avatar
zhangjianqian committed
23 24
        <div class="exatop">共组织燃气取暖专项排查、检查任务<span style="color: #2934ff;font-size: 20px;">0次</span>,燃气企业日常巡查<span style="color: #ffbc00;font-size: 20px;">280次</span>,整改<span style="color: red;font-size: 20px;">72次</span>安全隐患。</div>
        <div class="exatop">共寄到投诉<span style="color: #1c84c6;font-size: 20px;">30次</span>,已全部处置完成。</div>
25 26 27 28 29
        <div class="exabottom">
          <div class="bottoml">全年燃气总结:</div>
          <div class="bottomr">
            燃气监管由排名、区域、企业名称、经营类别、燃气事故(件),隐患整治(次),投诉处置(件)、考核得分、考核结果组成。
            共组织燃区隐患装箱排查、检查任务0次,燃气企业日常巡查0次;
30
            2024年度全县共处置0件燃气事故,事故办结率0%,平均办结时效24小时;共组织燃气隐患专项排查、检查任务0次,燃气企业日常巡查0次,整改0次安全隐患。共接到投诉0次,已经全部处置完成。</div>
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
        </div>
      </div>
    </div>
    <div class="exatwo">
      <div class="exatwobanner">
        <div style="font-size: 22px;margin-left: 5%;">企业排名</div>
      </div>
      <div class="exatwoul">
          <div>
            <table class="table">
              <thead>
                <tr>
                  <th>排名</th>
                  <th>区域</th>
                  <th>企业名称</th>
                  <th>经营类别</th>
                  <th>燃气事故(件)</th>
                  <th>隐患整治(次)</th>
                  <th>投诉处置(件)</th>
                  <th>考核得分</th>
                  <th>考核结果</th>
                </tr>
              </thead>
              <tbody>
                <tr v-for="(user, index) in stu" :key="index + 1">
zhangjianqian's avatar
zhangjianqian committed
56
                  <td>{{index+1}}</td>
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
                  <td>{{user.name}}</td>
                  <td>{{user.type}}</td>
                  <td>{{user.num}}</td>
                  <td>{{user.price}}</td>
                  <td>{{user.yh}}</td>
                  <td>{{user.ts}}</td>
                  <td>{{user.kh}}</td>
                  <td>{{user.jg}}</td>
                </tr>
              </tbody>
            </table>
            </div>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    components: {},

    data() {
      return{
        user:{name:'',type:'',num:'',price:''},
        stu: [
zhangjianqian's avatar
zhangjianqian committed
82
        {
xulihui's avatar
xulihui committed
83 84 85

        },
        /*{
zhangjianqian's avatar
zhangjianqian committed
86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
          name: "河北省石家庄平山县",
          type: "中诚燃气",
          num: "管道燃气",
          price: "0件",
          yh: "42次",
          ts: "10次",
          kh: 100,
          jg: "优秀",
        },
        {
          name: "河北省石家庄平山县",
          type: "敬业集团",
          num: "瓶装燃气",
          price: "0件",
          yh: "30次",
          ts: "20次",
          kh: 100,
          jg: "优秀",
xulihui's avatar
xulihui committed
104
        },*/
105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424
        // {
        //   name: "河北省石家庄平山县",
        //   type: "盈德气体",
        //   num: "瓶装燃气",
        //   price: "1件",
        //   yh: "70次",
        //   ts: "18次",
        //   kh: 99,
        //   jg: "优秀",
        // },
        // {
        //   name: "河北省石家庄平山县",
        //   type: "石家庄柏坡正元化肥有限公司",
        //   num: "瓶装燃气",
        //   price: "3件",
        //   yh: "46次",
        //   ts: "10次",
        //   kh: 99,
        //   jg: "优秀",
        // },
        // {
        //   name: "河北省石家庄平山县",
        //   type: "平山县顺诚燃气有限公司 -",
        //   num: "城镇燃气",
        //   price: "3件",
        //   yh: "50次",
        //   ts: "10次",
        //   kh: 99,
        //   jg: "优秀",
        // },
        // {
        //   name: "河北省石家庄平山县",
        //   type: "河北玺竑能源有限公司",
        //   num: "汽车加气",
        //   price: "4件",
        //   yh: "43次",
        //   ts: "25次",
        //   kh: 99,
        //   jg: "优秀",
        // },
        // {
        //   name: "河北省石家庄平山县",
        //   type: "石家庄新捷燃气运输有限公司",
        //   num: "瓶装燃气",
        //   price: "5件",
        //   yh: "71次",
        //   ts: "20次",
        //   kh: 99,
        //   jg: "优秀",
        // },
        // {
        //   name: "河北省石家庄平山县",
        //   type: "中裕燃气公司",
        //   num: "天然气经营",
        //   price: "3件",
        //   yh: "56次",
        //   ts: "14次",
        //   kh: 99,
        //   jg: "优秀",
        // },
        // {
        //   name: "河北省石家庄平山县",
        //   type: "石家庄华玉燃气有限公司汽车天然气加气站",
        //   num: "汽车加气",
        //   price: "9件",
        //   yh: "33次",
        //   ts: "20次",
        //   kh: 98,
        //   jg: "优秀",
        // },
        // {
        //   name: "河北省石家庄平山县",
        //   type: "河北天然气华建CNG加气站",
        //   num: "汽车加气",
        //   price: "5件",
        //   yh: "43次",
        //   ts: "29次",
        //   kh: 98,
        //   jg: "优秀",
        // },
        // {
        //   name: "河北省石家庄平山县",
        //   type: "顺诚燃气加气站",
        //   num: "汽车加气",
        //   price: "6件",
        //   yh: "54次",
        //   ts: "27次",
        //   kh: 95,
        //   jg: "优秀",
        // },
        // {
        //   name: "河北省石家庄平山县",
        //   type: "平山博闵加气站",
        //   num: "汽车加气",
        //   price: "8件",
        //   yh: "38次",
        //   ts: "16次",
        //   kh: 95,
        //   jg: "优秀",
        // },
        // {
        //   name: "河北省石家庄平山县",
        //   type: "平山县平安天然气有限公司",
        //   num: "汽车加气",
        //   price: "3件",
        //   yh: "54次",
        //   ts: "11次",
        //   kh: 94,
        //   jg: "良好",
        // },
        // {
        //   name: "河北省石家庄平山县",
        //   type: "平山县烟堡村",
        //   num: "管道燃气",
        //   price: "3件",
        //   yh: "26次",
        //   ts: "10次",
        //   kh: 93,
        //   jg: "良好",
        // },
        // {
        //   name: "河北省石家庄平山县",
        //   type: "平山县西石桥",
        //   num: "管道燃气",
        //   price: "10件",
        //   yh: "19次",
        //   ts: "11次",
        //   kh: 92,
        //   jg: "良好",
        // },

      ],
      }
    },
    mounted () {
      this.drawLine();
    },
    methods: {
      drawLine() {
        // 基于准备好的dom,初始化echarts实例
        let myChart1 = this.$echarts.init(document.getElementById("myChartpieone"));
        // 绘制图表
        myChart1.setOption({
          color:['#5ff76a','#1890ff'],
          grid: {
            bottom: "2%",
            containLabel: true,
          },
          series: [
            {
              name: 'Access From',
              type: 'pie',
              radius: ['60%', '80%'],
              avoidLabelOverlap: false,
              hoverAnimation: false,
              silent: true,
              itemStyle: {
                borderRadius: 5,
                borderColor: '#fff',
                borderWidth: 2
              },
              label: {
                show: false,
                position: 'center',
                  normal: {
                    show: true,
                    formatter: "{c}分",
                    position: "center",
                    lineHight: 30,
                    fontSize: 40,
                  },
              },
              labelLine: {
                show: false
              },
              data: [
                { value: 0, name: 'Search Engine' },
                { value: 0, name: 'Direct' },
              ]
            }
          ]
        });
      }
    },
  }
</script>
<style lang="scss" scoped>
  .exa{
    width: 100%;
    height: 100%;
  }
  .exaone{
    width: 100%;
    height: 250px;
    background: url(../../assets/exa2.png);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    display: flex;
    justify-content: space-around;
  }
  .topleft{
    width: 40%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    padding: 0 6% 0 4%;
  }
  .exaleft{
    width: 100px;
    height: 30%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 80px;
    font-size: 20px;
  }
  .exaright{
    width: 100px;
    height: 30%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 80px;
    font-size: 20px;
  }
  .exaline{
    width: 40px;
    height: 1px;
    background: #00c3f1;
    margin-top: 10px;
  }
  .topright{
    width: 60%;
    height: 100%;
    padding: 0 30px 0 0;
  }
  .exatop{
    text-align: right;
    margin-top: 15px;
  }
  .exabottom{
    width: 100%;
    padding: 10px 30px;
  }
  .bottoml{
    font-size: 20px;
    float: left;
  }
  .bottomr{
    width: 80%;
    height: 100px;
    overflow: auto;
    float: left;
  }
  .exatwo{
    width: 100%;
    height: 600px;
    margin-bottom: 10px;
    margin-top: 20px;
  }
  .exatwobanner{
    width: 92%;
    height: 35px;
    margin-left: 4%;
    background: url(../../assets/exa1.png);
    background-size: 100% 100%;
    background-repeat: no-repeat;
  }
  .exatwoul{
    width: 100%;
    height: 525px;
    overflow: auto;
    padding: 0 30px;
    margin-top: 25px;
  }
  .table{
    table-layout:fixed;
    border: none;
    border-collapse: collapse;
    background: white;
    text-align: center;
    margin-top: 10px;
    thead{
      tr{
        color: white;
        height: 50px;
        th{
          color: #383737;
          background: #fff;
          font-size: 20px;
          min-width: 100px;
          position:-webkit-sticky;
          position:sticky;
          top:0;
          z-index: 3;
        }
      }
    }
    tbody{
      tr{
        height: 30px;
        color: black;
        td{
          width: 12%;
          font-size: 14px;
          position:-webkit-sticky; position:sticky;
        }
      }
      tr:nth-child(odd){
        background: #ededed;
        color: #188df0;
      }
      tr:nth-child(even){
        height: 40px;
      }
    }
  }
</style>