mirror of
https://gitee.com/beecue/fastbee.git
synced 2025-12-19 09:25:54 +08:00
完善前端
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd" v-hasPermi="['iot:authorize:add']">新增授权码</el-button>
|
||||
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd" v-hasPermi="['iot:authorize:add']">生成授权码</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button type="success" plain icon="el-icon-edit" size="mini" :disabled="single" @click="handleUpdate" v-hasPermi="['iot:authorize:edit']">修改</el-button>
|
||||
@@ -94,7 +94,7 @@
|
||||
width: 300px;
|
||||
}
|
||||
.createNum input{
|
||||
width: 130px;
|
||||
width: 260px;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -223,7 +223,7 @@ export default {
|
||||
},
|
||||
/** 批量新增按钮操作 */
|
||||
handleAdd() {
|
||||
this.$prompt('输入新增授权码数量', '提示', {
|
||||
this.$prompt('', '输入新增授权码数量', {
|
||||
customClass: 'createNum',
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
|
||||
@@ -296,10 +296,8 @@ export default {
|
||||
},
|
||||
// 授权码状态修改
|
||||
changeIsAuthorize() {
|
||||
let text = this.form.isAuthorize === "1" ? "启用" : "停用";
|
||||
let _this = this;
|
||||
this.$modal.confirm('确认要[' + text + ']' + this.form.productName + '授权码吗?').then(function () {
|
||||
_this.submitForm();
|
||||
let text = this.form.isAuthorize == "1" ? "启用" : "停用";
|
||||
this.$modal.confirm('确认要' + text + '授权码吗?').then(function () {
|
||||
}).catch(() => {
|
||||
this.form.isAuthorize = 0;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user