fix:问题修复

dev
zhushengzhe 2023-09-06 16:56:00 +08:00
parent 386cf442be
commit a39b7b7282
3 changed files with 12 additions and 1 deletions

View File

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

View File

@ -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 = [{

View File

@ -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;
})