|
|
@@ -48,6 +48,7 @@
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
plain
|
|
|
+ v-if="tenantId == getTenantId()"
|
|
|
@click="openSelectQuestionDialog"
|
|
|
v-hasPermi="['bjdx:course-question:create']"
|
|
|
>
|
|
|
@@ -79,19 +80,19 @@
|
|
|
<el-table-column label="排序" align="center" prop="bqOrder" />
|
|
|
<el-table-column label="操作" align="center" min-width="120px">
|
|
|
<template #default="scope">
|
|
|
- <el-button
|
|
|
- link
|
|
|
- type="primary"
|
|
|
- v-if="scope.row.tenantId === getTenantId()"
|
|
|
- @click="openForm('update', scope.row.id)"
|
|
|
- v-hasPermi="['bjdx:course-question:update']"
|
|
|
- >
|
|
|
- 编辑
|
|
|
- </el-button>
|
|
|
+<!-- <el-button-->
|
|
|
+<!-- link-->
|
|
|
+<!-- type="primary"-->
|
|
|
+<!-- v-if="scope.row.tenantId == getTenantId()"-->
|
|
|
+<!-- @click="openForm('update', scope.row.id)"-->
|
|
|
+<!-- v-hasPermi="['bjdx:course-question:update']"-->
|
|
|
+<!-- >-->
|
|
|
+<!-- 编辑-->
|
|
|
+<!-- </el-button>-->
|
|
|
<el-button
|
|
|
link
|
|
|
type="danger"
|
|
|
- v-if="scope.row.tenantId === getTenantId()"
|
|
|
+ v-if="scope.row.tenantId == getTenantId()"
|
|
|
@click="handleDelete(scope.row.id)"
|
|
|
v-hasPermi="['bjdx:course-question:delete']"
|
|
|
>
|
|
|
@@ -219,8 +220,8 @@ const queryParams = reactive({
|
|
|
questionnaire: undefined, // 试卷名称
|
|
|
cqQuestion: undefined, // 试题内容
|
|
|
cqQuestType: undefined, // 试题类型
|
|
|
- tenantId: undefined,
|
|
|
})
|
|
|
+const tenantId = ref(undefined)
|
|
|
const queryFormRef = ref() // 搜索的表单
|
|
|
const route = useRoute()
|
|
|
|
|
|
@@ -249,6 +250,7 @@ const getList = async () => {
|
|
|
|
|
|
queryParams.questionnaireId = route.query.questionnaireId
|
|
|
queryParams.questionnaire = route.query.questionnaire
|
|
|
+ tenantId.value = route.query.tenantId
|
|
|
|
|
|
const data = await QuestionnaireApi.getConfigQuest(queryParams)
|
|
|
|