mirror of https://github.com/openspug/spug
F - 权限-发布 - 修复角色权限分配权限不能点击问题,修复新建发布不能获取通知方式问题。
parent
dd7601b5e1
commit
2d7d567628
|
@ -244,7 +244,7 @@
|
|||
fetch() {
|
||||
this.loading = true;
|
||||
this.$http.get(`/api/account/roles/${this.role.id}/permissions`).then(res => {
|
||||
this.codes = res.result
|
||||
this.codes = res.result;
|
||||
}, res => this.$layer_message(res.result)).finally(() => this.loading = false)
|
||||
},
|
||||
saveCommit() {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<td @click="check"><el-tag :type="tag_type" style="cursor: pointer">{{item.desc}}</el-tag></td>
|
||||
<td ><el-tag @click="check" type="info" :color="colorUpdate" style="cursor: pointer">{{item.desc}}</el-tag></td>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
@ -9,13 +9,13 @@
|
|||
return {}
|
||||
},
|
||||
computed: {
|
||||
tag_type() {
|
||||
return (this.item['is_has']) ? 'primary' : 'info'
|
||||
}
|
||||
colorUpdate() {
|
||||
return (this.item['is_has']) ? '#99ffd6' : '#ffffff'
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
check() {
|
||||
this.item['is_has'] = !this.item['is_has']
|
||||
this.item['is_has'] = !this.item['is_has'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -162,7 +162,6 @@
|
|||
let [action, index] = command.split(' ');
|
||||
this.form = this.$deepCopy(this.tableData[index]);
|
||||
if (action === 'edit') {
|
||||
|
||||
if (this.images.length === 0) this.fetchImages();
|
||||
this.dialogAddVisible = true;
|
||||
this.fetchNotifyWay();
|
||||
|
@ -200,6 +199,7 @@
|
|||
// this.$router.push({name: 'app_add'})
|
||||
this.form = this.init_form();
|
||||
this.dialogAddVisible = true;
|
||||
this.fetchNotifyWay();
|
||||
if (this.images.length === 0) this.fetchImages()
|
||||
},
|
||||
addGroup() {
|
||||
|
|
Loading…
Reference in New Issue