Browse Source

bug修改

yanshichao 11 months ago
parent
commit
f8e4538b90
2 changed files with 7 additions and 4 deletions
  1. 2 2
      src/api/file/file.js
  2. 5 2
      src/views/task/components/project.vue

+ 2 - 2
src/api/file/file.js

@@ -1,8 +1,8 @@
 import request from '@/utils/request'
 
- let domain = 'http://localhost:10050';
+ // let domain = 'http://localhost:10050';
 
-  //let domain = 'http://oa.aivfo.com:36000';
+  let domain = 'http://oa.aivfo.com:36000';
 
 /**
  * 上传文件

+ 5 - 2
src/views/task/components/project.vue

@@ -311,7 +311,7 @@ export default {
         this.projectOptions = this.handleTree(response.data, "id");
       });
       getDeptUserTree('1').then(res => {
-        this.userList = res.datas
+        this.userList = res.data
       })
       getAuditUsers().then(res => {
         this.auditUsers = res.data
@@ -353,7 +353,10 @@ export default {
     submitForm() {
       this.$refs["form"].validate(valid => {
         if (valid) {
-          this.form['auditConfigs'] = this.$refs.auditModule.getAuditConfigs()
+          if(this.$refs.auditModule){
+            this.form['auditConfigs'] = this.$refs.auditModule.getAuditConfigs()
+          }
+
           if (this.form.id != undefined) {
             if (this.form.id === this.form.parentId) {
               this.$message.error("上级结构不能自身节点")