Przeglądaj źródła

入职登记-新增-title更改

jbb 1 rok temu
rodzic
commit
66df265483
2 zmienionych plików z 4 dodań i 4 usunięć
  1. 2 2
      src/mixins/JeecgListMixin.js
  2. 2 2
      src/views/oa/EnrollmentList.vue

+ 2 - 2
src/mixins/JeecgListMixin.js

@@ -203,9 +203,9 @@ export const JeecgListMixin = {
         }
       });
     },
-    handleEdit: function (record) {
+    handleEdit: function (record,state) {
       this.$refs.modalForm.edit(record);
-      this.$refs.modalForm.title = "编辑";
+      this.$refs.modalForm.title = state=='新增'?'新增':"编辑";
       this.$refs.modalForm.disableSubmit = false;
     },
     handleAdd: function () {

+ 2 - 2
src/views/oa/EnrollmentList.vue

@@ -170,7 +170,7 @@
     <enrollment-modal ref="modalForm" @ok="modalFormOk"></enrollment-modal>
 
     
-    <a-modal title="新增用户选择" :width="450" :visible="newUserVisible" :closable="false" :maskClosable="false">
+    <a-modal title="新增员工选择" :width="450" :visible="newUserVisible" :closable="false" :maskClosable="false">
       <template slot="footer">
         <a-button type="primary" @click="handleAddUser">确认</a-button>
         <a-button type="primary" @click="newUserVisible = false">取消</a-button>
@@ -401,7 +401,7 @@
           username : u.user_id,
           realname: u.user_cn_name,
         }
-        this.handleEdit(user);
+        this.handleEdit(user,'新增');
         this.newUserVisible = false;
       },
       handleSubmit(id){