Commit 112ad76d by 郑杰

细节修改,设置默认用户,角色,权限不可删除修改

parent e1d18217
......@@ -7,7 +7,10 @@ eladmin 前端源码
- github: [https://github.com/elunez/eladmin](https://github.com/elunez/eladmin)
#### 初始模板
前端模板基于:[https://github.com/PanJiaChen/vue-admin-template](https://github.com/PanJiaChen/vue-admin-template)
基于PanJiaChen的:[https://github.com/PanJiaChen/vue-admin-template](https://github.com/PanJiaChen/vue-admin-template)
#### 前端参考文档
[https://panjiachen.github.io/vue-element-admin-site/zh/guide/](https://panjiachen.github.io/vue-element-admin-site/zh/guide/)
## Build Setup
``` bash
......
......@@ -85,6 +85,10 @@ export default {
type: 'success',
duration: 2500
})
}).catch(err => {
this.delLoading = false
row.delPopover = false
console.log(err.response.data.message)
})
},
time(time) {
......
......@@ -99,6 +99,10 @@ export default {
type: 'success',
duration: 2500
})
}).catch(err => {
this.delLoading = false
row.delPopover = false
console.log(err.response.data.message)
})
},
time(time) {
......
......@@ -21,7 +21,7 @@
<el-button size="mini" type="text" @click="scope.row.delPopover = false">取消</el-button>
<el-button :loading="delLoading" type="primary" size="mini" @click="subDelete(scope.$index, scope.row)">确定</el-button>
</div>
<el-button slot="reference" type="danger" size="mini" @click="scope.row.delPopover = true">删除</el-button>
<el-button slot="reference" :disabled="scope.row.id === 1" type="danger" size="mini" @click="scope.row.delPopover = true">删除</el-button>
</el-popover>
</template>
</el-table-column>
......@@ -84,6 +84,10 @@ export default {
type: 'success',
duration: 2500
})
}).catch(err => {
this.delLoading = false
row.delPopover = false
console.log(err.response.data.message)
})
},
time(time) {
......
<template>
<div>
<el-button size="mini" type="success" @click="to">编辑</el-button>
<el-button :disabled="data.id === 1" size="mini" type="success" @click="to">编辑</el-button>
<el-dialog :visible.sync="dialog" :title="title" style="text-align: left" width="500px">
<el-form ref="form" :model="form" :rules="rules" size="small" label-width="80px">
<el-form-item label="名称" prop="name">
......
......@@ -23,7 +23,7 @@
<el-button size="mini" type="text" @click="scope.row.delPopover = false">取消</el-button>
<el-button :loading="delLoading" type="primary" size="mini" @click="subDelete(scope.$index, scope.row)">确定</el-button>
</div>
<el-button slot="reference" type="danger" size="mini" @click="scope.row.delPopover = true">删除</el-button>
<el-button slot="reference" :disabled="scope.row.id === 1" type="danger" size="mini" @click="scope.row.delPopover = true">删除</el-button>
</el-popover>
</template>
</el-table-column>
......@@ -82,6 +82,10 @@ export default {
type: 'success',
duration: 2500
})
}).catch(err => {
this.delLoading = false
row.delPopover = false
console.log(err.response.data.message)
})
},
time(time) {
......
<template>
<div>
<el-button size="mini" type="success" @click="to">编辑</el-button>
<el-button :disabled="data.id === 1" size="mini" type="success" @click="to">编辑</el-button>
<el-dialog :visible.sync="dialog" :title="title" style="text-align: left" width="500px">
<el-form ref="form" :model="form" :rules="rules" size="small" label-width="66px">
<el-form ref="form" :model="form" :rules="rules" size="small" label-width="66px">
......
......@@ -33,7 +33,7 @@
<el-button size="mini" type="text" @click="scope.row.delPopover = false">取消</el-button>
<el-button :loading="delLoading" type="primary" size="mini" @click="subDelete(scope.$index, scope.row)">确定</el-button>
</div>
<el-button slot="reference" type="danger" size="mini" @click="scope.row.delPopover = true">删除</el-button>
<el-button slot="reference" :disabled="scope.row.id === 1" type="danger" size="mini" @click="scope.row.delPopover = true">删除</el-button>
</el-popover>
</template>
</el-table-column>
......@@ -95,6 +95,10 @@ export default {
type: 'success',
duration: 2500
})
}).catch(err => {
this.delLoading = false
row.delPopover = false
console.log(err.response.data.message)
})
},
time(time) {
......
<template>
<div>
<el-button size="mini" type="success" @click="to">编辑</el-button>
<el-button :disabled="data.id === 1" size="mini" type="success" @click="to">编辑</el-button>
<el-dialog :visible.sync="dialog" :close-on-click-modal="false" :title="title" style="text-align: left" width="500px">
<el-form ref="form" :model="form" :rules="rules" size="small" label-width="66px">
<el-form-item label="用户名" prop="username">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment