邓洁 : 修复操作日志bug

This commit is contained in:
邓洁
2024-01-04 19:01:23 +08:00
parent 0227a6bf36
commit 6033534929
3 changed files with 22 additions and 8 deletions

View File

@@ -20,7 +20,7 @@
<el-form-item label="状态" prop="state">
<el-select v-model="queryParams.state" placeholder="操作状态" clearable filterable>
<el-option
v-for="item in [{label:'成功',value: '0'},{label:'失败',value: '1'}]"
v-for="item in cacheStore.getDict('common_state')"
:key="item.value"
:label="item.label"
:value="item.value"
@@ -148,7 +148,7 @@
</el-col>
<el-col :span="8">
<el-form-item label="操作状态:" prop="state">
<tag dict-type="common_state" :value="form.state"/>
<tag v-if="showTag" dict-type="common_state" :value="form.state"/>
</el-form-item>
</el-col>
<el-col :span="8">
@@ -176,7 +176,7 @@ import {useCacheStore} from '@/stores/cache.js'
import Paging from "@/components/pagination/index.vue";
const cacheStore = useCacheStore()
cacheStore.setCacheKey(['oper_type'])
cacheStore.setCacheKey(['oper_type','common_state'])
import Tag from '@/components/Tag.vue'
const queryParams = reactive({
@@ -196,6 +196,7 @@ const dateValue = ref();
const total = ref();
const operIds = ref([]);
const disabled = ref(true);
const showTag = ref(true);
const isVisited = ref(false);
const pageInfo = reactive({
pageSize: 10,
@@ -289,8 +290,13 @@ const handleSelect = async (selection) => {
}
//查看详情
const handleViewDetails = async (operId) => {
showTag.value=false
nextTick(()=>{
})
getOperateLogDetail(operId).then(res => {
if (res.code === 1000) {
showTag.value=true
isVisited.value = true;
try {
if (res.data.operParam !== null) {