From bf053efe6fc44e92b8fb859453f3f19f74a15472 Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: 星期四, 10 七月 2025 08:56:43 +0800
Subject: [PATCH] 修改
---
src/views/build/conpanyFunctionConsult/qualityObjectives/table/components/tableDeptDialog.vue | 5 +
src/views/work/onlineEducation/groupExams/components/examDialog.vue | 102 +++++++++++++++++-----------------
src/views/work/onlineEducation/questionBankManagement/questionManage/components/questionDialog.vue | 8 +-
src/views/work/onlineEducation/questionBankManagement/questionManage/index.vue | 8 +-
4 files changed, 64 insertions(+), 59 deletions(-)
diff --git a/src/views/build/conpanyFunctionConsult/qualityObjectives/table/components/tableDeptDialog.vue b/src/views/build/conpanyFunctionConsult/qualityObjectives/table/components/tableDeptDialog.vue
index 62e740f..3e55bd9 100644
--- a/src/views/build/conpanyFunctionConsult/qualityObjectives/table/components/tableDeptDialog.vue
+++ b/src/views/build/conpanyFunctionConsult/qualityObjectives/table/components/tableDeptDialog.vue
@@ -352,6 +352,9 @@
}
const getDeptList = async () => {
+ if(state.isAdmin && (state.form.companyId == 0 || state.form.companyId == null)){
+ return
+ }
const param = {
pageNum: 1,
pageSize: 999,
@@ -485,6 +488,7 @@
}
const selectValueCom = (val) => {
+ state.form.departId = null
state.form.qualityId = null
state.qualityList = []
state.form.qualityTargets = []
@@ -499,6 +503,7 @@
state.form.companyId = item.id
}
})
+ getDeptList()
getQualityList()
getPeopleList()
}
diff --git a/src/views/work/onlineEducation/groupExams/components/examDialog.vue b/src/views/work/onlineEducation/groupExams/components/examDialog.vue
index 5a7ffd8..8af519d 100644
--- a/src/views/work/onlineEducation/groupExams/components/examDialog.vue
+++ b/src/views/work/onlineEducation/groupExams/components/examDialog.vue
@@ -208,66 +208,66 @@
</el-radio-group>
</div>
</div>
-<!-- <div style="display: flex">-->
-<!-- <div class="group">-->
-<!-- <div>-->
-<!-- 简答:<el-input style="max-width: 40px" v-model="state.form.easyNum"></el-input> 题-->
-<!-- </div>-->
-<!-- <div style="margin-left: 20px">-->
-<!-- 每题:<el-input style="max-width: 40px" v-model="state.form.easyScore"></el-input> 分-->
-<!-- </div>-->
-<!-- </div>-->
-<!-- <div class="group" >-->
-<!-- <div>-->
-<!-- 共 -->
-<!-- <span style="max-width: 30px" v-show="state.form.easyNum && state.form.easyScore">{{state.form.easyNum * state.form.easyScore}}</span>-->
-<!-- <!– <span v-else></span>–>-->
-<!-- 分-->
-<!-- </div>-->
+ <div style="display: flex">
+ <div class="group">
+ <div>
+ 简答:<el-input style="max-width: 40px" v-model="state.form.easyNum"></el-input> 题
+ </div>
+ <div style="margin-left: 20px">
+ 每题:<el-input style="max-width: 40px" v-model="state.form.easyScore"></el-input> 分
+ </div>
+ </div>
+ <div class="group" >
+ <div>
+ 共
+ <span style="max-width: 30px" v-show="state.form.easyNum && state.form.easyScore">{{state.form.easyNum * state.form.easyScore}}</span>
+ <!-- <span v-else></span>-->
+ 分
+ </div>
+ <el-select
+ clearable
+ v-model="state.form.easyBankName"
+ filterable
+ remote
+ reserve-keyword
+ placeholder="请输入简答题库"
+ remote-show-suffix
+ :remote-method="getBankList"
+ style="width: 160px;margin: 0 20px"
+ @change="selectEasyValue"
+ >
+ <el-option
+ v-for="item in state.bankList"
+ :key="item.id"
+ :label="item.name"
+ :value="item.name"
+ />
+ </el-select>
<!-- <el-select-->
<!-- clearable-->
-<!-- v-model="state.form.easyBankName"-->
-<!-- filterable-->
-<!-- remote-->
-<!-- reserve-keyword-->
-<!-- placeholder="请输入简答题库"-->
-<!-- remote-show-suffix-->
-<!-- :remote-method="getBankList"-->
+<!-- v-model="state.form.easyBankId"-->
<!-- style="width: 160px;margin: 0 20px"-->
-<!-- @change="selectEasyValue"-->
+<!-- v-loadMoreNew:[reselectSingle]="handleScroll"-->
+<!-- :popper-class="reselectSingle.name"-->
+<!-- class="item-width"-->
+<!-- placeholder="请选择简答题题库"-->
<!-- >-->
<!-- <el-option-->
-<!-- v-for="item in state.bankList"-->
+<!-- v-for="item in state.bankListSingle"-->
<!-- :key="item.id"-->
<!-- :label="item.name"-->
-<!-- :value="item.name"-->
+<!-- :value="item.id"-->
<!-- />-->
<!-- </el-select>-->
-<!--<!– <el-select–>-->
-<!--<!– clearable–>-->
-<!--<!– v-model="state.form.easyBankId"–>-->
-<!--<!– style="width: 160px;margin: 0 20px"–>-->
-<!--<!– v-loadMoreNew:[reselectSingle]="handleScroll"–>-->
-<!--<!– :popper-class="reselectSingle.name"–>-->
-<!--<!– class="item-width"–>-->
-<!--<!– placeholder="请选择简答题题库"–>-->
-<!--<!– >–>-->
-<!--<!– <el-option–>-->
-<!--<!– v-for="item in state.bankListSingle"–>-->
-<!--<!– :key="item.id"–>-->
-<!--<!– :label="item.name"–>-->
-<!--<!– :value="item.id"–>-->
-<!--<!– />–>-->
-<!--<!– </el-select>–>-->
-<!-- <el-radio-group v-model="state.form.easyMethod" >-->
-<!-- <el-radio :label="1" style="max-width: 30px">随机</el-radio>-->
-<!-- <el-radio :label="2" style="max-width: 30px">顺序</el-radio>-->
-<!-- </el-radio-group>-->
-<!-- <el-radio-group v-model="state.form.easyRebuild" style="margin-left: 30px" >-->
-<!-- <el-radio :label="1" v-if="title === '编辑'" style="max-width: 30px">重新出题</el-radio>-->
-<!-- </el-radio-group>-->
-<!-- </div>-->
-<!-- </div>-->
+ <el-radio-group v-model="state.form.easyMethod" >
+ <el-radio :label="1" style="max-width: 30px">随机</el-radio>
+ <el-radio :label="2" style="max-width: 30px">顺序</el-radio>
+ </el-radio-group>
+ <el-radio-group v-model="state.form.easyRebuild" style="margin-left: 30px" >
+ <el-radio :label="1" v-if="title === '编辑'" style="max-width: 30px">重新出题</el-radio>
+ </el-radio-group>
+ </div>
+ </div>
<span class="group" style="margin-bottom: 20px">共计:
{{state.form.judgeNum * state.form.judgeScore+state.form.multiNum * state.form.multiScore+state.form.singleNum * state.form.singleScore+state.form.easyNum * state.form.easyScore}}
分</span>
diff --git a/src/views/work/onlineEducation/questionBankManagement/questionManage/components/questionDialog.vue b/src/views/work/onlineEducation/questionBankManagement/questionManage/components/questionDialog.vue
index a7ec521..92a67f4 100644
--- a/src/views/work/onlineEducation/questionBankManagement/questionManage/components/questionDialog.vue
+++ b/src/views/work/onlineEducation/questionBankManagement/questionManage/components/questionDialog.vue
@@ -160,10 +160,10 @@
id: 3,
name: '判断题'
},
- // {
- // id: 4,
- // name: '简答题'
- // }
+ {
+ id: 4,
+ name: '简答题'
+ }
],
optionItem: {
analyze: '',
diff --git a/src/views/work/onlineEducation/questionBankManagement/questionManage/index.vue b/src/views/work/onlineEducation/questionBankManagement/questionManage/index.vue
index 0d506f8..de18c69 100644
--- a/src/views/work/onlineEducation/questionBankManagement/questionManage/index.vue
+++ b/src/views/work/onlineEducation/questionBankManagement/questionManage/index.vue
@@ -139,10 +139,10 @@
id: 3,
name: '判断题'
},
- // {
- // id: 4,
- // name: '简答题'
- // }
+ {
+ id: 4,
+ name: '简答题'
+ }
],
bankList: [],
bankPageNum: 1, // 当前页码
--
Gitblit v1.9.2