{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xq-web-fvue\\src\\views\\main\\organizationPermission\\LatitudeManagement.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\src\\views\\main\\organizationPermission\\LatitudeManagement.vue","mtime":1667327530012},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\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\nimport org from \"@/api/org.js\";\nimport EipUserDialog from \"@/components/dialog/EipUserDialog.vue\";\n\n\nexport default {\n components: {\n // EipUserDialog\n },\n computed: {\n demDeleteUrl: function() {\n return window.context.uc + \"/api/demension/v1/dem/deleteDemByIds\";\n },\n saveRoleUrl: function() {\n let preUrl = window.context.uc + \"/api/demension/v1/dem\";\n if (this.demension.id) {\n preUrl += \"/updateDem\";\n } else {\n preUrl += \"/addDem\";\n }\n return preUrl;\n },\n requestMethod: function() {\n return this.demension.id ? \"PUT\" : \"POST\";\n }\n },\n data() {\n return {\n dialogVisible: false,\n dialogVisibleMenuPerm: false,\n demension: {\n name:\"\",\n code:\"\"\n },\n isSubmit: false,\n data: [],\n pageResult: {\n page: 1,\n pageSize: 50,\n total: 0\n },\n loadDataUrl: \"\",\n menuPerm: {},\n allowRoles: [],\n readOnly: false,\n dialogTitle:''\n };\n },\n mounted() {\n this.$validator = this.$root.$validator;\n },\n methods: {\n rowClick(row, column, event){\n this.$refs.htTable.$refs.htTable.toggleRowSelection(row);\n },\n setDemDefault(row){\n org.setDemDefault(row.code).then(() => {\n this.$refs.htTable.load();\n })\n },\n handleClose() {\n this.dialogVisible = false;\n this.loadDataUrl = \"\";\n },\n handleCloseMenuPerm() {\n this.dialogVisibleMenuPerm = false;\n },\n showDialog(row) {\n this.dialogVisible = true;\n if (row) {\n this.dialogTitle = '编辑维度';\n row.description = row.demDesc;\n this.demension = JSON.parse(JSON.stringify(row));\n } else {\n this.dialogTitle = '添加维度';\n this.demension = {name:\"\",code:\"\",description:''};\n }\n },\n dialogCancle(dialogVisible) {\n this[dialogVisible] = false;\n },\n loadData(param, cb) {\n org.getDemListAll(param)\n .then(response => {\n this.data = response.rows;\n this.pageResult = {\n page: response.page,\n pageSize: response.pageSize,\n total: response.total\n };\n })\n .finally(() => cb());\n },\n handleCommand(params) {\n this.readOnly = false\n switch (params.command) {\n case \"showInfo\":\n this.readOnly = true\n this.showDialog(params.row)\n break;\n case \"assignMenu\":\n this.showDialog(params.row)\n break;\n case \"setDemDefault\":\n this.setDemDefault(params.row)\n break;\n default:\n break;\n }\n },\n async beforeSaveData() {\n this.isSubmit = true;\n },\n afterSaveData() {\n this.dialogVisible = false;\n this.$refs.htTable.load();\n },\n afterDelete() {\n this.$refs.htTable.load();\n }\n }\n};\n",null]}