Ver código fonte

培训/演练:bug修改, 文书档案页面按钮样式调整

jingyuanchao 1 ano atrás
pai
commit
11703f35be

+ 19 - 15
src/views/core/drill/plan/index.vue

@@ -838,9 +838,9 @@ export default {
             let msg = "";
             if (this.form.planStatus == 1) {
               if (this.form.done == 1) {
-                msg = "因存在已完成任务,本次修改内容将下周期生效,是否确认提交?";
+                msg = "因存在已完成任务,本次修改内容将下周期生效";
               } else {
-                msg = "因不存在已完成任务,本次修改内容将立即生效,是否确认提交?";
+                msg = "因不存在已完成任务,本次修改内容将立即生效";
               }
             } else {
               msg = "是否确认修改?";
@@ -874,13 +874,17 @@ export default {
       let msg = "";
       if (row.planStatus == 0) {
         msg = '是否确认删除名称为"' + row.planName + '"的任务?';
-      } else {
-        if (row.done == 1) {
-          msg =
-            "本次操作将对下周期及以后任务生效,对当前及历史任务不造成影响,是否确认提交?";
+      } else if (row.planStatus == 1) {
+        if (row.planCycle == 1) {
+          msg = "本次删除将强制删除今日所有任务?";
         } else {
-          msg =
-            "本次操作将对当前轮次及以后任务生效,并删除所有历史未完成任务,是否确认提交?";
+          msg = "本次删除将强制删除当前任务时间及以后所有任务";
+        }
+      } else if (row.planStatus == 2) {
+        if (row.planCycle == 1) {
+          msg = "本次删除将强制删除今日所有任务";
+        } else {
+          msg = "本次删除将强制删除当前任务时间及以后所有任务";
         }
       }
       const ids = row.id || this.ids;
@@ -913,7 +917,7 @@ export default {
           });
       } else {
         if (row.planStatus == 0) {
-          msg = "请选择从当前轮次或下周期开始生成任务?";
+          msg = "请选择下发后立即生成或下周期生成任务?";
           this.$refs["DialogThreeState"].show(
             msg,
             (state) => {
@@ -925,16 +929,16 @@ export default {
               }
             },
             {
-              yesText: "当前轮次",//1
+              yesText: "立即生成",//1
               noText: "下周期",//0
               cancelText: "取消下发",
             }
           );
         } else if (row.planStatus == 2) {
           this.$modal
-            .confirm("因存在已完成任务,本次任务下发仅支持下周期生成任务", {
-              confirmButtonText: "下周期",
-              canelButtonText: "取消下发",
+            .confirm("因存在已完成任务,是否确定从下周期生成任务", {
+              confirmButtonText: "确定",
+              canelButtonText: "取消",
             })
             .then(() => {
               publishPlan(row.id, 0);
@@ -952,10 +956,10 @@ export default {
         let msg = "";
         if (row.done == 1) {
           msg =
-            "本次操作将对下周期及以后任务生效,对当前及历史任务不造成影响,是否确认提交?";
+            "因存在已完成任务,撤回后下周期起将不再生成任务";
         } else {
           msg =
-            "本次操作将对当前轮次及以后任务生效,并删除所有历史未完成任务,是否确认提交?";
+            "因存在不已完成任务,撤回后将删除所有生成任务";
         }
         this.$modal
           .confirm(msg)

+ 18 - 14
src/views/core/edu/plan/index.vue

@@ -915,9 +915,9 @@ export default {
             let msg = "";
             if (this.form.planStatus == 1) {
               if (this.form.done == 1) {
-                msg = "因存在已完成任务,本次修改内容将下周期生效,是否确认提交?";
+                msg = "因存在已完成任务,本次修改内容将下周期生效";
               } else {
-                msg = "因不存在已完成任务,本次修改内容将立即生效,是否确认提交?";
+                msg = "因不存在已完成任务,本次修改内容将立即生效";
               }
             } else {
               msg = "是否确认修改?";
@@ -951,13 +951,17 @@ export default {
       let msg = "";
       if (row.planStatus == 0) {
         msg = '是否确认删除名称为"' + row.planName + '"的任务?';
-      } else {
-        if (row.done == 1) {
-          msg =
-            "本次操作将对下周期及以后任务生效,对当前及历史任务不造成影响,是否确认提交?";
+      } else if (row.planStatus == 1) {
+        if (row.planCycle == 1) {
+          msg = "本次删除将强制删除今日所有任务?";
+        } else {
+          msg = "本次删除将强制删除当前任务时间及以后所有任务";
+        }
+      } else if (row.planStatus == 2) {
+        if (row.planCycle == 1) {
+          msg = "本次删除将强制删除今日所有任务";
         } else {
-          msg =
-            "本次操作将对当前轮次及以后任务生效,并删除所有历史未完成任务,是否确认提交?";
+          msg = "本次删除将强制删除当前任务时间及以后所有任务";
         }
       }
       const ids = row.id || this.ids;
@@ -990,7 +994,7 @@ export default {
           });
       } else {
         if (row.planStatus == 0) {
-          msg = "请选择从当前轮次或下周期开始生成任务?";
+          msg = "请选择下发后立即生成或下周期生成任务?";
           this.$refs["DialogThreeState"].show(
             msg,
             (state) => {
@@ -1002,15 +1006,15 @@ export default {
               }
             },
             {
-              yesText: "当前轮次",//1
+              yesText: "立即生成",//1
               noText: "下周期",//0
               cancelText: "取消下发",
             }
           );
         } else if (row.planStatus == 2) {
           this.$modal
-            .confirm("因存在已完成任务,本次任务下发仅支持下周期生成任务", {
-              confirmButtonText: "下周期",
+            .confirm("因存在已完成任务,是否确定从下周期生成任务", {
+              confirmButtonText: "确定",
               canelButtonText: "取消下发",
             })
             .then(() => {
@@ -1034,10 +1038,10 @@ export default {
       let msg = "";
       if (row.done == 1) {
         msg =
-          "本次操作将对下周期及以后任务生效,对当前及历史任务不造成影响,是否确认提交?";
+          "因存在已完成任务,撤回后下周期起将不再生成任务";
       } else {
         msg =
-          "本次操作将对当前轮次及以后任务生效,并删除所有历史未完成任务,是否确认提交?";
+          "因存在不已完成任务,撤回后将删除所有生成任务";
       }
       this.$modal
         .confirm(msg, "提示")

+ 6 - 7
src/views/core/materials/index.vue

@@ -130,6 +130,7 @@
               align="left"
               header-align="center"
               prop="orgName"
+              width="200px"
             />
             <el-table-column
               label="资料名称"
@@ -139,7 +140,7 @@
               :show-overflow-tooltip="true"
             />
 
-            <el-table-column label="资料类型" align="center" prop="knowledgeId">
+            <el-table-column label="资料类型" align="center" prop="knowledgeId" width="130px">
               <template slot-scope="scope">
                 <dict-tag
                   :options="dict.type.edu_materials_type"
@@ -156,6 +157,7 @@
               align="center"
               header-align="center"
               prop="isOpen"
+              width="100px"
             >
               <template slot-scope="scope">
                 <dict-tag
@@ -165,17 +167,14 @@
               </template>
             </el-table-column>
 
-            <el-table-column label="创建人" align="center" prop="createBy" />
-            <el-table-column
-              label="创建时间"
-              align="center"
-              prop="createTime"
+            <el-table-column label="创建人" align="center" prop="createBy"  width="110px"/>
+            <el-table-column label="创建时间" align="center" prop="createTime" width="200px"
             />
             <!--          <el-table-column width="250" scoped-slot="remark" align="center" prop="remark" label="备注"></el-table-column>-->
 
             <el-table-column
               label="操作"
-              width="200"
+              width="250px"
               header-align="center"
               class-name="small-padding fixed-width"
             >

+ 2 - 2
src/views/safetyBook/aqbwbndjh/index.vue

@@ -123,7 +123,7 @@
         </el-table-column>
 
         <el-table-column
-          align="center"
+          align="left"
           class-name="small-padding fixed-width"
           fixed="right"
           label="操作"
@@ -131,7 +131,7 @@
           <template slot-scope="scope">
             <el-button
               v-hasPermi="['core:aqbwbndjh:query']"
-              icon="el-icon-info"
+              icon="el-icon-view"
               size="mini"
               type="text"
               @click="handleInfo(scope.row.id)"

+ 2 - 2
src/views/safetyBook/hsggbsdj/index.vue

@@ -130,7 +130,7 @@
         </el-table-column>
 
         <el-table-column
-          align="center"
+          align="left"
           class-name="small-padding fixed-width"
           fixed="right"
           label="操作"
@@ -147,7 +147,7 @@
             </el-button> -->
             <el-button
               v-hasPermi="['core:hsggbsdj:query']"
-              icon="el-icon-info"
+              icon="el-icon-view"
               size="mini"
               type="text"
               @click="handleInfo(scope.row.id)"

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

@@ -144,14 +144,14 @@
         <el-table-column
           label="操作"
           width="250"
-          align="center"
+          align="left"
           class-name="small-padding fixed-width"
         >
           <template slot-scope="scope">
             <el-button
               size="mini"
               type="text"
-              icon="el-icon-info"
+              icon="el-icon-view"
               @click="handleInfo(scope.row.id)"
               v-hasPermi="['core:book:query']"
               >详情

+ 2 - 2
src/views/safetyBook/newBook/index.vue

@@ -158,14 +158,14 @@
         <el-table-column
           label="操作"
           width="250"
-          align="center"
+          align="left"
           class-name="small-padding fixed-width"
         >
           <template slot-scope="scope">
             <el-button
               size="mini"
               type="text"
-              icon="el-icon-info"
+              icon="el-icon-view"
               @click="handleInfo(scope.row.id)"
               v-hasPermi="['core:safetyBooknew:query']"
               >详情