|
@@ -44,6 +44,15 @@
|
|
<!-- <el-col :span="1.5">
|
|
<!-- <el-col :span="1.5">
|
|
<el-button type="success" plain icon="el-icon-edit" size="mini" :disabled="single" @click="handleUpdate" v-hasPermi="['system:user:edit']">修改</el-button>
|
|
<el-button type="success" plain icon="el-icon-edit" size="mini" :disabled="single" @click="handleUpdate" v-hasPermi="['system:user:edit']">修改</el-button>
|
|
</el-col> -->
|
|
</el-col> -->
|
|
|
|
+ <el-col :span="1.5">
|
|
|
|
+ <el-button
|
|
|
|
+ type="primary"
|
|
|
|
+ plain
|
|
|
|
+ size="mini"
|
|
|
|
+ @click="handleAddtai"
|
|
|
|
+ v-hasPermi="['manage:common:getDynamicPassword']"
|
|
|
|
+ >生成动态码</el-button>
|
|
|
|
+ </el-col>
|
|
<el-col :span="1.5">
|
|
<el-col :span="1.5">
|
|
<el-button type="danger" plain size="mini" :disabled="multiple" @click="handleDelete" v-hasPermi="['system:user:remove']">删除</el-button>
|
|
<el-button type="danger" plain size="mini" :disabled="multiple" @click="handleDelete" v-hasPermi="['system:user:remove']">删除</el-button>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -277,6 +286,7 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import { listUser, getUser, delUser, addUser, updateUser, resetUserPwd, changeUserStatus, deptTreeSelect } from "@/api/system/user"
|
|
import { listUser, getUser, delUser, addUser, updateUser, resetUserPwd, changeUserStatus, deptTreeSelect } from "@/api/system/user"
|
|
|
|
+import { getDynamicPassword, listConfig, getConfig, delConfig, addConfig, updateConfig, refreshCache } from "@/api/system/config"
|
|
import { getToken } from "@/utils/auth"
|
|
import { getToken } from "@/utils/auth"
|
|
import Treeselect from "@riophae/vue-treeselect"
|
|
import Treeselect from "@riophae/vue-treeselect"
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css"
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css"
|
|
@@ -426,6 +436,18 @@ export default {
|
|
this.changeTableMaxHeight()
|
|
this.changeTableMaxHeight()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ // 生成动态码
|
|
|
|
+ handleAddtai(){
|
|
|
|
+ getDynamicPassword().then(response => {
|
|
|
|
+ this.$notify({
|
|
|
|
+ title: '动态码为:' + response.data,
|
|
|
|
+ message:'操作成功' ,
|
|
|
|
+ type: 'success',
|
|
|
|
+ duration: 0
|
|
|
|
+ });
|
|
|
|
+ // this.getList()
|
|
|
|
+ })
|
|
|
|
+ },
|
|
showContent(item) {
|
|
showContent(item) {
|
|
// console.log(item.isHidden,3)
|
|
// console.log(item.isHidden,3)
|
|
this.$set(item,'isHidden',true);
|
|
this.$set(item,'isHidden',true);
|