Browse Source

init

master
han\hanst 8 months ago
parent
commit
dc27699093
  1. 17
      src/views/modules/sys/role.vue

17
src/views/modules/sys/role.vue

@ -43,7 +43,6 @@
<template slot-scope="scope"> <template slot-scope="scope">
<a type="text" size="small" @click="addOrUpdateHandle(scope.row.roleId)">{{buttons.edit||'修改'}}</a> <a type="text" size="small" @click="addOrUpdateHandle(scope.row.roleId)">{{buttons.edit||'修改'}}</a>
<a type="text" size="small" @click="deleteHandle(scope.row.roleId)">{{buttons.delete|| '删除'}}</a> <a type="text" size="small" @click="deleteHandle(scope.row.roleId)">{{buttons.delete|| '删除'}}</a>
<!-- <a type="text" size="small" @click="showAuthCustomerReportModal(scope.row)">{{buttons.reportRole || '报表赋权'}}</a>-->
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -58,11 +57,7 @@
</el-pagination> </el-pagination>
<!-- 弹窗, 新增 / 修改 --> <!-- 弹窗, 新增 / 修改 -->
<add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update> <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update>
<!--报表赋权限-->
<authCustomerReport ref="authCustomerReport" :close-on-click-modal="false"
:visible.sync="showAuthCustomerReportFlag" @refreshDataList="getDataList">
</authCustomerReport>
</div> </div>
</template> </template>
@ -74,11 +69,10 @@ import {
saveButtonList, saveButtonList,
} from "@/api/sysLanguage.js" } from "@/api/sysLanguage.js"
import AddOrUpdate from './role-add-or-update' import AddOrUpdate from './role-add-or-update'
import authCustomerReport from '../report/com_auth_customer_report' /**/
export default { export default {
data () { data () {
return { return {
showAuthCustomerReportFlag: false,
dataForm: { dataForm: {
roleName: '' roleName: ''
}, },
@ -104,7 +98,6 @@ import {
}, },
components: { components: {
AddOrUpdate, AddOrUpdate,
authCustomerReport,/*报表赋权限*/
}, },
activated () { activated () {
this.getDataList() this.getDataList()
@ -192,14 +185,6 @@ import {
}) })
}).catch(() => {}) }).catch(() => {})
}, },
/*给角色报表赋权限*/
showAuthCustomerReportModal(currentRow){
this.$nextTick(() => {
this.showAuthCustomerReportFlag = true;
this.$refs.authCustomerReport.init(currentRow);
});
},
}, },
created() { created() {
this.getFunctionButtonList() this.getFunctionButtonList()

Loading…
Cancel
Save