Explorar o código

不再提醒修改密码

wucl hai 10 meses
pai
achega
c5c6d1ec82
Modificáronse 3 ficheiros con 17 adicións e 2 borrados
  1. 3 0
      src/api/modules/user.js
  2. 12 1
      src/views/home/index.vue
  3. 2 1
      src/views/major/todoDetail.vue

+ 3 - 0
src/api/modules/user.js

@@ -80,5 +80,8 @@ export default {
   // 根据部门名称获取部门及其下辖部门人员
   byDepartmentName(params){
     return request.get(`user/byDepartmentName/${params}`)
+  },
+  notRemind(){
+    return request.get(`user/notRemind`);
   }
 }

+ 12 - 1
src/views/home/index.vue

@@ -21,7 +21,8 @@
         </el-form-item>
       </el-form>
       <div slot="footer" class="dialog-footer">
-        <el-button @click="notChagePsw()">暂不修改</el-button>
+        <el-button type='success' @click="notRemind()">不再提示</el-button>
+        <el-button type="warning" @click="notChagePsw()">暂不修改</el-button>
         <el-button type="primary" @click="savePass('dialogForm')">修 改</el-button>
       </div>
     </el-dialog>
@@ -170,7 +171,17 @@
       notChagePsw(){
         this.dialogFormVisible = false;
         this.jumpMenu(this.activeItem)
+      },
+      notRemind(){
+        this.$api.user.notRemind().then(res=>{
+          if (res.code ===200 && res.data){
+              console.log("Not remind successful")
+          }
+        });
+        this.dialogFormVisible = false;
+        this.jumpMenu(this.activeItem)
       }
+
     }
   }
 </script>

+ 2 - 1
src/views/major/todoDetail.vue

@@ -680,7 +680,7 @@
               <el-col :xs="24" :sm="12" :lg="6" :span="6"
                 v-if="currentNode.nodeCode === 'QUOTATION_FEEDBACK' || currentNode.nodeCode === 'STATEMENT_FEEDBACK'">
                 <div style="text-align:left;margin-right:30px">
-                  <el-button type="success" round @click="saveFeedback()" :disabled="validFeed">保存反馈</el-button>
+                  <el-button type="success" round @click="saveFeedback()" :disabled="validFeed">保存并提交</el-button>
                 </div>
               </el-col>
             </el-row>
@@ -2613,6 +2613,7 @@ export default {
           this.nodeBusinessInfo.ifPay = this.feedback.isPay;
           this.$refs.board.getInstanceQueue();
           this.taskRecordDTO = {};
+          this.$refs.board.commit('PASS');
         } else {
           this.$notify({
             title: '失败',