diff --git a/src/libs/route/addRoutes.js b/src/libs/route/addRoutes.js
index 63fddf1..38981aa 100644
--- a/src/libs/route/addRoutes.js
+++ b/src/libs/route/addRoutes.js
@@ -3,27 +3,27 @@ import generateBtnPermission from '../auth/generateBtnPermission';
const newRoutes = []
-function createMeta(item){
- let meta = { title: item.name }
- return meta
+function createMeta (item) {
+ let meta = { title: item.name }
+ return meta
}
-function createRoute(data){
- data.map(e => {
- if(e.path){
- let meta = createMeta(e)
- newRoutes.push({
- path: e.path,
- meta
- })
- }
- // 递归生成路由集合
- e.children && e.children.length && createRoute(e.children)
- })
+function createRoute (data) {
+ data.map(e => {
+ if (e.path) {
+ let meta = createMeta(e)
+ newRoutes.push({
+ path: e.path,
+ meta
+ })
+ }
+ // 递归生成路由集合
+ e.children && e.children.length && createRoute(e.children)
+ })
}
-export default function(data,path){
- generateBtnPermission(data)
- createRoute(data)
- store.commit('addRoutes',newRoutes)
+export default function (data, path) {
+ generateBtnPermission(data)
+ createRoute(data)
+ store.commit('addRoutes', newRoutes)
}
\ No newline at end of file
diff --git a/src/views/customer/AddCustomer.vue b/src/views/customer/AddCustomer.vue
index d92c466..eb5075e 100644
--- a/src/views/customer/AddCustomer.vue
+++ b/src/views/customer/AddCustomer.vue
@@ -703,7 +703,7 @@ export default {
})
// 如果是连续订单,则取第一个订单的开始日期和最后一个订单的结束日期
// if (list[0].startTime && list[0].endTime) {
- if (list[0].startTime && now < new Date(list[0].startTime).getTime()) {
+ if (list[0].startTime && now < new Date(list[0].startTime)) {
e.startTime = list[0].startTime
e.endTime = connect ? list[list.length - 1].endTime : list[0].endTime
e.status = '未生效'
@@ -717,7 +717,7 @@ export default {
e.other += `
${j.startTime} ~ ${j.endTime}`
})
}
- } else if (list[list.length - 1].endTime && now > new Date(list[list.length - 1].endTime).getTime()) {
+ } else if (list[list.length - 1].endTime && now > new Date(list[list.length - 1].endTime)) {
e.status = '已过期'
} else {
// 连续订单
@@ -730,7 +730,7 @@ export default {
for (const j in list) {
const i = +j
const n = list[i]
- if (n.startTime && n.endTime && now >= new Date(n.startTime).getTime() && now <= new Date(n.endTime).getTime()) {
+ if (n.startTime && n.endTime && now >= new Date(n.startTime) && now <= new Date(n.endTime)) {
// 生效中的订单,直接取该订单的开始结束日期
e.startTime = n.startTime
e.endTime = n.endTime
@@ -745,7 +745,7 @@ export default {
})
}
break
- } else if (i != 0 && list[i - 1].endTime && n.startTime && n.endTime && now > new Date(list[i - 1].endTime).getTime() && now < new Date(n.startTime).getTime()) {
+ } else if (i != 0 && list[i - 1].endTime && n.startTime && n.endTime && now > new Date(list[i - 1].endTime) && now < new Date(n.startTime)) {
// 当前时间位于两个订单时间之间,则取次订单的开始结束日期,并且为未生效
e.startTime = n.startTime
e.endTime = n.endTime
@@ -783,7 +783,7 @@ export default {
},
// 获取剩余日期
getRemain (startTime, endTime) {
- return parseInt(((new Date(endTime).getTime() - new Date(startTime).getTime()) / 86400000))
+ return parseInt(((new Date(endTime) - new Date(startTime)) / 86400000))
},
// 分页
handlePage () {
diff --git a/src/views/match/manage/theoryReport.vue b/src/views/match/manage/theoryReport.vue
index a1d7710..0ba240e 100644
--- a/src/views/match/manage/theoryReport.vue
+++ b/src/views/match/manage/theoryReport.vue
@@ -64,7 +64,7 @@
(部分试题待判分,成绩待定)
+(部分试题待判分,成绩待定)
待评分 +
待评分
-{{ scope.row.userTotalScore +
{{ scope.row.userTotalScore }}分(部分试题待判分,成绩待定)
{{ scope.row.userTotalScore }}分