Commit de75bee0 authored by 赵啸非's avatar 赵啸非

Merge remote-tracking branch 'origin/master'

parents f88bdebd 25ed2622
...@@ -11,5 +11,5 @@ VUE_APP_WEBSOCKET_API =127.0.0.1:18222/m ...@@ -11,5 +11,5 @@ VUE_APP_WEBSOCKET_API =127.0.0.1:18222/m
VUE_APP_PORTAL_URL = http://192.168.0.98:11072 VUE_APP_PORTAL_URL = http://192.168.0.98:11072
# 站点请求地址 # 站点请求地址
VUE_APP_SITETREE_URL = http://127.0.0.1:18222/m/site/siteTree VUE_APP_SITETREE_URL = http://192.168.0.98:18222/m/site/siteTree
...@@ -3,13 +3,11 @@ ...@@ -3,13 +3,11 @@
<div class="page-header"> <div class="page-header">
<div> <div>
<span style="font-size: 14px" <span style="font-size: 14px"
><b>设备列表</b> (<el-link ><b>设备列表</b>
style="margin-left: 10px" <span style="margin-right: 6px">{{ siteName }}</span> 站点编码:{{
type="primary" siteCode
:underline="false" }}
>{{ siteName }}</el-link </span
>
站点编码:{{ siteCode }} )</span
> >
<el-link <el-link
style="margin-left: 10px" style="margin-left: 10px"
...@@ -175,12 +173,14 @@ ...@@ -175,12 +173,14 @@
</div> </div>
</el-dialog> </el-dialog>
<!-- 查看二维码弹窗 --> <!-- 查看二维码弹窗 -->
<el-dialog <el-dialog
title="设备二维码" title="设备二维码"
:visible.sync="qrCodeDialog.visible" width="350px"> :visible.sync="qrCodeDialog.visible"
<img :src="qrCodeDialog.qrCode"> width="350px"
<p style="word-wrap:break-word">{{qrCodeDialog.qrCodeUrl}}</p> >
<img :src="qrCodeDialog.qrCode" />
<p style="word-wrap: break-word">{{ qrCodeDialog.qrCodeUrl }}</p>
</el-dialog> </el-dialog>
<!-- <dialog-show ref="dialogform" @ok="getData" /> --> <!-- <dialog-show ref="dialogform" @ok="getData" /> -->
...@@ -419,16 +419,16 @@ export default { ...@@ -419,16 +419,16 @@ export default {
); );
}, },
async viewQrCode(id) { async viewQrCode(id) {
try { try {
const {qrCode, qrCodeUrl} = await this.$post('/device/viewQrCode', { const { qrCode, qrCodeUrl } = await this.$post("/device/viewQrCode", {
"id":id id: id,
}); });
this.qrCodeDialog.qrCode = qrCode; this.qrCodeDialog.qrCode = qrCode;
this.qrCodeDialog.qrCodeUrl = qrCodeUrl; this.qrCodeDialog.qrCodeUrl = qrCodeUrl;
this.qrCodeDialog.visible = true; this.qrCodeDialog.visible = true;
} catch (error) { } catch (error) {
this.$message.error(error.message); this.$message.error(error.message);
} }
}, },
}, },
data() { data() {
...@@ -578,7 +578,13 @@ export default { ...@@ -578,7 +578,13 @@ export default {
"" ""
)} )}
<span> </span> <span> </span>
<el-button type="text" size='mini' onClick={()=>this.viewQrCode(row.id)}>二维码</el-button> <el-button
type="text"
size="mini"
onClick={() => this.viewQrCode(row.id)}
>
二维码
</el-button>
</div> </div>
); );
}, },
......
...@@ -111,8 +111,8 @@ export default { ...@@ -111,8 +111,8 @@ export default {
getRoleUsers(id) { getRoleUsers(id) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
this.$post("/role/user/list", { this.$post("/role/user/list", {
"userId": id, userId: id,
"size": -1, size: -1,
}) })
.then(({ data }) => { .then(({ data }) => {
const result = data.data const result = data.data
...@@ -153,8 +153,8 @@ export default { ...@@ -153,8 +153,8 @@ export default {
}, },
config: { config: {
columns: [ columns: [
{ type: "selection",reserveSelection:true, width: 60 }, { type: "selection", reserveSelection: true, width: 60 },
{ type: "index", label: "序号",align:"center", width: 50 }, { type: "index", label: "序号", align: "center", width: 50 },
{ {
prop: "loginName", prop: "loginName",
label: "登录名称", label: "登录名称",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment