{"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\\uc\\Tenant\\TenantTypeManager.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\views\\uc\\Tenant\\TenantTypeManager.vue","mtime":1675071993381},{"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":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar tenantAuthManager = function tenantAuthManager() {\n  return import(\"@/views/uc/Tenant/TenantAuthManager.vue\");\n};\n\nexport default {\n  components: {\n    tenantAuthManager: tenantAuthManager\n  },\n  data: function data() {\n    return {\n      dialogVisible: false,\n      data: [],\n      pageResult: {\n        page: 1,\n        pageSize: 50,\n        total: 0\n      },\n      tenantType: {\n        code: '',\n        name: ''\n      }\n    };\n  },\n  mounted: function mounted() {\n    this.$validator = this.$root.$validator;\n  },\n  methods: {\n    rowClick: function rowClick(row, column, event) {\n      this.$refs.htTable.$refs.htTable.toggleRowSelection(row);\n    },\n    showDialog: function showDialog(id) {\n      var _this = this;\n\n      if (id) {\n        this.$http.get(\"${uc}/uc/tenantType/v1/getJson?id=\" + \"\".concat(id)).then(function (resp) {\n          _this.tenantType = resp.data;\n          _this.dialogVisible = true;\n        }, function (error) {\n          reject(error);\n        });\n      } else {\n        this.dialogVisible = true;\n      }\n    },\n    beforeCloseDialog: function beforeCloseDialog() {\n      this.tenantType = {\n        code: '',\n        name: ''\n      };\n      this.dialogVisible = false;\n    },\n    loadData: function loadData(param, cb) {\n      var _this2 = this;\n\n      this.$http.post(\"${uc}/uc/tenantType/v1/listJson\", param).then(function (resp) {\n        var response = resp.data;\n        _this2.data = response.rows;\n        _this2.pageResult = {\n          page: response.page,\n          pageSize: response.pageSize,\n          total: response.total\n        };\n      }, function (error) {\n        reject(error);\n      }).finally(function () {\n        return cb();\n      });\n    },\n    afterSaveData: function afterSaveData() {\n      var _this3 = this;\n\n      setTimeout(function () {\n        _this3.beforeCloseDialog();\n\n        _this3.$refs.htTable.load();\n      }, 500);\n    },\n    handleCommand: function handleCommand(params) {\n      switch (params.command) {\n        case \"edit\":\n          this.showDialog(params.row.id);\n          break;\n\n        case \"delete\":\n          break;\n\n        case \"assignUser\":\n          this.$refs.tenantAuthManager.showDialog(params.row.id, '');\n          break;\n\n        case \"setDefault\":\n          this.setDefault(params.row.code);\n          break;\n\n        default:\n          break;\n      }\n    },\n    setDefault: function setDefault(code) {\n      var that = this;\n      this.$http.post(\"${uc}/uc/tenantType/v1/setDefault?code=\" + code).then(function (result) {\n        var resp = result.data;\n\n        if (resp.state) {\n          that.$message.success(resp.message);\n          that.$refs.htTable.load();\n        } else {\n          that.$message.error(resp.message);\n        }\n      }, function (error) {\n        reject(error);\n      });\n    }\n  }\n};",null]}