添加分页功能

20240528Test
liujun 2024-04-13 10:59:29 +08:00
parent df67a534da
commit 6a802fc163
1 changed files with 17 additions and 65 deletions

View File

@ -38,22 +38,25 @@
<el-table-column type="index" label="序号" width="50" align="center"/> <el-table-column type="index" label="序号" width="50" align="center"/>
<el-table-column prop="USERNAME" label="用户名" align="center"/> <el-table-column prop="USERNAME" label="用户名" align="center"/>
<el-table-column prop="NAME" label="姓名" align="center"/> <el-table-column prop="NAME" label="姓名" align="center"/>
<el-table-column prop="BELONG_TO_CORP_NAME" label="外派公司名称" align="center"/> <el-table-column prop="departmentName" label="部门名称" align="center"/>
<el-table-column label="操作" align="center" width="450"> <el-table-column prop="userPhone" label="用户手机号" align="center"/>
<el-table-column prop="deviceId" label="设备id" align="center"/>
<el-table-column prop="deviceName" label="设备名称" align="center"/>
<el-table-column prop="id" label="其他系统编号" align="center"/>
<el-table-column prop="idRemark" label="其他系统备注" align="center"/>
<el-table-column prop="createTime" label="创建时间" align="center"/>
<el-table-column label="操作" align="center" width="200">
<template slot-scope="{row}"> <template slot-scope="{row}">
<el-button type="primary" icon="el-icon-edit" size="mini" @click="handleShow(row)"></el-button> <el-button type="primary" icon="el-icon-edit" size="mini" @click="handleDelete(row)"></el-button>
<el-button type="primary" icon="el-icon-edit" size="mini" @click="handleFlowShow(row)"></el-button> <el-button type="primary" icon="el-icon-edit" size="mini" @click="handleDelete(row)"></el-button>
<el-button type="primary" icon="el-icon-edit" size="mini" @click="handleFlowStepShow(row)"></el-button>
<el-button v-if="row.power_flag === '1'" type="primary" icon="el-icon-s-claim" size="mini" @click="approve([row])"></el-button>
<el-button v-if="false" type="success" icon="el-icon-edit" size="mini" @click="getUserInfo(row)"></el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<div class="page-btn-group"> <div class="page-btn-group">
<div> <div>
<el-button v-if="false" type="primary" icon="el-icon-plus" @click="handleAdd"></el-button> <el-button type="primary" icon="el-icon-plus" @click="handleAdd"></el-button>
</div> </div>
<pagination :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList"/> <pagination :total="listQuery.total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList"/>
</div> </div>
</div> </div>
</template> </template>
@ -70,36 +73,11 @@ export default {
data() { data() {
return { return {
config: config, config: config,
QRCodeDialog: false,
qrcodeStr: '',
userDetailForm: {},
specialUsersList: {},
detailForm: {},
userEntryForm: {},
imgUrl: '',
SUPERVISE_CORPINFO_ID: '',
wenhuachengduList: [], //
postList: [], //
photosOfLevel: [], //
trainRecordList: [], //
contractFileList: [], //
insuranceFileList: [], //
gongshangbaoxianFile: [],
userPhotoFile: [], //
userCardIDPhotoFile: [], //
socialPhotoFile: [], //
listQuery: { listQuery: {
page: 1, page: 0,
limit: 20 limit: 10,
total: 0
}, },
total: 0,
varList: [],
KEYWORDS: '',
statusList: [{ value: 0, label: '未培训' }, { value: 1, label: '培训中' }, {
value: 2,
label: '已培训(合格)'
}, { value: 3, label: '已培训(不合格)' }, { value: 9, label: '申请中' }],
STATUS: '',
add: false, // add: false, //
del: false, // del: false, //
edit: false // edit: false //
@ -138,7 +116,7 @@ export default {
getList() { getList() {
this.listLoading = true this.listLoading = true
requestFN( requestFN(
'/xgf/user/getAppointApproveList?showCount=' + this.listQuery.limit + '&currentPage=' + this.listQuery.page, '/dw/getMapList?showCount=' + this.listQuery.limit + '&currentPage=' + this.listQuery.page,
{ {
KEYWORDS: this.KEYWORDS, KEYWORDS: this.KEYWORDS,
STATUS: '1', STATUS: '1',
@ -154,21 +132,6 @@ export default {
this.listLoading = false this.listLoading = false
}) })
}, },
handleShow(row) {
this.$refs.userInfos.init(row)
},
handleFlowShow(row) {
this.$refs.flowInfo.init(row)
},
handleFlowStepShow(row) {
this.$refs.flowStep.init(row)
},
approve(row) {
this.$refs.sendUtil.init(row)
},
getUserInfo(row) {
this.$refs.userInfo.init(row)
},
handleAdd() { handleAdd() {
const _selectData = this.$refs.multipleTable.selection const _selectData = this.$refs.multipleTable.selection
if (_selectData == null || _selectData.length == 0) { if (_selectData == null || _selectData.length == 0) {
@ -219,22 +182,11 @@ export default {
}) })
}, },
getDict: function() { getDict: function() {
requestFN( requestFN('dw/getDictionary').then((data) => {
'dictionaries/getLevels',
{ DICTIONARIES_ID: 'd7d80f08d73a4accbccf4fd3d8d1d867' }
).then((data) => {
this.wenhuachengduList = data.list this.wenhuachengduList = data.list
}).catch((e) => { }).catch((e) => {
this.listLoading = false this.listLoading = false
}) })
requestFN(
'dictionaries/getLevels',
{ DICTIONARIES_ID: '09e36ac01e9540f8bc84eab1c1a78754' }
).then((data) => {
this.postList = data.list
}).catch((e) => {
this.listLoading = false
})
} }
} }
} }