initial chart checkin
This commit is contained in:
@@ -3,11 +3,11 @@
|
||||
<!-- todo times -->
|
||||
<div class="title">Line Point A</div>
|
||||
<v-divider/>
|
||||
<time-entry v-model="time1" class="mb-0" hide-details="true"/>
|
||||
<time-entry v-model="date1" class="mb-0" hide-details="true"/>
|
||||
<limit-price v-model="price1" label="Price A" :required="true" :show-price="false"/>
|
||||
<div class="title">Line Point B</div>
|
||||
<v-divider/>
|
||||
<time-entry v-model="time2" hide-details="true"/>
|
||||
<time-entry v-model="date2" hide-details="true"/>
|
||||
<limit-price v-model="price2" label="Price B" :required="true" :show-price="false"/>
|
||||
<div v-if="curLimit">
|
||||
<v-row>
|
||||
@@ -32,15 +32,18 @@ import {applyLinePoints, linePointsValue} from "@/orderbuild.js";
|
||||
import {newTranche} from "@/blockchain/orderlib.js";
|
||||
import TimeEntry from "@/components/TimeEntry.vue";
|
||||
import RoutePrice from "@/components/RoutePrice.vue";
|
||||
import {timestamp} from "@/misc.js";
|
||||
|
||||
const s = useStore()
|
||||
const os = useOrderStore()
|
||||
|
||||
const time1 = ref(new Date())
|
||||
const date1 = ref(new Date())
|
||||
const price1 = ref(null)
|
||||
const time2 = ref(new Date())
|
||||
const date2 = ref(new Date())
|
||||
const price2 = ref(null)
|
||||
const curLimit = computed(()=>linePointsValue(time1.value, price1.value, time2.value, price2.value, s.time))
|
||||
const time1 = computed(()=>timestamp(date1.value))
|
||||
const time2 = computed(()=>timestamp(date2.value))
|
||||
const curLimit = computed(()=>linePointsValue(time1.value, price1.value, time2.value, price2.value, s.clock))
|
||||
|
||||
function buildTranches() {
|
||||
const t = newTranche();
|
||||
@@ -49,7 +52,7 @@ function buildTranches() {
|
||||
}
|
||||
|
||||
function validOrder() {
|
||||
return time1.value && (price1.value || price1.value===0) && time2.value && (price2.value || price2.value===0)
|
||||
return date1.value && (price1.value || price1.value===0) && date2.value && (price2.value || price2.value===0)
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user