|
|
|
@ -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
|
|
|
|
|