flat: update

This commit is contained in:
史典卓
2024-11-05 14:59:56 +08:00
parent a32d676110
commit d7b94d0616
3 changed files with 31 additions and 9 deletions

View File

@@ -120,7 +120,7 @@ const initFormValue = {
}
const checkAtturbute = {
name: '',
serveLabels: [],
// serveLabels: [],
policyIds: [],
talentsGroupId: [],
}

View File

@@ -17,6 +17,9 @@
class="customPage"
:row-style="rowStyle"
>
<template slot="statusCop" slot-scope="{row}">
<span>{{ statusLs.find((item) => item.value === row.status).label }}</span>
</template>
</avue-crud>
</basic-container>
</el-row>
@@ -35,6 +38,11 @@ const page = {
currentPage: 1,
total: 0,
}
const statusLs = [
{label: "未处理", value: '0'},
{label: "确认", value: '1'},
{label: "忽略", value: '2'}
]
const baseOptions = {
size: 'medium',
dateBtn: false,
@@ -78,7 +86,8 @@ export default {
loadingLog: false,
innerDrawerLog: false,
innerDrawerAddLog: false,
logValues: {}
logValues: {},
statusLs
}
},
computed: {
@@ -136,17 +145,25 @@ export default {
prop: 'remark',
display: false
},
{
label: '状态',
prop: 'statusCop',
type: 'radio',
slot: true,
display: false,
dicData: statusLs
},
{
label: '状态',
prop: 'status',
type: 'radio',
showColumn: false,
dicData: [
{label: "未处理", value: '0'},
{label: "确认", value: '1'},
{label: "忽略", value: '2'}
]
}
]
},
],
}
},
},

View File

@@ -78,7 +78,8 @@ export default {
loadingLog: false,
innerDrawerLog: false,
innerDrawerAddLog: false,
logValues: {}
logValues: {},
query: {}
}
},
computed: {
@@ -183,7 +184,9 @@ export default {
},
created() {
this.getDept()
this.onLoad(this.page, {...this.query, stime: this.getdate()})
this.query = {...this.query, stime: this.getdate()}
this.onLoad(this.page, this.query)
},
activated() {
this.$nextTick(() => {
@@ -222,16 +225,18 @@ export default {
this.onLoad(this.page, this.query);
},
sizeChange(size) {
this.page.size = size;
this.page.pageSize = size;
this.onLoad(this.page, this.query);
},
onLoad(page, params = {}) {
const {releaseTimeRange} = params;
let paramsed = {
current: page.currentPage,
size: page.size,
size: page.pageSize,
...params
};
console.log(this.query, paramsed)
this.loading = true;
getServeLogList(paramsed).then((res) => {
const {total, size, current, records, page} = res.data.data