123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701 |
- <template>
- <div style="display: flex; flex-direction: row; flex-wrap: wrap;">
- <div :class="item.active?'box-' + item.status:'unbox-' + item.status" v-for="(item, index) in dataList"
- :key="index" @click="onSelectHandler(item)" @dblclick="sendMsg(item)" style="margin-right: 15px;">
- <div :class="item.active?'left-' + item.status:'unleft-' + item.status">
- <div>{{ item.windturbineId.slice(0, 2) }}</div>
- <div>{{ item.windturbineId.slice(5) }}</div>
- </div>
- <div :class="item.active?'right-' + item.status:'unright-' + item.status">
- <div class="rightrow">{{ item.windSpeed.toFixed(2) }} m/s</div>
- <div class="rightrow">{{ item.power.toFixed(2) }} kw</div>
- <div class="rightrow">{{ (item.modelId.indexOf("105") >= 0)?(item.rollSpeed *
- 9.55).toFixed(2):item.rollSpeed.toFixed(2) }} rpm</div>
- </div>
- <!-- <div class="locks" v-if="item.lockValue > 0">
- <img class="lock" src="../assets/img/type/lock.png" alt="">
- <div class="lock-on">aaaa</div>
- </div> -->
- </div>
- </div>
- <WindturbineDetailPages v-model="dialogVisible" :showSvg="showSvg" @close="handleClose"
- :windturbine="currentWindturbine"></WindturbineDetailPages>
- </template>
- <script>
- import WindturbineDetailPages from "./WindturbineDetailPages.vue";
- export default {
- components: {
- WindturbineDetailPages,
- },
- props: {
- dataList: {
- type: Array,
- default: () => {
- return []
- },
- },
- area: String,
- },
- mounted() {
- this.dataList.forEach(item => {
- if (item.modelId.indexOf("105") >= 0) {
- item.rollSpeed *= 9.55;
- }
- })
- },
- methods: {
- onSelectHandler(values) {
- if (this.area === 'problem') {
- this.$emit('problem-click', values);
- } else {
- this.$emit('choose-click', values);
- }
- // values.active = !values.active;
- },
- sendMsg: function (itm) {
- // this.dialogVisible = true;
- this.$emit('on-click', itm);
- // this.currentWindturbine = itm;
- },
- handleClose() {
- this.dialogVisible = false
- this.showSvg = false
- },
- },
- data() {
- return {
- dialogVisible: false,
- showSvg: false,
- currentWindturbine: {},
- };
- },
- }
- </script>
- <style scoped>
- .lock {
- width: 10px;
- height: 10px;
- position: relative;
- right: 6px;
- top: -15px;
- }
- .lock-on {
- width: 0px;
- height: 0px;
- opacity: 0;
- }
- .locks:hover .lock-on {
- position: fixed;
- display: flex;
- align-items: center;
- width: 80px;
- height: 30px;
- border: 1px solid #999999;
- background-color: #999999;
- opacity: 1;
- color: #ffffff;
- z-index: 999;
- }
- .box-0 {
- width: 135px;
- height: 50px;
- color: #ffffff;
- border: 1px solid rgba(255, 255, 255, 1);
- background-color: rgba(255, 255, 255, .05);
- display: flex;
- flex-direction: row;
- align-items: center;
- margin-right: 5px;
- margin-top: 10px;
- box-shadow: 0px 0px 6px #ffffff;
- }
- .unbox-0 {
- width: 135px;
- height: 50px;
- color: #ffffff;
- border: 1px solid rgba(255, 255, 255, 1);
- background-color: rgba(255, 255, 255, .2);
- display: flex;
- flex-direction: row;
- align-items: center;
- margin-right: 5px;
- margin-top: 10px;
- }
- .left-0 {
- width: 40%;
- height: 100%;
- font-size: 12px;
- color: rgba(255, 255, 255, 1);
- font-weight: 600;
- line-height: 20px;
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- }
- .unleft-0 {
- width: 40%;
- height: 100%;
- font-size: 12px;
- color: rgba(255, 255, 255, 1);
- font-weight: 600;
- line-height: 20px;
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- }
- .right-0 {
- width: 60%;
- height: 100%;
- font-size: 12px;
- color: rgba(255, 255, 255, 1);
- line-height: 15px;
- display: flex;
- flex-direction: column;
- justify-content: center;
- }
- .unright-0 {
- width: 60%;
- height: 100%;
- font-size: 12px;
- color: rgba(255, 255, 255, 1);
- line-height: 15px;
- display: flex;
- flex-direction: column;
- justify-content: center;
- }
- .box-1 {
- width: 135px;
- height: 50px;
- color: #ffffff;
- border: 1px solid rgba(197, 48, 200, 1);
- background-color: rgba(197, 48, 200, .05);
- display: flex;
- flex-direction: row;
- align-items: center;
- margin-right: 5px;
- margin-top: 10px;
- box-shadow: 0px 0px 6px #ef3af2;
- }
- .unbox-1 {
- width: 135px;
- height: 50px;
- color: #ffffff;
- border: 1px solid rgba(197, 48, 200, 1);
- background-color: rgba(197, 48, 200, .2);
- display: flex;
- flex-direction: row;
- align-items: center;
- margin-right: 5px;
- margin-top: 10px;
- }
- .left-1 {
- width: 40%;
- height: 100%;
- font-size: 12px;
- color: rgba(197, 48, 200, 1);
- font-weight: 600;
- line-height: 20px;
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- }
- .unleft-1 {
- width: 40%;
- height: 100%;
- font-size: 12px;
- color: rgba(197, 48, 200, 1);
- font-weight: 600;
- line-height: 20px;
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- }
- .right-1 {
- width: 60%;
- height: 100%;
- font-size: 12px;
- color: rgba(197, 48, 200, 1);
- line-height: 15px;
- display: flex;
- flex-direction: column;
- justify-content: center;
- }
- .unright-1 {
- width: 60%;
- height: 100%;
- font-size: 12px;
- color: rgba(197, 48, 200, 1);
- line-height: 15px;
- display: flex;
- flex-direction: column;
- justify-content: center;
- }
- .box-2 {
- width: 135px;
- height: 50px;
- color: #ffffff;
- border: 1px solid rgba(05, 187, 76, 1);
- background-color: rgba(05, 187, 76, .05);
- display: flex;
- flex-direction: row;
- align-items: center;
- margin-right: 5px;
- margin-top: 10px;
- box-shadow: 0px 0px 6px #09e45e;
- }
- .unbox-2 {
- width: 135px;
- height: 50px;
- color: #ffffff;
- border: 1px solid rgba(05, 187, 76, 1);
- background-color: rgba(05, 187, 76, .2);
- display: flex;
- flex-direction: row;
- align-items: center;
- margin-right: 5px;
- margin-top: 10px;
- }
- .left-2 {
- width: 40%;
- height: 100%;
- font-size: 12px;
- color: rgba(05, 187, 76, 1);
- font-weight: 600;
- line-height: 20px;
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- }
- .unleft-2 {
- width: 40%;
- height: 100%;
- font-size: 12px;
- color: rgba(05, 187, 76, 1);
- font-weight: 600;
- line-height: 20px;
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- }
- .right-2 {
- width: 60%;
- height: 100%;
- font-size: 12px;
- color: rgba(05, 187, 76, 1);
- line-height: 15px;
- display: flex;
- flex-direction: column;
- justify-content: center;
- }
- .unright-2 {
- width: 60%;
- height: 100%;
- font-size: 12px;
- color: rgba(05, 187, 76, 1);
- line-height: 15px;
- display: flex;
- flex-direction: column;
- justify-content: center;
- }
- .box-3 {
- width: 135px;
- height: 50px;
- color: #ffffff;
- border: 1px solid rgba(05, 187, 76, 1);
- background-color: rgba(05, 187, 76, .05);
- display: flex;
- flex-direction: row;
- align-items: center;
- margin-right: 5px;
- margin-top: 10px;
- box-shadow: 0px 0px 6px #09e45e;
- }
- .unbox-3 {
- width: 135px;
- height: 50px;
- color: #ffffff;
- border: 1px solid rgba(05, 187, 76, 1);
- background-color: rgba(05, 187, 76, .2);
- display: flex;
- flex-direction: row;
- align-items: center;
- margin-right: 5px;
- margin-top: 10px;
- }
- .left-3 {
- width: 40%;
- height: 100%;
- font-size: 12px;
- color: rgba(05, 187, 76, 1);
- font-weight: 600;
- line-height: 20px;
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- }
- .unleft-3 {
- width: 40%;
- height: 100%;
- font-size: 12px;
- color: rgba(05, 187, 76, 1);
- font-weight: 600;
- line-height: 20px;
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- }
- .right-3 {
- width: 60%;
- height: 100%;
- font-size: 12px;
- color: rgba(05, 187, 76, 1);
- line-height: 15px;
- display: flex;
- flex-direction: column;
- justify-content: center;
- }
- .unright-3 {
- width: 60%;
- height: 100%;
- font-size: 12px;
- color: rgba(05, 187, 76, 1);
- line-height: 15px;
- display: flex;
- flex-direction: column;
- justify-content: center;
- }
- .box-4 {
- width: 135px;
- height: 50px;
- color: #ffffff;
- border: 1px solid rgba(75, 85, 174, 1);
- background-color: rgba(75, 85, 174, .05);
- display: flex;
- flex-direction: row;
- align-items: center;
- margin-right: 5px;
- margin-top: 10px;
- box-shadow: 0px 0px 6px #6876f2;
- }
- .unbox-4 {
- width: 135px;
- height: 50px;
- color: #ffffff;
- border: 1px solid rgba(75, 85, 174, 1);
- background-color: rgba(75, 85, 174, .2);
- display: flex;
- flex-direction: row;
- align-items: center;
- margin-right: 5px;
- margin-top: 10px;
- }
- .left-4 {
- width: 40%;
- height: 100%;
- font-size: 12px;
- color: rgba(75, 85, 174, 1);
- font-weight: 600;
- line-height: 20px;
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- }
- .unleft-4 {
- width: 40%;
- height: 100%;
- font-size: 12px;
- color: rgba(75, 85, 174, 1);
- font-weight: 600;
- line-height: 20px;
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- }
- .right-4 {
- width: 60%;
- height: 100%;
- font-size: 12px;
- color: rgba(75, 85, 174, 1);
- line-height: 15px;
- display: flex;
- flex-direction: column;
- justify-content: center;
- }
- .unright-4 {
- width: 60%;
- height: 100%;
- font-size: 12px;
- color: rgba(75, 85, 174, 1);
- line-height: 15px;
- display: flex;
- flex-direction: column;
- justify-content: center;
- }
- .box-5 {
- width: 133px;
- height: 48px;
- color: #ffffff;
- border: 2px solid rgba(186, 50, 55, 1);
- background-color: rgba(186, 50, 55, .05);
- display: flex;
- flex-direction: row;
- align-items: center;
- margin-right: 5px;
- margin-top: 10px;
- box-shadow: 0px 0px 6px #ff1313;
- }
- .unbox-5 {
- width: 135px;
- height: 50px;
- color: #ffffff;
- border: 1px solid rgba(186, 50, 55, 1);
- background-color: rgba(186, 50, 55, .2);
- display: flex;
- flex-direction: row;
- align-items: center;
- margin-right: 5px;
- margin-top: 10px;
- }
- .left-5 {
- width: 40%;
- height: 100%;
- font-size: 12px;
- color: rgba(186, 50, 55, 1);
- font-weight: 600;
- line-height: 20px;
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- }
- .unleft-5 {
- width: 40%;
- height: 100%;
- font-size: 12px;
- color: rgba(186, 50, 55, 1);
- font-weight: 600;
- line-height: 20px;
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- }
- .right-5 {
- width: 60%;
- height: 100%;
- font-size: 12px;
- color: rgba(186, 50, 55, 1);
- line-height: 15px;
- display: flex;
- flex-direction: column;
- justify-content: center;
- }
- .unright-5 {
- width: 60%;
- height: 100%;
- font-size: 12px;
- color: rgba(186, 50, 55, 1);
- line-height: 15px;
- display: flex;
- flex-direction: column;
- justify-content: center;
- }
- .box-6 {
- width: 135px;
- height: 50px;
- color: #ffffff;
- border: 1px solid rgba(225, 125, 36, 1);
- background-color: rgba(225, 125, 36, .05);
- display: flex;
- flex-direction: row;
- align-items: center;
- margin-right: 5px;
- margin-top: 10px;
- box-shadow: 0px 0px 6px #f28627;
- }
- .unbox-6 {
- width: 135px;
- height: 50px;
- color: #ffffff;
- border: 1px solid rgba(225, 125, 36, 1);
- background-color: rgba(225, 125, 36, .2);
- display: flex;
- flex-direction: row;
- align-items: center;
- margin-right: 5px;
- margin-top: 10px;
- }
- .left-6 {
- width: 40%;
- height: 100%;
- font-size: 12px;
- color: rgba(225, 125, 36, 1);
- font-weight: 600;
- line-height: 20px;
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- }
- .unleft-6 {
- width: 40%;
- height: 100%;
- font-size: 12px;
- color: rgba(225, 125, 36, 1);
- font-weight: 600;
- line-height: 20px;
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- }
- .right-6 {
- width: 60%;
- height: 100%;
- font-size: 12px;
- color: rgba(225, 125, 36, 1);
- line-height: 15px;
- display: flex;
- flex-direction: column;
- justify-content: center;
- }
- .unright-6 {
- width: 60%;
- height: 100%;
- font-size: 12px;
- color: rgba(225, 125, 36, 1);
- line-height: 15px;
- display: flex;
- flex-direction: column;
- justify-content: center;
- }
- .box-7 {
- width: 135px;
- height: 50px;
- color: #ffffff;
- border: 1px solid rgba(96, 103, 105, 1);
- background-color: rgba(96, 103, 105, .05);
- display: flex;
- flex-direction: row;
- align-items: center;
- margin-right: 5px;
- margin-top: 10px;
- box-shadow: 0px 0px 6px #ffffff;
- }
- .unbox-7 {
- width: 135px;
- height: 50px;
- color: #ffffff;
- border: 1px solid rgba(96, 103, 105, 1);
- background-color: rgba(96, 103, 105, .2);
- display: flex;
- flex-direction: row;
- align-items: center;
- margin-right: 5px;
- margin-top: 10px;
- }
- .left-7 {
- width: 40%;
- height: 100%;
- font-size: 12px;
- color: rgba(96, 103, 105, 1);
- font-weight: 600;
- line-height: 20px;
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- }
- .unleft-7 {
- width: 40%;
- height: 100%;
- font-size: 12px;
- color: rgba(96, 103, 105, 1);
- font-weight: 600;
- line-height: 20px;
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- }
- .right-7 {
- width: 60%;
- height: 100%;
- font-size: 12px;
- color: rgba(96, 103, 105, 1);
- line-height: 15px;
- display: flex;
- flex-direction: column;
- justify-content: center;
- }
- .unright-7 {
- width: 60%;
- height: 100%;
- font-size: 12px;
- color: rgba(96, 103, 105, 1);
- line-height: 15px;
- display: flex;
- flex-direction: column;
- justify-content: center;
- }
- </style>
|