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