Browse Source

Merge pull request 'fix: update date initialization for current and last month in train model' (#59) from cjl-dev into master

Reviewed-on: http://120.26.116.243:3000/root/alert-front/pulls/59
pull/63/head
chenjiale 1 month ago
parent
commit
4b1b080ac0
  1. 6
      src/views/model/train/index.vue

6
src/views/model/train/index.vue

@ -98,8 +98,8 @@ export default defineComponent({
const activeKey = ref('1')
type RangeValue = [Dayjs, Dayjs]
const currentDate: Dayjs = dayjs()
const lastMonthDate: Dayjs = currentDate.subtract(1, 'day')
const currentDate: Dayjs = dayjs('2023-10-29 00:00:00')
const lastMonthDate: Dayjs = dayjs('2023-10-28 16:00:00')
const rangeValue: RangeValue = [
lastMonthDate,
currentDate,
@ -141,7 +141,7 @@ export default defineComponent({
async function getTestData() {
const params = {
Model_id: 530,
Model_id: id,
version: model.value?.Cur_Version ? model.value?.Cur_Version : 'v-test',
Test_Data: {
time: historyTime.value

Loading…
Cancel
Save