Commit b9fb72c9 authored by 邓春圆's avatar 邓春圆

时间选择器修改

parent f728ed5b
...@@ -19,8 +19,8 @@ ...@@ -19,8 +19,8 @@
<el-input v-model="queryParams.requestUrl" :placeholder="$t('请输入请求地址')" clearable @keyup.enter.native="handleQuery"/> <el-input v-model="queryParams.requestUrl" :placeholder="$t('请输入请求地址')" clearable @keyup.enter.native="handleQuery"/>
</el-form-item> </el-form-item>
<el-form-item :label="$t('请求时间')"> <el-form-item :label="$t('请求时间')">
<el-date-picker v-model="dateRangeBeginTime" style="width: 240px" value-format="yyyy-MM-dd" <el-date-picker v-model="dateRangeBeginTime" style="width: 240px" value-format="yyyy-MM-dd HH:mm:ss"
type="daterange" range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期" /> type="datetimerange" range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期" />
</el-form-item> </el-form-item>
<el-form-item :label="$t('执行时长')" prop="duration"> <el-form-item :label="$t('执行时长')" prop="duration">
<el-input v-model="queryParams.duration" :placeholder="$t('请输入执行时长')" clearable @keyup.enter.native="handleQuery"/> <el-input v-model="queryParams.duration" :placeholder="$t('请输入执行时长')" clearable @keyup.enter.native="handleQuery"/>
...@@ -160,7 +160,7 @@ export default { ...@@ -160,7 +160,7 @@ export default {
this.loading = true; this.loading = true;
// 处理查询参数 // 处理查询参数
let params = {...this.queryParams}; let params = {...this.queryParams};
this.addBeginAndEndTime(params, this.dateRangeBeginTime, 'beginTime'); this.addBeginAndEndTime(params, this.dateRangeBeginTime, 'beginTime',false);
// 执行查询 // 执行查询
getApiAccessLogPage(params).then(response => { getApiAccessLogPage(params).then(response => {
this.list = response.data.list; this.list = response.data.list;
......
...@@ -19,8 +19,8 @@ ...@@ -19,8 +19,8 @@
<el-input v-model="queryParams.requestUrl" :placeholder="$t('请输入请求地址')" clearable @keyup.enter.native="handleQuery"/> <el-input v-model="queryParams.requestUrl" :placeholder="$t('请输入请求地址')" clearable @keyup.enter.native="handleQuery"/>
</el-form-item> </el-form-item>
<el-form-item :label="$t('异常时间')"> <el-form-item :label="$t('异常时间')">
<el-date-picker v-model="dateRangeExceptionTime" style="width: 240px" value-format="yyyy-MM-dd" <el-date-picker v-model="dateRangeExceptionTime" style="width: 240px" value-format="yyyy-MM-dd HH:mm:ss"
type="daterange" range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期" /> type="datetimerange" range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期" />
</el-form-item> </el-form-item>
<el-form-item :label="$t('处理状态')" prop="processStatus"> <el-form-item :label="$t('处理状态')" prop="processStatus">
<el-select v-model="queryParams.processStatus" :placeholder="$t('请选择处理状态')" clearable> <el-select v-model="queryParams.processStatus" :placeholder="$t('请选择处理状态')" clearable>
...@@ -168,7 +168,7 @@ export default { ...@@ -168,7 +168,7 @@ export default {
this.loading = true; this.loading = true;
// 处理查询参数 // 处理查询参数
let params = {...this.queryParams}; let params = {...this.queryParams};
this.addBeginAndEndTime(params, this.dateRangeExceptionTime, 'exceptionTime'); this.addBeginAndEndTime(params, this.dateRangeExceptionTime, 'exceptionTime', false);
// 执行查询 // 执行查询
getApiErrorLogPage(params).then(response => { getApiErrorLogPage(params).then(response => {
this.list = response.data.list; this.list = response.data.list;
......
...@@ -16,8 +16,8 @@ ...@@ -16,8 +16,8 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item :label="$t('登录时间')"> <el-form-item :label="$t('登录时间')">
<el-date-picker v-model="dateRange" style="width: 240px" value-format="yyyy-MM-dd" <el-date-picker v-model="dateRange" style="width: 240px" value-format="yyyy-MM-dd HH:mm:ss"
type="daterange" range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker> type="datetimerange" range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" @click="handleQuery">{{ $t('搜索') }}</el-button> <el-button type="primary" icon="el-icon-search" @click="handleQuery">{{ $t('搜索') }}</el-button>
...@@ -99,8 +99,8 @@ export default { ...@@ -99,8 +99,8 @@ export default {
getList() { getList() {
this.loading = true; this.loading = true;
list(this.addDateRange(this.queryParams, [ list(this.addDateRange(this.queryParams, [
this.dateRange[0] ? this.dateRange[0] + ' 00:00:00' : undefined, this.dateRange[0] ,
this.dateRange[1] ? this.dateRange[1] + ' 23:59:59' : undefined, this.dateRange[1],
])).then(response => { ])).then(response => {
this.list = response.data.list; this.list = response.data.list;
this.total = response.data.total; this.total = response.data.total;
......
...@@ -22,8 +22,8 @@ ...@@ -22,8 +22,8 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item :label="$t('操作时间')"> <el-form-item :label="$t('操作时间')">
<el-date-picker v-model="dateRange" style="width: 240px" value-format="yyyy-MM-dd" <el-date-picker v-model="dateRange" style="width: 240px" value-format="yyyy-MM-dd HH:mm:ss"
type="daterange" range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker> type="datetimerange" range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" @click="handleQuery">{{ $t('搜索') }}</el-button> <el-button type="primary" icon="el-icon-search" @click="handleQuery">{{ $t('搜索') }}</el-button>
...@@ -171,8 +171,8 @@ export default { ...@@ -171,8 +171,8 @@ export default {
getList() { getList() {
this.loading = true; this.loading = true;
listOperateLog(this.addDateRange(this.queryParams, [ listOperateLog(this.addDateRange(this.queryParams, [
this.dateRange[0] ? this.dateRange[0] + ' 00:00:00' : undefined, this.dateRange[0] ,
this.dateRange[1] ? this.dateRange[1] + ' 23:59:59' : undefined, this.dateRange[1],
])).then( response => { ])).then( response => {
this.list = response.data.list; this.list = response.data.list;
this.total = response.data.total; this.total = response.data.total;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment