征求意见时间检索
This commit is contained in:
@@ -16,14 +16,24 @@
|
|||||||
<el-input v-model="standCommonlySearch.cname" class="s-c-input" placeholder="请输入关键字" clearable
|
<el-input v-model="standCommonlySearch.cname" class="s-c-input" placeholder="请输入关键字" clearable
|
||||||
:maxlength="100"></el-input>
|
:maxlength="100"></el-input>
|
||||||
</el-formItem>
|
</el-formItem>
|
||||||
<el-formItem label="开始日期" class="search-item">
|
<el-form-item label="开始日期" >
|
||||||
<el-datePicker v-model="standCommonlySearch.start" :editable="false"
|
<el-date-picker
|
||||||
placeholder="请选择开始日期"></el-datePicker>
|
v-model="standCommonlySearch.start"
|
||||||
</el-formItem>
|
type="date"
|
||||||
<el-formItem label="结束日期" class="search-item">
|
placeholder="请选择开始日期"
|
||||||
<el-datePicker v-model="standCommonlySearch.end" :editable="false"
|
size="small"
|
||||||
placeholder="请选择结束日期"></el-datePicker>
|
value-format="yyyy-MM-dd">
|
||||||
</el-formItem>
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="结束日期" >
|
||||||
|
<el-date-picker
|
||||||
|
v-model="standCommonlySearch.end"
|
||||||
|
type="date"
|
||||||
|
placeholder="请选择结束日期"
|
||||||
|
size="small"
|
||||||
|
value-format="yyyy-MM-dd">
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
<el-formItem class="search-item btn-box">
|
<el-formItem class="search-item btn-box">
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
@@ -98,6 +108,8 @@ export default {
|
|||||||
components: {},
|
components: {},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
//格式化成'yy-mm-dd hh:mm:ss'的时间格式
|
||||||
|
formatedTime:'',
|
||||||
standCommonlySearch: {
|
standCommonlySearch: {
|
||||||
categorg: "",
|
categorg: "",
|
||||||
cname: "",
|
cname: "",
|
||||||
@@ -139,18 +151,11 @@ export default {
|
|||||||
this.splitInfoPage = 1;
|
this.splitInfoPage = 1;
|
||||||
this.sarStandCompareHis();
|
this.sarStandCompareHis();
|
||||||
},
|
},
|
||||||
// getTime(time){
|
|
||||||
// let date = new Date(time + 8 * 3600 * 1000); // 增加8小时
|
|
||||||
// console.log(date.toJSON().substr(0, 19).replace('T', ' '));
|
|
||||||
// return date.toJSON().substr(0, 19).replace('T', ' ');
|
|
||||||
// },
|
|
||||||
// 查询表格
|
// 查询表格
|
||||||
sarStandCompareHis() {
|
sarStandCompareHis() {
|
||||||
this.spinShow = true;
|
this.spinShow = true;
|
||||||
this.standCommonlySearch.start = new Date(this.standCommonlySearch.start).getTime() //转换为毫秒时间戳
|
|
||||||
this.standCommonlySearch.type = 1;
|
this.standCommonlySearch.type = 1;
|
||||||
var form = this.standCommonlySearch;
|
var form = this.standCommonlySearch;
|
||||||
console.log(form);
|
|
||||||
this.$http.get("slrs/sar-public-idea/SelectAllPage", form, {
|
this.$http.get("slrs/sar-public-idea/SelectAllPage", form, {
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
|
|||||||
Reference in New Issue
Block a user