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="common-content-box dis-flex flex-col flex-1">
|
||||||
<div class="search-box">
|
<div class="search-box">
|
||||||
<FormComponent :options="formOptions" :data.sync="params" @actionCallback="callback" :actions="formActions"
|
<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>
|
||||||
<div class="table-box flex-1">
|
<div class="table-box flex-1">
|
||||||
<TableComponent :tableData="tableData" :tableColumn="tableColumn" @actionCallback="callback($event)"
|
<TableComponent :tableData="tableData" :tableColumn="tableColumn" @actionCallback="callback($event)"
|
||||||
|
|
|
@ -42,6 +42,10 @@ export default class RulesManagerComponent extends BaseRecordComponent<any> {
|
||||||
value:"search",
|
value:"search",
|
||||||
icon:"el-icon-search",
|
icon:"el-icon-search",
|
||||||
type:"primary"
|
type:"primary"
|
||||||
|
}, {
|
||||||
|
name: "清空",
|
||||||
|
icon: "el-icon-tickets",
|
||||||
|
value: "reset"
|
||||||
}];
|
}];
|
||||||
|
|
||||||
public tableActions = [{
|
public tableActions = [{
|
||||||
|
|
|
@ -105,6 +105,10 @@ export default class RewardsRecord extends BaseRecordComponent<any> {
|
||||||
key: "postName",
|
key: "postName",
|
||||||
datas: this.$store.state.postList,
|
datas: this.$store.state.postList,
|
||||||
width: "270px",
|
width: "270px",
|
||||||
|
}, {
|
||||||
|
name: "职务",
|
||||||
|
type: "text",
|
||||||
|
key: "dutyName",
|
||||||
}];
|
}];
|
||||||
|
|
||||||
public subActions = [{
|
public subActions = [{
|
||||||
|
@ -346,6 +350,9 @@ export default class RewardsRecord extends BaseRecordComponent<any> {
|
||||||
}
|
}
|
||||||
// 分页数据
|
// 分页数据
|
||||||
public getTableData() {
|
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.tableService.selectByPage(this.params).then(res => {
|
||||||
this.tableData = res.data as any;
|
this.tableData = res.data as any;
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue