Browse Source

筛选项活动适配

zhangrenyuan/feature-20251104133449-现金管理二期
ZhangYong 3 weeks ago
parent
commit
0126ae19b8
  1. 261
      src/views/moneyManage/receiveDetail/receiveDetail.vue
  2. 259
      src/views/moneyManage/receiveDetail/utils/staticData.js

261
src/views/moneyManage/receiveDetail/receiveDetail.vue

@ -45,7 +45,7 @@
<div class="rowItem">
<el-text style="width: 4vw;">活动名称</el-text>
<el-select v-model="searchData.activity" placeholdert="请选择活动方式" style="width: 10vw;" clearable>
<el-option v-for="item in activityList" :key="item" :label="item" :value="item"/>
<el-option v-for="item in activityList" :key="item.id" :label="item.activityName" :value="item.id"/>
</el-select>
</div>
<div class="rowItem">
@ -702,6 +702,7 @@ const {menuTree} = storeToRefs(adminStore);
console.log('menutree', menuTree.value);
import _ from 'lodash'
import {addFormRule, editFormRule} from './utils/recriveFormRules.js'
import { productList,MarketNameForId,CurrencyForId,marketList,statusList} from './utils/staticData.js'
//===================== =================================
const tableData = ref([])
const searchData = ref({})
@ -1446,225 +1447,11 @@ const getAdminData = async function () {
console.log('请求失败', error)
}
}
const statusList = [
{
name: '待审核',
value: 0
},
{
name: '已通过',
value: 134
},
{
name: '已撤回',
value: 5
}, {
name: '退款',
value: 6
}, {
name: '已驳回',
value: 2
},
]
const paytypeList = ["Stripe-链接收款", "PaymentAsia-链接收款", "Ipay88-链接收款", "银行转账", "刷卡", "现金", "支票", "Grabpay", "Nets", "E-Transfer", "Paypal"]
const activityList = ref([])
const marketList = ['马来西亚', '香港', '新加坡', '泰国', '越南HCM', '加拿大']
const productList = [
{
"value": "金币产品",
"label": "金币产品",
"children": [
{
"value": "金币充值",
"label": "金币充值"
}
]
},
{
"value": "软件产品",
"label": "软件产品",
"children": [
{
"value": "软件",
"label": "软件",
"children": [
{
"value": "美股",
"label": "美股",
"children": [
{
"value": "美股软件",
"label": "美股软件"
}
]
},
{
"value": "港股",
"label": "港股",
"children": [
{
"value": "港股软件",
"label": "港股软件"
}
]
},
{
"value": "A股",
"label": "A股",
"children": [
{
"value": "A股软件",
"label": "A股软件"
}
]
},
{
"value": "新加坡股",
"label": "新加坡股",
"children": [
{
"value": "新加坡股软件",
"label": "新加坡股软件"
}
]
},
{
"value": "马股",
"label": "马股",
"children": [
{
"value": "马股软件",
"label": "马股软件"
}
]
},
{
"value": "日本股",
"label": "日本股",
"children": [
{
"value": "日本股软件",
"label": "日本股软件"
}
]
},
{
"value": "泰股",
"label": "泰股",
"children": [
{
"value": "泰股软件",
"label": "泰股软件"
}
]
},
{
"value": "越南股",
"label": "越南股",
"children": [
{
"value": "越南股软件",
"label": "越南股软件"
}
]
},
{
"value": "印尼股",
"label": "印尼股",
"children": [
{
"value": "印尼股软件",
"label": "印尼股软件"
}
]
},
{
"value": "韩国股",
"label": "韩国股",
"children": [
{
"value": "韩国股软件",
"label": "韩国股软件"
}
]
},
{
"value": "台湾股",
"label": "台湾股",
"children": [
{
"value": "台湾股软件",
"label": "台湾股软件"
}
]
}
]
},
{
"value": "AI机构探测神器",
"label": "AI机构探测神器",
"children": [
{
"value": "AI机构追踪",
"label": "AI机构追踪"
},
{
"value": "AI机构出击",
"label": "AI机构出击"
},
{
"value": "AI机构资金",
"label": "AI机构资金"
},
{
"value": "AI机活跃度",
"label": "AI机活跃度"
}
]
},
{
"value": "超级机构探测神器",
"label": "超级机构探测神器",
"children": [
{
"value": "超级机构透视",
"label": "超级机构透视"
},
{
"value": "超级机构伏击",
"label": "超级机构伏击"
},
{
"value": "超级机构猎杀",
"label": "超级机构猎杀"
},
{
"value": "超级机构脉博",
"label": "超级机构脉博"
},
{
"value": "超级机构罗盘",
"label": "超级机构罗盘"
}
]
},
{
"value": "其他",
"label": "其他",
"children": [
{
"value": "静态信息费",
"label": "静态信息费"
},
{
"value": "博股会员",
"label": "博股会员"
}
]
}
]
}
]
//
const getActivitys = async function () {
try {
@ -1686,44 +1473,6 @@ const getActivitys = async function () {
}
const MarketNameForId = (name) => {
if (name == '新加坡') {
return 4
} else if (name == '加拿大') {
return 24016
} else if (name == '马来西亚') {
return 5
} else if (name == '香港') {
return 13
} else if (name == '泰国') {
return 24018
} else if (name == '越南HCM') {
return 24022
} else {
return name
}
}
const CurrencyForId = (name) => {
if (name == '美元(USD)') {
return 1
} else if (name == '港币(HKD)') {
return 2
} else if (name == '新币(SGD)') {
return 3
} else if (name == '马币(MYR)') {
return 4
} else if (name == '泰铢(THB)') {
return 5
} else if (name == '加币(CAD)') {
return 6
} else if (name == '越南盾(VDN)') {
return 7
} else if (name == '越南盾(VDN)') {
return 8
} else {
return name
}
}
//
const throttledhandleAddForm = _.throttle(handleAddForm, 5000, {

259
src/views/moneyManage/receiveDetail/utils/staticData.js

@ -0,0 +1,259 @@
export const productList = [
{
"value": "金币产品",
"label": "金币产品",
"children": [
{
"value": "金币充值",
"label": "金币充值"
}
]
},
{
"value": "软件产品",
"label": "软件产品",
"children": [
{
"value": "软件",
"label": "软件",
"children": [
{
"value": "美股",
"label": "美股",
"children": [
{
"value": "美股软件",
"label": "美股软件"
}
]
},
{
"value": "港股",
"label": "港股",
"children": [
{
"value": "港股软件",
"label": "港股软件"
}
]
},
{
"value": "A股",
"label": "A股",
"children": [
{
"value": "A股软件",
"label": "A股软件"
}
]
},
{
"value": "新加坡股",
"label": "新加坡股",
"children": [
{
"value": "新加坡股软件",
"label": "新加坡股软件"
}
]
},
{
"value": "马股",
"label": "马股",
"children": [
{
"value": "马股软件",
"label": "马股软件"
}
]
},
{
"value": "日本股",
"label": "日本股",
"children": [
{
"value": "日本股软件",
"label": "日本股软件"
}
]
},
{
"value": "泰股",
"label": "泰股",
"children": [
{
"value": "泰股软件",
"label": "泰股软件"
}
]
},
{
"value": "越南股",
"label": "越南股",
"children": [
{
"value": "越南股软件",
"label": "越南股软件"
}
]
},
{
"value": "印尼股",
"label": "印尼股",
"children": [
{
"value": "印尼股软件",
"label": "印尼股软件"
}
]
},
{
"value": "韩国股",
"label": "韩国股",
"children": [
{
"value": "韩国股软件",
"label": "韩国股软件"
}
]
},
{
"value": "台湾股",
"label": "台湾股",
"children": [
{
"value": "台湾股软件",
"label": "台湾股软件"
}
]
}
]
},
{
"value": "AI机构探测神器",
"label": "AI机构探测神器",
"children": [
{
"value": "AI机构追踪",
"label": "AI机构追踪"
},
{
"value": "AI机构出击",
"label": "AI机构出击"
},
{
"value": "AI机构资金",
"label": "AI机构资金"
},
{
"value": "AI机活跃度",
"label": "AI机活跃度"
}
]
},
{
"value": "超级机构探测神器",
"label": "超级机构探测神器",
"children": [
{
"value": "超级机构透视",
"label": "超级机构透视"
},
{
"value": "超级机构伏击",
"label": "超级机构伏击"
},
{
"value": "超级机构猎杀",
"label": "超级机构猎杀"
},
{
"value": "超级机构脉博",
"label": "超级机构脉博"
},
{
"value": "超级机构罗盘",
"label": "超级机构罗盘"
}
]
},
{
"value": "其他",
"label": "其他",
"children": [
{
"value": "静态信息费",
"label": "静态信息费"
},
{
"value": "博股会员",
"label": "博股会员"
}
]
}
]
}
]
export const MarketNameForId = (name) => {
if (name == '新加坡') {
return 4
} else if (name == '加拿大') {
return 24016
} else if (name == '马来西亚') {
return 5
} else if (name == '香港') {
return 13
} else if (name == '泰国') {
return 24018
} else if (name == '越南HCM') {
return 24022
} else {
return name
}
}
export const CurrencyForId = (name) => {
if (name == '美元(USD)') {
return 1
} else if (name == '港币(HKD)') {
return 2
} else if (name == '新币(SGD)') {
return 3
} else if (name == '马币(MYR)') {
return 4
} else if (name == '泰铢(THB)') {
return 5
} else if (name == '加币(CAD)') {
return 6
} else if (name == '越南盾(VDN)') {
return 7
} else if (name == '越南盾(VDN)') {
return 8
} else {
return name
}
}
export const marketList = ['马来西亚', '香港', '新加坡', '泰国', '越南HCM', '加拿大']
export const statusList = [
{
name: '待审核',
value: 0
},
{
name: '已通过',
value: 134
},
{
name: '已撤回',
value: 5
}, {
name: '退款',
value: 6
}, {
name: '已驳回',
value: 2
},
]
Loading…
Cancel
Save