flat: update
This commit is contained in:
@@ -120,7 +120,7 @@ const initFormValue = {
|
|||||||
}
|
}
|
||||||
const checkAtturbute = {
|
const checkAtturbute = {
|
||||||
name: '',
|
name: '',
|
||||||
serveLabels: [],
|
// serveLabels: [],
|
||||||
policyIds: [],
|
policyIds: [],
|
||||||
talentsGroupId: [],
|
talentsGroupId: [],
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,6 +17,9 @@
|
|||||||
class="customPage"
|
class="customPage"
|
||||||
:row-style="rowStyle"
|
:row-style="rowStyle"
|
||||||
>
|
>
|
||||||
|
<template slot="statusCop" slot-scope="{row}">
|
||||||
|
<span>{{ statusLs.find((item) => item.value === row.status).label }}</span>
|
||||||
|
</template>
|
||||||
</avue-crud>
|
</avue-crud>
|
||||||
</basic-container>
|
</basic-container>
|
||||||
</el-row>
|
</el-row>
|
||||||
@@ -35,6 +38,11 @@ const page = {
|
|||||||
currentPage: 1,
|
currentPage: 1,
|
||||||
total: 0,
|
total: 0,
|
||||||
}
|
}
|
||||||
|
const statusLs = [
|
||||||
|
{label: "未处理", value: '0'},
|
||||||
|
{label: "确认", value: '1'},
|
||||||
|
{label: "忽略", value: '2'}
|
||||||
|
]
|
||||||
const baseOptions = {
|
const baseOptions = {
|
||||||
size: 'medium',
|
size: 'medium',
|
||||||
dateBtn: false,
|
dateBtn: false,
|
||||||
@@ -78,7 +86,8 @@ export default {
|
|||||||
loadingLog: false,
|
loadingLog: false,
|
||||||
innerDrawerLog: false,
|
innerDrawerLog: false,
|
||||||
innerDrawerAddLog: false,
|
innerDrawerAddLog: false,
|
||||||
logValues: {}
|
logValues: {},
|
||||||
|
statusLs
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -136,17 +145,25 @@ export default {
|
|||||||
prop: 'remark',
|
prop: 'remark',
|
||||||
display: false
|
display: false
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: '状态',
|
||||||
|
prop: 'statusCop',
|
||||||
|
type: 'radio',
|
||||||
|
slot: true,
|
||||||
|
display: false,
|
||||||
|
dicData: statusLs
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: '状态',
|
label: '状态',
|
||||||
prop: 'status',
|
prop: 'status',
|
||||||
type: 'radio',
|
type: 'radio',
|
||||||
|
showColumn: false,
|
||||||
dicData: [
|
dicData: [
|
||||||
{label: "未处理", value: '0'},
|
|
||||||
{label: "确认", value: '1'},
|
{label: "确认", value: '1'},
|
||||||
{label: "忽略", value: '2'}
|
{label: "忽略", value: '2'}
|
||||||
]
|
]
|
||||||
}
|
},
|
||||||
]
|
],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -78,7 +78,8 @@ export default {
|
|||||||
loadingLog: false,
|
loadingLog: false,
|
||||||
innerDrawerLog: false,
|
innerDrawerLog: false,
|
||||||
innerDrawerAddLog: false,
|
innerDrawerAddLog: false,
|
||||||
logValues: {}
|
logValues: {},
|
||||||
|
query: {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -183,7 +184,9 @@ export default {
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getDept()
|
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() {
|
activated() {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
@@ -222,16 +225,18 @@ export default {
|
|||||||
this.onLoad(this.page, this.query);
|
this.onLoad(this.page, this.query);
|
||||||
},
|
},
|
||||||
sizeChange(size) {
|
sizeChange(size) {
|
||||||
this.page.size = size;
|
this.page.pageSize = size;
|
||||||
this.onLoad(this.page, this.query);
|
this.onLoad(this.page, this.query);
|
||||||
},
|
},
|
||||||
onLoad(page, params = {}) {
|
onLoad(page, params = {}) {
|
||||||
const {releaseTimeRange} = params;
|
const {releaseTimeRange} = params;
|
||||||
let paramsed = {
|
let paramsed = {
|
||||||
current: page.currentPage,
|
current: page.currentPage,
|
||||||
size: page.size,
|
size: page.pageSize,
|
||||||
...params
|
...params
|
||||||
};
|
};
|
||||||
|
console.log(this.query, paramsed)
|
||||||
|
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
getServeLogList(paramsed).then((res) => {
|
getServeLogList(paramsed).then((res) => {
|
||||||
const {total, size, current, records, page} = res.data.data
|
const {total, size, current, records, page} = res.data.data
|
||||||
|
|||||||
Reference in New Issue
Block a user