diff --git a/src/api/config/AllItemConfigCategory.json b/src/api/config/AllItemConfigCategory.json index 4dad6a6..43e5911 100644 --- a/src/api/config/AllItemConfigCategory.json +++ b/src/api/config/AllItemConfigCategory.json @@ -16694,7 +16694,7 @@ "TreasureBowl": false, "Icon": "Item_Icon_7877", "Description": "凿痕映青苔,曲水引桃源。", - "GetMethod": "来源:未知", + "GetMethod": "来源:夜市商人", "Importantdata": false }, { @@ -22056,6 +22056,29 @@ "GetMethod": "来源:鲁明处兑换", "Importantdata": false }, + { + "Id": 400031, + "Name": "藏礼屋", + "DetailsPageName": "礼厅皮肤:藏礼屋", + "Type": 7, + "RelatedId": 40032, + "StockType": 6, + "StorageType": 1, + "Transport": false, + "BackpackTransfer": false, + "SuperpositionMax": 9999999999, + "HasLimit": 1, + "AbleThrow": false, + "Gift": false, + "Favorability": 0, + "Track": false, + "Grade": 2, + "TreasureBowl": false, + "Icon": "Item_Icon_400031", + "Description": "礼厅建筑的外观皮肤,使用后可在桃源殿解锁研究皮肤科技:藏礼屋", + "GetMethod": "来源:鲁明处兑换", + "Importantdata": false + }, { "Id": 500001, "Name": "榕树皮肤", diff --git a/src/api/config/BusinessManConfigCategory.json b/src/api/config/BusinessManConfigCategory.json index 04d9290..3d5b04a 100644 --- a/src/api/config/BusinessManConfigCategory.json +++ b/src/api/config/BusinessManConfigCategory.json @@ -480,7 +480,7 @@ "ResetItemNum": 0, "Increment": 0, "ResetLimited": 0, - "ResetType": 0, + "ResetType": 5, "ResetTypeParameter": 500 }, { diff --git a/src/api/config/DecorationsConfigCategory.json b/src/api/config/DecorationsConfigCategory.json index 48ba139..41c653d 100644 --- a/src/api/config/DecorationsConfigCategory.json +++ b/src/api/config/DecorationsConfigCategory.json @@ -1246,7 +1246,7 @@ "Id": 67, "Name": "武陵溪", "Type": 2, - "Manual": false, + "Manual": true, "Order": 67, "score": 15, "Preview": true, diff --git a/src/api/config/FunctionItemConfigCategory.json b/src/api/config/FunctionItemConfigCategory.json index 04f8325..58b5ce2 100644 --- a/src/api/config/FunctionItemConfigCategory.json +++ b/src/api/config/FunctionItemConfigCategory.json @@ -3903,6 +3903,14 @@ "UseTypeParameter": 7031, "UseTypeParameter2": 0 }, + { + "Id": 40032, + "Name": "藏礼屋", + "UseType": 13, + "ScaleCondition": 20, + "UseTypeParameter": 7032, + "UseTypeParameter2": 0 + }, { "Id": 50001, "Name": "图纸:榕树皮肤", diff --git a/src/api/config/GoodsForSaleConfigCategory.json b/src/api/config/GoodsForSaleConfigCategory.json index 129e746..d89b139 100644 --- a/src/api/config/GoodsForSaleConfigCategory.json +++ b/src/api/config/GoodsForSaleConfigCategory.json @@ -6335,6 +6335,28 @@ "Specialty": 0, "RefreshCycle": 0 }, + { + "Id": 8026, + "GroupId": 405, + "Scale": 0, + "ItemId": 7877, + "SaleNum": [ + 500, + 500 + ], + "Weight": 1, + "OverlayWeight": 0, + "SaleCondition": 0, + "SaleConditionParemeter": 0, + "SellingCurrencyType": 1, + "Price": 2000, + "Discount": 90, + "DiscountWeight": 10, + "SaleMax": 1000, + "DiscountMark": "", + "Specialty": 0, + "RefreshCycle": 0 + }, { "Id": 9001, "GroupId": 406, @@ -7082,5 +7104,27 @@ "DiscountMark": "", "Specialty": 0, "RefreshCycle": 0 + }, + { + "Id": 10031, + "GroupId": 407, + "Scale": 0, + "ItemId": 400031, + "SaleNum": [ + 1, + 1 + ], + "Weight": 1, + "OverlayWeight": 0, + "SaleCondition": 0, + "SaleConditionParemeter": 0, + "SellingCurrencyType": 9, + "Price": 1, + "Discount": 0, + "DiscountWeight": 0, + "SaleMax": 1, + "DiscountMark": "", + "Specialty": 0, + "RefreshCycle": 0 } ] \ No newline at end of file diff --git a/src/api/config/ScienceConfigCategory.json b/src/api/config/ScienceConfigCategory.json index 54b4937..16e1f24 100644 --- a/src/api/config/ScienceConfigCategory.json +++ b/src/api/config/ScienceConfigCategory.json @@ -7892,8 +7892,8 @@ "EffectParameter": 503, "Icon": "Science_5003", "Performance": 0, - "ScienceDescribe": "编辑场景可以移动资源", - "ResultDescribe": "编辑场景可以移动资源" + "ScienceDescribe": "布局模式下可以移动资源", + "ResultDescribe": "布局模式下可以移动资源" }, { "Id": 7001, @@ -8762,5 +8762,33 @@ "Performance": 0, "ScienceDescribe": "鲁明(位于陶渊明家)处购买图纸", "ResultDescribe": "解锁建筑皮肤:芳轮溉春" + }, + { + "Id": 7032, + "Type": 4, + "Name": "藏礼屋", + "PrefixScience": 0, + "ScienceGroup": 7032, + "ScienceLv": 10, + "Scale": 20, + "Structure": 30, + "Drawing": true, + "ItemId_1": 327, + "ItemNum_1": 500, + "ItemId_2": 803, + "ItemNum_2": 700, + "ItemId_3": 808, + "ItemNum_3": 700, + "ItemId_4": 819, + "ItemNum_4": 350, + "Copper": 320000, + "Volume": 260000, + "EffectType": 5, + "ObjectAction": 0, + "EffectParameter": 0, + "Icon": "Science_7032", + "Performance": 0, + "ScienceDescribe": "鲁明(位于陶渊明家)处购买图纸", + "ResultDescribe": "解锁建筑皮肤:藏礼屋" } ] \ No newline at end of file diff --git a/src/api/config/SkillBuffConfigCategory.json b/src/api/config/SkillBuffConfigCategory.json index 5d69d2d..87bbdb9 100644 --- a/src/api/config/SkillBuffConfigCategory.json +++ b/src/api/config/SkillBuffConfigCategory.json @@ -21341,8 +21341,8 @@ { "Id": 3611, "Name": "", - "TriggerTime": 3, - "TriggerParameter": 1, + "TriggerTime": 1, + "TriggerParameter": 0, "Gain": 0, "Immunity": false, "Disperse": false, @@ -21351,8 +21351,8 @@ "LinkEffect": [ 3611 ], - "ContinuedType": 2, - "ContinuedParameter": 10, + "ContinuedType": 1, + "ContinuedParameter": 0, "Overlay": false, "OverlayMax": 0, "BarShow": false, @@ -21376,8 +21376,8 @@ "LinkEffect": [ 3612 ], - "ContinuedType": 2, - "ContinuedParameter": 10, + "ContinuedType": 1, + "ContinuedParameter": 0, "Overlay": false, "OverlayMax": 0, "BarShow": false, @@ -21401,8 +21401,8 @@ "LinkEffect": [ 3613 ], - "ContinuedType": 2, - "ContinuedParameter": 10, + "ContinuedType": 1, + "ContinuedParameter": 0, "Overlay": false, "OverlayMax": 0, "BarShow": false, @@ -21426,8 +21426,8 @@ "LinkEffect": [ 3614 ], - "ContinuedType": 2, - "ContinuedParameter": 10, + "ContinuedType": 1, + "ContinuedParameter": 0, "Overlay": false, "OverlayMax": 0, "BarShow": false, @@ -21451,8 +21451,8 @@ "LinkEffect": [ 3615 ], - "ContinuedType": 2, - "ContinuedParameter": 10, + "ContinuedType": 1, + "ContinuedParameter": 0, "Overlay": false, "OverlayMax": 0, "BarShow": false, @@ -21476,8 +21476,8 @@ "LinkEffect": [ 3616 ], - "ContinuedType": 2, - "ContinuedParameter": 10, + "ContinuedType": 1, + "ContinuedParameter": 0, "Overlay": false, "OverlayMax": 0, "BarShow": false, @@ -21501,8 +21501,8 @@ "LinkEffect": [ 3617 ], - "ContinuedType": 2, - "ContinuedParameter": 10, + "ContinuedType": 1, + "ContinuedParameter": 0, "Overlay": false, "OverlayMax": 0, "BarShow": false, @@ -21526,8 +21526,8 @@ "LinkEffect": [ 3618 ], - "ContinuedType": 2, - "ContinuedParameter": 10, + "ContinuedType": 1, + "ContinuedParameter": 0, "Overlay": false, "OverlayMax": 0, "BarShow": false, @@ -21551,8 +21551,8 @@ "LinkEffect": [ 3619 ], - "ContinuedType": 2, - "ContinuedParameter": 10, + "ContinuedType": 1, + "ContinuedParameter": 0, "Overlay": false, "OverlayMax": 0, "BarShow": false, @@ -21576,8 +21576,8 @@ "LinkEffect": [ 3620 ], - "ContinuedType": 2, - "ContinuedParameter": 10, + "ContinuedType": 1, + "ContinuedParameter": 0, "Overlay": false, "OverlayMax": 0, "BarShow": false, @@ -21850,7 +21850,7 @@ "BuffProbability": 100, "LinkEffect": [], "ContinuedType": 2, - "ContinuedParameter": 10, + "ContinuedParameter": 1, "Overlay": false, "OverlayMax": 0, "BarShow": false, diff --git a/src/api/config/SkillBulletConfigCategory.json b/src/api/config/SkillBulletConfigCategory.json index 9f84ff8..5ee38ef 100644 --- a/src/api/config/SkillBulletConfigCategory.json +++ b/src/api/config/SkillBulletConfigCategory.json @@ -6861,11 +6861,12 @@ "FlightDistance": 0, "Disappear": 2, "DisappearParameter": 10000, - "DetectTime": 1, - "TestParameters": 0, + "DetectTime": 3, + "TestParameters": 1, "NumberOfTargets": 0, "Buff": [ - 3611 + 3611, + 3631 ], "Skill": 0, "SpecialEffect": "Bullet_Skill_XiaoGui", @@ -6886,11 +6887,12 @@ "FlightDistance": 0, "Disappear": 2, "DisappearParameter": 10000, - "DetectTime": 1, - "TestParameters": 0, + "DetectTime": 3, + "TestParameters": 1, "NumberOfTargets": 0, "Buff": [ - 3612 + 3612, + 3631 ], "Skill": 0, "SpecialEffect": "Bullet_Skill_XiaoGui", @@ -6911,11 +6913,12 @@ "FlightDistance": 0, "Disappear": 2, "DisappearParameter": 10000, - "DetectTime": 1, - "TestParameters": 0, + "DetectTime": 3, + "TestParameters": 1, "NumberOfTargets": 0, "Buff": [ - 3613 + 3613, + 3631 ], "Skill": 0, "SpecialEffect": "Bullet_Skill_XiaoGui", @@ -6936,11 +6939,12 @@ "FlightDistance": 0, "Disappear": 2, "DisappearParameter": 10000, - "DetectTime": 1, - "TestParameters": 0, + "DetectTime": 3, + "TestParameters": 1, "NumberOfTargets": 0, "Buff": [ - 3614 + 3614, + 3631 ], "Skill": 0, "SpecialEffect": "Bullet_Skill_XiaoGui", @@ -6961,11 +6965,12 @@ "FlightDistance": 0, "Disappear": 2, "DisappearParameter": 10000, - "DetectTime": 1, - "TestParameters": 0, + "DetectTime": 3, + "TestParameters": 1, "NumberOfTargets": 0, "Buff": [ - 3615 + 3615, + 3631 ], "Skill": 0, "SpecialEffect": "Bullet_Skill_XiaoGui", @@ -6986,11 +6991,12 @@ "FlightDistance": 0, "Disappear": 2, "DisappearParameter": 10000, - "DetectTime": 1, - "TestParameters": 0, + "DetectTime": 3, + "TestParameters": 1, "NumberOfTargets": 0, "Buff": [ - 3616 + 3616, + 3631 ], "Skill": 0, "SpecialEffect": "Bullet_Skill_XiaoGui", @@ -7011,11 +7017,12 @@ "FlightDistance": 0, "Disappear": 2, "DisappearParameter": 10000, - "DetectTime": 1, - "TestParameters": 0, + "DetectTime": 3, + "TestParameters": 1, "NumberOfTargets": 0, "Buff": [ - 3617 + 3617, + 3631 ], "Skill": 0, "SpecialEffect": "Bullet_Skill_XiaoGui", @@ -7036,11 +7043,12 @@ "FlightDistance": 0, "Disappear": 2, "DisappearParameter": 10000, - "DetectTime": 1, - "TestParameters": 0, + "DetectTime": 3, + "TestParameters": 1, "NumberOfTargets": 0, "Buff": [ - 3618 + 3618, + 3631 ], "Skill": 0, "SpecialEffect": "Bullet_Skill_XiaoGui", @@ -7061,11 +7069,12 @@ "FlightDistance": 0, "Disappear": 2, "DisappearParameter": 10000, - "DetectTime": 1, - "TestParameters": 0, + "DetectTime": 3, + "TestParameters": 1, "NumberOfTargets": 0, "Buff": [ - 3619 + 3619, + 3631 ], "Skill": 0, "SpecialEffect": "Bullet_Skill_XiaoGui", @@ -7086,11 +7095,12 @@ "FlightDistance": 0, "Disappear": 2, "DisappearParameter": 10000, - "DetectTime": 1, - "TestParameters": 0, + "DetectTime": 3, + "TestParameters": 1, "NumberOfTargets": 0, "Buff": [ - 3620 + 3620, + 3631 ], "Skill": 0, "SpecialEffect": "Bullet_Skill_XiaoGui", diff --git a/src/api/config/StructureConfigCategory.json b/src/api/config/StructureConfigCategory.json index 9ab484a..2e98ca5 100644 --- a/src/api/config/StructureConfigCategory.json +++ b/src/api/config/StructureConfigCategory.json @@ -306,7 +306,9 @@ "StrengthenId": 30, "ShowOccupyPlace": true, "Prefab": "Structure_30", - "SkinConfigIds": [], + "SkinConfigIds": [ + 1052 + ], "Picture": "Structure_Picture_30", "NamePicture": "Structure_Name_30", "Sound": "", @@ -4141,7 +4143,9 @@ "StrengthenId": 302, "ShowOccupyPlace": false, "Prefab": "Structure_302", - "SkinConfigIds": [], + "SkinConfigIds": [ + 1031 + ], "Picture": "Structure_Picture_306", "NamePicture": "Structure_Name_306", "Sound": "", @@ -4243,7 +4247,9 @@ "StrengthenId": 306, "ShowOccupyPlace": false, "Prefab": "Structure_306", - "SkinConfigIds": [], + "SkinConfigIds": [ + 1032 + ], "Picture": "Structure_Picture_306", "NamePicture": "Structure_Name_306", "Sound": "", diff --git a/src/api/config/StructureSkinConfigCategory.json b/src/api/config/StructureSkinConfigCategory.json index 2362de3..39354d3 100644 --- a/src/api/config/StructureSkinConfigCategory.json +++ b/src/api/config/StructureSkinConfigCategory.json @@ -278,6 +278,24 @@ "ScienceId": 7016, "Integral": 100 }, + { + "Id": 1031, + "SkinName": "幽篁渡·一", + "SkinPrefab": "Structure_Skin_1031", + "Picture": "Structure_Skin_Picture_1031", + "GetMethod": "外观礼包", + "ScienceId": 0, + "Integral": 100 + }, + { + "Id": 1032, + "SkinName": "幽篁渡·二", + "SkinPrefab": "Structure_Skin_1032", + "Picture": "Structure_Skin_Picture_1031", + "GetMethod": "外观礼包", + "ScienceId": 0, + "Integral": 100 + }, { "Id": 1037, "SkinName": "藤月观畦庐", @@ -412,5 +430,14 @@ "GetMethod": "鲁明处购买图纸后在桃源殿进行研究", "ScienceId": 7031, "Integral": 100 + }, + { + "Id": 1052, + "SkinName": "藏礼屋", + "SkinPrefab": "Structure_Skin_1052", + "Picture": "Structure_Skin_Picture_1052", + "GetMethod": "鲁明处购买图纸后在桃源殿进行研究", + "ScienceId": 7032, + "Integral": 100 } ] \ No newline at end of file diff --git a/src/utils/utils.ts b/src/utils/utils.ts index e8cc93a..d9c5483 100644 --- a/src/utils/utils.ts +++ b/src/utils/utils.ts @@ -98,3 +98,23 @@ export function guid() { export function s4() { return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1); } + +export function getAccount(account: string, channel: string) { + if (channel == '000000000000' && !account.includes(channel)) { + account = channel + account; + } + return account; +} + +export function channelFill(val: any) { + let len = val.length; + for (let i = 0; i < 6 - len; i++) { + val = '0' + val; + } + return val; +} + +export function getCompleteChannel(channel: any, subChannel: any) { + + return channelFill(channel) + channelFill(subChannel); +} diff --git a/src/views/gameBug/clientBug/index.vue b/src/views/gameBug/clientBug/index.vue index d435745..3a7cae2 100644 --- a/src/views/gameBug/clientBug/index.vue +++ b/src/views/gameBug/clientBug/index.vue @@ -1,186 +1,194 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - 查询 - - - - - - - - - - - - {{ scope.row.bug }} - - - - - {{ scope.row.stackTrace }} - - - - - {{ addZero(scope.row.channel) }}{{ addZero(scope.row.subChannel) }} - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + 查询 + + + + + + + + + + + + {{ scope.row.bug }} + + + + + {{ scope.row.stackTrace }} + + + + {{ addZero(scope.row.channel) }}{{ addZero(scope.row.subChannel) }} + + + + + + + + + + + + + diff --git a/src/views/gameCCD/hotfix/component/checkCCD.vue b/src/views/gameCCD/hotfix/component/checkCCD.vue index dfac96c..0c7d4e7 100644 --- a/src/views/gameCCD/hotfix/component/checkCCD.vue +++ b/src/views/gameCCD/hotfix/component/checkCCD.vue @@ -36,7 +36,8 @@ import { reactive, toRefs, defineComponent } from 'vue'; import { allChannelList } from '/src/utils/game'; import axios from 'axios'; -import {gameCCD} from "/@/api/game"; +import { gameCCD } from '/@/api/game'; +import * as http from 'node:http'; const baseURL: string | undefined | boolean = import.meta.env.VITE_API_URL; @@ -89,18 +90,23 @@ export default defineComponent({ }; // 新增 const addVersion = () => { - // let url = `${baseURL}frontApi/game/ccd/get`; - // axios - // .post(url, { - // params: state.tableData.param, - // }) - // .then((res) => { - // console.log(res); - // }); - gameCCD(state.tableData.param).then((res) => { - console.log(res); - }) - // window.open(baseURL + '/frontApi/game/loginUrl/get?channelType=' + state.tableData.param.channelType + '&platform=' + state.tableData.param.platform+ '&version=' + state.tableData.param.version); + const url = `${baseURL}frontApi/game/ccd/get`; + const Http = new XMLHttpRequest(); + Http.open('POST', url, true); + Http.setRequestHeader('Access-Control-Allow-Origin', '*'); + Http.send(JSON.stringify(state.tableData.param)); + Http.onreadystatechange = (e) => { + if (e) { + console.log(e); + return; + } + if (e.target.readyState == 4 && e.target.status == 200) { + console.log(Http.responseText, state.tableData.param); + } + // let data = JSON.parse(Http.responseText) + // console.log(Http.responseText, state.tableData.param); + // state.tableData.ip = data.origin + }; }; return { openDialog, diff --git a/src/views/gameCCD/hotfix/index.vue b/src/views/gameCCD/hotfix/index.vue index f400e28..e4b7da7 100644 --- a/src/views/gameCCD/hotfix/index.vue +++ b/src/views/gameCCD/hotfix/index.vue @@ -35,71 +35,64 @@ 新增 - - - - - - 校验 - - - - - - {{ platform.find((r) => r.value == scope.row.platform).label }} - - - - - {{ scope.row.ip }} - - - - - {{ scope.row.versionName }} - - - - - {{ - channel.find((r) => r.value == scope.row.channelType) - ? channel.find((r) => r.value == scope.row.channelType).label - : scope.row.channelType - }} - - - - - {{ state.find((r) => r.value == scope.row.state).label }} - - - - - {{ scope.row.hotfixVersion }} - - - - - {{ scope.row.versionCompare }} - - - - - {{ scope.row.url }} - - - - - 删除 - 修改 - - - + + + + + {{ platform.find((r) => r.value == scope.row.platform).label }} + + + + + {{ scope.row.ip }} + + + + + {{ scope.row.versionName }} + + + + + {{ + channel.find((r) => r.value == scope.row.channelType) + ? channel.find((r) => r.value == scope.row.channelType).label + : scope.row.channelType + }} + + + + + {{ state.find((r) => r.value == scope.row.state).label }} + + + + + {{ scope.row.hotfixVersion }} + + + + + {{ scope.row.versionCompare }} + + + + + {{ scope.row.url }} + + + + + 删除 + 修改 + + + - + diff --git a/src/views/gameRole/account/index.vue b/src/views/gameRole/account/index.vue index 286540e..e10e74e 100644 --- a/src/views/gameRole/account/index.vue +++ b/src/views/gameRole/account/index.vue @@ -133,7 +133,7 @@ export default defineComponent({ }); const accountList = () => { - state.tableData.data = []; + state.tableData.data = []; console.log(state.queryParams); gameAccountList(state.queryParams).then((res) => { if (!res.data.list || res.data.list.length == 0) { diff --git a/src/views/gameRole/itemRecord/index.vue b/src/views/gameRole/itemRecord/index.vue index ec2c49a..cf7d671 100644 --- a/src/views/gameRole/itemRecord/index.vue +++ b/src/views/gameRole/itemRecord/index.vue @@ -11,6 +11,19 @@ + + + + + + + + @@ -20,54 +33,52 @@ - - - - - - {{ - servers.find(r => r.id == scope.row.server) ? servers.find(r => r.id == scope.row.server).name : scope.row.server - }} - - - - - {{ scope.row.itemId }} - - - - - {{ allItemConfig.find((r) => r.Id == scope.row.itemId)?.Name }} - - - - - {{ scope.row.num }} - - - - - 消耗 - 增加 - - - - - {{ scope.row.cTime }} - - - - - - + + + + + + {{ servers.find((r) => r.id == scope.row.server) ? servers.find((r) => r.id == scope.row.server).name : scope.row.server }} + + + + + {{ scope.row.itemId }} + + + + + {{ allItemConfig.find((r) => r.Id == scope.row.itemId)?.Name }} + + + + + {{ scope.row.num }} + + + + + 消耗 + 增加 + + + + + {{ scope.row.cTime }} + + + + + + @@ -83,20 +94,19 @@ import AllItemConfigCategory from '/@/api/config/AllItemConfigCategory.json'; interface TableDataState { tableData: { param: { - pageSize: number; - pageNum: number; + pageSize: number; + pageNum: number; serverId: number; uid: string; itemId: string; }; data: object[]; - total: number; + total: number; }; servers: object[]; - rankNames: object[]; serverSwitch: number; serverCategorize: object[]; - allItemConfig: object[]; + allItemConfig: object[]; } export default defineComponent({ @@ -112,11 +122,12 @@ export default defineComponent({ pageNum: 1, }, data: [], + total: 0, }, serverSwitch: 0, servers: [], serverCategorize: ServerCategorize, - allItemConfig: AllItemConfigCategory, + allItemConfig: AllItemConfigCategory, }); const onList = () => { @@ -125,16 +136,16 @@ export default defineComponent({ text: 'Loading', background: 'rgba(0, 0, 0, 0.7)', }); - state.tableData.data = []; + state.tableData.data = []; gameItemRecordTwo(state.tableData.param) .then((res) => { - if (!res.data.logs || res.data.logs.length == 0) { - // ElMessage.error('未查询到物品交易记录!'); - return; - } - console.log('itemRecord: ', res); - state.tableData.total = res.data.total; - state.tableData.data = res.data.logs; + if (!res.data.logs || res.data.logs.length == 0) { + // ElMessage.error('未查询到物品交易记录!'); + return; + } + console.log('itemRecord: ', res); + state.tableData.total = res.data.total || 0; + state.tableData.data = res.data.logs || []; }) .finally(() => { loading.close(); @@ -160,6 +171,6 @@ export default defineComponent({ diff --git a/src/views/gameRole/role/index.vue b/src/views/gameRole/role/index.vue index a32701c..63a48db 100644 --- a/src/views/gameRole/role/index.vue +++ b/src/views/gameRole/role/index.vue @@ -354,6 +354,11 @@ {{ scope.row.num }} + + + {{ scope.row.oldTotal }} + + 消耗 @@ -650,7 +655,7 @@ import ClothesConfigCategory from '/@/api/config/ClothesConfigCategory.json'; import { ConstRegion, GameUnitType, NumericType, Clothes_Type, AttributeOperator, Gender, ConstBehaveType, AccountType } from '/@/api/common/consts'; import { ElMessage, ElMessageBox } from 'element-plus'; import { channelList, ServerCategorize, serverList } from '/@/utils/game'; -import { gSwitchServer } from '/@/utils/utils'; +import {getAccount, getCompleteChannel, gSwitchServer} from '/@/utils/utils'; // 定义接口来定义对象的类型 interface TableData { @@ -851,9 +856,11 @@ export default defineComponent({ } }); state.tableData.data = roleList; - console.log('gameRoleList: ', roleList); + // console.log('gameRoleList: ', roleList); }); state.queryParams.orderAccount = list[0].AccountName; + state.queryParams.channel = getCompleteChannel(list[0].Channel, list[0].SubChannel); + console.log('gameRoleList: ', list[0],list[0].Channel, list[0].SubChannel, state.queryParams, getCompleteChannel(list[0].Channel, list[0].SubChannel)); orderList(); loginOut(); loginOutLog(); @@ -864,7 +871,7 @@ export default defineComponent({ const orderList = () => { state.tableData.orderData = []; gameOrderList({ - account: state.queryParams.orderAccount, + account: getAccount(state.queryParams.orderAccount, state.queryParams.channel), pageNum: state.queryParams.orderPageNum, pageSize: state.queryParams.orderPageSize, }).then((res) => { @@ -926,8 +933,8 @@ export default defineComponent({ return; } console.log('loginOutLog: ', res.data); - state.queryParams.loginOutLogTotal = res.data.total; - state.tableData.loginOutLogData = res.data.logs; + state.queryParams.loginOutLogTotal = res.data.total || 0; + state.tableData.loginOutLogData = res.data.logs || []; }); }; const itemRecord = () => { @@ -944,13 +951,13 @@ export default defineComponent({ return; } console.log('itemRecord: ', res); - state.queryParams.itemTotal = res.data.total; - state.tableData.itemRecordData = res.data.logs; + state.queryParams.itemTotal = res.data.total || 0; + state.tableData.itemRecordData = res.data.logs || []; }); }; - const onHandleSizeChange = (val: number) => { - state.queryParams.pageSize = val; - }; + // const onHandleSizeChange = (val: number) => { + // state.queryParams.pageSize = val; + // }; const onHandleCurrentChange = (val: number) => { state.queryParams.pageNum = val; roleList(1); @@ -1391,11 +1398,21 @@ export default defineComponent({ return gSwitchServer(state.serverSwitch, state.servers); }; const noticePop = () => { - ElMessageBox.confirm('是否确认强制踢出编号'+state.queryParams.serverId+'区的玩家'+state.tableData.account.AccountName+'['+state.tableData.account.uid+']?', '提示', { - confirmButtonText: '确认', - cancelButtonText: '取消', - type: 'warning', - }).then(() => { + ElMessageBox.confirm( + '是否确认强制踢出编号' + + state.queryParams.serverId + + '区的玩家' + + state.tableData.account.AccountName + + '[' + + state.tableData.account.uid + + ']?', + '提示', + { + confirmButtonText: '确认', + cancelButtonText: '取消', + type: 'warning', + } + ).then(() => { let data = { serverId: state.queryParams.serverId, content: '强制踢出', @@ -1420,15 +1437,25 @@ export default defineComponent({ uid: state.tableData.account.uid, }; console.log('Notice: ', data); - ElMessageBox.confirm('是否确认删除编号'+state.queryParams.serverId+'区的玩家'+state.tableData.account.AccountName+'['+state.tableData.account.uid+']的排行榜?', '提示', { - confirmButtonText: '确认', - cancelButtonText: '取消', - type: 'warning', - }).then(() => { + ElMessageBox.confirm( + '是否确认删除编号' + + state.queryParams.serverId + + '区的玩家' + + state.tableData.account.AccountName + + '[' + + state.tableData.account.uid + + ']的排行榜?', + '提示', + { + confirmButtonText: '确认', + cancelButtonText: '取消', + type: 'warning', + } + ).then(() => { deleteGameRank(data) .then((res) => { if (res.data.mess) { - ElMessage.success(data.serverId +'区[uid:'+data.uid+']'+ '排行榜删除成功!' + res.data.mess); + ElMessage.success(data.serverId + '区[uid:' + data.uid + ']' + '排行榜删除成功!' + res.data.mess); } }) .finally(() => { @@ -1446,7 +1473,7 @@ export default defineComponent({ orderList, loginOutLog, itemRecord, - onHandleSizeChange, + // onHandleSizeChange, onHandleCurrentChange, roleList, checkAdult, diff --git a/src/views/gameWhiteList/list/index.vue b/src/views/gameWhiteList/list/index.vue index f5f1d83..1b168c3 100644 --- a/src/views/gameWhiteList/list/index.vue +++ b/src/views/gameWhiteList/list/index.vue @@ -33,7 +33,7 @@ @@ -110,7 +110,7 @@ export default defineComponent({ }; const handleCurrentChange = (val: number) => { - state.tableData.search.pageNum = val; + // state.tableData.search.pageNum = val; countList(); }; diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 2733855..4c9f05c 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -79,25 +79,25 @@ export default defineComponent({ }); onMounted(() => { - window.addEventListener('keydown', (res) => { - if (res.key === 'F2') { - state.showEmail = false; - state.tabsActiveName = 'account'; - state.state = ''; - return; - } - if (!'email'.includes(res.key)) { - state.state = ''; - return; - } - state.state += res.key; - if (state.state === 'email') { + window.addEventListener('keydown', (res) => { + if (res.key === 'F2') { + state.showEmail = false; + state.tabsActiveName = 'account'; + state.state = ''; + return; + } + if (!'email'.includes(res.key)) { + state.state = ''; + return; + } + state.state += res.key; + if (state.state === 'email') { console.log(state.state); - state.showEmail = true; - state.tabsActiveName = 'email'; - state.state = ''; - } - }); + state.showEmail = true; + state.tabsActiveName = 'email'; + state.state = ''; + } + }); }); return { logoMini, diff --git a/src/views/pages/filtering/index.vue b/src/views/pages/filtering/index.vue index 1af903e..fbfe4dc 100644 --- a/src/views/pages/filtering/index.vue +++ b/src/views/pages/filtering/index.vue @@ -68,17 +68,15 @@ - + /> @@ -88,6 +86,7 @@ import { ref, toRefs, reactive, onMounted, nextTick, defineComponent } from 'vue'; import { useRouter } from 'vue-router'; import { filtering, filterList } from './mock'; + export default defineComponent({ name: 'pagesFiltering', setup() { @@ -155,20 +154,11 @@ export default defineComponent({ }); } }; - // 分页点击 - const onHandleSizeChange = (val: number) => { - state.tableData.param.pageSize = val; - }; - // 分页点击 - const onHandleCurrentChange = (val: number) => { - state.tableData.param.pageNum = val; - }; + return { dlRefs, onSelItem, onTableItemClick, - onHandleSizeChange, - onHandleCurrentChange, ...toRefs(state), }; }, @@ -180,12 +170,14 @@ export default defineComponent({ .filtering-list { overflow: hidden; border-bottom: none !important; + .filtering-list-flex { &:last-of-type { .filtering-list-item { border-bottom: none !important; } } + .filtering-list-title { float: left; width: 64px; @@ -193,6 +185,7 @@ export default defineComponent({ position: relative; color: #909399; margin: 15px 0; + &:after { content: ''; position: absolute; @@ -205,31 +198,37 @@ export default defineComponent({ top: 50%; } } + .filtering-list-item { border-bottom: 1px dotted var(--next-border-color-light); margin-left: 64px; overflow: hidden; position: relative; + .span { color: #8d8d91; font-size: 14px; float: left; padding: 0 15px; margin: 15px 0; + &:hover { color: var(--el-color-primary); cursor: pointer; } } + .dd-active { color: var(--el-color-primary); } + .dd-more { font-size: 12px; position: absolute; right: 0; top: 16px; color: #a5a5a5; + &:hover { cursor: pointer; color: #8d8d91; @@ -238,17 +237,21 @@ export default defineComponent({ } } } + .br-top-no { border-top: none; + .flex-warp { display: flex; flex-wrap: wrap; align-content: flex-start; margin: 0 -5px; + .flex-warp-item { padding: 5px; width: 100%; height: 360px; + .flex-warp-item-box { border: 1px solid var(--next-border-color-light); width: 100%; @@ -257,15 +260,18 @@ export default defineComponent({ display: flex; flex-direction: column; transition: all 0.3s ease; + &:hover { cursor: pointer; border: 1px solid var(--el-color-primary); transition: all 0.3s ease; box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.03); + .item-txt-title { color: var(--el-color-primary) !important; transition: all 0.3s ease; } + .item-img { img { transition: all 0.3s ease; @@ -273,22 +279,26 @@ export default defineComponent({ } } } + .item-img { width: 100%; height: 215px; overflow: hidden; + img { transition: all 0.3s ease; width: 100%; height: 100%; } } + .item-txt { flex: 1; padding: 15px; display: flex; flex-direction: column; overflow: hidden; + .item-txt-title { text-overflow: ellipsis; overflow: hidden; @@ -297,26 +307,32 @@ export default defineComponent({ display: -webkit-box; color: #666666; transition: all 0.3s ease; + &:hover { color: var(--el-color-primary); text-decoration: underline; transition: all 0.3s ease; } } + .item-txt-other { flex: 1; align-items: flex-end; display: flex; + .item-txt-msg { font-size: 12px; color: #8d8d91; } + .item-txt-price { display: flex; justify-content: space-between; align-items: center; + .font-price { color: #ff5000; + .font { font-size: 22px; } @@ -327,17 +343,22 @@ export default defineComponent({ } } } + ::v-deep(.el-card__body) { height: 100%; + .filtering-no-data { display: flex; height: 100%; + .no-data-box { color: #cccccc; margin: auto; + i { font-size: 70px; } + .no-txt { font-size: 14px; text-align: center; @@ -347,6 +368,7 @@ export default defineComponent({ } } } + .min-h-360 { height: 360px; } diff --git a/src/views/pages/lazyImg/index.vue b/src/views/pages/lazyImg/index.vue index be2d3ee..e0a2098 100644 --- a/src/views/pages/lazyImg/index.vue +++ b/src/views/pages/lazyImg/index.vue @@ -34,18 +34,17 @@ + + - + /> @@ -79,21 +78,21 @@ export default defineComponent({ }); }; // 分页点击 - const onHandleSizeChange = (val: number) => { - state.tableData.param.pageSize = val; - }; - // 分页点击 - const onHandleCurrentChange = (val: number) => { - state.tableData.param.pageNum = val; - }; + // const onHandleSizeChange = (val: number) => { + // state.tableData.param.pageSize = val; + // }; + // // 分页点击 + // const onHandleCurrentChange = (val: number) => { + // state.tableData.param.pageNum = val; + // }; // 页面加载时 onMounted(() => { other.lazyImg('[data-lazy-img-list]', state.tableData.data); }); return { onTableItemClick, - onHandleSizeChange, - onHandleCurrentChange, + // onHandleSizeChange, + // onHandleCurrentChange, ...toRefs(state), }; }, diff --git a/src/views/pages/listAdapt/index.vue b/src/views/pages/listAdapt/index.vue index 15e27bc..c26527c 100644 --- a/src/views/pages/listAdapt/index.vue +++ b/src/views/pages/listAdapt/index.vue @@ -34,18 +34,17 @@ + - + /> @@ -101,17 +100,17 @@ export default defineComponent({ }); }; // 分页点击 - const onHandleSizeChange = (val: number) => { - state.tableData.param.pageSize = val; - }; + // const onHandleSizeChange = (val: number) => { + // state.tableData.param.pageSize = val; + // }; // 分页点击 - const onHandleCurrentChange = (val: number) => { - state.tableData.param.pageNum = val; - }; + // const onHandleCurrentChange = (val: number) => { + // state.tableData.param.pageNum = val; + // }; return { onTableItemClick, - onHandleSizeChange, - onHandleCurrentChange, + // onHandleSizeChange, + // onHandleCurrentChange, ...toRefs(state), }; }, diff --git a/src/views/system/config/index.vue b/src/views/system/config/index.vue index 7f0ebd7..84989ea 100644 --- a/src/views/system/config/index.vue +++ b/src/views/system/config/index.vue @@ -92,7 +92,7 @@ {}); }; // 分页改变 - const onHandleSizeChange = (val: number) => { - state.tableData.param.pageSize = val; - }; + // const onHandleSizeChange = (val: number) => { + // state.tableData.param.pageSize = val; + // }; // 分页改变 - const onHandleCurrentChange = (val: number) => { - state.tableData.param.pageNum = val; - }; + // const onHandleCurrentChange = (val: number) => { + // state.tableData.param.pageNum = val; + // }; // 页面加载时 onMounted(() => { initTableData(); @@ -189,8 +189,8 @@ export default defineComponent({ onOpenAddPost, onOpenEditPost, onRowDel, - onHandleSizeChange, - onHandleCurrentChange, + // onHandleSizeChange, + // onHandleCurrentChange, postList, handleSelectionChange, ...toRefs(state), diff --git a/src/views/system/role/index.vue b/src/views/system/role/index.vue index 57c0f02..631fce0 100644 --- a/src/views/system/role/index.vue +++ b/src/views/system/role/index.vue @@ -48,7 +48,7 @@ {}); }; // 分页改变 - const onHandleSizeChange = (val: number) => { - state.tableData.param.pageSize = val; - }; + // const onHandleSizeChange = (val: number) => { + // state.tableData.param.pageSize = val; + // }; // 分页改变 - const onHandleCurrentChange = (val: number) => { - state.tableData.param.pageNum = val; - }; + // const onHandleCurrentChange = (val: number) => { + // state.tableData.param.pageNum = val; + // }; // 页面加载时 onMounted(() => { initTableData(); @@ -173,8 +173,8 @@ export default defineComponent({ onOpenAddRole, onOpenEditRole, onRowDel, - onHandleSizeChange, - onHandleCurrentChange, + // onHandleSizeChange, + // onHandleCurrentChange, roleList, ...toRefs(state), }; diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index 1a55698..a499658 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -131,7 +131,7 @@ {}); }; // 分页改变 - const onHandleSizeChange = (val: number) => { - state.tableData.param.pageSize = val; - }; + // const onHandleSizeChange = (val: number) => { + // state.tableData.param.pageSize = val; + // }; // 分页改变 - const onHandleCurrentChange = (val: number) => { - state.tableData.param.pageNum = val; - }; + // const onHandleCurrentChange = (val: number) => { + // state.tableData.param.pageNum = val; + // }; // 页面加载时 onMounted(() => { initTableData(); @@ -347,8 +347,8 @@ export default defineComponent({ onOpenAddUser, onOpenEditUser, onRowDel, - onHandleSizeChange, - onHandleCurrentChange, + // onHandleSizeChange, + // onHandleCurrentChange, deptFilterNode, filterText, treeRef,