去除时间 时分秒

szh-new
张同海 3 months ago
parent 5bb10535a1
commit 16148e2178

@ -271,23 +271,23 @@
queryCondition: `[{ FieldName: 'Pid', FieldValue: '${rowId.value}', ConditionalType: 1 }]`,
pageCondition: { pageIndex: 1, pageSize: 999, sortConditions: [] },
}).then((res) => {
console.log(res)
// console.log(res)
list.value.splice(0)
res.data.forEach((item) => {
list.value.push(item)
})
// ------------------
// list.value.splice(0)
// let Arr = ['pickupDate', 'dropoffDate', 'feeStartDate', 'bsdate']
// res.data.forEach((item) => {
// console.log(item)
// Arr.forEach((e) => {
// console.log(item, item[e], item[e].split(' '))
// item[e] = item[e].split(' ')[0]
// })
// list.value.push(item)
// })
// ------------------
list.value.splice(0)
let Arr = ['pickupDate', 'dropoffDate', 'feeStartDate', 'bsdate']
res.data.forEach((item) => {
console.log(item)
Arr.forEach((e) => {
console.log(item, item[e], item[e].split(' '))
item[e] = item[e].split(' ')[0]
})
list.value.push(item)
})
})
}
function MakeFee() {

Loading…
Cancel
Save