e02d2fea by 蔡俊立

1

1 parent 61a15fe4
import request from '@/utils/request'
class sbbwcx {
// 定时任务查询接口
async getDataReportPage (data) {
return request({
url: '/sjsb/DataReport/getDataReportPage',
method: 'post',
data
})
}
}
export default new sbbwcx()
\ No newline at end of file
......@@ -78,6 +78,9 @@ import data from "./data"
import tableMixin from '@/mixins/tableMixin.js'
// 引入详情弹框
import dataDetails from '@/components/dataDetails/edit-dialog'
import { getDataReportPage } from "@/api/sbbwcx.js";
import { getQlxxDictList, getChildDictList, refreshDictCache } from "@/api/user.js"
export default {
name: "sbbwcx",
mixins: [tableMixin],
......@@ -120,27 +123,6 @@ export default {
pcode: '',
currentPage: 1
},
// 表单验证
rules: {
bdcdyh: [
{ required: true, message: '不动产单元号', trigger: 'change' }
],
startTime: [
{ required: true, message: '开始日期', trigger: 'change' }
],
endTime: [
{ required: true, message: '结束日期', trigger: 'change' }
],
ywmc: [
{ required: true, message: '业务名称', trigger: 'change' }
],
status: [
{ required: true, message: '响应结果', trigger: 'change' }
],
pcode: [
{ required: true, message: '响应结果', trigger: 'change' }
],
},
// table数据
tableData: {
// 表头数据
......@@ -163,8 +145,8 @@ export default {
}
}
]),
// 列表数据
data: [{}]
total: 0,
data: [],
},
// 分页
pageData: {
......@@ -199,7 +181,14 @@ export default {
this.$refs.ruleForm.resetFields();
},
// 初始化数据
async featchData () {
featchData () {
getDataReportPage({ ...this.form, ...this.pageData }).then(res => {
if (res.code === 200) {
let { total, records } = res.result
this.tableData.total = total;
this.tableData.data = records ? records : []
}
})
},
// 多选
handleSelectionChange (val) {
......