发表于: 2020-02-17 22:54:01
1 1509
今天完成的事情:
1.推进任务。
明天计划的事情:
1.推进任务。回顾知识
遇到的问题和收获:
1.
ref被用来给元素或子组件注册引用信息。引用信息将会注册在父组件的$refs对象上。如果在普通的 DOM 元素上使用,引用指向的就是 DOM 元素;如果用在子组件上,引用就指向组件实例
<el-form class="demo-form-inline article-admin-up" :label-position="labelPosition" :inline="true"
:model="queryInfo" ref="formName">
<el-row>
<el-col :span="16" class="article-admin-up-1">
<el-form-item class="date" label="创建时间" label-width="80px">
<el-col :span="11">
<el-date-picker type="date" placeholder="" v-model="queryInfo.startAt"
style="width: 100%;" value-format="timestamp"
:picker-options="pickerOptions1"></el-date-picker>
</el-col>
<el-col class="line" :span="2" style="text-align: center">-</el-col>
<el-col :span="11">
<el-date-picker type="date" placeholder="" v-model="queryInfo.endAt"
style="width: 100%" value-format="timestamp"
:picker-options="pickerOptions2"></el-date-picker>
</el-col>
</el-form-item>
</el-col>
this.$router.push
跳转到指定url路径,并想history栈中添加一个记录,点击后退会返回到上一个页面
this.$router.replace
跳转到指定url路径,但是history栈中不会有记录,点击返回会跳转到上上个页面 (就是直接替换了当前页面)
this.$router.go(n)
向前或者向后跳转n个页面,n可为正整数或负整数
评论