Przeglądaj źródła

【修改】隐藏密码

程志平 4 lat temu
rodzic
commit
27691ae64d

+ 6 - 6
src/components/zhuanghaoguanli/zhuanghaoguanli.vue

@@ -29,10 +29,10 @@
 						<template slot-scope="scope">{{ scope.row.name }}</template>
 					</el-table-column>
 					<el-table-column prop="number" label="账号" align="center"></el-table-column>
-					<el-table-column prop="password" label="密码" show-overflow-tooltip></el-table-column>
+					<el-table-column prop="password" label="密码" show-overflow-tooltip>******</el-table-column>
 					<el-table-column label="操作" align="center" width="80">
-						<el-button type="text" class="del-btn" slot-scope="scope" v-if="scope.row.number != login_account"
-							@click="handleDelete(scope.$index, scope.row)">删除
+						<el-button type="text" class="del-btn" slot-scope="scope"
+							v-if="scope.row.number != login_account" @click="handleDelete(scope.$index, scope.row)">删除
 						</el-button>
 					</el-table-column>
 					<el-table-column width="130">
@@ -124,7 +124,7 @@
 			return {
 				account: '', // 需要查找的账号
 				del_account: '', // 要删除的账号
-				del_id: 0,  // 要删除的id
+				del_id: 0, // 要删除的id
 				login_account: '',
 				adddialogFormVisible: false,
 				editdialogFormVisible: false, // 控制编辑对话框显示、隐藏
@@ -313,10 +313,10 @@
 						if (typeof(res.data.msg) != 'undefined' && res.data.msg != '' && res.data.msg == '更新成功' && JSON
 							.stringify(res.data) != '{}') {
 							_this.$message.success('【账号更新】成功!');
-							
+
 							// 更新表格
 							this.updateTable()
-							
+
 							_this.form.id = ''
 							_this.form.name = ''
 							_this.form.number = ''