365018b6 by 任超

style:table样式修改完成

1 parent 5c4fe127
......@@ -4,7 +4,7 @@ import SERVER from './config'
// 数据上报分页
export function getDataReportPage (data) {
return request({
url: SERVER.SERVERAPI + '/sjsb/DataReport/getDataReportPage',
url: SERVER.SERVERAPI + '/rest/sjsb/DataReport/getDataReportPage',
method: 'post',
data
})
......
.tableClass {
/deep/.el-table {
border: none !important;
border-radius: 0 !important;
.el-table__header-wrapper {
border-right: 1px solid #103E99;
}
.cell {
color: #FFFFFF !important;
......@@ -108,6 +113,11 @@
color: #FFFFFF;
border: none;
}
.el-pager li {
background: #1F357A;
color: #FFFFFF;
}
}
/deep/.btn-next,
......
......@@ -51,7 +51,7 @@
<!-- 操作按钮 -->
<el-col :span="12" class="btnColRight">
<btn nativeType="cz" @click="resetForm('ruleForm')">重置</btn>
<btn nativeType="cx" @click="featchData">查询</btn>
<btn nativeType="cx" @click="queryClick">查询</btn>
<btn nativeType="sb" @click="handleEscalation">上报</btn>
</el-col>
</el-row>
......@@ -59,13 +59,12 @@
</div>
<!-- 列表 -->
<div class="from-clues-content">
<lb-table ref="table" @selection-change="handleSelectionChange" :page-size="pageData.size"
:current-page.sync="pageData.current" :total="tableData.total" @size-change="handleSizeChange"
@p-current-change="handleCurrentChange" :column="tableData.columns" :data="tableData.data">
<lb-table :page-size="pageData.pageSize" :current-page.sync="pageData.currentPage" :total="tableData.total"
@size-change="handleSizeChange" @p-current-change="handleCurrentChange" :column="tableData.columns"
:data="tableData.data">
</lb-table>
</div>
<!-- 引入详情组件 -->
<!-- <detailDialog v-model="isShow" /> -->
<!-- 编辑 -->
<dataDetails ref="editLog" />
</div>
......@@ -75,14 +74,14 @@
// 引入表头数据
import data from "./data"
// 引入表格混入方法
import tableMixin from '@/mixins/tableMixin.js'
import table from "@/utils/mixin/table"
// 引入详情弹框
import dataDetails from '@/components/dataDetails/edit-dialog'
import { getDataReportPage } from "@/api/sbbwcx.js";
export default {
name: "sbbwcx",
mixins: [tableMixin],
mixins: [table],
// 注册组件
components: {
dataDetails
......@@ -130,8 +129,8 @@ export default {
return (
<div>
<el-button
type="text"
size="mini"
type="primary"
onClick={() => { this.handleDetail(scope.row) }}
>
详情
......@@ -142,13 +141,7 @@ export default {
}
]),
total: 0,
data: [],
},
// 分页
pageData: {
total: 0,
pageSize: 15,
current: 1,
data: [{}],
},
// 行政区
xzqOptions: [
......@@ -177,7 +170,7 @@ export default {
this.$refs.ruleForm.resetFields();
},
// 初始化数据
featchData () {
queryClick () {
getDataReportPage({ ...this.form, ...this.pageData }).then(res => {
if (res.code === 200) {
let { total, records } = res.result
......@@ -188,7 +181,6 @@ export default {
},
// 多选
handleSelectionChange (val) {
},
// 上报
handleEscalation () { },
......