|
|
|
@ -31,9 +31,31 @@
|
|
|
|
|
</el-form>
|
|
|
|
|
<el-dialog title="手持终端服务IP地址设置" :visible.sync="qrCodeVisible" width="27%">
|
|
|
|
|
<div id="qrCodeUrl"></div>
|
|
|
|
|
<el-row :gutter="20" class="el-row" type="flex" style="margin-top: 20px">
|
|
|
|
|
<el-col :span="24" class="el-col">
|
|
|
|
|
<div class="text item">
|
|
|
|
|
<div class="itemTag">
|
|
|
|
|
<span>当前系统: </span>
|
|
|
|
|
</div>
|
|
|
|
|
<el-input
|
|
|
|
|
style="width: 60%"
|
|
|
|
|
size="small"
|
|
|
|
|
placeholder="请输入内容"
|
|
|
|
|
clearable
|
|
|
|
|
v-model="companyInfo.name"
|
|
|
|
|
></el-input>
|
|
|
|
|
</div>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
|
|
<el-button type="primary" icon="search" @click="saveNameClick"
|
|
|
|
|
>保存
|
|
|
|
|
</el-button
|
|
|
|
|
>
|
|
|
|
|
<el-button @click="qrCodeVisible = false">取消</el-button>
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
<el-table v-loading="loading" :data="list" style="width: 100%">
|
|
|
|
@ -184,6 +206,8 @@
|
|
|
|
|
import {registerList, check, deleterKey} from "../../../api/auth/deviceCheck";
|
|
|
|
|
import QRCode from 'qrcodejs2'
|
|
|
|
|
import axios from "axios";
|
|
|
|
|
import store from "@/store";
|
|
|
|
|
import {getCompany, modifyCompany} from "@/api/inout/company";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
@ -213,6 +237,7 @@ export default {
|
|
|
|
|
editDialogVisible: false,
|
|
|
|
|
qrCodeVisible: false,
|
|
|
|
|
serverUrl: false,
|
|
|
|
|
companyInfo: {},
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
@ -328,6 +353,13 @@ export default {
|
|
|
|
|
this.centerDialogVisible = false;
|
|
|
|
|
},
|
|
|
|
|
qrCodeGeneration() {
|
|
|
|
|
let tquery = {
|
|
|
|
|
customerId: 110,
|
|
|
|
|
};
|
|
|
|
|
getCompany(tquery).then((response) => {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
this.companyInfo = response.data;
|
|
|
|
|
});
|
|
|
|
|
this.qrCodeVisible = true;
|
|
|
|
|
this.$nextTick(function () {
|
|
|
|
|
document.getElementById("qrCodeUrl").innerHTML = "";
|
|
|
|
@ -339,6 +371,14 @@ export default {
|
|
|
|
|
colorLight: "#fff"
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
saveNameClick() {
|
|
|
|
|
modifyCompany(this.companyInfo).then((response) => {
|
|
|
|
|
if (response.code == 20000) {
|
|
|
|
|
this.$message.success("保存成功!");
|
|
|
|
|
this.qrCodeVisible = false;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|