Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/hir_web into main
continuous-integration/drone/push Build is passing Details

main
caiyiling 2024-05-22 17:00:54 +08:00
commit 97874be6e4
5 changed files with 9 additions and 6 deletions

View File

@ -284,7 +284,9 @@ export default {
this.$router.replace({ path: res[0].path }); this.$router.replace({ path: res[0].path });
return; return;
} }
if (this.hasPermi(["role:pm",'role:oa','role:admin'])) { if (
this.hasPermi(["role:pm", "role:oa", "role:admin", "role:dev"])
) {
this.$router.replace({ path: "/trials/trials-inspection" }); this.$router.replace({ path: "/trials/trials-inspection" });
} else if (this.hasPermi(["role:oa"])) { } else if (this.hasPermi(["role:oa"])) {
this.$router.replace({ path: "/system" }); this.$router.replace({ path: "/system" });

View File

@ -69,6 +69,7 @@
:data="list" :data="list"
class="table" class="table"
@sort-change="handleSortByColumn" @sort-change="handleSortByColumn"
:default-sort="{ prop: 'CreateTime', order: 'descending' }"
> >
<el-table-column <el-table-column
type="index" type="index"
@ -166,8 +167,8 @@ const searchDataDefault = () => {
LoginFaildName: '', LoginFaildName: '',
BeginDate: '', BeginDate: '',
EndDate: '', EndDate: '',
Asc: true, Asc: false,
SortField: '', SortField: 'CreateTime',
PageIndex: 1, PageIndex: 1,
PageSize: 20 PageSize: 20
} }

View File

@ -42,7 +42,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="Description" prop="Description" min-width="220" show-overflow-tooltip /> <el-table-column label="Description" prop="Description" min-width="220" show-overflow-tooltip />
<el-table-column label="Action" width="280"> <el-table-column label="Action" width="280" v-if="hasPermi(['system:role:edit','system:role:delete'])">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
v-hasPermi="['system:role:edit']" v-hasPermi="['system:role:edit']"

View File

@ -32,7 +32,7 @@
<!-- 工作台 --> <!-- 工作台 -->
<!-- <span slot="title">{{ $t('trials:menuTitle:workbench') }}</span> <!-- <span slot="title">{{ $t('trials:menuTitle:workbench') }}</span>
</el-menu-item> --> </el-menu-item> -->
<el-menu-item v-if="hasPermi(['role:pm','role:oa','role:admin'])" index="1"> <el-menu-item v-if="hasPermi(['role:pm','role:oa','role:admin','role:dev'])" index="1">
<i class="el-icon-odometer" /> <i class="el-icon-odometer" />
<!-- 检查 --> <!-- 检查 -->
<span slot="title">{{ $t("trials:menuTitle:inspection") }}</span> <span slot="title">{{ $t("trials:menuTitle:inspection") }}</span>

View File

@ -64,7 +64,7 @@
<!-- 操作人 --> <!-- 操作人 -->
<el-form-item :label="$t('trials:auditRecord:table:operator')"> <el-form-item :label="$t('trials:auditRecord:table:operator')">
<el-input <el-input
v-model="searchData.OpByUserName" v-model="searchData.CreateUserRealName"
style="width: 120px" style="width: 120px"
clearable clearable
/> />