Browse Source

修改部分名称定义

yellowtaotao 3 years ago
parent
commit
fef7cda237

+ 1 - 1
src/App.vue

@@ -31,7 +31,7 @@ export default {
           ); // 赋值网页内容区域可视化高度值
         })();
       };
-      // 获取工种、题目分类数据,并存到vuex
+      // 获取工种、题类数据,并存到vuex
       this.$_http
         .get(this.$_API.INTERFACE_GET_ENGINEERINGWORK_LIST)
         .then((res) => {

+ 3 - 3
src/api/modules/examQuestion.js

@@ -1,11 +1,11 @@
 /* JTXT系统相关api */
 export default {
   API_LIST_EXAM_QUESTION: {
-    // 查询所有题目分
+    // 查询所有题类
     INTERFACE_GET_EXAMS_QUESTION_TYPE: "q-categories",
-    // 新建题目分
+    // 新建题类
     INTERFACE_POST_EXAMS_QUESTION_TYPE_CREATE: "admin/qCategories",
-    // 删除某个题目分
+    // 删除某个题类
     INTERFACE_POST_EXAMS_QUESTION_TYPE_DELETE: "admin/q-categories/{categoryId}",
 
     // 查询所有试题

+ 5 - 5
src/common/Constant.js

@@ -56,11 +56,11 @@ export const ENGINEERING_WORK_LIST = [
   // { id: 2, name: "测量工", code: "CeLiangGong" },
   { id: 3, name: '线路工', code: 'XianLuGong' },
 ];
-// 试题类
+// 试题类
 export const EXAM_QUESTION_TYPE_CONDITION = [
-  { id: 1, name: '类1', code: 'LeiBie1' },
-  { id: 2, name: '类2', code: 'LeiBie2' },
-  { id: 3, name: '类3', code: 'LeiBie3' },
-  { id: 4, name: '类4', code: 'LeiBie4' },
+  { id: 1, name: '类1', code: 'LeiBie1' },
+  { id: 2, name: '类2', code: 'LeiBie2' },
+  { id: 3, name: '类3', code: 'LeiBie3' },
+  { id: 4, name: '类4', code: 'LeiBie4' },
 ];
 // 接口请求的了---------------------------------------

+ 1 - 1
src/common/generalData.js

@@ -14,7 +14,7 @@ export function getEngineeringWorkList() {
   }
 }
 
-// 题目类别
+// 试题类型
 let EXAM_QUESTION_TYPE_CONDITION = null
 export function getExamQuestionTypeConditionList() {
   if (!EXAM_QUESTION_TYPE_CONDITION) {

+ 1 - 1
src/components/layout/components/Sider.vue

@@ -167,7 +167,7 @@ export default {
   }
   .ant-menu-ul {
     height: calc(100vh - @navTopHight);
-    overflow-y: hidden;
+    overflow-y: auto;
   }
 }
 </style>

+ 1 - 1
src/filters/index.js

@@ -268,7 +268,7 @@ export function formateExamTypeFun(code) {
 }
 
 /**
- * 过滤:题类型
+ * 过滤:题类型
  * @code:编码
  * @return 文本
  */

+ 18 - 18
src/router/menu.js

@@ -8,19 +8,33 @@ export default [
     meta: { title: '工种管理', icon: 'ali-icon-gongzhong' },
   },
   {
-    meta: { title: '题目管理', icon: 'ali-icon-lunwentimu' },
+    meta: { title: '文章管理', icon: 'ali-icon-wenzhangfenlei' },
+    path: '/articleManagement',
+    children: [
+      {
+        path: '/articleManagement/list',
+        meta: { title: '文章列表' },
+      },
+      {
+        path: '/articleManagement/create',
+        meta: { title: '新建文章' },
+      }
+    ],
+  },
+  {
+    meta: { title: '试题管理', icon: 'ali-icon-lunwentimu' },
     path: '/examQuestionManagement',
     children: [
       {
         path: '/examQuestionManagement/questionType',
-        meta: { title: '题目类别' },
+        meta: { title: '试题类型' },
       },
       {
         path: '/examQuestionManagement/list',
-        meta: { title: '题目列表' },
+        meta: { title: '题列表' },
       },
       {
-        meta: { title: '新建题目' },
+        meta: { title: '新建题' },
         path: '/examQuestionManagement/create',
         children: [
           {
@@ -71,18 +85,4 @@ export default [
       },
     ],
   },
-  {
-    meta: { title: '文章管理', icon: 'ali-icon-wenzhangfenlei' },
-    path: '/articleManagement',
-    children: [
-      {
-        path: '/articleManagement/list',
-        meta: { title: '文章列表' },
-      },
-      {
-        path: '/articleManagement/create',
-        meta: { title: '新建文章' },
-      }
-    ],
-  },
 ];

+ 4 - 4
src/router/modules/examQuestionManagement.js

@@ -1,21 +1,21 @@
 import layout from '@/components/layout';
 export default {
   path: '/examQuestionManagement',
-  meta: { title: '题管理' },
+  meta: { title: '题管理' },
   redirect: '/examQuestionManagement/list',
   component: layout,
   children: [
     {
       path: 'questionType',
       name: 'examQuestion-type',
-      meta: { title: '题目类别' },
+      meta: { title: '试题类型' },
       component: () =>
-        import('@/views/examQuestionManagement/examQuestionType'),
+        import('@/views/examQuestionManagement/examQuestionTypeCondition'),
     },
     {
       path: 'list',
       name: 'examQuestionManagement-list',
-      meta: { title: '题列表' },
+      meta: { title: '题列表' },
       component: () =>
         import('@/views/examQuestionManagement/examQuestionList'),
     },

+ 3 - 3
src/store/modules/common.js

@@ -1,8 +1,8 @@
 
 const state = {
   screenHeight: 0, // 网页内容区域可视化高度值
-  engineeringWorkList: [], // 工种类列表
-  examQuestionTypeConditionList: [], // 题目类别列表
+  engineeringWorkList: [], // 工种类列表
+  examQuestionTypeConditionList: [], // 试题类型列表
 
 };
 
@@ -15,7 +15,7 @@ const mutations = {
   SET_ENGINEERING_WORK_LIST: (state, list) => {
     state.engineeringWorkList = list || []
   },
-  // 存储题目类别列表数据
+  // 存储试题类型列表数据
   SET_EXAM_QUESTION_TYPE_CONDITION: (state, list) => {
     state.examQuestionTypeConditionList = list || []
   },

+ 4 - 4
src/styles/components/index.less

@@ -37,7 +37,7 @@
   margin: @paddingMarginVal 0;
 }
 
-// 新建题的统一样式--------start
+// 新建题的统一样式--------start
 .exam-question-create-body {
   width: 100%;
   height: 100%;
@@ -83,9 +83,9 @@
     margin: 20px 0 20px calc(20% + 56px);
   }
 }
-// 新建题的统一样式--------end
+// 新建题的统一样式--------end
 
-// 题列表中的筛选条件样式--------start
+// 题列表中的筛选条件样式--------start
 .filter-condition-box {
   display: flex;
   >span {
@@ -137,4 +137,4 @@
     margin-left: @paddingMarginVal;
   }
 }
-// 题列表中的筛选条件样式--------end
+// 题列表中的筛选条件样式--------end

+ 10 - 10
src/views/articleManagement/articleList.vue

@@ -5,7 +5,7 @@
         <!-- 过滤条件栏目 -->
         <div>
           <div class="filter-condition-box">
-            <span>所属类:</span>
+            <span>所属类:</span>
             <ul>
               <li
                 :class="{
@@ -21,7 +21,7 @@
             </ul>
           </div>
           <div class="filter-condition-box a-card-margin-top">
-            <span>所属类:</span>
+            <span>所属类:</span>
             <ul>
               <li
                 :class="{
@@ -136,10 +136,10 @@ export default {
   data() {
     return {
       loading: false, // 是否展示加载动画
-      examQuestionType: [], // 题目类型列表
-      checkedExamQuestionType: '', // 所选题目类型
-      examQuestionTypeCondition: [], // 题目类别列表
-      checkedExamQuestionTypeCondition: '', // 所选题目类别
+      examQuestionType: [], // 试题类别列表
+      checkedExamQuestionType: '', // 所选试题类别
+      examQuestionTypeCondition: [], // 试题类型列表
+      checkedExamQuestionTypeCondition: '', // 所选试题类型
       engineeringWorkList: [], // 工种数据列表
       engineeringWorkChooseValue: '', // 所选工种
       articleList: [], // 文章列表数据
@@ -160,13 +160,13 @@ export default {
   methods: {
     //初始化数据
     initDataFun() {
-      // 题目分
+      // 题类
       this.examQuestionType = [
         { name: '全部', code: '' },
         ...EXAM_QUESTION_TYPE,
       ];
       this.checkedExamQuestionType = this.examQuestionType[0].code;
-      // 题目类别
+      // 试题类型
       this.examQuestionTypeCondition = [
         { name: '全部', code: '' },
         ...EXAM_QUESTION_TYPE_CONDITION,
@@ -208,7 +208,7 @@ export default {
       //     this.loading = false;
       //   });
     },
-    // 操作:选择某个题目类型
+    // 操作:选择某个试题类别
     handleExamQuestionTypeFun(item) {
       if (this.checkedExamQuestionType === item.code) {
         return;
@@ -216,7 +216,7 @@ export default {
       this.checkedExamQuestionType = item.code;
       this.getArticleListFun(); // 查询:文章列表数据
     },
-    // 操作:选择某个题目类别
+    // 操作:选择某个试题类型
     handleExamQuestionTypeConditionFun(item) {
       if (this.checkedExamQuestionTypeCondition === item.code) {
         return;

+ 2 - 1
src/views/engineeringWorkManagement/engineeringWorkList.vue

@@ -11,6 +11,7 @@
             <a-input
               v-model.trim="engineeringWorkName"
               placeholder="请输入工种名称"
+              :maxLength="10"
             />
           </div>
           <a-button
@@ -70,7 +71,7 @@ export default {
       // 表单配置
       this.columns = [
         {
-          title: '工种类',
+          title: '工种类',
           dataIndex: 'name',
           key: 'name',
         },

+ 7 - 7
src/views/examManagement/examManagementDetail.vue

@@ -35,7 +35,7 @@
               }}</span>
             </div>
             <div>
-              <span class="exam-detail-title">题数量:</span>
+              <span class="exam-detail-title">题数量:</span>
               <span class="exam-detail-txt">{{ examQuestionList.length }}</span>
             </div>
             <div>
@@ -58,7 +58,7 @@
           <div class="exam-detail-totalGrades exam-detail-item">总分:100</div>
           <div class="border-line"></div>
         </div>
-        <!-- 考试题列表:表单[自带分页功能] -->
+        <!-- 考试题列表:表单[自带分页功能] -->
         <a-table
           :columns="columns"
           :data-source="examQuestionList"
@@ -152,19 +152,19 @@ export default {
       // 表单的列的配置参数
       this.columns = [
         {
-          title: '题编号',
+          title: '题编号',
           dataIndex: 'questionCode',
           key: 'questionCode',
           scopedSlots: { customRender: 'questionCode' },
           width: 200,
         },
         {
-          title: '题',
+          title: '题',
           dataIndex: 'questionDescription',
           key: 'questionDescription',
         },
         {
-          title: '题类别',
+          title: '题类别',
           dataIndex: 'questionType',
           key: 'questionType',
           scopedSlots: { customRender: 'questionType' },
@@ -229,9 +229,9 @@ export default {
         tarTime.hours + '时' + tarTime.minutes + '分' + tarTime.seconds + '秒';
       this.examDetailData = resData;
 
-      this.getQusetionsListFun(resData.id); // 查询:题列表数据
+      this.getQusetionsListFun(resData.id); // 查询:题列表数据
     },
-    // 查询:题列表数据
+    // 查询:题列表数据
     getQusetionsListFun() {
       // 列表数据
       const resData = QUESTIONLISTRES.data;

+ 7 - 7
src/views/examManagement/examManagementList.vue

@@ -115,8 +115,8 @@ export default {
   data() {
     return {
       loading: false, // 是否展示加载动画
-      examType: [], // 所属题类型列表
-      checkedExamType: '', // 所选题类型
+      examType: [], // 所属题类型列表
+      checkedExamType: '', // 所选题类型
       engineeringWorkList: [], // 工种数据列表
       engineeringWorkChooseValue: '', // 所选工种
       tableHeight: 400, // 表格高度
@@ -160,7 +160,7 @@ export default {
     //初始化数据
     initDataFun() {
       this.loading = true;
-      // 题目分
+      // 题类
       this.examType = [{ name: '全部', code: '' }, ...EXAM_TYPE];
       this.checkedExamType = this.examType[0].code;
 
@@ -202,11 +202,11 @@ export default {
         },
       ];
 
-      this.getQusetionsListFun(); // 查询:题列表数据
+      this.getQusetionsListFun(); // 查询:题列表数据
     },
-    // 操作:选择某个题类型
+    // 操作:选择某个题类型
     handleExamQuestionTypeFun(item) {
-      console.log('选择某个题类型', item);
+      console.log('选择某个题类型', item);
       if (this.checkedExamType === item.code) {
         return;
       }
@@ -216,7 +216,7 @@ export default {
     handleChangeEngineeringWorkValue() {
       console.log('选择了某个工种', this.engineeringWorkChooseValue);
     },
-    // 查询:题列表数据
+    // 查询:题列表数据
     getQusetionsListFun() {
       // 列表数据
       const resData = EXAMLISTRES.data;

+ 41 - 39
src/views/examManagement/examManualVolumeFormation.vue

@@ -170,10 +170,10 @@
         </a-form>
         <div></div>
       </div>
-      <!-- 当前题列表 -->
+      <!-- 当前题列表 -->
       <div class="common-card a-card-margin-top">
         <div class="flex-between">
-          <div class="current-table-title">当前题</div>
+          <div class="current-table-title">当前题</div>
           <div class="current-table-title">
             总分:{{ current_tableGradesCount }}
           </div>
@@ -237,12 +237,12 @@
           </template>
         </a-table>
       </div>
-      <!-- 题库题列表 -->
+      <!-- 题库题列表 -->
       <div class="common-card a-card-margin-top">
         <!-- 过滤条件栏目 -->
         <div>
           <div class="filter-condition-box">
-            <span>所属类:</span>
+            <span>所属类:</span>
             <ul>
               <li
                 :class="{
@@ -258,7 +258,7 @@
             </ul>
           </div>
           <div class="filter-condition-box a-card-margin-top">
-            <span>所属类:</span>
+            <span>所属类:</span>
             <ul>
               <li
                 :class="{
@@ -404,6 +404,7 @@ const ExamTimeLong = {
       <a-input
         type='number'
         :value="hours"
+        :maxLength="2"
         @change="handleNumberChange"
         style="width: 35%; margin-right: 2%;"
       />
@@ -411,6 +412,7 @@ const ExamTimeLong = {
       <a-input
         type='number'
         :value="minutes"
+        :maxLength="2"
         @change="handleCurrencyChange"
         style="width: 35%; margin-right: 2%;"
       />
@@ -474,7 +476,7 @@ export default {
       examDateTime: '', // 考试时间
       examLongTimeHours: '', // 考试时长:小时
       examLongTimeMinutes: '', // 考试时长:分钟
-      // 当前题列表
+      // 当前题列表
       current_columns: [], // form表单的列参数
       current_tableData: [], // 表单数据
       current_pagination: {
@@ -485,10 +487,10 @@ export default {
       current_selectedRowKeys: [], // 多选的结果
       current_tableGradesCount: 0, // 总分
       // 题库列表
-      bank_examQuestionType: [], // 题类型列表
-      bank_checkedExamQuestionType: '', // 所选题类型
-      bank_examQuestionTypeCondition: [], // 题目类别列表
-      bank_checkedExamQuestionTypeCondition: '', // 所选题目类别
+      bank_examQuestionType: [], // 题类型列表
+      bank_checkedExamQuestionType: '', // 所选题类型
+      bank_examQuestionTypeCondition: [], // 试题类型列表
+      bank_checkedExamQuestionTypeCondition: '', // 所选试题类型
       bank_engineeringWorkList: [], // 工种数据列表
       bank_engineeringWorkChooseValue: '', // 所选工种
       bank_columns: [], // form表单的列参数
@@ -500,7 +502,7 @@ export default {
       }, // 分页参数
       bank_selectedRowKeys: [], // 多选的结果
       bank_tableGradesCount: 0, // 总分
-      disabledIdArr: [], // 当前题中已有的题ID(即题库列表中不可选取的行数据Id)
+      disabledIdArr: [], // 当前题中已有的题ID(即题库列表中不可选取的行数据Id)
     };
   },
   created() {
@@ -510,11 +512,11 @@ export default {
   beforeDestroy() {},
   watch: {},
   computed: {
-    // 判断 当前题 列表中是否有行被选择
+    // 判断 当前题 列表中是否有行被选择
     currentHasSelected() {
       return this.current_selectedRowKeys.length > 0;
     },
-    // 判断 题库题 列表中是否有行被选择
+    // 判断 题库题 列表中是否有行被选择
     bankHasSelected() {
       return this.bank_selectedRowKeys.length > 0;
     },
@@ -529,27 +531,27 @@ export default {
       // 考试类型
       this.examTypeList = [...EXAM_TYPE];
       this.examTypeChooseValue = this.examTypeList[0].code;
-      this.initCurrentTableFun(); // 初始化当前题列表相关数据
-      this.initBankTableFun(); // 初始化题库题列表相关数据
+      this.initCurrentTableFun(); // 初始化当前题列表相关数据
+      this.initBankTableFun(); // 初始化题库题列表相关数据
     },
-    // #region 当前题列表
-    // 初始化当前题列表
+    // #region 当前题列表
+    // 初始化当前题列表
     initCurrentTableFun() {
       // 表单的列的配置参数
       this.current_columns = [
         {
-          title: '题编号',
+          title: '题编号',
           dataIndex: 'questionCode',
           key: 'questionCode',
           width: 200,
         },
         {
-          title: '题',
+          title: '题',
           dataIndex: 'questionDescription',
           key: 'questionDescription',
         },
         {
-          title: '题类别',
+          title: '题类别',
           dataIndex: 'questionType',
           key: 'questionType',
           scopedSlots: { customRender: 'questionType' },
@@ -577,9 +579,9 @@ export default {
           width: 150,
         },
       ];
-      this.getCurrentQusetionsListFun(); // 查询:当前题列表数据
+      this.getCurrentQusetionsListFun(); // 查询:当前题列表数据
     },
-    // 查询:题列表数据
+    // 查询:题列表数据
     getCurrentQusetionsListFun() {
       // 列表数据
       const resData = [];
@@ -639,7 +641,7 @@ export default {
       let that = this;
       this.$confirm({
         title: '删除',
-        content: `确认删除编号为 ${record.questionCode} 的题吗?`,
+        content: `确认删除编号为 ${record.questionCode} 的题吗?`,
         okText: '确认',
         cancelText: '取消',
         onOk() {
@@ -683,9 +685,9 @@ export default {
         onCancel() {},
       });
     },
-    // 移除当前题列表中要删除的数据
+    // 移除当前题列表中要删除的数据
     removeDataFromCurrentTable(ids = [], that) {
-      // 移出当前题
+      // 移出当前
       that.current_tableData = that.current_tableData.filter((currentItem) => {
         if (!ids.includes(currentItem.id)) {
           return currentItem;
@@ -701,15 +703,15 @@ export default {
     },
     // #endregion
 
-    //#region 题库题列表
+    //#region 题库题列表
     initBankTableFun() {
-      // 题目分
+      // 题类
       this.bank_examQuestionType = [
         { name: '全部', code: '' },
         ...EXAM_QUESTION_TYPE,
       ];
       this.bank_checkedExamQuestionType = this.bank_examQuestionType[0].code;
-      // 题目类别
+      // 试题类型
       this.bank_examQuestionTypeCondition = [
         { name: '全部', code: '' },
         ...EXAM_QUESTION_TYPE_CONDITION,
@@ -724,18 +726,18 @@ export default {
       // 表单的列的配置参数
       this.bank_columns = [
         {
-          title: '题编号',
+          title: '题编号',
           dataIndex: 'questionCode',
           key: 'questionCode',
           width: 200,
         },
         {
-          title: '题',
+          title: '题',
           dataIndex: 'questionDescription',
           key: 'questionDescription',
         },
         {
-          title: '题类别',
+          title: '题类别',
           dataIndex: 'questionType',
           key: 'questionType',
           scopedSlots: { customRender: 'questionType' },
@@ -756,9 +758,9 @@ export default {
           width: 150,
         },
       ];
-      this.getBankQusetionsListFun(); // 查询:题列表数据
+      this.getBankQusetionsListFun(); // 查询:题列表数据
     },
-    // 查询:题列表数据
+    // 查询:题列表数据
     getBankQusetionsListFun() {
       // 列表数据
       const resData = QUESTIONLISTRES.data;
@@ -781,17 +783,17 @@ export default {
         this.loading = false;
       }, 1500);
     },
-    // 操作:选择某个题类型
+    // 操作:选择某个题类型
     handleExamQuestionTypeFun(item) {
-      console.log('选择某个题类型', item);
+      console.log('选择某个题类型', item);
       if (this.bank_checkedExamQuestionType === item.code) {
         return;
       }
       this.bank_checkedExamQuestionType = item.code;
     },
-    // 操作:选择某个题目类别
+    // 操作:选择某个试题类型
     handleExamQuestionTypeConditionFun(item) {
-      console.log('选择某个题目类别', item);
+      console.log('选择某个试题类型', item);
       if (this.bank_checkedExamQuestionTypeCondition === item.code) {
         return;
       }
@@ -831,7 +833,7 @@ export default {
     },
     // 操作:添加
     bankTableAddQuestion(record) {
-      // 加入当前题列表
+      // 加入当前题列表
       for (let i = 0; i < this.bank_tableData.length; i++) {
         let bankItem = this.bank_tableData[i];
         if (bankItem.id === record.id) {
@@ -857,7 +859,7 @@ export default {
         okText: '确认',
         cancelText: '取消',
         onOk() {
-          // 加入当前题列表
+          // 加入当前题列表
           let arr = [];
           that.bank_tableData.forEach((bankItem) => {
             that.bank_selectedRowKeys.forEach((id) => {

+ 26 - 26
src/views/examQuestionManagement/examQuestionList.vue

@@ -4,7 +4,7 @@
       <!-- 过滤条件栏目 -->
       <div class="common-card" ref="filterCard">
         <div class="filter-condition-box">
-          <span>所属类:</span>
+          <span>所属类:</span>
           <ul>
             <li
               :class="{
@@ -19,7 +19,7 @@
           </ul>
         </div>
         <div class="filter-condition-box a-card-margin-top">
-          <span>所属类:</span>
+          <span>所属类:</span>
           <ul>
             <li
               :class="{
@@ -128,10 +128,10 @@ export default {
   components: {},
   data() {
     return {
-      examQuestionType: [], // 题目类目列表
-      checkedExamQuestionType: '', // 所选题目类目类型
-      examQuestionConditionType: [], // 题目类别列表
-      checkedExamQuestionConditionType: '', // 所选题目类别类型
+      examQuestionType: [], // 试题类别列表
+      checkedExamQuestionType: '', // 所选试题类别
+      examQuestionConditionType: [], // 试题类型列表
+      checkedExamQuestionConditionType: '', // 所选试题类型类型
       engineeringWorkList: [], // 工种数据列表
       engineeringWorkChooseValue: '', // 所选工种
       tableHeight: 400, // 表格高度
@@ -178,9 +178,9 @@ export default {
     },
     //初始化数据
     initDataFun() {
-      // 题目类目
+      // 试题类别
       this.examQuestionType = [{ name: '全部', id: '' }, ...EXAM_QUESTION_TYPE];
-      // 题目类别
+      // 试题类型
       this.examQuestionConditionType = [
         { name: '全部', id: '' },
         ...this.GET_EXAM_QUESTION_TYPE_CONDITION,
@@ -193,23 +193,23 @@ export default {
       // 表单的列的配置参数
       this.columns = [
         {
-          title: '题编号',
+          title: '题编号',
           dataIndex: 'id',
           key: 'id',
         },
         {
-          title: '题',
+          title: '题',
           dataIndex: 'content',
           key: 'content',
         },
         {
-          title: '题类别',
+          title: '题类别',
           dataIndex: 'type',
           key: 'type',
           scopedSlots: { customRender: 'type' },
         },
         {
-          title: '题目分类',
+          title: '题类',
           dataIndex: 'typeCondition',
           key: 'typeCondition',
           scopedSlots: { customRender: 'typeCondition' },
@@ -227,7 +227,7 @@ export default {
           scopedSlots: { customRender: 'action' },
         },
       ];
-      this.getQusetionsListFun(); // 查询:题列表数据
+      this.getQusetionsListFun(); // 查询:题列表数据
     },
     // 初始化分页参数
     initPagination() {
@@ -235,7 +235,7 @@ export default {
       this.pagination.pageSize = 7;
       this.pagination.total = 0;
     },
-    // 查询:题列表数据
+    // 查询:题列表数据
     getQusetionsListFun() {
       this.loading = true;
       let params = {
@@ -254,12 +254,12 @@ export default {
               if (item.type === it.code) {
                 item.typeTxt = it.name;
               }
-            }); // 题目类目
+            }); // 试题类别
             this.examQuestionConditionType.forEach((it) => {
               if (item.typeCondition === it.id) {
                 item.typeConditionTxt = it.name;
               }
-            }); // 题目类别
+            }); // 试题类型
             item.engineerTypesTxt = this.engineeringWorkList[0].name;
             this.engineeringWorkList.forEach((it) => {
               if (item.engineerTypes === it.id) {
@@ -275,25 +275,25 @@ export default {
           this.loading = false;
         });
     },
-    // 操作:选择某个题目类目
+    // 操作:选择某个试题类别
     handleExamQuestionTypeFun(item) {
       if (this.checkedExamQuestionType === item.id) {
         return;
       }
       this.checkedExamQuestionType = item.id;
-      this.getQusetionsListFun(); // 查询:题列表数据
+      this.getQusetionsListFun(); // 查询:题列表数据
     },
-    // 操作:选择某个题目类别
+    // 操作:选择某个试题类型
     handleExamQuestionConditionTypeFun(item) {
       if (this.checkedExamQuestionConditionType === item.id) {
         return;
       }
       this.checkedExamQuestionConditionType = item.id;
-      this.getQusetionsListFun(); // 查询:题列表数据
+      this.getQusetionsListFun(); // 查询:题列表数据
     },
     // 操作:选择了某个工种
     handleChangeEngineeringWorkValue() {
-      this.getQusetionsListFun(); // 查询:题列表数据
+      this.getQusetionsListFun(); // 查询:题列表数据
     },
     // 操作:详情
     toQuestionDetailFun(record) {
@@ -304,7 +304,7 @@ export default {
       let that = this;
       this.$confirm({
         title: '删除',
-        content: `确认删除编号为 ${record.id} 的题吗?`,
+        content: `确认删除编号为 ${record.id} 的题吗?`,
         okText: '确认',
         cancelText: '取消',
         onOk() {
@@ -321,9 +321,9 @@ export default {
             )
             .then(() => {
               that.loading = false;
-              that.$message.success('删除题成功');
+              that.$message.success('删除题成功');
               that.initPagination(); // 初始化分页参数
-              that.getQusetionsListFun(); // 查询:题列表数据
+              that.getQusetionsListFun(); // 查询:题列表数据
             })
             .catch(() => {
               that.loading = false;
@@ -357,9 +357,9 @@ export default {
             .then(() => {
               that.selectedRowKeys = [];
               that.loading = false;
-              that.$message.success('批量删除题成功');
+              that.$message.success('批量删除题成功');
               that.initPagination(); // 初始化分页参数
-              that.getQusetionsListFun(); // 查询:题列表数据
+              that.getQusetionsListFun(); // 查询:题列表数据
             })
             .catch(() => {
               that.loading = false;

+ 17 - 17
src/views/examQuestionManagement/examQuestionType.vue → src/views/examQuestionManagement/examQuestionTypeCondition.vue

@@ -1,16 +1,16 @@
 <template>
   <div class="app-container">
     <div class="common-card">
-      <!-- 新建类 -->
+      <!-- 新建类 -->
       <div class="engineeringWork-create">
-        <div class="engineeringWork-create-title">新建类</div>
+        <div class="engineeringWork-create-title">新建类</div>
         <div class="engineeringWork-create-edit">
           <div class="engineeringWork-create-none"></div>
           <div class="engineeringWork-create-input">
-            <span>类名称:</span>
+            <span>类名称:</span>
             <a-input
               v-model.trim="questionTypeName"
-              placeholder="请输入题目类别"
+              placeholder="请输入试题类型"
             />
           </div>
           <a-button
@@ -23,9 +23,9 @@
       </div>
     </div>
     <div class="common-card a-card-margin-top">
-      <!-- 已有类 -->
+      <!-- 已有类 -->
       <div class="engineeringWork-list">
-        <div class="engineeringWork-list-title">已有类</div>
+        <div class="engineeringWork-list-title">已有类</div>
         <a-table
           :columns="columns"
           :row-key="(record) => record.id"
@@ -47,12 +47,12 @@
 <script>
 import { formatePathParams } from '@/filters';
 export default {
-  name: 'examQuestionType',
+  name: 'examQuestionTypeCondition',
   props: {},
   components: {},
   data() {
     return {
-      questionTypeName: '', // 新建题目类别的名称
+      questionTypeName: '', // 新建试题类型的名称
       columns: [], // 表单配置
       tableData: [], // 列表数据
     };
@@ -70,7 +70,7 @@ export default {
       // 表单配置
       this.columns = [
         {
-          title: '题目类别',
+          title: '试题类型',
           dataIndex: 'name',
           key: 'name',
         },
@@ -81,9 +81,9 @@ export default {
           width: 150,
         },
       ];
-      this.getTableListFun(); // 查询:题列表
+      this.getTableListFun(); // 查询:题列表
     },
-    // 查询:题目类别列表
+    // 查询:试题类型列表
     getTableListFun() {
       this.loading = true;
       this.$_http
@@ -96,7 +96,7 @@ export default {
           this.loading = false;
         });
     },
-    // 操作:新建题目类别
+    // 操作:新建试题类型
     engineeringWorkCreateFun() {
       this.loading = true;
       let params = {
@@ -108,14 +108,14 @@ export default {
         .then(() => {
           this.questionTypeName = '';
           this.loading = false;
-          this.$message.success('新建题目类别成功');
-          this.getTableListFun(); // 查询:题目类别列表
+          this.$message.success('新建试题类型成功');
+          this.getTableListFun(); // 查询:试题类型列表
         })
         .catch(() => {
           this.loading = false;
         });
     },
-    // 操作:删除题目类别
+    // 操作:删除试题类型
     engineeringWorkDelete(record) {
       this.loading = true;
       let params = {
@@ -130,8 +130,8 @@ export default {
         )
         .then(() => {
           this.loading = false;
-          this.$message.success('删除题目类别成功');
-          this.getTableListFun(); // 查询:题目类别列表
+          this.$message.success('删除试题类型成功');
+          this.getTableListFun(); // 查询:试题类型列表
         })
         .catch(() => {
           this.loading = false;

+ 13 - 13
src/views/examQuestionManagement/examQusetionCreateGapFilling.vue

@@ -9,18 +9,18 @@
           :loading="loading"
         >
           <a-form-item
-            label="题内容"
+            label="题内容"
             :label-col="labelCol"
             :wrapper-col="wrapperCol"
           >
             <a-textarea
-              placeholder="题内容"
+              placeholder="题内容"
               :auto-size="{ minRows: 3, maxRows: 5 }"
-              :maxLength="1000"
+              :maxLength="500"
               v-decorator="[
                 'content',
                 {
-                  rules: [{ required: true, message: '请输入题内容!' }],
+                  rules: [{ required: true, message: '请输入题内容!' }],
                 },
               ]"
             />
@@ -48,8 +48,8 @@
               :wrapper-col="wrapperCol"
             >
               <a-input
-                placeholder="填空需与题一一对应"
-                :maxLength="200"
+                placeholder="填空需与题一一对应"
+                :maxLength="100"
                 v-decorator="[
                   `answers-${index}`,
                   {
@@ -60,7 +60,7 @@
             </a-form-item>
           </div>
           <a-form-item
-            label="题目分类"
+            label="题类"
             :label-col="labelCol"
             :wrapper-col="wrapperCol"
           >
@@ -142,10 +142,10 @@ export default {
       aquestionAddForm: this.$form.createForm(this, {
         name: 'examQusetionAddDuoXuan',
       }),
-      questionType: 'TianKong', // 题类型:填空题
+      questionType: 'TianKong', // 题类型:填空题
       optionsList: [{ value: '' }], // 选项列表
-      typeConditionList: [], // 题目类别列表
-      typeCondition: '', // 所选题目类别
+      typeConditionList: [], // 试题类型列表
+      typeCondition: '', // 所选试题类型
       engineeringWorkList: [], // 工种数据列表
       engineeringWorkChooseValue: '', // 所选工种
       finalAnswerIndexs: undefined, // 正确答案下标
@@ -166,7 +166,7 @@ export default {
   methods: {
     // 初始化数据
     initDataFun() {
-      // 题目类别
+      // 试题类型
       this.typeConditionList = [
         { name: '不限', id: '' },
         ...this.GET_EXAM_QUESTION_TYPE_CONDITION,
@@ -196,7 +196,7 @@ export default {
           ); // 获取工种信息
           // 需要拼接到请求地址后面的参数
           let urlParams = {
-            categoryid: this.questionType, // 题目类目ID
+            categoryid: this.questionType, // 试题类别ID
             engineertypeid: values.engineeringWorkChooseValue, // 工种ID
           };
           // 接口Body参数
@@ -204,7 +204,7 @@ export default {
             content: values.content, // 内容
             finalAnswer: this.formatQuestionAnswersArr(values), // 正确答案
             engineerTypes: [engineerTypeInfo], // 工种信息集合
-            type: this.questionType, // 题目类别ID
+            type: this.questionType, // 试题类型ID
             answers: [], // 选项
           };
           this.httpQuestFun(urlParams, params);

+ 13 - 13
src/views/examQuestionManagement/examQusetionCreateMultiple.vue

@@ -9,24 +9,24 @@
           :loading="loading"
         >
           <a-form-item
-            label="题内容"
+            label="题内容"
             :label-col="labelCol"
             :wrapper-col="wrapperCol"
           >
             <a-textarea
-              placeholder="题内容"
+              placeholder="题内容"
               :auto-size="{ minRows: 3, maxRows: 5 }"
-              :maxLength="1000"
+              :maxLength="500"
               v-decorator="[
                 'content',
                 {
-                  rules: [{ required: true, message: '请输入题内容!' }],
+                  rules: [{ required: true, message: '请输入题内容!' }],
                 },
               ]"
             />
           </a-form-item>
           <div class="question-option">
-            <span class="question-option-title">题选项:</span>
+            <span class="question-option-title">题选项:</span>
             <span class="question-option-add" @click="questionOptionAddFun"
               >新增选项</span
             >
@@ -49,7 +49,7 @@
             >
               <a-input
                 placeholder="选项内容"
-                :maxLength="200"
+                :maxLength="100"
                 v-decorator="[
                   `answers-${index}`,
                   {
@@ -84,7 +84,7 @@
             </a-select>
           </a-form-item>
           <a-form-item
-            label="题目分类"
+            label="题类"
             :label-col="labelCol"
             :wrapper-col="wrapperCol"
           >
@@ -166,10 +166,10 @@ export default {
       aquestionAddForm: this.$form.createForm(this, {
         name: 'examQusetionAddDuoXuan',
       }),
-      questionType: 'DuoXuan', // 题类型:多选题
+      questionType: 'DuoXuan', // 题类型:多选题
       optionsList: [{ value: '' }, { value: '' }], // 选项列表
-      typeConditionList: [], // 题目类别列表
-      typeCondition: '', // 所选题目类别
+      typeConditionList: [], // 试题类型列表
+      typeCondition: '', // 所选试题类型
       engineeringWorkList: [], // 工种数据列表
       engineeringWorkChooseValue: '', // 所选工种
       finalAnswerIndexs: undefined, // 正确答案下标
@@ -190,7 +190,7 @@ export default {
   methods: {
     // 初始化数据
     initDataFun() {
-      // 题目类别
+      // 试题类型
       this.typeConditionList = [
         { name: '不限', id: '' },
         ...this.GET_EXAM_QUESTION_TYPE_CONDITION,
@@ -220,7 +220,7 @@ export default {
           ); // 获取工种信息
           // 需要拼接到请求地址后面的参数
           let urlParams = {
-            categoryid: this.questionType, // 题目类目ID
+            categoryid: this.questionType, // 试题类别ID
             engineertypeid: values.engineeringWorkChooseValue, // 工种ID
           };
           // 接口Body参数
@@ -230,7 +230,7 @@ export default {
               values.finalAnswerIndexs
             ), // 正确答案
             engineerTypes: [engineerTypeInfo], // 工种信息集合
-            type: this.questionType, // 题目类别ID
+            type: this.questionType, // 试题类型ID
             answers: this.formatQuestionAnswersArr(values), // 选项
           };
           this.httpQuestFun(urlParams, params);

+ 13 - 13
src/views/examQuestionManagement/examQusetionCreateSingle.vue

@@ -9,24 +9,24 @@
           :loading="loading"
         >
           <a-form-item
-            label="题内容"
+            label="题内容"
             :label-col="labelCol"
             :wrapper-col="wrapperCol"
           >
             <a-textarea
-              placeholder="题内容"
+              placeholder="题内容"
               :auto-size="{ minRows: 3, maxRows: 5 }"
-              :maxLength="1000"
+              :maxLength="500"
               v-decorator="[
                 'content',
                 {
-                  rules: [{ required: true, message: '请输入题内容!' }],
+                  rules: [{ required: true, message: '请输入题内容!' }],
                 },
               ]"
             />
           </a-form-item>
           <div class="question-option">
-            <span class="question-option-title">题选项:</span>
+            <span class="question-option-title">题选项:</span>
             <span class="question-option-add" @click="questionOptionAddFun"
               >新增选项</span
             >
@@ -49,7 +49,7 @@
             >
               <a-input
                 placeholder="选项内容"
-                :maxLength="200"
+                :maxLength="100"
                 v-decorator="[
                   `answers-${index}`,
                   {
@@ -100,7 +100,7 @@
             />
           </a-form-item> -->
           <a-form-item
-            label="题目分类"
+            label="题类"
             :label-col="labelCol"
             :wrapper-col="wrapperCol"
           >
@@ -182,10 +182,10 @@ export default {
       aquestionAddForm: this.$form.createForm(this, {
         name: 'examQusetionAddDanXuan',
       }),
-      questionType: 'DanXuan', // 题目类目:单选题
+      questionType: 'DanXuan', // 试题类别:单选题
       optionsList: [{ value: '' }, { value: '' }], // 选项列表
-      typeConditionList: [], // 题目类别列表
-      typeCondition: '', // 所选题目类别
+      typeConditionList: [], // 试题类型列表
+      typeCondition: '', // 所选试题类型
       engineeringWorkList: [], // 工种数据列表
       engineeringWorkChooseValue: '', // 所选工种
       // answerDate: '', // 必答时间
@@ -207,7 +207,7 @@ export default {
   methods: {
     // 初始化数据
     initDataFun() {
-      // 题目类别
+      // 试题类型
       this.typeConditionList = [
         { name: '不限', id: '' },
         ...this.GET_EXAM_QUESTION_TYPE_CONDITION,
@@ -244,7 +244,7 @@ export default {
           ); // 获取工种信息
           // 需要拼接到请求地址后面的参数
           let urlParams = {
-            categoryid: this.questionType, // 题目类目ID
+            categoryid: this.questionType, // 试题类别ID
             engineertypeid: values.engineeringWorkChooseValue, // 工种ID
           };
           // 接口Body参数
@@ -254,7 +254,7 @@ export default {
               values.finalAnswerIndexs
             ), // 正确答案
             engineerTypes: [engineerTypeInfo], // 工种信息集合
-            type: this.questionType, // 题目类别ID
+            type: this.questionType, // 试题类型ID
             // tages: [this.answerDate], // 日期
             answers: this.formatQuestionAnswersArr(values), // 选项
           };

+ 13 - 13
src/views/examQuestionManagement/examQusetionCreateTrueOrFalse.vue

@@ -9,24 +9,24 @@
           :loading="loading"
         >
           <a-form-item
-            label="题内容"
+            label="题内容"
             :label-col="labelCol"
             :wrapper-col="wrapperCol"
           >
             <a-textarea
-              placeholder="题内容"
+              placeholder="题内容"
               :auto-size="{ minRows: 3, maxRows: 5 }"
-              :maxLength="1000"
+              :maxLength="500"
               v-decorator="[
                 'content',
                 {
-                  rules: [{ required: true, message: '请输入题内容!' }],
+                  rules: [{ required: true, message: '请输入题内容!' }],
                 },
               ]"
             />
           </a-form-item>
           <div class="question-option">
-            <span class="question-option-title">题选项:</span>
+            <span class="question-option-title">题选项:</span>
           </div>
           <div
             class="question-option-list-row"
@@ -41,7 +41,7 @@
               <a-input
                 placeholder="选项内容"
                 disabled
-                :maxLength="200"
+                :maxLength="100"
                 v-decorator="[
                   `answers-${index}`,
                   {
@@ -77,7 +77,7 @@
             </a-select>
           </a-form-item>
           <a-form-item
-            label="题目分类"
+            label="题类"
             :label-col="labelCol"
             :wrapper-col="wrapperCol"
           >
@@ -159,10 +159,10 @@ export default {
       aquestionAddForm: this.$form.createForm(this, {
         name: 'examQusetionAddPanDuan',
       }),
-      questionType: 'PanDuan', // 题类型:判断题
+      questionType: 'PanDuan', // 题类型:判断题
       optionsList: [{ value: '正确' }, { value: '错误' }], // 选项列表
-      typeConditionList: [], // 题目类别列表
-      typeCondition: '', // 所选题目类别
+      typeConditionList: [], // 试题类型列表
+      typeCondition: '', // 所选试题类型
       engineeringWorkList: [], // 工种数据列表
       engineeringWorkChooseValue: '', // 所选工种
       finalAnswerIndexs: undefined, // 正确答案下标
@@ -183,7 +183,7 @@ export default {
   methods: {
     // 初始化数据
     initDataFun() {
-      // 题目类别
+      // 试题类型
       this.typeConditionList = [
         { name: '不限', id: '' },
         ...this.GET_EXAM_QUESTION_TYPE_CONDITION,
@@ -205,7 +205,7 @@ export default {
           ); // 获取工种信息
           // 需要拼接到请求地址后面的参数
           let urlParams = {
-            categoryid: this.questionType, // 题目类目ID
+            categoryid: this.questionType, // 试题类别ID
             engineertypeid: values.engineeringWorkChooseValue, // 工种ID
           };
           // 接口Body参数
@@ -215,7 +215,7 @@ export default {
               values.finalAnswerIndexs
             ), // 正确答案
             engineerTypes: [engineerTypeInfo], // 工种信息集合
-            type: this.questionType, // 题目类别ID
+            type: this.questionType, // 试题类型ID
             answers: this.formatQuestionAnswersArr(values), // 选项
           };
           this.httpQuestFun(urlParams, params);

+ 2 - 2
src/views/login/index.vue

@@ -12,7 +12,7 @@
       <a-form-item>
         <a-input
           placeholder="账户"
-          :maxLength="20"
+          :maxLength="10"
           v-decorator="[
             'userName',
             {
@@ -32,7 +32,7 @@
       <a-form-item>
         <a-input-password
           placeholder="密码"
-          :maxLength="20"
+          :maxLength="10"
           v-decorator="[
             'password',
             {