Commit f17a97b4 authored by XuYang's avatar XuYang

修改分页

parent 71464c52
...@@ -56,13 +56,13 @@ ...@@ -56,13 +56,13 @@
@click="handleImport" @click="handleImport"
>导入 >导入
</el-button> </el-button>
<!-- <el-button--> <!-- <el-button-->
<!-- :class="commonField.exportClass"--> <!-- :class="commonField.exportClass"-->
<!-- :type="commonField.typeSuccess"--> <!-- :type="commonField.typeSuccess"-->
<!-- :icon="commonField.exportIcon"--> <!-- :icon="commonField.exportIcon"-->
<!-- :size="commonField.smallSize"--> <!-- :size="commonField.smallSize"-->
<!-- @click="handleExport"--> <!-- @click="handleExport"-->
<!-- >导出</el-button>--> <!-- >导出</el-button>-->
</el-form-item> </el-form-item>
</div> </div>
</el-form> </el-form>
...@@ -78,12 +78,12 @@ ...@@ -78,12 +78,12 @@
</el-table-column> </el-table-column>
<el-table-column label="状态" prop="status" :show-overflow-tooltip="true"> <el-table-column label="状态" prop="status" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.type || '-' }} {{ scope.row.status || '-' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="备注" prop="remarks" :show-overflow-tooltip="true"> <el-table-column label="创建人" prop="createName" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.remarks || '-' }} {{ scope.row.createName || '-' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="创建时间" prop="createDate" :show-overflow-tooltip="true"> <el-table-column label="创建时间" prop="createDate" :show-overflow-tooltip="true">
...@@ -93,12 +93,12 @@ ...@@ -93,12 +93,12 @@
</el-table-column> </el-table-column>
<el-table-column label="操作" class-name="small-padding fixed-width" width="200px"> <el-table-column label="操作" class-name="small-padding fixed-width" width="200px">
<template slot-scope="scope"> <template slot-scope="scope">
<!-- <el-button--> <!-- <el-button-->
<!-- :class="commonField.updateClass"--> <!-- :class="commonField.updateClass"-->
<!-- :type="commonField.typeParent"--> <!-- :type="commonField.typeParent"-->
<!-- :size="commonField.size"--> <!-- :size="commonField.size"-->
<!-- @click="handleUpdate(scope.row)"--> <!-- @click="handleUpdate(scope.row)"-->
<!-- >修改</el-button>--> <!-- >修改</el-button>-->
<el-button <el-button
:class="commonField.delClass" :class="commonField.delClass"
:type="commonField.typeParent" :type="commonField.typeParent"
...@@ -148,7 +148,14 @@ ...@@ -148,7 +148,14 @@
</div> </div>
</el-dialog> </el-dialog>
<!--详情--> <!--详情-->
<el-dialog class="aboutSingleDetails" :title="title" :visible.sync="openDetails" width="80%" append-to-body :close-on-click-modal="false"> <el-dialog
class="aboutSingleDetails"
:title="title"
:visible.sync="openDetails"
width="80%"
append-to-body
:close-on-click-modal="false"
>
<el-table v-loading="loading" border :data="queryParamsNew.TempList"> <el-table v-loading="loading" border :data="queryParamsNew.TempList">
<el-table-column type="index" label="序号" width="55" align="center" /> <el-table-column type="index" label="序号" width="55" align="center" />
<el-table-column label="orderId" prop="orderId" :show-overflow-tooltip="true"> <el-table-column label="orderId" prop="orderId" :show-overflow-tooltip="true">
...@@ -375,6 +382,15 @@ export default { ...@@ -375,6 +382,15 @@ export default {
return commonField return commonField
} }
}, },
watch: {
'openDetails': function(newValue, oldValue) {
this.queryParamsNew = {
page: 1,
rows: 10,
TempList: []
}
}
},
created() { created() {
this.getList() // 列表查询 this.getList() // 列表查询
this.handleDetail() this.handleDetail()
...@@ -603,10 +619,12 @@ export default { ...@@ -603,10 +619,12 @@ export default {
}, },
// 获取所选行详情信息操作 // 获取所选行详情信息操作
handleDetail(row) { handleDetail(row) {
const id = row.businessId if (row.businessId !== undefined && row.businessId !== '' && row.businessId !== null) {
this.id = row.businessId
}
this.queryParamsNew.TempList = [] this.queryParamsNew.TempList = []
const queryParams = { const queryParams = {
businessId: id, businessId: this.id,
page: this.queryParamsNew.page, page: this.queryParamsNew.page,
rows: this.queryParamsNew.rows rows: this.queryParamsNew.rows
} }
...@@ -615,12 +633,12 @@ export default { ...@@ -615,12 +633,12 @@ export default {
this.Newtotal = response.data.total this.Newtotal = response.data.total
}) })
this.title = '详情信息' this.title = '详情信息'
this.openDetails = !this.openDetails this.openDetails = true
this.queryParamsNew = { // this.queryParamsNew = {
page: 1, // page: 1,
rows: 10, // rows: 10,
TempList: [] // TempList: []
} // }
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment