diff --git a/dist.rar b/dist.rar index 3edf8dc..2c7c9a0 100644 Binary files a/dist.rar and b/dist.rar differ diff --git a/src/api/game/game.js b/src/api/game/game.js index 8cbad0f..a716103 100644 --- a/src/api/game/game.js +++ b/src/api/game/game.js @@ -267,3 +267,22 @@ export function listRanking(query) { }) } /* ------------------------------- 游戏全网排名end ------------------------------- */ + + +// 查询不存在图片的游戏 +export function getImgNotExist(data) { + return request({ + url: '/game/game/get/img/not/exist', + method: 'post', + data: data + }) +} +//图片专用上传接口 +export function postFileGameUpload(platformCode,gameCode,data) { + return request({ + url: `/file/game/upload/${platformCode}/${gameCode}`, + method: 'post', + data: data + }) +} + diff --git a/src/components/BaseCheckbox/index.vue b/src/components/BaseCheckbox/index.vue index a8cb89d..e4d18d9 100644 --- a/src/components/BaseCheckbox/index.vue +++ b/src/components/BaseCheckbox/index.vue @@ -94,7 +94,7 @@ const handleCheckedCitiesChange = (value) => { // 币种label设置 const getCurrencyTypeList = () => { - const list = getLocalStorage('currencyList')?.filter(v => v.status == 0) || []; + const list = getLocalStorage('currencySelect')?.filter(v => v.status == 0) || []; needOptions.value = list.map(item => { return { label: getCurrencyDisplay(item.currencyCode, 'currencyDisplay'), diff --git a/src/components/BaseRadio/index.vue b/src/components/BaseRadio/index.vue index 25a5463..f43196e 100644 --- a/src/components/BaseRadio/index.vue +++ b/src/components/BaseRadio/index.vue @@ -27,7 +27,7 @@ const options = ref([]), radioValue = defineModel(); // 币种选择 const getCurrencyTypeList = () => { - const list = getLocalStorage('currencyList')?.filter(v => v.status == 0) || []; + const list = getLocalStorage('currencySelect')?.filter(v => v.status == 0) || []; options.value = list.map(item => { return { label: item.currencyCode, diff --git a/src/components/CheckboxSelect/index.vue b/src/components/CheckboxSelect/index.vue index 0053c49..bda040d 100644 --- a/src/components/CheckboxSelect/index.vue +++ b/src/components/CheckboxSelect/index.vue @@ -78,7 +78,7 @@ const handleCheckAll = (checked) => { // 币种选择 const getCurrencyTypeList = () => { - const localList = getLocalStorage('currencyList')?.filter(v => v.status == 0) || []; // 本地缓存 + const localList = getLocalStorage('currencySelect')?.filter(v => v.status == 0) || []; // 本地缓存 if (localList.length) { needOptions.value = localList.map(item => { diff --git a/src/components/ImageUpload/index.vue b/src/components/ImageUpload/index.vue index 0b00bfe..173ecd4 100644 --- a/src/components/ImageUpload/index.vue +++ b/src/components/ImageUpload/index.vue @@ -68,6 +68,14 @@ const props = defineProps({ type: Boolean, default: true }, + isUrl: { + type: Boolean, + default: false + }, + uploadImgUrl: { + type: String, + default: '' + }, disabled: { type: Boolean, default: false @@ -88,6 +96,9 @@ const fileList = ref([]); const showTip = computed( () => props.isShowTip && (props.fileType || props.fileSize) ); +if (props.isUrl == true){ // + uploadImgUrl.value = props.uploadImgUrl +} watch(() => props.modelValue, val => { if (val) { // 首先将值转为数组 diff --git a/src/main.js b/src/main.js index d157323..8033519 100644 --- a/src/main.js +++ b/src/main.js @@ -26,6 +26,8 @@ import elementIcons from '@/components/SvgIcon/svgicon' import BaseSelect from '@/components/BaseSelect'; // 字典下拉组件 import DictSelect from '@/components/DictSelect'; +// 币种下拉列表 +import CurrencySelect from '@/components/CurrencySelect'; import './permission' // permission control import { useDict } from '@/utils/dict' @@ -82,6 +84,7 @@ app.component('SelectInputForm', SelectInputForm); app.component('TableOperation', TableOperation); app.component('DictSelect', DictSelect); app.component('BaseSelect', BaseSelect); +app.component('CurrencySelect', CurrencySelect); app.component('Editor', Editor) app.use(router) app.use(store) diff --git a/src/utils/index.js b/src/utils/index.js index b88d236..45b8a75 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -450,7 +450,7 @@ export function moneyFormat(num, patch = false, decimal = 2, split = ',') { } // 获取币种比例 export function getCurrencyDisplay(currencyCode, key) { - const currencylist = getLocalStorage('currencyList') || []; + const currencylist = getLocalStorage('currencySelect') || []; if (currencylist.length > 0) { return currencylist.find(v => v.currencyCode === currencyCode)[key]; } diff --git a/src/views/finance/bankingRegulations/components/AddEditDialog.vue b/src/views/finance/bankingRegulations/components/AddEditDialog.vue new file mode 100644 index 0000000..8e5f832 --- /dev/null +++ b/src/views/finance/bankingRegulations/components/AddEditDialog.vue @@ -0,0 +1,257 @@ + + + + + diff --git a/src/views/finance/bankingRegulations/index.vue b/src/views/finance/bankingRegulations/index.vue index a5c2bfe..0a661ab 100644 --- a/src/views/finance/bankingRegulations/index.vue +++ b/src/views/finance/bankingRegulations/index.vue @@ -1,52 +1,173 @@ - +// 查询银行管理列表 +function getList() { + loading.value = true; - + listBank(queryParams).then(res => { + bankList.value = res.rows; + total.value = res.total; + loading.value = false; + }); +} + +// 新增按钮操作 +const addEditStatus = ref('add'), isShowDialog = ref(false), editDataId = ref(''); +const handleAdd = () => { + isShowDialog.value = true; + addEditStatus.value = 'add'; +} + +// 修改 +const handleUpdate = (row) => { + editDataId.value = row.id; + isShowDialog.value = true; + addEditStatus.value = 'edit'; +} + +// 关闭新增修改弹窗 +const closeDialog = (type) => { + switch (type) { + case 'add-edit': // 新增-修改弹窗 + addEditStatus.value = 'add'; // 每次关闭还原为新增模式 + isShowDialog.value = false; + // 刷新列表 + getList(); + break + case 'close': // 新增-修改弹窗 + addEditStatus.value = 'add'; // 每次关闭还原为新增模式 + isShowDialog.value = false; + break + } +} + +// 表格中开启状态开关 +const switchBeforeChange = () => { + return false; +} + +// 银行启用状态更改 +const changeStatus = (row) => { // row.status: 0-停用 1-启用 + proxy.$modal.confirm( proxy.t('确认{}“' + row.bankName + '”?', +row.status === 1 ? '启用' : '停用')).then(() => { + changeBankStatus({ id: row.id, status: +row.status === 1 ? 0 : 1 }).then(res => { + proxy.$modal.msgSuccess(proxy.t(row.bankName + ' {}成功!', +row.status === 1 ? '启用' : '停用')); + getList(); + }) + }).catch(() => { }); +} + +// 删除 +const handleDelete = (row) => { + proxy.$modal.confirm(proxy.t('确认删除“' + row.bankName + '”的数据?')).then(() => { + return delBank(row.id); + }).then(() => { + getList(); + proxy.$modal.msgSuccess(proxy.t('删除成功!')); + }).catch(() => { }); +} + +// 搜索 +const handleQuery = () => { + queryParams.pageNum = 1; + getList(); +} + +// 重置 +const resetQuery = () => { + handleQuery(); +} + +getList(); + + \ No newline at end of file diff --git a/src/views/finance/bankingRegulations/rateConfiguration/index.vue b/src/views/finance/bankingRegulations/rateConfiguration/index.vue deleted file mode 100644 index 36ab0d3..0000000 --- a/src/views/finance/bankingRegulations/rateConfiguration/index.vue +++ /dev/null @@ -1,161 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/views/finance/bankingRegulations/syncHistory/index.vue b/src/views/finance/bankingRegulations/syncHistory/index.vue deleted file mode 100644 index c094285..0000000 --- a/src/views/finance/bankingRegulations/syncHistory/index.vue +++ /dev/null @@ -1,93 +0,0 @@ - - - \ No newline at end of file diff --git a/src/views/finance/paymentRanking/allThreeParties/list.vue b/src/views/finance/paymentRanking/allThreeParties/list.vue index 2391eae..377449f 100644 --- a/src/views/finance/paymentRanking/allThreeParties/list.vue +++ b/src/views/finance/paymentRanking/allThreeParties/list.vue @@ -1,14 +1,13 @@ --> - - + + - + - + - + diff --git a/src/views/orgManagement/maintenanceManagement/underMaintenance/list.vue b/src/views/orgManagement/maintenanceManagement/underMaintenance/list.vue index 5292517..dc1269e 100644 --- a/src/views/orgManagement/maintenanceManagement/underMaintenance/list.vue +++ b/src/views/orgManagement/maintenanceManagement/underMaintenance/list.vue @@ -63,22 +63,22 @@ 主站点 --> - - + + - + - + - + diff --git a/src/views/orgManagement/quotaManagement/bannedGames/list.vue b/src/views/orgManagement/quotaManagement/bannedGames/list.vue index 8d32538..8c0390c 100644 --- a/src/views/orgManagement/quotaManagement/bannedGames/list.vue +++ b/src/views/orgManagement/quotaManagement/bannedGames/list.vue @@ -1,5 +1,5 @@