|
|
@@ -57,7 +57,7 @@
|
|
|
</div>
|
|
|
<div v-else-if="currentUserLevel == 2">
|
|
|
<el-button size="mini" round plain type="primary" @click="edit_amount(scope.$index, scope.row)">修改</el-button>
|
|
|
- <el-button size="mini" round plain type="danger" @click="delete_amount(scope.$index, scope.row)">
|
|
|
+ <el-button size="mini" v-if="scope.row.admin_name !== currentUserName" round plain type="danger" @click="delete_amount(scope.$index, scope.row)">
|
|
|
删除</el-button>
|
|
|
</div>
|
|
|
</template>
|
|
|
@@ -544,6 +544,11 @@
|
|
|
* 删除账号对话框确定按钮事件
|
|
|
*/
|
|
|
delete_account_dialog() {
|
|
|
+ if (this.deleteAccountData.delete_account === this.currentUserName) {
|
|
|
+ this.$message.error('当前用户不能删除!');
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
deleteAccount(this.deleteAccountData.id).then((res) => {
|
|
|
// console.log(res);
|
|
|
if (typeof res.code == 'undefined' || res.code == '') {
|