diff --git a/src/components/equipDetailTable.vue b/src/components/equipDetailTable.vue index 34f1106..2451ef2 100644 --- a/src/components/equipDetailTable.vue +++ b/src/components/equipDetailTable.vue @@ -179,7 +179,6 @@ flex: 1; .item{ display: flex; - align-items: center; .label{ width: 80px; text-align: right; @@ -187,6 +186,8 @@ } .value{ color: black; + flex: 1; + font-family: 'fangsong'; } } } diff --git a/src/router/index.ts b/src/router/index.ts index 120c17e..f07dc01 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -152,7 +152,7 @@ const routes: Array = [ { path: 'orderManagement', name: 'orderManagement', - component: () => import('views/user/orderManagement/index.vue'), + component: () => import('@/views/user/orderManagement/index.vue'), meta: { title: '订单管理(求租)', keepAlive: true, @@ -265,7 +265,7 @@ const routes: Array = [ { path: 'orderDetails', name: 'orderDetails', - component: () => import('views/user/orderManagement/orderCom/orderDetails.vue'), + component: () => import('@/views/user/orderManagement/orderCom/orderDetails.vue'), meta: { title: '订单详情', keepAlive: true, diff --git a/src/utils/time.ts b/src/utils/time.ts index 8773b41..d2f46a8 100644 --- a/src/utils/time.ts +++ b/src/utils/time.ts @@ -1,17 +1,17 @@ import moment from 'moment' /* eslint-disable @typescript-eslint/no-explicit-any */ -/* +/* 参考博客 https://blog.csdn.net/qq_36228377/article/details/125196997 */ export function formatTime(curTime: string, formatVal: string) { - /* + /* 格式化时间 curTIme:要格式化的时间 - formatVal:格式化时间的格式 + formatVal:格式化时间的格式 */ // 例如 curTime 2021-02-03 12-21-22 formatVal YYYY年MM月DD日 HH时mm分ss秒 return moment(curTime).format(formatVal) @@ -44,8 +44,8 @@ ss 有前导零的描述 01到59 X Unix时间戳 1411572969 */ export function getDiffTime(start: string, end: string, unit: any) { - /* - + /* + start 开始时间 end 结束时间 unit 时间单位 @@ -120,12 +120,12 @@ export function formatDate(timestamp: any) { -export const getNewDay = (dateTemp: any, days: any) => { +export const getNewDay = (dateTemp: any, days: any,separator:any = '.') => { console.log("dateTemp",dateTemp,days) if(!dateTemp ){ return "" } - dateTemp = dateTemp.split("."); + dateTemp = dateTemp.split(separator); //转换为MM-DD-YYYY格式 let nDate: any = new Date(dateTemp[1] + "-" + dateTemp[2] + "-" + dateTemp[0]); let millSeconds: any = Math.abs(nDate) + days * 24 * 60 * 60 * 1000; @@ -136,5 +136,5 @@ export const getNewDay = (dateTemp: any, days: any) => { let date = rDate.getDate(); if (date < 10) date = "0" + date; return year + "." + month + "." + date; - -} \ No newline at end of file + +} diff --git a/src/views/equip/detail.vue b/src/views/equip/detail.vue index 6bcf997..ebf3bf2 100644 --- a/src/views/equip/detail.vue +++ b/src/views/equip/detail.vue @@ -11,8 +11,8 @@
{{ pageData.modelName }}{{ pageData.deviceName }}
-
{{ pageData.maStatusStr }}
-
已审核
+
{{ pageData.maStatusStr }}
+
已审核
浏览{{ pageData.searchNum }}
@@ -218,7 +218,7 @@ :brand="pageData.brand" :code="pageData.code" :group="pageData.groupName" - :position="pageData.location" + :position="`${pageData.provinceStr}${pageData.cityStr || ''}${pageData.areaStr || ''}`" :specifications="pageData.specification" :type="pageData.typeName" :unit="ruleForm.durationUnit == '1' ? '月' : '天'" @@ -228,7 +228,7 @@