Commit f02b0639 authored by Zhang Xiaojie's avatar Zhang Xiaojie

Merge branch 'dev' of gitlab.33.cn:CassiniatSaturn/fns_backend into dev

parents d9335d34 020d3906
...@@ -20,8 +20,6 @@ export function transfterStrToDate(str: string) { ...@@ -20,8 +20,6 @@ export function transfterStrToDate(str: string) {
end = `${d.getFullYear()} ${d.getMonth() + 1} ${d.getDate()} ${end}` end = `${d.getFullYear()} ${d.getMonth() + 1} ${d.getDate()} ${end}`
const startDate = new Date(start) const startDate = new Date(start)
const endDate = new Date(end) const endDate = new Date(end)
console.log(start,'start');
return [startDate, endDate] return [startDate, endDate]
} else { } else {
return undefined return undefined
...@@ -39,8 +37,6 @@ export function transfterStrToDateSafari(str: string) { ...@@ -39,8 +37,6 @@ export function transfterStrToDateSafari(str: string) {
end = `${d.getFullYear()}/${d.getMonth() + 1}/${d.getDate()} ${end}` end = `${d.getFullYear()}/${d.getMonth() + 1}/${d.getDate()} ${end}`
const startDate = new Date(start) const startDate = new Date(start)
const endDate = new Date(end) const endDate = new Date(end)
console.log(start,'start');
console.log(end,'end');
return [startDate, endDate] return [startDate, endDate]
} else { } else {
return undefined return undefined
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div> <div>
<p class="text-2xl font-bold mb-5">Banner管理</p> <p class="text-2xl font-bold mb-5">Banner管理</p>
<!-- timepicker --> <!-- timepicker -->
<span class="font-semibold">新增时间:</span> <span class="font-semibold">操作时间:</span>
<timerange <timerange
class="mr-3" class="mr-3"
@getNewTime="getNewTime" @getNewTime="getNewTime"
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<!-- 搜索框 --> <!-- 搜索框 -->
<a-input placeholder="标题模糊搜索" v-model="searchPageReqParams.title" style="width: 150px; margin-right:10px;"/> <a-input placeholder="标题模糊搜索" v-model="searchPageReqParams.title" style="width: 150px; margin-right:10px;"/>
<!-- timepicker --> <!-- timepicker -->
<span class=" font-semibold">新增时间:</span> <span class=" font-semibold">操作时间:</span>
<timerange class=" mr-3" :startTime="searchPageReqParams.start_time" :endTime="searchPageReqParams.end_time" <timerange class=" mr-3" :startTime="searchPageReqParams.start_time" :endTime="searchPageReqParams.end_time"
@getNewTime="getNewTime"/> @getNewTime="getNewTime"/>
<!-- 咨询分类 --> <!-- 咨询分类 -->
......
...@@ -784,32 +784,10 @@ export default Vue.extend({ ...@@ -784,32 +784,10 @@ export default Vue.extend({
// const arr2 = transfterStrToDate(record.opening_hours); // const arr2 = transfterStrToDate(record.opening_hours);
const arr2 = transfterStrToDateSafari(record.opening_hours); const arr2 = transfterStrToDateSafari(record.opening_hours);
console.log(transfterStrToDate(record.opening_hours),'transfterStrToDate');
console.log(arr2,'arr2');
if (arr2?.length === 2) { if (arr2?.length === 2) {
const [startDate, endDate] = arr2; const [startDate, endDate] = arr2;
// this.formData.startTime = moment("00:00", "HH:mm"); this.formData.startTime = moment(startDate, "HH:mm");
// this.formData.endTime = moment("22:00", "HH:mm"); this.formData.endTime = moment(endDate, "HH:mm");
const starh=startDate.getHours()<10? '0'+startDate.getHours():startDate.getHours()+''
const starm=startDate.getMinutes()<10? '0'+startDate.getMinutes():startDate.getMinutes()+''
const endh=endDate.getHours()<10? '0'+endDate.getHours():endDate.getHours()+''
const endm=endDate.getMinutes()<10? '0'+endDate.getMinutes():endDate.getMinutes()+''
const start=starh+':'+starm
const end=endh+':'+endm
this.formData.startTime = moment(start,"HH:mm")
this.formData.endTime = moment(end,"HH:mm")
console.log(typeof start,'start');
console.log(end,'end');
const riqi=moment(startDate,"HH:mm")
console.log(riqi,'riqi');
console.log(startDate,'startDate');
console.log(starh,'starh');
console.log(arr2,'arr2');
console.log(arr2[0],'0');
} }
const ret = await AddressService.getInstance().note(record.id); const ret = await AddressService.getInstance().note(record.id);
if (ret.code === 200) { if (ret.code === 200) {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div> <div>
<p class=" text-2xl font-bold mb-5"> {{$route.query.firstSub}}客户信息</p> <p class=" text-2xl font-bold mb-5"> {{$route.query.firstSub}}客户信息</p>
<!-- timepicker --> <!-- timepicker -->
<span class=" font-semibold">新增时间:</span> <span class=" font-semibold">操作时间:</span>
<timerange class=" mr-3" :startTime="queryParam.start" :endTime="queryParam.end" <timerange class=" mr-3" :startTime="queryParam.start" :endTime="queryParam.end"
@getNewTime="getNewTime"/> @getNewTime="getNewTime"/>
<!-- <a-input placeholder="姓名模糊搜索" v-model="queryParam.user_name" style=" width:150px; margin-right:10px;"/> --> <!-- <a-input placeholder="姓名模糊搜索" v-model="queryParam.user_name" style=" width:150px; margin-right:10px;"/> -->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment