mirror of https://gitee.com/xiaonuobase/snowy
【更新】去掉角色管理功能界面上面增加的合并行
parent
e62387d684
commit
35849994a8
|
@ -73,9 +73,5 @@ export default {
|
|||
// 获取权限授权树
|
||||
rolePermissionTreeSelector(data) {
|
||||
return request('permissionTreeSelector', data, 'get')
|
||||
},
|
||||
// 获取汇总数据
|
||||
roleSummary(data) {
|
||||
return request('summary', data, 'get')
|
||||
}
|
||||
}
|
||||
|
|
|
@ -88,17 +88,6 @@
|
|||
</a-dropdown>
|
||||
</template>
|
||||
</template>
|
||||
<!-- <template #summary>
|
||||
<a-table-summary-row>
|
||||
<a-table-summary-cell :index="0">汇 总</a-table-summary-cell>
|
||||
<a-table-summary-cell :index="1"></a-table-summary-cell>
|
||||
<a-table-summary-cell :index="2"></a-table-summary-cell>
|
||||
<a-table-summary-cell :index="3">
|
||||
<a-typography-text type="danger">{{ summaryData.sortCode }}</a-typography-text>
|
||||
</a-table-summary-cell>
|
||||
<a-table-summary-cell :index="4"></a-table-summary-cell>
|
||||
</a-table-summary-row>
|
||||
</template> -->
|
||||
</s-table>
|
||||
</a-card>
|
||||
</a-col>
|
||||
|
@ -180,21 +169,10 @@
|
|||
// 表格查询 返回 Promise 对象
|
||||
const loadData = (parameter) => {
|
||||
let param = Object.assign(parameter, searchFormState)
|
||||
summaryDataReq(param)
|
||||
return roleApi.rolePage(param).then((res) => {
|
||||
return res
|
||||
})
|
||||
}
|
||||
// 计算汇总数据
|
||||
const summaryData = {}
|
||||
const summaryDataReq = (param) => {
|
||||
summaryData.sortCode = ref(0)
|
||||
roleApi.roleSummary(param).then((summary) => {
|
||||
if(summary != null){
|
||||
return summaryData.sortCode = summary.sortCode
|
||||
}
|
||||
})
|
||||
}
|
||||
// 加载左侧的树
|
||||
orgApi.orgTree().then((res) => {
|
||||
cardLoading.value = false
|
||||
|
|
Loading…
Reference in New Issue