From 9f32bd5b0217473d0b0eb819b7a49d64bbcd3db6 Mon Sep 17 00:00:00 2001 From: liweilong <515897141@qq.com> Date: 星期三, 02 十二月 2020 15:49:27 +0800 Subject: [PATCH] 优化轮播图管理 --- src/pages/system/admin.vue | 23 +++++++++++++++++------ 1 files changed, 17 insertions(+), 6 deletions(-) diff --git a/src/pages/system/admin.vue b/src/pages/system/admin.vue index 3bff808..5f8fbc0 100644 --- a/src/pages/system/admin.vue +++ b/src/pages/system/admin.vue @@ -36,7 +36,7 @@ <el-table :data="list"> <el-table-column type="index" label="搴忓彿" align="center" width="60" /> - <el-table-column label="濮撳悕" prop="name" align="center" min-width="120" /> + <el-table-column label="鍚嶇О" prop="name" align="center" min-width="120" /> <el-table-column label="璐﹀彿" prop="account" align="center" min-width="120" /> <el-table-column label="瑙掕壊" prop="roleName" align="center" min-width="120" /> <!-- <el-table-column label="鏈�杩戠櫥褰曟椂闂�" prop="loginTime" align="center" min-width="180" /> --> @@ -81,7 +81,7 @@ <!-- 鏂板&缂栬緫 --> <el-dialog :title="adminDialogData.type=='add'?'鏂板绠$悊鍛�':'缂栬緫绠$悊鍛�'" width="500px" :visible.sync="isShowadminDialog" append-to-body> - <el-form ref="adminDialog" :model="adminDialogData" label-width="80px" :rules="rules"> + <el-form ref="adminDialog" :model="adminDialogData" label-width="80px" :rules="rules" size="small"> <el-form-item label="鍚嶇О" prop="name"> <el-input v-model="adminDialogData.name" placeholder="璇疯緭鍏ュ悕绉�" /> </el-form-item> @@ -101,10 +101,18 @@ v-model="adminDialogData.sysRoleId" clearable placeholder="瑙掕壊" - class="com-edit-input" + style="width: 100%" > <el-option v-for="item in roleArr" :key="item.id" :label="item.name" :value="item.id" /> </el-select> + </el-form-item> + + <el-form-item label="鏄惁鍚敤" prop="sysRoleId"> + <el-switch + v-model="adminDialogData.isUse" + :active-value="1" + :inactive-value="0" + /> </el-form-item> </el-form> @@ -294,7 +302,8 @@ account: '', password: '', passwordSure: '', - sysRoleId: '' + sysRoleId: '', + isUse: 1 } this.adminDialogData = adminDialogData this.isShowadminDialog = true @@ -308,7 +317,8 @@ password: '', passwordSure: '', sysRoleId: item.roId, - id: item.id + id: item.id, + isUse: item.isUse } this.adminDialogData = adminDialogData this.isShowadminDialog = true @@ -327,7 +337,8 @@ name: adminDialogData.name, account: adminDialogData.account, password: adminDialogData.password, - sysAdRoleId: adminDialogData.sysRoleId + sysAdRoleId: adminDialogData.sysRoleId, + isUse: adminDialogData.isUse } var isAdd = adminDialogData.type === 'add' var url = isAdd ? 'admin/add' : 'admin/update' -- Gitblit v1.8.0