{"remainingRequest":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xypm-web\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xypm-web\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\xypm-web\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xypm-web\\src\\views\\projectManagent\\PersonnelManagement.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xypm-web\\src\\views\\projectManagent\\PersonnelManagement.vue","mtime":1675214578105},{"path":"D:\\jenkins\\workspace\\xypm-web\\babel.config.js","mtime":1675214572901},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/web.dom.iterable\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\nimport personInfo from \"./modules/dialog/personInfoDialog.vue\";\nvar EipUserDialog = function EipUserDialog() {\n  return import('@/components/dialog/EipUserDialog.vue');\n};\nvar roleMenuAuth = function roleMenuAuth() {\n  return import(\"./modules/dialog/roleMenuAuth\");\n};\nexport default {\n  name: 'personnelManagement',\n  components: {\n    // eipUserSelector,\n    EipUserDialog: EipUserDialog,\n    roleMenuAuth: roleMenuAuth,\n    personInfo: personInfo\n  },\n  data: function data() {\n    return {\n      searchForm: {\n        fullname: ''\n      },\n      //顶部搜索参数\n      dataBaseOptions: {\n        dataBaseId: '',\n        tableName: '',\n        // 必填\n        tableSchema: ''\n      },\n      originAPIOptions: {\n        url: '',\n        // 列表请求接口地址\n        method: 'post',\n        // 列表请求方法\n        moduleRoot: '' // 微服务根路径\n      },\n\n      exportQuery: {},\n      data: [],\n      //表格数据\n      pageResult: {\n        page: 1,\n        pageSize: 20,\n        total: 0\n      },\n      form: {},\n      dialogTitle: '添加',\n      dialogVisible: false,\n      loading: false,\n      rules: {},\n      personId: null\n    };\n  },\n  computed: {\n    deleteUrl: function deleteUrl() {\n      return window.context.cqxy + '/biz/projectManagement/projectPersonnel/v1/delete';\n    }\n  },\n  methods: {\n    //添加临时人员信息\n    handleAddPerson: function handleAddPerson() {\n      this.$refs.userInfo.open();\n    },\n    //重置\n    handleReset: function handleReset() {\n      this.searchForm.fullname = '';\n      this.$refs['searchForm'].resetFields();\n      this.$refs.AtTable.load();\n    },\n    handleAdd: function handleAdd() {\n      this.dialogTitle = '添加';\n      this.$refs.eipDialog.showDialog();\n    },\n    handleSelect: function handleSelect(selection) {},\n    handleDialogCancel: function handleDialogCancel() {\n      this.dialogVisible = false;\n    },\n    handleDialogClose: function handleDialogClose() {\n      this.dialogVisible = false;\n    },\n    handleRowDBClick: function handleRowDBClick(data) {\n      // this.form = data\n      // this.dialogTitle = '修改'\n      // this.dialogVisible = true\n    },\n    loadPersonnel: function loadPersonnel() {\n      this.$refs.AtTable.load();\n    },\n    handleOnConfirm: function handleOnConfirm(row) {\n      var _this = this;\n      if (row.length !== 0) {\n        var arr = [];\n        row.forEach(function (item) {\n          arr.push(item.id);\n        });\n        var str = arr.join(',');\n        this.form.personnelId = str;\n        this.loading = true;\n        this.form.projectId = this.$route.params.id;\n        this.$http.post('${cqxy}/biz/projectManagement/projectPersonnel/v1/save', this.form).then(function (res) {\n          if (res.data.state) {\n            _this.$message.success(res.data.message);\n            _this.dialogVisible = false;\n            _this.$refs.AtTable.load();\n          } else {\n            _this.$message.error(res.data.message);\n          }\n          _this.loading = false;\n        });\n      }\n    },\n    handleDialogSubmit: function handleDialogSubmit() {\n      var _this2 = this;\n      this.loading = true;\n      this.form.projectId = this.$route.params.id;\n      this.$http.post('${cqxy}/biz/projectManagement/projectPersonnel/v1/save', this.form).then(function (res) {\n        if (res.data.state) {\n          _this2.$refs.form.resetFields();\n          _this2.$message.success(res.data.message);\n          _this2.dialogVisible = false;\n          _this2.$refs.AtTable.load();\n        } else {\n          _this2.$message.error(res.data.message);\n        }\n        _this2.loading = false;\n      });\n    },\n    findinfo: function findinfo() {\n      var _this3 = this;\n      var query = [];\n      query.push({\n        property: 'pp.PROJECT_ID_',\n        value: this.$route.params.id\n      });\n      var search = {\n        fullname_: this.searchForm.fullname\n      };\n      for (var i in search) {\n        if (search[i]) {\n          query.push({\n            group: 'advance',\n            operation: 'LIKE',\n            property: i,\n            relation: 'AND',\n            value: search[i]\n          });\n        }\n      }\n      var data = {\n        pageBean: {\n          page: 1,\n          pageSize: 20,\n          showTotal: true\n        },\n        querys: query\n      };\n      console.log(data);\n      this.$http.post('${cqxy}/biz/projectManagement/projectPersonnel/v1/page', data).then(function (resp) {\n        var response = resp.data.value;\n        _this3.data = response.rows;\n        _this3.pageResult = {\n          page: response.page,\n          pageSize: response.pageSize,\n          total: response.total\n        };\n      });\n    },\n    loadData: function loadData(param, cb) {\n      var _this4 = this;\n      param.querys = [];\n      param.querys.push({\n        property: 'pp.PROJECT_ID_',\n        value: this.$route.params.id\n      });\n      this.$http.post('${cqxy}/biz/projectManagement/projectPersonnel/v1/page', param).then(function (resp) {\n        var response = resp.data.value;\n        _this4.data = response.rows;\n        _this4.pageResult = {\n          page: response.page,\n          pageSize: response.pageSize,\n          total: response.total\n        };\n      }, function (error) {\n        reject(error);\n      }).finally(function () {\n        if (cb) {\n          cb();\n        }\n      });\n    },\n    handleCommand: function handleCommand(row) {\n      console.log(row, 'eeeeeeee');\n      this.$refs.roleMenuAuth.showDialog(row);\n    }\n  }\n};",null]}