|
|
@@ -41,6 +41,13 @@
|
|
|
{{ changeDict(scope.row.cardusercdBillingtype) }}
|
|
|
</span>
|
|
|
</template>
|
|
|
+ <template #cardusercdDuration="scope">
|
|
|
+ <span
|
|
|
+ style="display: flex; align-items: center; justify-content: center"
|
|
|
+ >
|
|
|
+ {{ scope.row.cardusercdDuration | fomatSeconds }}
|
|
|
+ </span>
|
|
|
+ </template>
|
|
|
</b-table>
|
|
|
</el-dialog>
|
|
|
</template>
|
|
|
@@ -50,6 +57,7 @@ import { getCardusercdList } from '@/api/card/index.js';
|
|
|
import { assign, omit } from 'lodash-es';
|
|
|
import LeftImg from '../assets/img.svg';
|
|
|
import BTable from '@/components/Table';
|
|
|
+import { secondsToTime } from '@/utils/index.js';
|
|
|
export default {
|
|
|
name: 'IrrigationRecord',
|
|
|
props: {
|
|
|
@@ -106,7 +114,7 @@ export default {
|
|
|
{
|
|
|
label: '使用时长',
|
|
|
prop: 'cardusercdDuration',
|
|
|
- customRender: '',
|
|
|
+ customRender: 'cardusercdDuration',
|
|
|
align: 'center'
|
|
|
},
|
|
|
// {
|
|
|
@@ -149,6 +157,11 @@ export default {
|
|
|
deep: true
|
|
|
}
|
|
|
},
|
|
|
+ filters: {
|
|
|
+ fomatSeconds(value) {
|
|
|
+ return secondsToTime(value);
|
|
|
+ }
|
|
|
+ },
|
|
|
methods: {
|
|
|
changeDict(flag) {
|
|
|
switch (flag) {
|