|
@@ -117,15 +117,16 @@
|
|
|
<span>{{ row.vendorErrorCode }}</span>
|
|
<span>{{ row.vendorErrorCode }}</span>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <!--el-table-column
|
|
|
|
|
|
|
+ <el-table-column
|
|
|
label="Action"
|
|
label="Action"
|
|
|
prop="sitePk"
|
|
prop="sitePk"
|
|
|
align="center"
|
|
align="center"
|
|
|
- width="240">
|
|
|
|
|
|
|
+ width="100">
|
|
|
<template slot-scope="{row}">
|
|
<template slot-scope="{row}">
|
|
|
- <TableAction />
|
|
|
|
|
|
|
+ <!-- <TableAction /> -->
|
|
|
|
|
+ <span class="link-type" @click="showConnectorQR(row)">QRCode</span>
|
|
|
</template>
|
|
</template>
|
|
|
- </el-table-column-->
|
|
|
|
|
|
|
+ </el-table-column>
|
|
|
</el-table>
|
|
</el-table>
|
|
|
<div class="right">
|
|
<div class="right">
|
|
|
<pagination
|
|
<pagination
|
|
@@ -135,15 +136,20 @@
|
|
|
:limit.sync="listQuery.limit"
|
|
:limit.sync="listQuery.limit"
|
|
|
@pagination="handlePageChange" />
|
|
@pagination="handlePageChange" />
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <ConnectorTags
|
|
|
|
|
+ :visible="printConnector.visible"
|
|
|
|
|
+ :qrCode="printConnector.qrCode"
|
|
|
|
|
+ @hide="hideConnectorQR"/>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
import Pagination from '@/components/Pagination'
|
|
import Pagination from '@/components/Pagination'
|
|
|
import TableAction from '@/components/TableAction.vue'
|
|
import TableAction from '@/components/TableAction.vue'
|
|
|
|
|
+ import ConnectorTags from './components/ConnectorTags.vue'
|
|
|
import api from '../../http/api/charge'
|
|
import api from '../../http/api/charge'
|
|
|
export default {
|
|
export default {
|
|
|
- components: { Pagination, TableAction },
|
|
|
|
|
|
|
+ components: { Pagination, TableAction, ConnectorTags },
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
filter: {
|
|
filter: {
|
|
@@ -161,6 +167,10 @@
|
|
|
page: 1,
|
|
page: 1,
|
|
|
limit: 10,
|
|
limit: 10,
|
|
|
},
|
|
},
|
|
|
|
|
+ printConnector: {
|
|
|
|
|
+ qrCode: "",
|
|
|
|
|
+ visible: false
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
@@ -204,6 +214,14 @@
|
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
|
this.listLoading = false;
|
|
this.listLoading = false;
|
|
|
})
|
|
})
|
|
|
|
|
+ },
|
|
|
|
|
+ showConnectorQR(row) {
|
|
|
|
|
+ this.printConnector.visible = true;
|
|
|
|
|
+ this.printConnector.qrCode = row.chargeBoxId + "::" + row.connectorId
|
|
|
|
|
+ },
|
|
|
|
|
+ hideConnectorQR() {
|
|
|
|
|
+ console.log('hide');
|
|
|
|
|
+ this.printConnector.visible = false;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|