权限相关

main
wangxiaoshuang 2024-04-08 13:49:47 +08:00
parent d24bb92c07
commit 17da9c23b0
4 changed files with 18 additions and 11 deletions

View File

@ -23,7 +23,11 @@
>搜索</el-button >搜索</el-button
> >
<el-button type="primary" size="mini" @click="reset"></el-button> <el-button type="primary" size="mini" @click="reset"></el-button>
<el-button type="primary" size="mini" @click="openDialog('add')" <el-button
type="primary"
size="mini"
v-hasPermi="['system:dicom:add']"
@click="openDialog('add')"
>新增</el-button >新增</el-button
> >
</el-form-item> </el-form-item>
@ -81,19 +85,18 @@
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
v-hasPermi="['system:dicom:edit']"
@click="openDialog('edit', scope.row)" @click="openDialog('edit', scope.row)"
>编辑</el-button >编辑</el-button
> >
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
v-hasPermi="['system:dicom:del']"
@click="delAE(scope.row)" @click="delAE(scope.row)"
>删除</el-button >删除</el-button
> >
<el-button <el-button size="mini" type="text" @click="test(scope.row)"
size="mini"
type="text"
@click="test(scope.row)"
>测试</el-button >测试</el-button
> >
</template> </template>

View File

@ -35,11 +35,11 @@
height="30vh" height="30vh"
> >
<!-- <el-table-column type="selection" align="center" width="45" /> --> <!-- <el-table-column type="selection" align="center" width="45" /> -->
<!--检查编号--> <!--患者编号-->
<el-table-column <el-table-column
align="center" align="center"
prop="PatientIdStr" prop="PatientIdStr"
:label="$t('trials:audit:table:studyId')" :label="$t('trials:uploadDicomList:table:pId')"
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<!--检查类型--> <!--检查类型-->
@ -94,8 +94,8 @@
<p>{{ $t("trials:hirVisit:titleMessage:optionalStudy") }}</p> <p>{{ $t("trials:hirVisit:titleMessage:optionalStudy") }}</p>
<div class="form"> <div class="form">
<el-form :inline="true" class="base-search-form"> <el-form :inline="true" class="base-search-form">
<!-- 检查编号 --> <!-- 患者编号 -->
<el-form-item :label="$t('trials:uploadMonitor:table:studyId')"> <el-form-item :label="$t('trials:uploadDicomList:table:pId')">
<el-input v-model="searchData.SubjectInfo" style="width: 100px" /> <el-input v-model="searchData.SubjectInfo" style="width: 100px" />
</el-form-item> </el-form-item>
<!-- 检查日期 --> <!-- 检查日期 -->
@ -142,11 +142,11 @@
@selection-change="handleSelectChange" @selection-change="handleSelectChange"
> >
<el-table-column type="selection" align="center" width="45" /> <el-table-column type="selection" align="center" width="45" />
<!--检查编号--> <!--患者编号-->
<el-table-column <el-table-column
align="center" align="center"
prop="PatientIdStr" prop="PatientIdStr"
:label="$t('trials:audit:table:studyId')" :label="$t('trials:uploadDicomList:table:pId')"
show-overflow-tooltip show-overflow-tooltip
></el-table-column> ></el-table-column>
<!--检查类型--> <!--检查类型-->
@ -312,6 +312,7 @@ export default {
message = "common:message:removedSuccessfully"; message = "common:message:removedSuccessfully";
} }
this.$message.success(this.$t(message)); this.$message.success(this.$t(message));
this.$emit("getList");
} }
} catch (err) { } catch (err) {
console.log(err); console.log(err);

View File

@ -271,6 +271,7 @@
:visible.sync="editStudyVisible" :visible.sync="editStudyVisible"
:data="editStudyData" :data="editStudyData"
v-if="editStudyVisible" v-if="editStudyVisible"
@getList="getList"
/> />
</BaseContainer> </BaseContainer>
</template> </template>

View File

@ -205,6 +205,7 @@
<el-button <el-button
type="text" type="text"
@click="handleViewStudy(scope.row)" @click="handleViewStudy(scope.row)"
v-hasPermi="['trials:trials-panel:study:view']"
disabled disabled
>{{ $t("trials:studyList:button:view") }}</el-button >{{ $t("trials:studyList:button:view") }}</el-button
> >
@ -213,6 +214,7 @@
type="text" type="text"
@click="editVisitFn(scope.row)" @click="editVisitFn(scope.row)"
v-if="activeName === 'notSubmit'" v-if="activeName === 'notSubmit'"
v-hasPermi="['trials:trials-panel:study:editVisit']"
>{{ $t("trials:study:button:editVisit") }}</el-button >{{ $t("trials:study:button:editVisit") }}</el-button
> >
</template> </template>