@@ -4,8 +4,8 @@ var path = require('path')
// var ip = '192.168.2.36'
-var ip = '47.100.37.243'
-// var ip = '192.168.2.105'
+// var ip = '47.100.37.243'
+var ip = '192.168.2.105'
// var os = require('os'), ip = '', ifaces = os.networkInterfaces() // 获取本机ip
@@ -90,6 +90,9 @@
<el-table-column prop="dateStr" label="日期" sortable>
</el-table-column>
<el-table-column prop="reportTime" label="工作时长(h)" >
+ <template slot-scope="scope">
+ {{scope.row.reportTime | amounts}}
+ </template>
<el-table-column prop="state" label="状态" sortable>
<template slot-scope="scope">
@@ -162,6 +165,13 @@
multipleSelection: [],
};
},
+ filters: {
+ // 过滤
+ amounts(value) {
+ var zhi = +value + 0
+ return zhi.toFixed(1)
+ }
+ },
methods: {
// 获取部门列表