index.vue 11.2 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 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 56 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 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 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
<template>
  <div class="dashboard-editor-container">
    <div class="sale">
      <div class="sale_title">
        <span> 销售指数</span>
        <span>活动实时交易情况</span>
      </div>
      <ul class="sale_items">
        <li>
          <span>今日交易总额</span>
          <p class="nums">¥
            <count-to :start-val="0" :end-val="124546233" :duration="2600" class="card-panel-num" />
          </p>
          <span>+2.34%</span>
        </li>
        <li>
          <span>销售目标完成率</span>
          <p class="nums">
            <count-to :start-val=" 0 " :end-val="92" :duration="3600" class="card-panel-num" />%
          </p>
          <span>-0.3%</span>
        </li>
        <li>
          <span>活动剩余时间</span>
          <span>23:26:59</span>
          <span>活动时间48小时</span>
        </li>
        <li>
          <span>每秒交易总额</span>
          <p class="nums">¥
            <count-to :start-val="0" :end-val="2663" :duration="2600" class="card-panel-num" />
          </p>
          <span> +9.34%</span>
        </li>
        <li>
          <span> 在售商品总数</span>
          <p class="lastnums">
            <count-to :start-val="0" :end-val="569" :duration="2600" class="card-panel-num" />件
          </p>
        </li>
      </ul>
    </div>
    <panel-group />
    <el-row style="background:#fff;padding:0 16px;margin-bottom:10px;border-radius: 4px;">
      <div class="dateSelect">
        <el-date-picker v-model="value1" type="date" placeholder="选择日期" size="small">
        </el-date-picker>
      </div>
      <line-chart />
    </el-row>
    <el-row :gutter="10" class="notice">
      <el-col :span="12">
        <div class="notice_left">
          <div class="notice_title">
            <div class="title_left">
              <span>公告通知</span>
            </div>
            <div class="title_right">
              查看更多 >
            </div>
          </div>
          <div class="no_left_massage">
            <ul>
              <li v-for="(item,index) in massageList" :key="index">
                <p class="com-hover">{{item.title}}</p>
                <span class="time">{{item.listDate}}</span>
              </li>
            </ul>
          </div>
        </div>
      </el-col>
      <el-col :span="12">
        <div class="notice_right">
          <div class="notice_title">
            <div class="title_left">
              <span>进行中的项目</span>
            </div>
            <div class="title_right">
              查看更多 >
            </div>
          </div>
          <ul class="no_right_massage">
            <li>
              <div class="right_item lineb">
                <div class="right-top">
                  <img src="@/assets/images/home/Group.png" alt="">
                  <span>销售管理信息项目</span>
                </div>
                <p>销售管理信息项目是为全面提升企业市场占有率和竞争力,越来越多企业已经意识到上销售管理软件...</p>
                <div class="bt">
                  <span>项目组名: 超越超越卓尔不凡</span>
                  <span>5 小时前</span>
                </div>
              </div>
              <div class="right_item linet">
                <div class="right-top">
                  <img src="@/assets/images/home/Group.png" alt="">
                  <span>知识库管理搭建</span>
                </div>
                <p>知识库管理搭建是一个企业内部信息的汇总,建立知识库,对这些知识进行统一管理能够有效帮助企业提高...</p>
                <div class="bt">
                  <span>项目组名:快乐每一天</span>
                  <span>5 小时前</span>
                </div>
              </div>
            </li>
            <li>
              <div class="right_item">
                <div class="right-top">
                  <img src="@/assets/images/home/Group2.png" alt="">
                  <span>报表样式调整</span>
                </div>
                <p>报表引用UReport2是一款基于架构在Spring之上纯Java的高性能报表引擎,通过迭代单元格可以实现任意...</p>
                <div class="bt">
                  <span>项目组名: 超越超越卓尔不凡</span>
                  <span>5 小时前</span>
                </div>
              </div>
              <div class="right_item linet">
                <div class="right-top">
                  <img src="@/assets/images/home/Group3.png" alt="">
                  <span>企业门户平台</span>
                </div>
                <p>企业统一门户为企业提供一个统一入口访问企业各种资源信息,企业的员工、客户、合作伙伴和供应商等都可...</p>
                <div class="bt">
                  <span>项目组名:智慧成功人士</span>
                  <span>5 小时前</span>
                </div>
              </div>
            </li>
          </ul>
        </div>
      </el-col>
    </el-row>
    <p class="componey">公司出品</p>
  </div>
</template>

<script>
import echarts from 'echarts'
import PanelGroup from './components/PanelGroup'
import LineChart from './components/LineChart'
import CountTo from 'vue-count-to'
export default {
  name: 'DashboardAdmin',
  components: {
    PanelGroup,
    LineChart,
    CountTo
  },
  data() {
    return {
      value1: '',
      charts: '',
      opinionData: ["3", "2", "4", "4", "5"],
      massageList: [
        { title: '【通知】中秋国庆双节放假通知', listDate: '2020-09-19' },
        { title: '【公告】你好朋友,感谢使用 NCC快速开发平台新版本', listDate: '2020-09-18' },
        { title: '【通知】月饼发放通知,请各部门主管到行政部领取', listDate: '2020-09-17' },
        { title: '【公告】本季度销售之星名单公示', listDate: '2020-09-16' },
        { title: '【通知】公司上班时间调整通知,下月执行', listDate: '2020-09-15' },
        { title: '【公告】公司新上任总裁任命书', listDate: '2020-09-14' },
        { title: '【公告】午餐补贴通知,本月生效', listDate: '2020-09-13' },
        { title: '【通知】公司技术交流培训课通知', listDate: '2020-09-12' },
        { title: '【通知】关于公司组织员工秋季旅游通知', listDate: '2020-09-11' },
      ]
    }
  },
  methods: {}
}
</script>

