|
@@ -12,6 +12,7 @@
|
|
: 'card-unselect-' + item.status
|
|
: 'card-unselect-' + item.status
|
|
"
|
|
"
|
|
@click="onSelectHandler(item)"
|
|
@click="onSelectHandler(item)"
|
|
|
|
+ @dblclick="sendMsg(item)"
|
|
>
|
|
>
|
|
<div
|
|
<div
|
|
class="card-left"
|
|
class="card-left"
|
|
@@ -40,17 +41,27 @@
|
|
</div>
|
|
</div>
|
|
<div class="bottom"></div>
|
|
<div class="bottom"></div>
|
|
</div>
|
|
</div>
|
|
|
|
+ <WindturbineDetailPages
|
|
|
|
+ v-model="dialogVisible"
|
|
|
|
+ :windturbine="currentWindturbine"
|
|
|
|
+ ></WindturbineDetailPages>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
+import WindturbineDetailPages from '../WindturbineDetailPages.vue'
|
|
export default {
|
|
export default {
|
|
name: "ControlMatrixCard",
|
|
name: "ControlMatrixCard",
|
|
props: { title: String, datas: Object, operateStyle: Number },
|
|
props: { title: String, datas: Object, operateStyle: Number },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
values: [],
|
|
values: [],
|
|
|
|
+ dialogVisible: false,
|
|
|
|
+ currentWindturbine:{},
|
|
};
|
|
};
|
|
},
|
|
},
|
|
|
|
+ components: {
|
|
|
|
+ WindturbineDetailPages,
|
|
|
|
+ },
|
|
created() {
|
|
created() {
|
|
//this.CheckTimer = setInterval(this.checkCard,2000);
|
|
//this.CheckTimer = setInterval(this.checkCard,2000);
|
|
},
|
|
},
|
|
@@ -60,6 +71,11 @@ export default {
|
|
item.active = !item.active;
|
|
item.active = !item.active;
|
|
},
|
|
},
|
|
|
|
|
|
|
|
+ sendMsg: function (itm) {
|
|
|
|
+ this.dialogVisible = true;
|
|
|
|
+ this.currentWindturbine=itm;
|
|
|
|
+ },
|
|
|
|
+
|
|
/* 获取选中的项目 */
|
|
/* 获取选中的项目 */
|
|
getSelectedItems() {
|
|
getSelectedItems() {
|
|
var ls = new Array();
|
|
var ls = new Array();
|