|
@@ -8,12 +8,18 @@
|
|
|
<div class="interfaceLog_head_time_end mr10">
|
|
|
<el-date-picker v-model="timeEnd" size="default" type="datetime" placeholder="选择结束日期时间" format="YYYY-MM-DD HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss" :clearable="false" @change="timeSelectHandler" />
|
|
|
</div>
|
|
|
- <div class="interfaceLog_head_select">
|
|
|
+ <div class="interfaceLog_head_select mr10">
|
|
|
<el-select v-model="selMsg" size="medium" @change="timeSelectHandler" placeholder="请选择">
|
|
|
<el-option v-for="item in selOptions" :key="item.value" :label="item.label" :value="item.value">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</div>
|
|
|
+ <div v-if="selMsg == '系统'" class="interfaceLog_head_result">
|
|
|
+ <el-select v-model="resMsg" size="medium" @change="timeSelectHandler" placeholder="请选择">
|
|
|
+ <el-option v-for="item in resOptions" :key="item.value" :label="item.label" :value="item.value">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div class="interfaceLog_head_btn">
|
|
|
<Search v-permission="['log_management_search_button']" :is-title="false" @get-search-data="getSearchData" @clear-search-data="clearSearchData" />
|
|
@@ -94,7 +100,10 @@ const getTableData = async () => {
|
|
|
} = await Query({
|
|
|
id: DATACONTENT_ID.sysLogTable,
|
|
|
needPage: ++page,
|
|
|
- dataContent: [timeStart.value, timeEnd.value, selMsg.value],
|
|
|
+ dataContent:
|
|
|
+ selMsg.value == "系统"
|
|
|
+ ? [timeStart.value, timeEnd.value, selMsg.value, resMsg.value]
|
|
|
+ : [timeStart.value, timeEnd.value, selMsg.value],
|
|
|
});
|
|
|
if (Number(code) === 0) {
|
|
|
tableColumns.value = columnSet.map((column) => ({
|
|
@@ -126,12 +135,9 @@ const load = () => {
|
|
|
|
|
|
const timeStart = ref("");
|
|
|
const timeEnd = ref("");
|
|
|
-const selMsg = ref("全部");
|
|
|
+const selMsg = ref("系统");
|
|
|
+const resMsg = ref("错误");
|
|
|
const selOptions = ref([
|
|
|
- {
|
|
|
- value: "全部",
|
|
|
- label: "全部",
|
|
|
- },
|
|
|
{
|
|
|
value: "系统",
|
|
|
label: "系统",
|
|
@@ -141,6 +147,16 @@ const selOptions = ref([
|
|
|
label: "用户",
|
|
|
},
|
|
|
]);
|
|
|
+const resOptions = ref([
|
|
|
+ {
|
|
|
+ value: "成功",
|
|
|
+ label: "成功",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: "错误",
|
|
|
+ label: "错误",
|
|
|
+ },
|
|
|
+]);
|
|
|
const getToday = () => {
|
|
|
function numberFormat(number) {
|
|
|
const string = "0" + number;
|