瀏覽代碼

所有的审校改为审核

natasha 6 天之前
父節點
當前提交
0ecb9fd0aa

+ 1 - 1
src/api/book.js

@@ -31,7 +31,7 @@ export function GetBookBaseInfo(data) {
  * @param {string} data.book_id - 教材ID
  * @param {number} data.node_deep_mode - 节点深度模式
  * @param {'true'|'false'} data.is_contain_producer - 是否包含制作人信息
- * @param {'true'|'false'} data.is_contain_auditor - 是否包含审人信息
+ * @param {'true'|'false'} data.is_contain_auditor - 是否包含审人信息
  */
 export function ChapterGetBookChapterStructExpandList(data) {
   return http.post(

+ 1 - 1
src/api/list.js

@@ -31,7 +31,7 @@ export function queryOrgUserList(data) {
   return http.post(`${process.env.VUE_APP_EepServer}?MethodName=page_query-PageQueryMyOrgUserList_OrgManager`, data);
 }
 
-// 分页查询我的项目列表(审人)
+// 分页查询我的项目列表(审人)
 export function PageQueryMyProjectList_Auditor(data) {
   return http.post(`${process.env.VUE_APP_EepServer}?MethodName=page_query-PageQueryMyProjectList_Auditor`, data);
 }

+ 13 - 13
src/api/project.js

@@ -41,14 +41,14 @@ export function GetMyBookCoursewareTaskList(data) {
  * @param {object} data
  * @param {string} data.id 课件ID
  * @param {'true' | 'false'} data.is_contain_producer 是否包含制作人信息
- * @param {'true' | 'false'} data.is_contain_audit 是否包含审人信息
+ * @param {'true' | 'false'} data.is_contain_audit 是否包含审人信息
  */
 export function GetBookCoursewareInfo(data) {
   return http.post(`${process.env.VUE_APP_EepServer}?MethodName=project_task_manager-GetBookCoursewareInfo`, data);
 }
 
 /**
- * @description 得到审流程节点列表
+ * @description 得到审流程节点列表
  * @param {object} data
  */
 export function GetAuditFlowNodeList(data) {
@@ -64,7 +64,7 @@ export function SetEnableFirstAuditNode(data) {
 }
 
 /**
- * @description 添加审节点
+ * @description 添加审节点
  * @param {object} data
  */
 export function AddAuditNode(data) {
@@ -72,7 +72,7 @@ export function AddAuditNode(data) {
 }
 
 /**
- * @description 删除审节点
+ * @description 删除审节点
  * @param {object} data
  */
 export function DeleteAuditNode(data) {
@@ -80,7 +80,7 @@ export function DeleteAuditNode(data) {
 }
 
 /**
- * @description 设置审
+ * @description 设置审
  * @param {object} data
  */
 export function SetAuditor(data) {
@@ -96,7 +96,7 @@ export function SetMainAuditor(data) {
 }
 
 /**
- * @description 得到章节节点审人列表
+ * @description 得到章节节点审人列表
  * @param {object} data
  * @param {string} data.book_chapter_node_id 教材章节结构中的节点ID(包含章节或课件)
  */
@@ -105,7 +105,7 @@ export function GetChapterNodeAuditorList(data) {
 }
 
 /**
- * @description 得到我的教材课件任务列表(审任务)
+ * @description 得到我的教材课件任务列表(审任务)
  * @param {object} data
  * @param {string} data.project_id 项目ID
  */
@@ -129,7 +129,7 @@ export function GetMyBookCoursewareTaskList_Edit(data) {
 }
 
 /**
- * @description 提交教材课件到审流程
+ * @description 提交教材课件到审流程
  * @param {object} data
  * @param {string} data.id 课件ID
  */
@@ -141,10 +141,10 @@ export function SubmitBookCoursewareToAuditFlow(data) {
 }
 
 /**
- * @description 完成教材课件当前流程节点的审
+ * @description 完成教材课件当前流程节点的审
  * @param {object} data
  * @param {string} data.id 课件ID
- * @param {'true' | 'false'} data.is_pass 是否通过,只有当审节点是终审是,这个字段才有作用
+ * @param {'true' | 'false'} data.is_pass 是否通过,只有当审节点是终审是,这个字段才有作用
  */
 export function FinishCoursewareCurFlowNodeAudit(data) {
   return http.post(
@@ -195,7 +195,7 @@ export function SetProjectLabel(data) {
 }
 
 /**
- * @description 添加审批注
+ * @description 添加审批注
  * @param {object} data
  * @param {string} data.courseware_id 课件ID
  * @param {string} data.content 审批内容
@@ -205,7 +205,7 @@ export function AddCoursewareAuditRemark(data) {
 }
 
 /**
- * @description 获取审批注列表
+ * @description 获取审批注列表
  * @param {object} data
  * @param {string} data.courseware_id 课件ID
  */
@@ -214,7 +214,7 @@ export function GetCoursewareAuditRemarkList(data) {
 }
 
 /**
- * @description 删除审批注
+ * @description 删除审批注
  * @param {object} data
  * @param {string} data.id 批注ID
  */

+ 1 - 1
src/components/AuditRemark.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="audit-remark">
-    <h5>审批注</h5>
+    <h5>审批注</h5>
     <ul v-if="remarkList.length > 0">
       <li
         v-for="{ id: remarkId, content, remark_person_name, remark_time, content_select, component_id } in remarkList"

+ 5 - 5
src/components/CommonPreview.vue

@@ -327,7 +327,7 @@
     </div>
 
     <el-dialog
-      title="添加课件审批注"
+      title="添加课件审批注"
       :visible="visible"
       width="680px"
       :close-on-click-modal="false"
@@ -473,7 +473,7 @@ export default {
       type: String,
       default: '',
     },
-    // 是否是审页面
+    // 是否是审页面
     isAudit: {
       type: Boolean,
       default: false,
@@ -515,7 +515,7 @@ export default {
     ];
 
     if (this.isShowAudit) {
-      sidebarIconList.push({ icon: 'audit', title: '审批注', handle: 'openAudit', param: {} });
+      sidebarIconList.push({ icon: 'audit', title: '审批注', handle: 'openAudit', param: {} });
     }
 
     return {
@@ -829,7 +829,7 @@ export default {
       this.getCoursewareAuditRemarkList(nodeId);
       this.select_node = nodeId;
     },
-    // 审批注列表
+    // 审批注列表
     getCoursewareAuditRemarkList(id) {
       this.remark_list = [];
       GetCoursewareAuditRemarkList({
@@ -869,7 +869,7 @@ export default {
     dialogClose(type) {
       this[`visible${type}`] = false;
     },
-    // 添加审批注
+    // 添加审批注
     addCoursewareAuditRemark(id) {
       this.submit_loading = true;
       AddCoursewareAuditRemark({

+ 5 - 5
src/router/modules/project.js

@@ -39,16 +39,16 @@ const personalWorkPage = {
       },
       component: () => import('@/views/personal_workbench/edit_task/edit/index.vue'),
     },
-    // 我的审任务
+    // 我的审任务
     {
       path: '/personal_workbench/check_task',
       name: 'PersonalWorkbenchCheck',
       meta: {
-        title: '我的审任务',
+        title: '我的审任务',
       },
       component: () => import('@/views/personal_workbench/check_task/index.vue'),
     },
-    // 我的审校任务 -> 审校
+    // 我的审核任务 -> 审核
     {
       path: '/personal_workbench/check_task/audit/:id',
       name: 'PersonalWorkbenchCheckAudit',
@@ -63,12 +63,12 @@ const personalWorkPage = {
       },
       component: () => import('@/views/personal_workbench/project/index.vue'),
     },
-    // 我的项目 -> 制作与审管理
+    // 我的项目 -> 制作与审管理
     {
       path: `/personal_workbench/production_editorial/:id`,
       name: 'ProductionEditorial',
       meta: {
-        title: '制作与审管理',
+        title: '制作与审管理',
       },
       component: () => import('@/views/personal_workbench/project/ProductionEditorialManage.vue'),
     },

+ 8 - 8
src/views/personal_workbench/check_task/audit/index.vue

@@ -4,13 +4,13 @@
 
     <CommonPreview :id="id" ref="preview" :project-id="project_id" :is-audit="true" type="audit">
       <template #operator="{ courseware }">
-        <span v-if="isTrue(courseware.is_can_add_audit_remark)" class="link" @click="addRemark">添加审批注</span>
+        <span v-if="isTrue(courseware.is_can_add_audit_remark)" class="link" @click="addRemark">添加审批注</span>
         <span
           v-if="isTrue(courseware.is_can_finish_audit)"
           class="link"
           @click="finishCoursewareCurFlowNodeAudit('false', 'complete', courseware.cur_audit_flow_node_type)"
         >
-          审完成
+          审完成
         </span>
         <span
           v-if="isTrue(courseware.is_can_audit_pass)"
@@ -51,17 +51,17 @@ export default {
       project_id: this.$route.query.project_id || '',
       isSubmitting: false,
       actionTip: {
-        complete: '审完成',
-        pass: '审通过',
-        reject: '审驳回',
+        complete: '审完成',
+        pass: '审通过',
+        reject: '审驳回',
       },
       isTrue,
     };
   },
   methods: {
     /**
-     * 提交课件到审流程
-     * @param {'true'|'false'} is_pass - 是否通过审
+     * 提交课件到审流程
+     * @param {'true'|'false'} is_pass - 是否通过审
      * @param {'complete'|'pass'|'reject'} action - 操作类型
      * @param {string} flow_node_type - 审核流程节点类型
      */
@@ -101,7 +101,7 @@ export default {
       this.$router.push({ path: `/personal_workbench/check_task` });
     },
 
-    // 点击添加审意见
+    // 点击添加审意见
     addRemark() {
       this.$refs.preview.addRemark();
     },

+ 6 - 6
src/views/personal_workbench/check_task/index.vue

@@ -4,7 +4,7 @@
 
     <div class="check-main">
       <div class="textbook-container">
-        <div class="title">待审的教材</div>
+        <div class="title">待审的教材</div>
         <div class="list-header">
           <span class="cell">编号</span>
           <span class="cell">名称</span>
@@ -28,7 +28,7 @@
           <span class="cell">最后编辑人</span>
           <span class="cell">最后编辑时间</span>
           <span class="cell">制作人</span>
-          <span class="cell">我的审节点</span>
+          <span class="cell">我的审节点</span>
           <span class="cell">状态</span>
         </div>
         <div ref="chapterList" class="chapter-list">
@@ -98,7 +98,7 @@ export default {
   },
   methods: {
     /**
-     * 查询我的审项目列表
+     * 查询我的审项目列表
      */
     queryMyProjectList_Auditor() {
       PageQueryMyProjectList_Auditor({ page_capacity: 50, cur_page: 1 }).then(({ project_list }) => {
@@ -143,7 +143,7 @@ export default {
     /**
      * 计算章节名称样式
      * @param {number} deep - 节点深度
-     * @param {boolean} isMyAuditTask - 是否是我的审任务
+     * @param {boolean} isMyAuditTask - 是否是我的审任务
      * @returns {Object} - 样式对象
      */
     computedNameStyle(deep, isMyAuditTask) {
@@ -155,7 +155,7 @@ export default {
     },
     /**
      * 计算章节路径样式
-     * @param {boolean} isMyAuditTask - 是否是我的审任务
+     * @param {boolean} isMyAuditTask - 是否是我的审任务
      * @returns {Object} - 样式对象
      */
     computedPathStyle(isMyAuditTask) {
@@ -166,7 +166,7 @@ export default {
     /**
      * 导航到章节
      * @param {string} id - 章节ID
-     * @param {boolean} isMyAuditTask - 是否是我的审任务
+     * @param {boolean} isMyAuditTask - 是否是我的审任务
      */
     navigateToChapter(id, isMyAuditTask) {
       if (!isMyAuditTask) return;

+ 1 - 1
src/views/personal_workbench/common/menu.vue

@@ -33,7 +33,7 @@ export default {
       { key: '/project_manage/book', name: '已上架教材' },
     ];
 
-    const onlyMenuList = [{ key: '/personal_workbench/check_task', name: '我的审任务' }];
+    const onlyMenuList = [{ key: '/personal_workbench/check_task', name: '我的审任务' }];
 
     // 教材制作增加模板库标签
     const subMenuLists = [

+ 3 - 3
src/views/personal_workbench/edit_task/preview/index.vue

@@ -14,7 +14,7 @@
         <span class="link"></span>
         <span v-if="isTrue(courseware.is_can_start_edit)" class="link" @click="editTask()">开始编辑</span>
         <span v-if="isTrue(courseware.is_can_submit_audit)" class="link" @click="submitCoursewareToAuditFlow()">
-          提交审
+          提交审
         </span>
         <span class="link" @click="goBackBookList()">返回教材列表</span>
       </template>
@@ -65,11 +65,11 @@ export default {
       });
     },
     /**
-     * 提交课件到审流程
+     * 提交课件到审流程
      */
     submitCoursewareToAuditFlow() {
       SubmitBookCoursewareToAuditFlow({ id: this.$refs.preview.select_node }).then(() => {
-        this.$message.success('课件已提交审');
+        this.$message.success('课件已提交审');
         this.$refs.preview.getBookCoursewareInfo(this.$refs.preview.select_node);
       });
     },

+ 7 - 7
src/views/personal_workbench/project/ProductionEditorialManage.vue

@@ -6,13 +6,13 @@
       <span class="name">{{ project_info.name }}</span>
       <div class="courseware">
         <div class="audit-step">
-          <span>审步骤:</span>
+          <span>审步骤:</span>
           <span v-for="(node, index) in audit_node_list" :key="index" class="audit-node">
             {{ node }}
             <span v-if="index !== audit_node_list.length - 1">→</span>
           </span>
         </div>
-        <span class="link" @click="visibleAuditSteps = true">设置审步骤</span>
+        <span class="link" @click="visibleAuditSteps = true">设置审步骤</span>
         <div class="operator flex">
           <span class="link" @click="openBookUnifiedTitle()">教材标题设置</span>
           <span class="link" @click="openBookUnifiedAttrib()">教材样式设置</span>
@@ -28,7 +28,7 @@
         <span class="title-cell">教材章节结构</span>
         <span class="title-cell">制作人</span>
         <span class="title-cell">交稿日期</span>
-        <span class="title-cell">审人</span>
+        <span class="title-cell">审人</span>
         <span class="title-cell">状态</span>
         <span class="title-cell">最后编辑人</span>
         <span class="title-cell">最后编辑时间</span>
@@ -120,7 +120,7 @@
               修改
             </span>
             <span class="link" @click="openSetProducer(id, producer_list)">设置制作人</span>
-            <span class="link" @click="openSetAuditor(id)">设置审人</span>
+            <span class="link" @click="openSetAuditor(id)">设置审人</span>
             <span
               v-if="is_root !== 'true'"
               class="link danger"
@@ -216,16 +216,16 @@ export default {
       project_info: {}, // 项目基本信息
       member_list: [], // 项目成员列表
       book_info_PBE: {}, // 与项目绑定的的教材实体(project_bind_entity)信息
-      audit_node_list: [], // 审流程节点列表
+      audit_node_list: [], // 审流程节点列表
       node_list: [], // 教材章节结构
       producer: {
         visible: false, // 设置制作人弹窗
         id: '', // 章节ID
         list: [], // 当前章节制作人列表
       },
-      visibleAuditSteps: false, // 设置审步骤弹窗
+      visibleAuditSteps: false, // 设置审步骤弹窗
       auditor: {
-        visible: false, // 设置审人弹窗
+        visible: false, // 设置审人弹窗
         id: '', // 章节ID
       },
       name: {

+ 4 - 4
src/views/personal_workbench/project/components/SetAuditSteps.vue

@@ -1,6 +1,6 @@
 <template>
   <el-dialog
-    title="设置审步骤"
+    title="设置审步骤"
     :visible="visible"
     width="580px"
     :close-on-click-modal="false"
@@ -66,7 +66,7 @@ export default {
       });
     },
     /**
-     * @description 添加审节点
+     * @description 添加审节点
      * @param {string} name - 节点名称
      */
     addAuditNode(name) {
@@ -75,7 +75,7 @@ export default {
       });
     },
     /**
-     * @description 删除审节点
+     * @description 删除审节点
      * @param {string} nodeId - 节点ID
      */
     deleteAuditNode(nodeId) {
@@ -84,7 +84,7 @@ export default {
       });
     },
     addAuditStep() {
-      this.$prompt('', '添加审节点', {
+      this.$prompt('', '添加审节点', {
         confirmButtonText: '确定',
         cancelButtonText: '取消',
       })

+ 12 - 12
src/views/personal_workbench/project/components/SetAuditor.vue

@@ -6,21 +6,21 @@
           {{ scope.$index + 1 }}
         </template>
       </el-table-column>
-      <el-table-column label="审步骤" prop="name" width="120" header-align="center" align="center" />
-      <el-table-column label="审人" width="180" header-align="center" align="center">
+      <el-table-column label="审步骤" prop="name" width="120" header-align="center" align="center" />
+      <el-table-column label="审人" width="180" header-align="center" align="center">
         <template slot-scope="{ row }">
           <span>{{ row.auditor_list.map((auditor) => auditor.name).join(', ') }}</span>
         </template>
       </el-table-column>
-      <el-table-column label="主审人" width="120" header-align="center" align="center">
+      <el-table-column label="主审人" width="120" header-align="center" align="center">
         <template slot-scope="{ row }">
           <span>{{ row?.main_auditor?.name }}</span>
         </template>
       </el-table-column>
       <el-table-column label="操作" fixed="right" header-align="center" align="center">
         <template slot-scope="{ row }">
-          <span class="link" @click="openSetUserDialog(row.id, 'auditor')">设置审人</span>
-          <span class="link" @click="openSetUserDialog(row.id, 'mainAuditor')">设置主审人</span>
+          <span class="link" @click="openSetUserDialog(row.id, 'auditor')">设置审人</span>
+          <span class="link" @click="openSetUserDialog(row.id, 'mainAuditor')">设置主审人</span>
         </template>
       </el-table-column>
     </el-table>
@@ -82,7 +82,7 @@ export default {
   },
   computed: {
     title() {
-      return `设置审人(${this.chapter_node_name_path})`;
+      return `设置审人(${this.chapter_node_name_path})`;
     },
     userList() {
       if (this.user.type === 'auditor') {
@@ -119,26 +119,26 @@ export default {
       this.user.visible = true;
     },
     /**
-     * @description 设置审
+     * @description 设置审
      * @param {object} param0 - 参数对象
-     * @param {string} param0.flow_node_id - 审节点ID
+     * @param {string} param0.flow_node_id - 审节点ID
      * @param {Array<string>} param0.user_id_list - 用户ID列表
      */
     setAuditor({ flow_node_id, user_id_list }) {
       SetAuditor({ book_id: this.bookId, book_chapter_node_id: this.id, flow_node_id, user_id_list }).then(() => {
-        this.$message.success('设置审人成功');
+        this.$message.success('设置审人成功');
         this.getChapterNodeAuditorList();
       });
     },
     /**
-     * @description 设置主审
+     * @description 设置主审
      * @param {object} param0 - 参数对象
-     * @param {string} param0.flow_node_id - 审节点ID
+     * @param {string} param0.flow_node_id - 审节点ID
      * @param {string} param0.user_id - 用户ID
      */
     setMainAuditor({ flow_node_id, user_id }) {
       SetMainAuditor({ book_id: this.bookId, book_chapter_node_id: this.id, flow_node_id, user_id }).then(() => {
-        this.$message.success('设置主审人成功');
+        this.$message.success('设置主审人成功');
         this.getChapterNodeAuditorList();
       });
     },

+ 2 - 2
src/views/personal_workbench/project/components/SetUser.vue

@@ -56,8 +56,8 @@ export default {
       },
       typeList: [
         { type: 'producer', label: '设置制作人', placeholder: '请选择制作人', bindKey: 'id_list', isMultiple: true },
-        { type: 'auditor', label: '设置审校人', placeholder: '请选择审校人', bindKey: 'id_list', isMultiple: true },
-        { type: 'mainAuditor', label: '设置主审校人', placeholder: '请选择主审校人', bindKey: 'id', isMultiple: false },
+        { type: 'auditor', label: '设置审核人', placeholder: '请选择审核人', bindKey: 'id_list', isMultiple: true },
+        { type: 'mainAuditor', label: '设置主审核人', placeholder: '请选择主审核人', bindKey: 'id', isMultiple: false },
       ],
       editEndDate: '',
     };

+ 2 - 2
src/views/personal_workbench/project/index.vue

@@ -19,7 +19,7 @@
           <template slot-scope="{ row }">
             <span class="link" @click="projectInfoManage(row.id, true)">项目信息管理</span>
             <span class="link" @click="productionResourceManage(row.id)">项目资源管理</span>
-            <span class="link" @click="productionEditorialManage(row.id)">制作与审管理</span>
+            <span class="link" @click="productionEditorialManage(row.id)">制作与审管理</span>
             <span class="link danger" @click="deleteProject(row.id)">删除</span>
           </template>
         </el-table-column>
@@ -67,7 +67,7 @@ export default {
       this.$router.push({ path: `/personal_workbench/project_info/${id}`, query: { isManage } });
     },
     /**
-     * 制作与审管理
+     * 制作与审管理
      * @param {string} id - 项目ID
      */
     productionEditorialManage(id) {