forked from xxhjsb/hbt-prevention-ui
fix:问题修复
parent
386cf442be
commit
a39b7b7282
|
@ -2,7 +2,7 @@
|
|||
<div class="common-content-box dis-flex flex-col flex-1">
|
||||
<div class="search-box">
|
||||
<FormComponent :options="formOptions" :data.sync="params" @actionCallback="callback" :actions="formActions"
|
||||
:full-btn="false" @change="change" btn-position="end"></FormComponent>
|
||||
:full-btn="false" @change="callback" btn-position="end"></FormComponent>
|
||||
</div>
|
||||
<div class="table-box flex-1">
|
||||
<TableComponent :tableData="tableData" :tableColumn="tableColumn" @actionCallback="callback($event)"
|
||||
|
|
|
@ -42,6 +42,10 @@ export default class RulesManagerComponent extends BaseRecordComponent<any> {
|
|||
value:"search",
|
||||
icon:"el-icon-search",
|
||||
type:"primary"
|
||||
}, {
|
||||
name: "清空",
|
||||
icon: "el-icon-tickets",
|
||||
value: "reset"
|
||||
}];
|
||||
|
||||
public tableActions = [{
|
||||
|
|
|
@ -105,6 +105,10 @@ export default class RewardsRecord extends BaseRecordComponent<any> {
|
|||
key: "postName",
|
||||
datas: this.$store.state.postList,
|
||||
width: "270px",
|
||||
}, {
|
||||
name: "职务",
|
||||
type: "text",
|
||||
key: "dutyName",
|
||||
}];
|
||||
|
||||
public subActions = [{
|
||||
|
@ -346,6 +350,9 @@ export default class RewardsRecord extends BaseRecordComponent<any> {
|
|||
}
|
||||
// 分页数据
|
||||
public getTableData() {
|
||||
if(this.params.postName){
|
||||
this.params.postName = this.$store.state.postList.find((item: any) => item.value === this.params.postName)?.name??""
|
||||
}
|
||||
this.tableService.selectByPage(this.params).then(res => {
|
||||
this.tableData = res.data as any;
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue