Jelajahi Sumber

增加共享租户补充权限逻辑

liyanbo 7 bulan lalu
induk
melakukan
d3500655f6

+ 1 - 0
src/api/bjdx/questionnaire/index.ts

@@ -16,6 +16,7 @@ export interface CourseQuestionVO {
   questionnaireId: number // 试卷id
   cqQuestion: string // 试题内容
   cqQuestType: string // 试题类型
+  tenantId: undefined,
 }
 
 // 问卷 API

+ 2 - 0
src/types/auto-imports.d.ts

@@ -7,6 +7,8 @@ export {}
 declare global {
   const DICT_TYPE: typeof import('@/utils/dict')['DICT_TYPE']
   const EffectScope: typeof import('vue')['EffectScope']
+  const ElMessage: typeof import('element-plus/es')['ElMessage']
+  const ElMessageBox: typeof import('element-plus/es')['ElMessageBox']
   const computed: typeof import('vue')['computed']
   const createApp: typeof import('vue')['createApp']
   const customRef: typeof import('vue')['customRef']

+ 1 - 1
src/views/ai/chat/manager/ChatConversationList.vue

@@ -78,7 +78,7 @@
           <el-button
             link
             type="danger"
-            v-if="scope.row.tenantId === getTenantId()"
+            v-if="scope.row.tenantId == getTenantId()"
             @click="handleDelete(scope.row.id)"
             v-hasPermi="['ai:chat-conversation:delete']"
           >

+ 1 - 1
src/views/ai/chat/manager/ChatMessageList.vue

@@ -88,7 +88,7 @@
           <el-button
             link
             type="danger"
-            v-if="scope.row.tenantId === getTenantId()"
+            v-if="scope.row.tenantId == getTenantId()"
             @click="handleDelete(scope.row.id)"
             v-hasPermi="['ai:chat-message:delete']"
           >

+ 1 - 1
src/views/ai/image/manager/index.vue

@@ -142,7 +142,7 @@
           <el-button
             link
             type="danger"
-            v-if="scope.row.tenantId === getTenantId()"
+            v-if="scope.row.tenantId == getTenantId()"
             @click="handleDelete(scope.row.id)"
             v-hasPermi="['ai:image:delete']"
           >

+ 2 - 2
src/views/ai/knowledge/document/index.vue

@@ -74,7 +74,7 @@
           <el-button
             link
             type="primary"
-            v-if="scope.row.tenantId === getTenantId()"
+            v-if="scope.row.tenantId == getTenantId()"
             @click="handleUpdate(scope.row.id)"
             v-hasPermi="['ai:knowledge:update']"
           >
@@ -91,7 +91,7 @@
           <el-button
             link
             type="danger"
-            v-if="scope.row.tenantId === getTenantId()"
+            v-if="scope.row.tenantId == getTenantId()"
             @click="handleDelete(scope.row.id)"
             v-hasPermi="['ai:knowledge:delete']"
           >

+ 2 - 2
src/views/ai/knowledge/knowledge/index.vue

@@ -83,7 +83,7 @@
           <el-button
             link
             type="primary"
-            v-if="scope.row.tenantId === getTenantId()"
+            v-if="scope.row.tenantId == getTenantId()"
             @click="openForm('update', scope.row.id)"
             v-hasPermi="['ai:knowledge:update']"
           >
@@ -108,7 +108,7 @@
           <el-button
             link
             type="danger"
-            v-if="scope.row.tenantId === getTenantId()"
+            v-if="scope.row.tenantId == getTenantId()"
             @click="handleDelete(scope.row.id)"
             v-hasPermi="['ai:knowledge:delete']"
           >

+ 2 - 2
src/views/ai/knowledge/segment/index.vue

@@ -107,7 +107,7 @@
           <el-button
             link
             type="primary"
-            v-if="scope.row.tenantId === getTenantId()"
+            v-if="scope.row.tenantId == getTenantId()"
             @click="openForm('update', scope.row.id)"
             v-hasPermi="['ai:knowledge:update']"
           >
@@ -116,7 +116,7 @@
           <el-button
             link
             type="danger"
-            v-if="scope.row.tenantId === getTenantId()"
+            v-if="scope.row.tenantId == getTenantId()"
             @click="handleDelete(scope.row.id)"
             v-hasPermi="['ai:knowledge:delete']"
           >

+ 1 - 1
src/views/ai/mindmap/manager/index.vue

@@ -77,7 +77,7 @@
           <el-button
             link
             type="danger"
-            v-if="scope.row.tenantId === getTenantId()"
+            v-if="scope.row.tenantId == getTenantId()"
             @click="handleDelete(scope.row.id)"
             v-hasPermi="['ai:mind-map:delete']"
           >

+ 2 - 2
src/views/ai/model/apiKey/index.vue

@@ -79,7 +79,7 @@
           <el-button
             link
             type="primary"
-            v-if="scope.row.tenantId === getTenantId()"
+            v-if="scope.row.tenantId == getTenantId()"
             @click="openForm('update', scope.row.id)"
             v-hasPermi="['ai:api-key:update']"
           >
@@ -88,7 +88,7 @@
           <el-button
             link
             type="danger"
-            v-if="scope.row.tenantId === getTenantId()"
+            v-if="scope.row.tenantId == getTenantId()"
             @click="handleDelete(scope.row.id)"
             v-hasPermi="['ai:api-key:delete']"
           >

+ 2 - 2
src/views/ai/model/chatRole/index.vue

@@ -103,7 +103,7 @@
           <el-button
             link
             type="primary"
-            v-if="scope.row.tenantId === getTenantId()"
+            v-if="scope.row.tenantId == getTenantId()"
             @click="openForm('update', scope.row.id)"
             v-hasPermi="['ai:chat-role:update']"
           >
@@ -112,7 +112,7 @@
           <el-button
             link
             type="danger"
-            v-if="scope.row.tenantId === getTenantId()"
+            v-if="scope.row.tenantId == getTenantId()"
             @click="handleDelete(scope.row.id)"
             v-hasPermi="['ai:chat-role:delete']"
           >

+ 2 - 2
src/views/ai/model/model/index.vue

@@ -85,7 +85,7 @@
           <el-button
             link
             type="primary"
-            v-if="scope.row.tenantId === getTenantId()"
+            v-if="scope.row.tenantId == getTenantId()"
             @click="openForm('update', scope.row.id)"
             v-hasPermi="['ai:model:update']"
           >
@@ -94,7 +94,7 @@
           <el-button
             link
             type="danger"
-            v-if="scope.row.tenantId === getTenantId()"
+            v-if="scope.row.tenantId == getTenantId()"
             @click="handleDelete(scope.row.id)"
             v-hasPermi="['ai:model:delete']"
           >

+ 2 - 2
src/views/ai/model/tool/index.vue

@@ -72,7 +72,7 @@
           <el-button
             link
             type="primary"
-            v-if="scope.row.tenantId === getTenantId()"
+            v-if="scope.row.tenantId == getTenantId()"
             @click="openForm('update', scope.row.id)"
             v-hasPermi="['ai:tool:update']"
           >
@@ -81,7 +81,7 @@
           <el-button
             link
             type="danger"
-            v-if="scope.row.tenantId === getTenantId()"
+            v-if="scope.row.tenantId == getTenantId()"
             @click="handleDelete(scope.row.id)"
             v-hasPermi="['ai:tool:delete']"
           >

+ 1 - 1
src/views/ai/music/manager/index.vue

@@ -183,7 +183,7 @@
           <el-button
             link
             type="danger"
-            v-if="scope.row.tenantId === getTenantId()"
+            v-if="scope.row.tenantId == getTenantId()"
             @click="handleDelete(scope.row.id)"
             v-hasPermi="['ai:music:delete']"
           >

+ 2 - 2
src/views/ai/tts/index.vue

@@ -174,7 +174,7 @@
           <el-button
             link
             type="primary"
-            v-if="scope.row.tenantId === getTenantId()"
+            v-if="scope.row.tenantId == getTenantId()"
             @click="openForm('update', scope.row.id)"
             v-hasPermi="['ai:tts:update']"
           >
@@ -183,7 +183,7 @@
           <el-button
             link
             type="danger"
-            v-if="scope.row.tenantId === getTenantId()"
+            v-if="scope.row.tenantId == getTenantId()"
             @click="handleDelete(scope.row.id)"
             v-hasPermi="['ai:tts:delete']"
           >

+ 2 - 2
src/views/ai/workflow/index.vue

@@ -85,7 +85,7 @@
           <el-button
             type="primary"
             link
-            v-if="scope.row.tenantId === getTenantId()"
+            v-if="scope.row.tenantId == getTenantId()"
             @click="openForm('update', scope.row.id)"
             v-hasPermi="['ai:workflow:update']"
           >
@@ -94,7 +94,7 @@
           <el-button
             link
             type="danger"
-            v-if="scope.row.tenantId === getTenantId()"
+            v-if="scope.row.tenantId == getTenantId()"
             @click="handleDelete(scope.row.id)"
             v-hasPermi="['ai:workflow:delete']"
           >

+ 1 - 1
src/views/ai/write/manager/index.vue

@@ -134,7 +134,7 @@
           <el-button
             link
             type="danger"
-            v-if="scope.row.tenantId === getTenantId()"
+            v-if="scope.row.tenantId == getTenantId()"
             @click="handleDelete(scope.row.id)"
             v-hasPermi="['ai:write:delete']"
           >

+ 1 - 1
src/views/bjdx/course/CourseForm.vue

@@ -28,7 +28,7 @@
       </el-form-item>
 
 
-      <el-form-item label="内容类型" prop="courseName">
+      <el-form-item label="内容类型" prop="courseContentType">
         <el-segmented v-model="formData.courseContentType" :options="getStrDictOptions(DICT_TYPE.COURSE_COUTNET_TYPE)" />
       </el-form-item>
 

+ 12 - 12
src/views/bjdx/course/index.vue

@@ -171,30 +171,30 @@
           <el-button
             link
             type="primary"
-            v-if="scope.row.tenantId === getTenantId()"
+            v-if="scope.row.tenantId == getTenantId()"
             @click="openForm('update', scope.row.id)"
             v-hasPermi="['bjdx:course:update']"
           >
             编辑
           </el-button>
-          <el-button
-            link
-            type="info"
-            @click="openPreview(scope.row)"
-          >
-            预览
-          </el-button>
+<!--          <el-button-->
+<!--            link-->
+<!--            type="info"-->
+<!--            @click="openPreview(scope.row)"-->
+<!--          >-->
+<!--            预览-->
+<!--          </el-button>-->
           <el-button
             link
             type="success"
-            @click="handleConfig(scope.row.id,scope.row.courseName)"
+            @click="handleConfig(scope.row.id,scope.row.courseName,scope.row.tenantId)"
           >
             配置
           </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:delete']"
           >
@@ -316,10 +316,10 @@ const handleDelete = async (id: number) => {
 
 /** 配置按钮操作 */
 const router = useRouter()
-const handleConfig = (id: number,courseName: string) => {
+const handleConfig = (id: number,courseName: string,tenantId: number) => {
   router.push({
     name: 'courseConfig',
-    query: { courseId: id , courseName: courseName}
+    query: { courseId: id , courseName: courseName,tenantId: tenantId}
   })
 }
 

+ 1 - 1
src/views/bjdx/courseconfig/CourseConfigForm.vue

@@ -155,7 +155,7 @@
 
     <!-- 底部按钮 -->
     <template #footer>
-      <el-button @click="submitForm" type="primary" :disabled="formLoading">同步内容</el-button>
+<!--      <el-button @click="submitForm" type="primary" :disabled="formLoading">同步内容</el-button>-->
       <el-button @click="submitForm" type="primary" :disabled="formLoading">确 定</el-button>
       <el-button @click="dialogVisible = false">取 消</el-button>
     </template>

+ 5 - 2
src/views/bjdx/courseconfig/index.vue

@@ -57,6 +57,7 @@
         <el-button
           type="primary"
           plain
+          v-if="tenantId == getTenantId()"
           @click="openForm('create', null, queryParams.ccCourseId, queryParams.courseName)"
           v-hasPermi="['bjdx:course-config:create']"
         >
@@ -104,7 +105,7 @@
           <el-button
             link
             type="primary"
-            v-if="scope.row.tenantId === getTenantId()"
+            v-if="scope.row.tenantId == getTenantId()"
             @click="openForm('update', scope.row.id, queryParams.ccCourseId, queryParams.courseName)"
             v-hasPermi="['bjdx:course-config:update']"
           >
@@ -113,7 +114,7 @@
           <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-config:delete']"
           >
@@ -166,6 +167,7 @@ const queryParams = reactive({
 const queryFormRef = ref() // 搜索的表单
 const exportLoading = ref(false) // 导出的加载中
 const route = useRoute()
+const tenantId = ref()
 
 /** 查询列表 */
 const getList = async () => {
@@ -173,6 +175,7 @@ const getList = async () => {
   try {
     queryParams.ccCourseId = route.query.courseId
     queryParams.courseName = route.query.courseName
+    tenantId.value = route.query.tenantId
 
     console.log(queryParams)
     const data = await CourseConfigApi.getCourseConfigPage(queryParams)

+ 2 - 2
src/views/bjdx/courselabel/index.vue

@@ -61,7 +61,7 @@
           <el-button
             link
             type="primary"
-            v-if="scope.row.tenantId === getTenantId()"
+            v-if="scope.row.tenantId == getTenantId()"
             @click="openForm('update', scope.row.id)"
             v-hasPermi="['bjdx:course-label:update']"
           >
@@ -70,7 +70,7 @@
           <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-label:delete']"
           >

+ 5 - 5
src/views/bjdx/coursequestion/index.vue

@@ -80,7 +80,7 @@
           <el-button
             link
             type="primary"
-            v-if="scope.row.tenantId === getTenantId()"
+            v-if="scope.row.tenantId == getTenantId()"
             @click="openForm('update', scope.row.id)"
             v-hasPermi="['bjdx:course-question:update']"
           >
@@ -89,7 +89,7 @@
           <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']"
           >
@@ -98,7 +98,7 @@
           <el-button
             link
             type="info"
-            @click="goToOptionList(scope.row.id, scope.row.cqQuestion)"
+            @click="goToOptionList(scope.row.id, scope.row.cqQuestion,scope.row.tenantId)"
             v-hasPermi="['bjdx:course-question:update']"
           >
             选项列表
@@ -215,10 +215,10 @@ onMounted(() => {
 const router = useRouter()
 
 // 跳转选项列表页
-const goToOptionList = (id: number, question: String) => {
+const goToOptionList = (id: number, question: String,tenantId: number) => {
   router.push({
     name: 'questOption',
-    query: { questId: id , question: question}
+    query: { questId: id , question: question,tenantId: tenantId}
   })
 }
 </script>

+ 5 - 2
src/views/bjdx/coursequestoption/index.vue

@@ -56,6 +56,7 @@
         <el-button
           type="primary"
           plain
+          v-if="tenantId == getTenantId()"
           @click="openForm('create', null, queryParams.cqoQuestId)"
           v-hasPermi="['bjdx:course-quest-option:create']"
         >
@@ -96,7 +97,7 @@
           <el-button
             link
             type="primary"
-            v-if="scope.row.tenantId === getTenantId()"
+            v-if="scope.row.tenantId == getTenantId()"
             @click="openForm('update', scope.row.id, queryParams.cqoQuestId)"
             v-hasPermi="['bjdx:course-quest-option:update']"
           >
@@ -105,7 +106,7 @@
           <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-quest-option:delete']"
           >
@@ -158,6 +159,7 @@ const queryParams = reactive({
 const queryFormRef = ref() // 搜索的表单
 const exportLoading = ref(false) // 导出的加载中
 const route = useRoute()
+const tenantId = ref(undefined)
 
 /** 查询列表 */
 const getList = async () => {
@@ -166,6 +168,7 @@ const getList = async () => {
 
     queryParams.cqoQuestId = route.query.questId
     queryParams.cqoQuestion = route.query.question
+    tenantId.value = route.query.tenantId
 
     const data = await CourseQuestOptionApi.getCourseQuestOptionPage(queryParams)
     list.value = data.list

+ 3 - 3
src/views/bjdx/coursetype/index.vue

@@ -98,7 +98,7 @@
           <el-button
             link
             type="primary"
-            v-if="scope.row.tenantId === getTenantId()"
+            v-if="scope.row.tenantId == getTenantId()"
             @click="openForm('update', scope.row.id)"
             v-hasPermi="['bjdx:course-type:update']"
           >
@@ -107,7 +107,7 @@
           <el-button
             link
             type="primary"
-            v-if="scope.row.tenantId === getTenantId()"
+            v-if="scope.row.tenantId == getTenantId()"
             @click="openForm('create', undefined, scope.row.id)"
             v-hasPermi="['bjdx:course-type:create']"
           >
@@ -116,7 +116,7 @@
           <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-type:delete']"
           >

+ 13 - 11
src/views/bjdx/questionnaire/ConfigQuestion.vue

@@ -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)
 

+ 6 - 6
src/views/bjdx/questionnaire/index.vue

@@ -73,7 +73,7 @@
           <div v-html="scope.row.bqStartInfo"></div>
         </template>
       </el-table-column>
-      <el-table-column label="问题id集" align="center" prop="bqQuestIds" />
+<!--      <el-table-column label="问题id集" align="center" prop="bqQuestIds" />-->
       <el-table-column
         label="创建时间"
         align="center"
@@ -86,7 +86,7 @@
           <el-button
             type="primary"
             link
-            v-if="scope.row.tenantId === getTenantId()"
+            v-if="scope.row.tenantId == getTenantId()"
             @click="openForm('update', scope.row.id)"
             v-hasPermi="['bjdx:questionnaire:update']"
           >
@@ -95,7 +95,7 @@
           <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:questionnaire:delete']"
           >
@@ -104,7 +104,7 @@
           <el-button
             link
             type="success"
-            @click="handleConfig(scope.row.id,scope.row.bqQuestionnaire)"
+            @click="handleConfig(scope.row.id,scope.row.bqQuestionnaire,scope.row.tenantId)"
           >
             试题配置
           </el-button>
@@ -216,10 +216,10 @@ const handleExport = async () => {
 
 /** 配置按钮操作 */
 const router = useRouter()
-const handleConfig = (id: number,bqQuestionnaire: string) => {
+const handleConfig = (id: number,bqQuestionnaire: string,tenantId: number) => {
   router.push({
     name: 'configQuest',
-    query: { questionnaireId: id , questionnaire: bqQuestionnaire}
+    query: { questionnaireId: id , questionnaire: bqQuestionnaire, tenantId: tenantId}
   })
 }
 

+ 1 - 1
src/views/bjdxReport/reportmanage/ManageForm.vue

@@ -4,7 +4,7 @@
       ref="formRef"
       :model="formData"
       :rules="formRules"
-      label-width="100px"
+      label-width="120px"
       v-loading="formLoading"
     >
       <el-form-item label="开课率最小" prop="brcReportCourseMin">

+ 4 - 16
src/views/bjdxReport/reportmanage/index.vue

@@ -6,7 +6,7 @@
       :model="queryParams"
       ref="queryFormRef"
       :inline="true"
-      label-width="68px"
+      label-width="120px"
     >
       <el-form-item label="开课率最小" prop="brcReportCourseMin">
         <el-input
@@ -80,17 +80,6 @@
           class="!w-240px"
         />
       </el-form-item>
-      <el-form-item label="创建时间" prop="createTime">
-        <el-date-picker
-          v-model="queryParams.createTime"
-          value-format="YYYY-MM-DD HH:mm:ss"
-          type="daterange"
-          start-placeholder="开始日期"
-          end-placeholder="结束日期"
-          :default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]"
-          class="!w-220px"
-        />
-      </el-form-item>
       <el-form-item>
         <el-button @click="handleQuery"><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button>
         <el-button @click="resetQuery"><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button>
@@ -118,7 +107,6 @@
   <!-- 列表 -->
   <ContentWrap>
     <el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true">
-      <el-table-column label="主键id" align="center" prop="brcId" />
       <el-table-column label="开课率最小" align="center" prop="brcReportCourseMin" />
       <el-table-column label="开课率最大" align="center" prop="brcReportCourseMax" />
       <el-table-column label="互动最小" align="center" prop="brcReportQuestMin" />
@@ -126,7 +114,7 @@
       <el-table-column label="ai问答次数最小" align="center" prop="brcReportAiCountMin" />
       <el-table-column label="ai问答次数最大" align="center" prop="brcReportAiCountMax" />
       <el-table-column label="等级" align="center" prop="brcReportLevel" />
-      <el-table-column label="评语" align="center" prop="brcReportComment" />
+      <el-table-column label="评语" align="center" prop="brcReportComment" width="240px"/>
       <el-table-column
         label="创建时间"
         align="center"
@@ -139,7 +127,7 @@
           <el-button
             link
             type="primary"
-            v-if="scope.row.tenantId === getTenantId()"
+            v-if="scope.row.tenantId == getTenantId()"
             @click="openForm('update', scope.row.brcId)"
             v-hasPermi="['report:manage:update']"
           >
@@ -148,7 +136,7 @@
           <el-button
             link
             type="danger"
-            v-if="scope.row.tenantId === getTenantId()"
+            v-if="scope.row.tenantId == getTenantId()"
             @click="handleDelete(scope.row.brcId)"
             v-hasPermi="['report:manage:delete']"
           >

+ 2 - 2
src/views/bjdxResult/questionnaireresultdetails/index.vue

@@ -130,7 +130,7 @@
           <el-button
             link
             type="primary"
-            v-if="scope.row.tenantId === getTenantId()"
+            v-if="scope.row.tenantId == getTenantId()"
             @click="openForm('update', scope.row.id)"
             v-hasPermi="['bjdxResult:questionnaire-result-details:update']"
           >
@@ -139,7 +139,7 @@
           <el-button
             link
             type="danger"
-            v-if="scope.row.tenantId === getTenantId()"
+            v-if="scope.row.tenantId == getTenantId()"
             @click="handleDelete(scope.row.id)"
             v-hasPermi="['bjdxResult:questionnaire-result-details:delete']"
           >