diff --git a/vue/gold-system/src/views/recharge/addRecharge.vue b/vue/gold-system/src/views/recharge/addRecharge.vue index 9572c52..cc5a7af 100644 --- a/vue/gold-system/src/views/recharge/addRecharge.vue +++ b/vue/gold-system/src/views/recharge/addRecharge.vue @@ -8,9 +8,6 @@ import API from "../../api/index.js"; import moment from "moment"; import { range, re } from "mathjs"; import * as xlsx from 'xlsx'; -import _, { before } from 'lodash'; -import { th } from "element-plus/es/locales.mjs"; -import * as xlsx from "xlsx"; import _ from "lodash"; // 这是添加上传图片的接口 @@ -406,10 +403,6 @@ const addLines = async function () { rechargeGold: "0", paidGold: "0", }); - batchData.value.unshift({ - line: ++i.value, - showInput: true, - }); } // 所有数据添加操作完成后,准备关闭加载动画 @@ -458,7 +451,7 @@ const addLines = async function () { // } // }; // 使用 _.throttle 并设置 trailing 为 false 实现严格节流,只执行一次 -const throttledAddLines = _.throttle(addLines, 500, { trailing: false }); +const throttledAddLines = _.throttle(addLines, 500, { trailing: false }); // 导入excel按钮的ref const uploadRefMap = ref({}); // 获取excel数据 @@ -727,57 +720,7 @@ const batchAdd = async function () { return; } } - console.log("batchData::", batchData.value); - console.log("batchData===", batchData.value); - let msg = ""; - if (batchData.value.length == 0) { - ElMessage({ - type: "error", - message: "至少需要输入一条数据!", - }); - return; - } - for (let i = 0; i < batchData.value.length; i++) { - batchData.value[i].adminId = adminData.value.adminId; - batchData.value[i].area = adminData.value.area; - batchData.value[i].rechargeWay = "客服充值"; - if (batchData.value[i].jwcode == "" || batchData.value[i].jwcode == null) { - msg += `精网号不能为空!
`; - } - if ( - batchData.value[i].activityId == "" || - batchData.value[i].activityId == null - ) { - msg += `活动不能为空!
`; - } - if ( - batchData.value[i].paidGold == "" || - batchData.value[i].paidGold == null - ) { - msg += `充值金币不能为空!
`; - } - if ( - batchData.value[i].rechargeGold == "" || - batchData.value[i].rechargeGold == null - ) { - msg += `充值金额不能为空!
`; - } - if (batchData.value[i].payWay == "" || batchData.value[i].payWay == null) { - msg += `收款方式不能为空!
`; - } - if ( - batchData.value[i].rechargeTime == "" || - batchData.value[i].rechargeTime == null - ) { - msg += `交款时间不能为空!
`; - } - ElMessage({ - dangerouslyUseHTMLString: true, - type: "error", - message: msg, - }); - return; - } + console.log("batchData===", batchData.value); const result = await API.post( @@ -1098,10 +1041,6 @@ onMounted(async function () { }} (永久金币:{{ user.buyJb }};免费金币:{{ - (充值金币:{{ user.buyJb }};免费金币:{{ user.free6 + user.free12 }};任务金币:{{ user.coreJb }}) @@ -1159,9 +1098,6 @@ onMounted(async function () { 添加 - 添加 - {{ scope.row.freeGold }} - - {{ scope.row.paidGold }} @@ -1442,11 +1370,6 @@ onMounted(async function () { - -