<style lang="scss" scoped>
.sale {
  background: #fff;
  margin-bottom: 10px;
  border-radius: 4px;
  .sale_title {
    padding-top: 16px;
    padding-left: 22px;
    span {
      &:first-child {
        font-size: 16px;
        font-weight: bold;
        color: #333;
      }
      &:nth-child(2) {
        color: #999;
        font-size: 12px;
      }
    }
  }
  .sale_items {
    display: flex;
    justify-content: space-around;
    padding: 34px 0;
    li {
      display: flex;
      flex-direction: column;
      text-align: center;
      .nums {
        font-size: 26px !important;
        padding-top: 13px;
        padding-bottom: 9px;
        color: #1890ff;
        font-weight: 600;
        span {
          font-size: 26px !important;
          padding-top: 13px;
          padding-bottom: 9px;
          color: #1890ff !important;
          font-weight: 600;
        }
      }
      .lastnums {
        font-size: 26px !important;
        padding-top: 13px;
        padding-bottom: 9px;
        font-weight: 600;
        color: #333;
      }
      &:first-child {
        span:last-child {
          color: #08b41f;
        }
      }
      &:nth-child(4) {
        span {
          &:last-child {
            color: #08b41f;
          }
        }
      }
      &:nth-child(2) {
        span {
          &:last-child {
            color: #b40808;
          }
        }
      }
      &:nth-child(3) {
        span {
          &:last-child {
            color: #999;
          }
        }
      }
      &:last-child {
        span {
          &:last-child {
            color: #000;
          }
        }
      }
      span {
        &:nth-child(2) {
          font-size: 26px !important;
          padding-top: 13px;
          padding-bottom: 9px;
          color: #1890ff;
          font-weight: 600;
        }
        &:nth-child(3) {
          font-size: 12px;
        }
      }
    }
  }
}
.notice {
  padding-bottom: 20px;
  .notice_title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    padding: 0 25px;
    .title_left {
      display: flex;
      align-items: center;
      span {
        font-size: 16px;
        font-weight: bold;
        color: #333;
      }
    }
    .title_right {
      font-size: 12px;
      color: #999;
      line-height: 30px;
    }
  }
  .notice_right {
    background: #fff;
    height: 400px;
    border-radius: 4px;
    overflow: hidden;
    .no_right_massage {
      li {
        display: flex;
        background: #fff;
        border: 1;
        height: 170px;
        border-top: 1px solid #f2f2f5;
        .right_item {
          width: 50%;
          padding: 16px 20px;
          display: flex;
          flex-direction: column;
          justify-content: space-between;
          .right-top {
            font-size: 14px;
            display: flex;
            align-items: center;
            img {
              margin-right: 10px;
            }
          }
          p {
            font-size: 14px;
            line-height: 22px;
            padding: 20px 0;
            color: #999;
            display: -webkit-box;
            line-clamp: 3;
            -webkit-line-clamp: 3;
            overflow: hidden;
            text-overflow: ellipsis;
            /*! autoprefixer: off */
            -webkit-box-orient: vertical;
            /* autoprefixer: on */
          }
          .bt {
            display: flex;
            justify-content: space-between;
            font-size: 12px;
            color: #999;
          }
        }
        .linet {
          border-left: 1px solid #f2f2f5;
        }
      }
    }
  }
  .notice_left {
    background: #fff;
    height: 400px;
    border-radius: 4px;
    overflow: hidden;
    .no_left_massage {
      height: 340px;
      padding: 10px 20px;
      border-top: 1px solid #f2f2f5;
      ul {
        li {
          display: flex;
          justify-content: space-between;
          font-size: 14px;
          color: #303133;
          padding: 10px 0;
          cursor: pointer;
          p {
            width: calc(100% - 80px);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
          }
          .time {
            width: 80px;
            display: inline-block;
            text-align: right;
            color: #999999;
          }
        }
      }
    }
  }
}

.componey {
  font-size: 14px;
  text-align: center;
  color: #999;
  padding-bottom: 10px;
}

.dashboard-editor-container {
  background-color: #ebeef5;
  position: relative;
  width: 100%;
  overflow: hidden;

  .github-corner {
    position: absolute;
    top: 0px;
    border: 0;
    right: 0;
  }

  .chart-wrapper {
    background: #fff;
    padding: 16px 16px 0;
    margin-bottom: 20px;
  }
}
.dateSelect {
  position: absolute;
  right: 67px;
  top: 38px;
  z-index: 100;
  .el-date-editor {
    width: 160px;
  }
}
@media (max-width: 1024px) {
  .chart-wrapper {
    padding: 8px;
  }
}
</style>