1.設定樣式,插入元件
style=""
>
:inline
="true"
class
="border-form"
>
label
="車型"
>
v-model
="searchcondition.vehiclemodel"
placeholder
="選擇車型"
@change="
"style
="margin-right
: 10px;
" clearable
="clearable"
>
v-for
="item in modeloptions"
:key
="item.value"
:label
="item.label"
:value
="item.value"
>
el-option
>
el-select
>
el-form-item
>
label
="月份"
>
v-model
="searchcondition.month"
type
="month"
value-format
="yyyy-mm"
placeholder
="選擇月"
>
el-date-picker
>
el-form-item
>
>
type
="text"
@click
="allyear()"
>
2020全年el-button
>
el-form-item
>
style
="float
: right;
">
type
="primary"
@click
="onsubmit"
>
查詢el-button
>
type
="primary"
@click
="reset"
>
重置el-button
>
el-form-item
>
el-form
>
el-row
>
`
data裡面放入需要向後台傳遞的資料
searchcondition:,
2.查詢按鈕方法
onsubmit(),
3.重置按鈕方法
reset()
MYSQL中根據年份 月份 日期來查詢相關資訊
from unixtime unix timestamp from unixtime unix timestamp,format 是mysql裡的時間函式 unix timestamp可以是欄位名,也可以直接是unix 時間戳,format主要是將返回值格式化。若format已經給出,則結果的格式是...
部落格分頁 根據是否發布來查詢資料
public inte ce articledao extends jparepository jpaspecificationexecutor service public class articleserviceimpl implements articleservice controller ...
查詢資料庫中表資訊等
有時候需要匯出某使用者下的所有table view sequence trigger等資訊,下面的sql可以將這些資訊select出來 select from user tables select from user views select from user sequences select f...