diff --git a/src/api/super/gameManagement.js b/src/api/super/gameManagement.js new file mode 100644 index 0000000..3f1df3a --- /dev/null +++ b/src/api/super/gameManagement.js @@ -0,0 +1,10 @@ +import request from '@/utils/request' + +// 游戏列表 +export function superGameList(query) { + return request({ + url: '/super/game/list', + method: 'get', + params: query + }) +} \ No newline at end of file diff --git a/src/api/super/platform.js b/src/api/super/platform.js index a397d52..7f3b8f3 100644 --- a/src/api/super/platform.js +++ b/src/api/super/platform.js @@ -40,6 +40,23 @@ export function createGameuUpdate(data) { data: data }) } + // 更新游戏状态 +export function createGameuUpdateStatus(data) { + return request({ + url: '/super/game/updateStatus', + method: 'put', + data: data + }) +} + // 更新游戏状态 + export function createGameuAdd(data) { + return request({ + url: '/super/game/add', + method: 'post', + data: data + }) + } + // 详情 export function getSuperPlatformInf(Id) { return request({ diff --git a/src/views/components/EChartExample.vue b/src/views/components/EChartExample.vue index 661fcd5..0ea974b 100644 --- a/src/views/components/EChartExample.vue +++ b/src/views/components/EChartExample.vue @@ -68,6 +68,7 @@ type: 'line', symbol: 'circle', symbolSize: 10, + connectNulls: true, lineStyle: { width: 2 }, diff --git a/src/views/merchant/businessInformation/components/RenewDialog.vue b/src/views/merchant/businessInformation/components/RenewDialog.vue index aa45b58..157ea10 100644 --- a/src/views/merchant/businessInformation/components/RenewDialog.vue +++ b/src/views/merchant/businessInformation/components/RenewDialog.vue @@ -133,6 +133,7 @@ const disabledIS = ref(props.addEditStatus == 'detail' ? true : false); // 是 const langDefaultClass = ref(null), langDefaultClassList = ref([]);// 分类名称 const tenantSystemPlatforms = ref([]); const loadingButton = ref(false); +const oldForm = shallowRef({ }); const realBalance = ref([]); const myTable = ref() const loading5 = ref(false) @@ -150,15 +151,14 @@ const forceUpdateTable = async () => { if (index < props.modifyDate.tenantSystemPlatforms.length) { formAll.tenantSystemPlatforms.push( ...props.modifyDate.tenantSystemPlatforms.slice(index, index + batchSize) - ) - index += batchSize - // 下一帧再加载,避免阻塞 UI - requestAnimationFrame(loadBatch) + ) + index += batchSize + // 下一帧再加载,避免阻塞 UI + requestAnimationFrame(loadBatch) } + oldForm.value = JSON.stringify(formAll); } - loadBatch() - } const showDialog = computed({// 对话框显示隐藏 get() { @@ -256,7 +256,6 @@ nextTick(() => { formAll.scoreRatio = props.modifyDate.scoreRatio; formAll.curType = props.modifyDate.curType; formAll.googleCodeSwitch = props.modifyDate.googleCodeSwitch; - }) // 关闭弹窗 @@ -332,29 +331,35 @@ function submitForm() { proxy.$refs["agentRef"].validate(valid => { if (valid) { loadingButton.value = true; - let arrData = formAll.realBalance.map(item => { - return { - balance: item.balance, - currencyCode: item.currencyCode, - } - }) + // let arrData = formAll.realBalance.map(item => { + // return { + // balance: item.balance, + // currencyCode: item.currencyCode, + // } + // }) let dataObj = { id: props.modifyDate.id, scoreRatio: formAll.scoreRatio, curType: formAll.curType, googleCodeSwitch: formAll.googleCodeSwitch, - // tenantType: formAll.tenantType, // googleCode:formAll.googleCode, tenantPlatforms: formAll.tenantSystemPlatforms, } - updateSuperTenantEdit(dataObj).then(response => { + if (JSON.stringify(formAll) != oldForm.value) { + updateSuperTenantEdit(dataObj).then(response => { + loadingButton.value = false; + proxy.$modal.msgSuccess(proxy.t('更新成功')); + closeDialog(); + emits('submit',response.data); + }).catch(() => { + loadingButton.value = false; + }); + }else{ loadingButton.value = false; - proxy.$modal.msgSuccess(proxy.t('更新成功')); closeDialog(); - emits('submit',response.data); - }); + } } }); diff --git a/src/views/platform/gameManagement/index.vue b/src/views/platform/gameManagement/index.vue index 7e5fb12..e00edcc 100644 --- a/src/views/platform/gameManagement/index.vue +++ b/src/views/platform/gameManagement/index.vue @@ -2,37 +2,52 @@