123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219 |
- <template>
- <div class="count-card-box">
- <div class="count-card" v-for="(item,index) in cardList" :key="index">
- <div class="card-div1">执行时间:{{item.recommend?formatterStr2(item.recommend.time):'--'}}</div>
- <div class="card-div2 MicrYaHei">
- <span>策略建议</span>
- <span>冷机台数</span>
- <span>{{item.recommend?item.recommend.chillerNumSetL:'--'}}大{{item.recommend?item.recommend.chillerNumSetS:'--'}}小</span>
- <span>冷机出水温度</span>
- <span>{{item.recommend?item.recommend.chillWaterOutTempSet:'--'}}°C</span>
- </div>
- <div class="card-div3 MicrYaHei">
- <span>实际执行</span>
- <span>冷机台数</span>
- <span>{{item.real?item.real.chillerNumSetLOrg:'--'}}大{{item.real?item.real.chillerNumSetSOrg:'--'}}小</span>
- <span>冷机出水温度</span>
- <span>{{item.real?item.real.chillWaterOutTempSetOrg:'--'}}°C</span>
- </div>
- <div class="card-div4">备注:{{item.h||'--'}}</div>
- <div class="card-div5">
- <span class="card-div7" v-if="item.recommend.isExecuted==true">
- <img src="../../assets/completed.png" alt />
- 已按策略执行
- </span>
- <span class="card-div6" v-else>
- <img src="../../assets/error.png" alt />
- 未按策略执行
- </span>
- <!-- <span class="card-div8">
- <img src="../../assets/processing.png" alt />
- 申诉中
- </span>-->
- <span class="MicrYaHei" @click="viewSnapshots = true">查看快照</span>
- </div>
- </div>
- <div class="view-dialog">
- <el-dialog
- title="策略推出时状况"
- :visible.sync="viewSnapshots"
- :close-on-click-modal="false"
- width="1260px"
- >
- <ev-snapshots-dialog></ev-snapshots-dialog>
- </el-dialog>
- </div>
- </div>
- </template>
- <script>
- import EvSnapshotsDialog from "./evSnapshotsDialog";
- export default {
- data() {
- return {
- viewSnapshots: false
- };
- },
- props: ["cardList"],
- components: {
- EvSnapshotsDialog
- },
- methods: {
- formatterStr2(str) {
- if (str) {
- return str.substring(0, 2) + ":" + str.substring(2, 4);
- }
- }
- }
- };
- </script>
- <style lang="scss" scoped>
- // 执行率
- .count-card-box {
- display: flex;
- flex-wrap: wrap;
- .count-card {
- min-width: 436px;
- margin-right: 6px;
- margin-top: 16px;
- padding: 16px 20px;
- background: rgba(255, 255, 255, 1);
- box-shadow: 0px 4px 12px -2px rgba(31, 36, 41, 0.1);
- border-radius: 4px;
- border: 1px solid rgba(228, 230, 231, 1);
- .card-div1,
- .card-div2,
- .card-div3,
- .card-div4,
- .card-div5 {
- display: flex;
- justify-content: space-between;
- align-items: center;
- }
- .card-div1 {
- height: 22px;
- font-size: 16px;
- font-family: PingFangSC-Regular, PingFang SC;
- font-weight: 400;
- color: rgba(31, 36, 41, 1);
- line-height: 22px;
- margin-bottom: 14px;
- }
- .card-div2,
- .card-div3 {
- height: 40px;
- background: rgba(245, 246, 247, 1);
- border-radius: 1px;
- padding-left: 16px;
- padding-right: 34px;
- span:nth-of-type(1) {
- height: 19px;
- font-size: 14px;
- color: rgba(31, 36, 41, 1);
- line-height: 19px;
- margin-right: 36px;
- }
- span:nth-of-type(2) {
- height: 18px;
- font-size: 12px;
- color: rgba(141, 147, 153, 1);
- line-height: 22px;
- margin-right: 8px;
- }
- span:nth-of-type(3) {
- height: 19px;
- font-size: 14px;
- color: rgba(31, 36, 41, 1);
- line-height: 19px;
- margin-right: 36px;
- }
- span:nth-of-type(4) {
- height: 18px;
- font-size: 12px;
- color: rgba(141, 147, 153, 1);
- line-height: 22px;
- margin-right: 8px;
- }
- span:nth-of-type(5) {
- height: 21px;
- font-size: 16px;
- color: rgba(31, 36, 41, 1);
- line-height: 21px;
- }
- }
- .card-div2 {
- margin-bottom: 4px;
- }
- .card-div3 {
- margin-bottom: 16px;
- }
- .card-div4 {
- height: 20px;
- font-size: 14px;
- font-family: PingFangSC-Regular, PingFang SC;
- font-weight: 400;
- color: rgba(100, 108, 115, 1);
- line-height: 20px;
- margin-bottom: 26px;
- }
- .card-div5 {
- span:nth-of-type(1) {
- img {
- width: 14px;
- height: 14px;
- margin-right: 4px;
- }
- padding: 0 12px;
- display: flex;
- align-items: center;
- height: 22px;
- border-radius: 12px;
- font-size: 14px;
- font-family: MicrosoftYaHeiSemibold;
- }
- span:nth-of-type(2) {
- cursor: pointer;
- height: 22px;
- font-size: 14px;
- color: rgba(31, 35, 41, 1);
- line-height: 22px;
- background: rgba(255, 255, 255, 1);
- border-radius: 4px;
- border: 1px solid rgba(195, 199, 203, 1);
- padding: 0 12px;
- }
- }
- .card-div6 {
- color: rgba(245, 78, 69, 1);
- background: rgba(253, 227, 226, 1);
- }
- .card-div7 {
- color: rgba(52, 199, 36, 1);
- background: rgba(217, 245, 214, 1);
- }
- .card-div8 {
- color: rgba(0, 145, 255, 1);
- background: rgba(225, 242, 255, 1);
- }
- }
- }
- </style>
- <style lang="scss">
- .view-dialog {
- .el-dialog__header {
- padding: 16px 28px 0 32px;
- .el-dialog__title {
- height: 24px;
- font-size: 16px;
- font-family: PingFangSC-Medium, PingFang SC;
- font-weight: 500;
- color: rgba(31, 36, 41, 1);
- line-height: 24px;
- }
- }
- .el-dialog__body {
- padding-top: 0;
- }
- }
- </style>
|