去除无用v-model 及修改日期格式
This commit is contained in:
@@ -22,8 +22,8 @@
|
||||
<script setup>
|
||||
import customHeader from '@/components/customHeader.vue'
|
||||
import { onMounted, reactive, ref } from 'vue';
|
||||
import { addStartMap } from '../../../../api/crm/activity/map';
|
||||
import { dateFormat } from '../../../../utils/formatter';
|
||||
import { addStartMap } from '@/api/crm/activity/map';
|
||||
import { parseTime } from '@/utils/datetime.js';
|
||||
import { onLoad } from '@dcloudio/uni-app';
|
||||
import { getNavBarPaddingTop } from '@/utils/system.js'
|
||||
let form = reactive({
|
||||
@@ -46,7 +46,7 @@ onMounted(() => {
|
||||
onLoad(option => {
|
||||
form.visistId = option.visistId
|
||||
let date = new Date();
|
||||
form.craeteTime = dateFormat("YYYY-mm-dd", date)
|
||||
form.craeteTime = parseTime(date, '{y}-{m}-{d}');
|
||||
})
|
||||
|
||||
function addInsertMapClockIn() {
|
||||
|
||||
Reference in New Issue
Block a user