|
@@ -10,7 +10,7 @@
|
|
|
添加提醒任务
|
|
添加提醒任务
|
|
|
</a-button>
|
|
</a-button>
|
|
|
|
|
|
|
|
- <a-alert style="margin-top: 15px;">仅保存最近30天的电费变更记录。电费余额每30分钟更新一次,添加任务后开始记录。</a-alert>
|
|
|
|
|
|
|
+ <a-alert style="margin-top: 15px;">电费单价:¥0.54/千瓦时。仅保存最近30天的电费变更记录。电费余额每30分钟更新一次,添加任务后开始记录。</a-alert>
|
|
|
|
|
|
|
|
<a-table :data="data" :columns="columns" stripe hoverable class="table" :loading="loading" :scroll="{
|
|
<a-table :data="data" :columns="columns" stripe hoverable class="table" :loading="loading" :scroll="{
|
|
|
x: 1600
|
|
x: 1600
|
|
@@ -34,9 +34,6 @@
|
|
|
<template #lowest="{ record }">
|
|
<template #lowest="{ record }">
|
|
|
¥{{ record.lowest }}
|
|
¥{{ record.lowest }}
|
|
|
</template>
|
|
</template>
|
|
|
- <template #create_time="{ record }">
|
|
|
|
|
- {{ stramptoTime(record.create_time) }}
|
|
|
|
|
- </template>
|
|
|
|
|
<template #update_time="{ record }">
|
|
<template #update_time="{ record }">
|
|
|
{{ stramptoTime(record.update_time) }}
|
|
{{ stramptoTime(record.update_time) }}
|
|
|
</template>
|
|
</template>
|
|
@@ -71,8 +68,8 @@
|
|
|
<a-form-item field="room" label="宿舍号" :loading="selectLoading">
|
|
<a-form-item field="room" label="宿舍号" :loading="selectLoading">
|
|
|
<a-select v-model="form.room" placeholder="请选择所在宿舍" default-value="" :options="rooms" />
|
|
<a-select v-model="form.room" placeholder="请选择所在宿舍" default-value="" :options="rooms" />
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
- <a-form-item field="lowest" label="提醒阈值">
|
|
|
|
|
- <a-input-number v-model="form.lowest" placeholder="请选择提醒阈值" :step="1" :precision="2"/>
|
|
|
|
|
|
|
+ <a-form-item field="lowest" label="提醒阈值">
|
|
|
|
|
+ <a-input-number v-model="form.lowest" placeholder="请选择提醒阈值" :step="1" :precision="2" />
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
<a-form-item field="email" label="通知邮箱">
|
|
<a-form-item field="email" label="通知邮箱">
|
|
|
<a-auto-complete :data="email" @search="handleSearch" v-model="form.email" placeholder="用于接收电费变更通知"
|
|
<a-auto-complete :data="email" @search="handleSearch" v-model="form.email" placeholder="用于接收电费变更通知"
|
|
@@ -96,8 +93,9 @@
|
|
|
¥{{ record.old_balance }}
|
|
¥{{ record.old_balance }}
|
|
|
</template>
|
|
</template>
|
|
|
<template #change="{ record }">
|
|
<template #change="{ record }">
|
|
|
- <a-tag :color="Number(record.balance) < Number(record.old_balance) ? 'red' : 'green'">¥{{ Number(record.balance - record.old_balance).toFixed(2)
|
|
|
|
|
- }}</a-tag>
|
|
|
|
|
|
|
+ <a-tag :color="Number(record.balance) < Number(record.old_balance) ? 'red' : 'green'">¥{{ Number(record.balance
|
|
|
|
|
+ - record.old_balance).toFixed(2)
|
|
|
|
|
+ }}</a-tag>
|
|
|
</template>
|
|
</template>
|
|
|
<template #time="{ record }">
|
|
<template #time="{ record }">
|
|
|
{{ stramptoTime(record.time) }}
|
|
{{ stramptoTime(record.time) }}
|
|
@@ -178,10 +176,6 @@ const columns = [{
|
|
|
title: '扣费日期',
|
|
title: '扣费日期',
|
|
|
dataIndex: 'koufei_date',
|
|
dataIndex: 'koufei_date',
|
|
|
width: 170
|
|
width: 170
|
|
|
-}, {
|
|
|
|
|
- title: '任务添加时间',
|
|
|
|
|
- slotName: 'create_time',
|
|
|
|
|
- width: 170
|
|
|
|
|
}, {
|
|
}, {
|
|
|
title: '上次更新时间',
|
|
title: '上次更新时间',
|
|
|
slotName: 'update_time',
|
|
slotName: 'update_time',
|