Browse Source

一期

pull/2/head
hongxilin 4 months ago
parent
commit
e7fbeceeba
  1. 15
      gold-system/src/views/recharge/addRecharge.vue

15
gold-system/src/views/recharge/addRecharge.vue

@ -381,18 +381,15 @@ const addLine = function () {
paidGold: "0",
});
};
const loading = ref(true);
const loading = ref(false);
//
const addLines = async function () {
loading.value = true;
try {
loading.value = true; // loadingtrue
console.log(loading.value, "loading.value")
await new Promise(resolve => setTimeout(resolve, 100)); //
// loadingtrue
await nextTick(); //
for (let j = 0; j < addLineObj.value; j++) {
batchData.value.unshift({
line: ++i.value,
@ -405,9 +402,6 @@ const addLines = async function () {
});
}
//
await nextTick(); //
loading.value = false; // loadingfalse
ElMessage.success("添加成功");
console.log(batchData.value, "batchData.value");
} catch (error) {
@ -1119,6 +1113,7 @@ onMounted(async function () {
</el-row>
<el-row>
<el-table
v-loading="loading"
:data="batchData"
border
max-height="540px"
@ -1453,12 +1448,6 @@ onMounted(async function () {
>
<el-button type="primary" @click="batchSettingConfirm()"> 确认 </el-button>
</el-dialog>
<el-loading
:fullscreen="true"
:lock="true"
:text="'加载中...'"
v-model="loading"
></el-loading>
</template>
<style scoped>

Loading…
Cancel
Save