+
{{ scope.row.status_desc }}
-
+
{{ scope.row.status_desc }}
-
+
{{ scope.row.status_desc }}
-
+
{{ scope.row.status_desc }}
-
+
@@ -146,33 +170,24 @@
-
- 删报告
-
+
+ 删报告
+
-
-
+
+
-
- 是否删除 ID:{{ delReportId }} 报告?删除后无法恢复
+ 是否删除 ID:{{ delReportId }} 报告?删除后无法恢复
@@ -183,6 +198,7 @@
import GuipTable from '@/components/GuipTable.vue';
import GuipSelect from '@/components/GuipSelect.vue';
import GuipInput from '@/components/GuipInput.vue';
+import GuipButton from '@/components/GuipButton.vue';
import GuipToolTip from '@/components/GuipToolTip.vue';
import GuipDialog from '@/components/GuipDialog.vue';
import Page from '@/components/Page.vue';
@@ -193,6 +209,7 @@ export default {
components: {
GuipTable,
GuipSelect,
+ GuipButton,
GuipInput,
GuipToolTip,
GuipDialog,
@@ -204,7 +221,7 @@ export default {
// AUTH
token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTAwNTM3MjQsIm5iZiI6MTc1MDA1MzcyNCwiZXhwIjoxNzUyNjQ1NzI0LCJ1c2VyIjoic3VidXNlciIsImxvZ2luX3R5cGUiOjAsImFpZCI6IjEifQ.xyIqBLelB-k6jCifgRevBJTyg_Qrm6m1e4OcHhOpepU',
// 表格加载
- tableLoading: true,
+ tableLoading: false,
// 订单列表
orderList: [],
orderListTotalRecords: 0,
@@ -231,73 +248,85 @@ export default {
}
},
mounted() {
- // this.getOrderList()
+ this.getOrderList()
},
methods: {
- changeLoad(load){
- this.tableLoading = load
+ getFilterParams(){
+ console.log(this.searchDate,'searchDate===');
+ // this.getOrderList({
+ // searchDate:this.searchDate,
+ // searchStatus:this.searchStatus,
+ // searchType:this.searchType,
+ // })
+
},
- handleUpdate(data) {
- this.orderList = data.list;
- this.searchStatusList = data.search_check_status
- this.orderListTotalRecords = data.total_records
-
+ resetSearchParams(){
+ this.searchDate = ''
+ this.searchStatus = ''
+ this.searchType = ''
+ // 或者使用 $set
},
handleError(error) {
console.error('分页错误:', error)
// 可以在这里显示错误提示
},
- getOrderList() {
- var params = {
- page: this.orderListCurrentPage,
- pagesize: this.orderListPageSize,
- minid: this.orderListNextMinId,
- maxid: this.orderListPrevMaxId,
- end_page: this.orderListEndPage,
- jump_to_page: this.orderListJumpToPage,
- }
- if (this.searchTid) {
- params = {};
- params.tid = this.searchTid
- }
-
+ getOrderList(params) {
this.tableLoading = true
- const that = this
- that.orderList = []
- this.$http('POST', '/agentnew/ajax_get_check_order_list', params,{
- headers:{
- 'Auth': this.token
+ try {
+ const requestParams = {
+ pagesize: this.orderListPageSize,
+ page: this.orderListCurrentPage,
+ ...params
}
- }).then(response => {
- this.tableLoading = false
- this.$nextTick(() => {
- that.orderList = response.data.list
- this.searchStatusList = response.data.search_check_status
-
- this.orderListTotalRecords = response.data.total_records
- this.orderListNextMinId = response.data.minid
- this.orderListPrevMaxId = response.data.maxid
-
- this.isHasNextPage = response.data.is_has_next_page
- console.log(this.isHasNextPage, 'isHasNextPage')
+ console.log(requestParams, 'requestParams===');
+ this.$http('POST', '/agentnew/ajax_get_check_order_list', requestParams, {
+ headers: {
+ 'Auth': this.token
+ }
+ }).then(response => {
+ this.tableLoading = false
+ this.$nextTick(() => {
+ this.orderList = response.data.list
+ this.searchStatusList = response.data.search_check_status
+ this.orderListTotalRecords = response.data.total_records
+ // 更新minId和maxId
+ if (response.data.minid) this.orderListNextMinId = response.data.minid
+ if (response.data.maxid) this.orderListPrevMaxId = response.data.maxid
+ this.isHasNextPage = response.data.is_has_next_page;
+ if (this.orderListTotalRecords > 0) {
+ // 计算总页数
+ this.orderListCurrentPage = Math.ceil(this.orderListTotalRecords / this.orderListPageSize)
+ // this.page = this.totalPages || 1
+ // this.jumpPage = this.page
+ // this.end_page = 1;
+ }
+ // console.log(this.isHasNextPage, 'isHasNextPage')
+ })
+ }).catch(error => {
+ console.error(error, 'error')
})
- }).catch(error => {
- console.error(error, 'error')
- })
+
+
+ } catch (error) {
+ console.error('数据加载失败:', error)
+ } finally {
+ this.tableLoading = false
+ }
},
+
getPayImg(pay_type) {
- return require('@/assets/pay/pay_'+pay_type+'.svg');
+ return require('@/assets/pay/pay_' + pay_type + '.svg');
},
getChannelImg(src) {
- return require('@/assets/channel_'+src+'.svg');
+ return require('@/assets/channel_' + src + '.svg');
},
changeSearchSite() {
console.log(this.searchUid)
- this.getOrderList()
+ // this.getOrderList()
},
changeSearchTid() {
- console.log(this.searchTid)
- this.getOrderList()
+ console.log(this.searchTid,'this.searchTid')
+ this.getOrderList({tid:this.searchTid})
},
// 弹框相关方法---start
showConfirmDelReport(row) {
@@ -338,33 +367,27 @@ export default {
},
// 弹框相关方法---end
- handlePageChange(params) {
- // 根据参数调用API获取新数据
- console.log('分页参数:', params);
-
- // 更新当前页码
- this.orderListCurrentPage = params.page;
-
- // 更新minid/maxid(根据实际API返回)
- if (params.isNext) {
- // 从API响应中获取新的orderListNextMinId
- this.orderListNextMinId = params.minid;
- }
-
- if (params.isPrev) {
- // 从API响应中获取新的orderListPrevMaxId
- this.orderListPrevMaxId = params.maxid;
- }
-
- if (params.isLast) {
- this.orderListEndPage = params.isLast;
+ handlePageChange({ page, endPage, direction }) {
+ console.log(endPage, 'endPage===');
+ this.orderListCurrentPage = page
+
+ const params = { page }
+
+ // 根据翻页方向设置参数
+ if (direction === 'prev') {
+ params.maxid = this.orderListPrevMaxId
+ if (this.orderListNextMinId) params.minid = null
+ } else if (direction === 'next') {
+ params.minid = this.orderListNextMinId
+ if (this.orderListPrevMaxId) params.maxid = null
+ } else if (direction === 'last') {
+ params.end_page = 1
+ params.page = null
+ params.minid = null
+ params.maxid = null
}
- if (params.isJump) {
- this.orderListJumpToPage = params.page;
- }
-
- this.getOrderList()
+ this.getOrderList(params)
}
},
computed: {
@@ -394,6 +417,10 @@ export default {
background: #fff;
}
+.operateBtns {
+ padding: 17px 0;
+}
+
::v-deep .custom-popover {
position: fixed !important;
// max-height: 290px;
@@ -408,6 +435,7 @@ export default {
height: 16px;
z-index: 1;
}
+
.mb-10 {
margin-bottom: 10px;
}
@@ -415,12 +443,15 @@ export default {
.mr-12 {
margin-right: 12px;
}
+
.mr-24 {
margin-right: 24px;
}
+
.mr-32 {
margin-right: 32px;
}
+
.my-32 {
margin-bottom: 32px;
margin-top: 32px;
@@ -430,6 +461,7 @@ a {
text-decoration: none;
color: #006AFF;
}
+
a:hover {
text-decoration: underline;
}
@@ -449,7 +481,7 @@ a:hover {
z-index: 0;
padding: 2px 10px;
border-radius: 4px;
-
+
}
.divgreen {
@@ -457,6 +489,7 @@ a:hover {
box-sizing: border-box;
border: 1px solid rgba(0, 194, 97, 0.6);
}
+
.fontgreen {
font-family: Microsoft YaHei UI;
font-size: 14px;
@@ -466,11 +499,13 @@ a:hover {
letter-spacing: 0.08em;
color: #0DAF49;
}
+
.divblue {
background: #F2F7FF;
box-sizing: border-box;
border: 1px solid #BFDAFF;
}
+
.fontblue {
font-family: Microsoft YaHei UI;
font-size: 14px;
@@ -486,6 +521,7 @@ a:hover {
box-sizing: border-box;
border: 1px solid #FFA39E;
}
+
.fontred {
font-family: Microsoft YaHei UI;
font-size: 14px;
@@ -495,28 +531,34 @@ a:hover {
letter-spacing: 0.08em;
color: #FF4D4F;
}
+
.divgray {
background: #F6F7FA;
box-sizing: border-box;
border: 1px solid #DFE2E6;
}
-.fontgray {
+
+.fontgray {
color: #626573;
}
+
.divorange {
background: #FFFBF2;
box-sizing: border-box;
border: 1px solid rgba(251, 131, 45, 0.38);
}
+
.fontorange {
color: #FB832D;
}
+
.divpurple {
background: #F9F2FF;
box-sizing: border-box;
border: 1px solid rgba(126, 118, 253, 0.28);
}
-.fontpurple {
+
+.fontpurple {
color: #6258FF;
}
@@ -530,9 +572,8 @@ a:hover {
/* text/text_1 */
color: #1E2226;
}
+
.el-form-item {
margin-bottom: 0px
}
-
-
\ No newline at end of file