From 894dd034da2c3b466f0ee80db36342d4b0d01ebc Mon Sep 17 00:00:00 2001 From: 明梦爽 <2972214568@qq.com> Date: 星期三, 26 一月 2022 23:18:03 +0800 Subject: [PATCH] 管理权限整好 --- src/components/Administrator/Main.vue | 30 +++++++++++++++++++----------- 1 files changed, 19 insertions(+), 11 deletions(-) diff --git a/src/components/Administrator/Main.vue b/src/components/Administrator/Main.vue index 76f7999..2953c2a 100644 --- a/src/components/Administrator/Main.vue +++ b/src/components/Administrator/Main.vue @@ -1,16 +1,18 @@ <template> <div> <!-- 绾ц仈閫夋嫨鍣� --> - <div class="block"> - <el-cascader - v-model="value" - :options="options" - clearable - filterable - :getCheckedNodes="true" - @change="handleChange"> - </el-cascader> - </div> + <el-row class="block"> + <el-col :span="4"> + <el-cascader + v-model="value" + :options="options" + clearable + filterable + :getCheckedNodes="true" + @change="handleChange"> + </el-cascader> + </el-col> + </el-row> <div> <el-card class="box-card"> <el-row :gutter="40"> @@ -114,6 +116,8 @@ gettable:true, //鑾峰彇琛ㄦ牸鐨勬樉绀� visible: false, editDialogVisible:false, //鎺у埗淇敼瀵硅瘽妗嗙殑甯冨皵鍊� + AdDialogVisible:false, //瓒呯鐧诲綍瀵硅瘽妗� + Ad:{ username:'',password:'' }, //瓒呯瀵硅薄 editForm:{}, //鏌ヨ鍒扮殑鏂伴椈瀵硅薄锛岀洰鍓嶄粎渚涗慨鏀逛娇鐢� newsCategoryId:1, //鍏堝瓨涓�涓皬鏍囬id tableData:[], //鏂伴椈鍒楄〃瀵硅薄 @@ -267,7 +271,7 @@ title:this.editForm.title } update(data).then(res=>{ - // console.log('dsadasas',res); + console.log('dsadasas',res); if (res.code == 200) { this.editDialogVisible =false; this.$message.success('淇敼鏂伴椈鎴愬姛锛�') @@ -348,6 +352,10 @@ look(id){ this.$router.push({path:'news',query:{id:id}}) }, + //瓒呯鐧诲綍瀵硅瘽妗� + showAdDialog(){ + this.AdDialogVisible = true + }, handleCurrentChange(val) { // console.log(`褰撳墠椤�: ${val}`); this.currentPage = val; -- Gitblit v1.8.0