sunlupeng 1 年間 前
コミット
6ce3ab0583
2 ファイル変更4 行追加49 行削除
  1. 4 39
      src/views/oa/universal/detail.vue
  2. 0 10
      src/views/oa/universal/edit.vue

+ 4 - 39
src/views/oa/universal/detail.vue

@@ -144,52 +144,17 @@ export default {
   data() {
     return {
       loading:false,
-      codeId: undefined, // 编号
       reason: '',
       auditRule: {
         reason: [{ required: true, message: '审批建议不能为空', trigger: 'blur' }],
       },
-      tasks: [
-        {
-          "id": "f514d489-0afd-11ed-a881-427d68986255",
-          "name": "领导审批",
-          "claimTime": null,
-          "createTime": 1658632137000,
-          "suspensionState": null,
-          "processInstance": {
-            "id": "f51374f1-0afd-11ed-a881-427d68986255",
-            "name": "OA 请假",
-            "startUserId": 1,
-            "startUserNickname": "芋道源码",
-            "processDefinitionId": "oa_leave:3:f07c1280-0afd-11ed-a881-427d68986255"
-          },
-          "endTime": null,
-          "durationInMillis": null,
-          "result": 1,
-          "reason": null,
-          "definitionKey": "task-01",
-          "assigneeUser": {
-            "id": 1,
-            "nickname": "芋道源码",
-            "deptId": 103,
-            "deptName": "研发部门"
-          },
-          "parentTaskId": null,
-          "children": null
-        }
-      ],
-      peopleList: ['林动', '萧炎', '叶凡'],
+      tasks: [],
+      peopleList: [],
       // 表单参数
-      form: {
-        loginName: '张三',
-        dept: '软件工程院',
-      },
+      form: {},
     };
   },
   created() {
-    // this.codeId = this.id || this.$route.query.id;
-    // console.log(this.codeId);
-    // this.getDetail();
   },
   watch: {
     id: {
@@ -285,7 +250,7 @@ export default {
       }
       return '';
     },
-    /** 获得请假信息 */
+    /** 获得详情信息 */
     getDetail(val) {
       this.$parent.$parent.detailLoading = true
       getDetail(val).then(response => {

+ 0 - 10
src/views/oa/universal/edit.vue

@@ -87,7 +87,6 @@ import {getDate} from "@/utils/dateUtils";
 import { getUserProfile } from "@/api/system/user";
 import { listDept } from "@/api/system/dept";
 import PeopleSelect from "@/components/PeopleSelect/index.vue";
-import FileUpload from "@/components/FileUpload";
 import Treeselect from "@riophae/vue-treeselect";
 import "@riophae/vue-treeselect/dist/vue-treeselect.css";
 import { getBaseHeader } from "@/utils/request";
@@ -95,7 +94,6 @@ export default {
   name: 'Index',
   components: {
     PeopleSelect,
-    FileUpload,
     Treeselect,
   },
   props: {
@@ -114,7 +112,6 @@ export default {
       // 上传的地址
       fileUrl: process.env.VUE_APP_BASE_API + '/admin-api/infra/file/uploaData',
       // fileUrl: 'http://192.168.100.249:48080/admin-api/infra/file/uploaData',
-      codeId: undefined, // 编号
       // 部门树选项
       posOptions: [],
       deptOptions: [],
@@ -145,7 +142,6 @@ export default {
       type: 'multiple',
       //是否打开选人组件,默认不打开
       peopleOpen: false,
-      fileAccept: ".crt",
       queryParams: {
         name: undefined,
         status: undefined
@@ -154,12 +150,6 @@ export default {
   },
 
   created() {
-    // this.codeId = this.id || this.$route.query.id;
-    // console.log(this.codeId);
-    // if (this.codeId) {
-    //   this.getDetail();
-    // }
-
     this.getDeptList();
   },
   watch: {