{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xq-web-bpm\\src\\views\\SecurityCenter\\SecManage.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\views\\SecurityCenter\\SecManage.vue","mtime":1675071992772},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.function.name\";\nimport _defineProperty from \"D:/jenkins/workspace/xq-web-bpm/node_modules/@babel/runtime/helpers/esm/defineProperty\";\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 portal from '@/api/portal.js';\nimport { mapState, mapActions } from \"vuex\";\nexport default {\n  data: function data() {\n    var _ref;\n\n    return _ref = {\n      PortalSysAreas: {\n        name: 'name'\n      },\n      saveMethod: 'POST',\n      header: {},\n      fileSuffix: '.lic',\n      seacrh: [{\n        label: '单位名称',\n        prop: 'dept_name_'\n      }],\n      loadings: {\n        updAcutasLoading: false,\n        sequence: false\n      },\n      data: [],\n      pageResult: {\n        page: 1,\n        pageSize: 50,\n        total: 0\n      },\n      url: {\n        edit: \"\".concat(window.context.portal, \"/uc/AuthorizationModel/v1/save\"),\n        uplod: \"\".concat(window.context.portal, \"/uc/AuthorizationModel/v1/uploadFileLic\")\n      },\n      sysCache: {}\n    }, _defineProperty(_ref, \"saveMethod\", 'POST'), _defineProperty(_ref, \"logDialogVisible\", false), _ref;\n  },\n  mounted: function mounted() {\n    this.$validator = this.$root.$validator;\n    this.header = {\n      'Authorization': \"Bearer \".concat(this.$store.state.login.currentUser.token)\n    };\n  },\n  methods: {\n    errorDown: function errorDown(err, file, fileList) {\n      this.$message({\n        type: 'error',\n        message: '文件上传失败'\n      });\n    },\n    uploadOk: function uploadOk(response, file, fileList) {\n      this.$message({\n        type: response.state,\n        message: \"\".concat(file.name, \" \\u6587\\u4EF6\\u4E0A\\u4F20\\u6210\\u529F\")\n      });\n      this.loadData();\n    },\n    filterSuffix: function filterSuffix(file) {\n      console.log('token', this.header);\n\n      if (file.name.substring(file.name.indexOf('.')) !== this.fileSuffix) {\n        this.$message({\n          type: 'error',\n          message: '注意上传格式 lic'\n        });\n        return false;\n      }\n    },\n    loadData: function loadData(param, cb) {\n      var _this = this;\n\n      portal.AuthorizationModel(param).then(function (res) {\n        console.log(res, '11');\n        _this.data = res.rows;\n        _this.pageResult = {\n          page: res.page,\n          pageSize: res.pageSize,\n          total: res.total\n        };\n        _this.$refs.htTable.loading = false;\n      }).finally(function () {\n        return cb();\n      });\n    },\n    downloadFile: function downloadFile(id) {\n      var headers = {\n        'Content-type': 'application/x-www-form-urlencoded'\n      };\n      var params = 'id=' + id;\n      var dt = {\n        data: params,\n        method: 'post',\n        responseType: 'blob',\n        headers: headers\n      };\n      portal.downloadAuthorizationFile(dt).then(function (res) {\n        console.log(res, '2222');\n      });\n    },\n    handleShow: function handleShow(row) {\n      this.logDialogVisible = true;\n      this.PortalSysAreas = row;\n      console.log(this.PortalSysAreas); // this.$http\n      //   .put(window.context.portal + '/sys/sysLogs/v1/get/' + id)\n      //   .then((res) => {\n      //     this.log = res.data\n      //   })\n    },\n    afterSaveData: function afterSaveData() {\n      var _this2 = this;\n\n      setTimeout(function () {\n        _this2.beforeCloseDialog();\n\n        _this2.$refs.htTable.load();\n      }, 500);\n    },\n    beforeCloseDialog: function beforeCloseDialog() {\n      // this.refresh()\n      this.PortalSysAreas = {};\n      this.logDialogVisible = false;\n      this.loadData();\n    }\n  }\n};",null]}