From 37402b0ea40120d3a201e5b8ece76d506e7ed0e8 Mon Sep 17 00:00:00 2001 From: axlrose2333 <690927457@qq.com> Date: Fri, 24 Mar 2023 02:15:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E4=BD=93=E6=B5=8B=E8=AF=95=E5=8F=8A?= =?UTF-8?q?=E4=BC=98=E5=8C=96=EF=BC=8C=E9=83=A8=E5=88=86=E7=BB=86=E8=8A=82?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E5=BE=85=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/integral.js | 12 +++ src/api/market.js | 7 ++ src/api/userManage.js | 7 ++ src/utils/custom.js | 15 +++ src/view/auctionManage/index.vue | 5 +- src/view/course/index.vue | 28 +++--- src/view/dealDetailManage/auctionDetail.vue | 6 +- src/view/dealDetailManage/dealDetailMoney.vue | 19 ++-- src/view/dealDetailManage/dealDetailPoint.vue | 10 +- src/view/dealDetailManage/learningDetail.vue | 23 +++-- src/view/dealDetailManage/raffleDetail.vue | 2 +- src/view/dealDetailManage/testDetail.vue | 21 ++-- src/view/drawManage/index.vue | 6 +- src/view/integralManage/index.vue | 54 ++++++++-- .../assistantList/assistantDetail.vue | 98 ++++++++++--------- src/view/marketManage/assistantList/index.vue | 24 +++-- src/view/marketManage/managerList/index.vue | 55 ++++++++--- src/view/userManage/view.vue | 20 ++-- 18 files changed, 273 insertions(+), 139 deletions(-) diff --git a/src/api/integral.js b/src/api/integral.js index 575785f..f53bc37 100644 --- a/src/api/integral.js +++ b/src/api/integral.js @@ -86,5 +86,17 @@ const api = { params:data }) }, + freeze: data => { // 冻结积分 + return service({ + url: '/point/freeze/'+data.id, + method: 'put' + }) + }, + unfreeze:data => { // 解冻积分 + return service({ + url: '/point/unfreeze/'+data.id, + method: 'put' + }) + }, } export default api diff --git a/src/api/market.js b/src/api/market.js index 47055c1..8759bfb 100644 --- a/src/api/market.js +++ b/src/api/market.js @@ -57,5 +57,12 @@ const api = { data }) }, + assistantOperator : data => {// 审核提交-助教 + return service({ + url: '/assistant/change', + method: 'post', + data + }) + }, } export default api diff --git a/src/api/userManage.js b/src/api/userManage.js index 86d120b..c3abc73 100644 --- a/src/api/userManage.js +++ b/src/api/userManage.js @@ -70,5 +70,12 @@ const api = { data }) }, + getAuctionDetailList: data => { // 获取竞拍 抽奖 记录 + return service({ + url: '/auction/record', + method: 'get', + params:data + }) + }, } export default api diff --git a/src/utils/custom.js b/src/utils/custom.js index 76c03cd..e65246d 100644 --- a/src/utils/custom.js +++ b/src/utils/custom.js @@ -130,6 +130,21 @@ const custom = { else{ return num/flag+'万' } + },addTreeFormatSubject(data,type) { + if(!data) { + return [] + } + data.map( item => { + item.label = item.name + item.value = item[type] + if(item.level !== 3) { + item.disabled = true + } + if(item.children) { + custom.addTreeFormatSubject(item.children,type) + } + }) + return data }, getDealType() { // 获取交易类型 return [ diff --git a/src/view/auctionManage/index.vue b/src/view/auctionManage/index.vue index 7868449..f891e94 100644 --- a/src/view/auctionManage/index.vue +++ b/src/view/auctionManage/index.vue @@ -265,7 +265,7 @@ const viewParams = ref({ sort:'desc' }) const dialogViewVisible = ref(false) -const viewInfo = ref({}) +const viewInfo = ref([]) const view_total = ref(0) async function viewAuctionFunc(row) { // 竞拍明细 viewParams.value.id = row.id @@ -276,6 +276,9 @@ async function viewAuctionFunc(row) { // 竞拍明细 viewInfo.value = res.data.list } } +function closeViewDialog() { + dialogViewVisible.value = false +} diff --git a/src/view/dealDetailManage/auctionDetail.vue b/src/view/dealDetailManage/auctionDetail.vue index a5a1eeb..cd2dc83 100644 --- a/src/view/dealDetailManage/auctionDetail.vue +++ b/src/view/dealDetailManage/auctionDetail.vue @@ -21,7 +21,8 @@ const queryParams = ref({ pageSize:10, user_id:0, type:'', // 是否中奖 - time:'', // 抽经时间 + time:'', // 抽经时间, + current_page:1 }) const tableData = ref([]) const total = ref(0) @@ -37,6 +38,7 @@ const typeList = ref([ ]) // 生命周期 onMounted(() => { + queryParams.value.id = parseInt(route.params.user_id) // getAuctionDetailList() }) // 方法 @@ -57,7 +59,9 @@ const onReset = () => { user_id:0, type:'', // 是否中奖 time:'', // 抽经时间 + current_page:1 } + queryParams.value.id = parseInt(route.params.user_id) } function handleCurrentChange(val) { queryParams.value.page = val diff --git a/src/view/dealDetailManage/dealDetailMoney.vue b/src/view/dealDetailManage/dealDetailMoney.vue index b9e448c..a0e179e 100644 --- a/src/view/dealDetailManage/dealDetailMoney.vue +++ b/src/view/dealDetailManage/dealDetailMoney.vue @@ -59,6 +59,7 @@ const onReset = () => { type:'', deal_time:'' } + queryParams.value.id = parseInt(route.params.user_id) } function handleCurrentChange(val) { queryParams.value.page = val @@ -90,15 +91,15 @@ function getTypeName(type) { - - - - - - - - - + + + 查询 diff --git a/src/view/dealDetailManage/dealDetailPoint.vue b/src/view/dealDetailManage/dealDetailPoint.vue index f5df15a..3f8028c 100644 --- a/src/view/dealDetailManage/dealDetailPoint.vue +++ b/src/view/dealDetailManage/dealDetailPoint.vue @@ -57,6 +57,7 @@ const onReset = () => { type:'', deal_time:'' } + queryParams.value.id = parseInt(route.params.user_id) } function handleCurrentChange(val) { queryParams.value.page = val @@ -67,6 +68,7 @@ function handleSizeChange(val) { getDealPointList() } function getTypeName(type) { + console.log(deal_types.value,type) return deal_types.value.filter((item,i) => { return item.value == type })[0].name @@ -78,12 +80,12 @@ function getTypeName(type) {