{"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\\system\\Backupmanagement\\BackupManager.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\views\\system\\Backupmanagement\\BackupManager.vue","mtime":1675071993069},{"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 _defineProperty from \"D:/jenkins/workspace/xq-web-bpm/node_modules/@babel/runtime/helpers/esm/defineProperty\";\n\nvar _methods;\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 BackupTable from '@/views/system/Backupmanagement/backupTable.vue';\nimport RestTable from '@/views/system/Backupmanagement/restTable';\nimport { Loading } from 'element-ui';\nexport default {\n name: 'BackupManager',\n components: {\n BackupTable: BackupTable,\n RestTable: RestTable\n },\n data: function data() {\n return {\n seacrh: [{\n label: '服务器类型',\n prop: 'uc_backup_datasource.system_type_'\n }, {\n label: '登录账号',\n prop: 'uc_backup_datasource.system_user_'\n }],\n dialogVisible: false,\n activeName: 'first',\n backupsshow: false,\n tableshow: true,\n data: [],\n cmOptions2: {\n value: '',\n mode: 'x-sql',\n readOnly: false,\n smartIndent: true,\n tabSize: 1,\n theme: 'base16-light',\n lineNumbers: true,\n line: true,\n lineWrapping: true\n },\n queryrow: {},\n pageResult: {\n page: 1,\n pageSize: 50,\n total: 0\n },\n dbTypeList: [{\n value: 'mysql',\n driverName: 'com.mysql.cj.jdbc.Driver',\n url: 'jdbc:mysql://主机:3306/数据库名?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull',\n validationquery: 'select 1 from dual'\n }, {\n value: 'oracle',\n driverName: 'oracle.jdbc.OracleDriver',\n url: 'jdbc:oracle:thin:@主机:1521:数据库实例',\n validationquery: 'select 1 from dual'\n }, {\n value: 'mssql2012',\n driverName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver',\n url: 'jdbc:sqlserver://主机:1433;databaseName=数据库名;',\n validationquery: 'select 1'\n }, {\n value: 'mssql2008',\n driverName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver',\n url: 'jdbc:sqlserver://主机:1433;databaseName=数据库名;',\n validationquery: 'select 1'\n }, {\n value: 'pgsql',\n driverName: 'org.postgresql.Driver',\n url: 'jdbc:postgresql://主机:5432/数据库名',\n validationquery: 'select 1'\n }, {\n value: 'dm8',\n driverName: 'dm.jdbc.driver.DmDriver',\n url: 'jdbc:dm://192.168.1.120:5236/EIP725_DM',\n validationquery: 'select 1 from dual'\n }],\n currentProperty: {\n encrypt: 1\n },\n delurl: '',\n row: '',\n addform: {\n backupCommond: '',\n backupType: '1',\n cron: '',\n dbDriver: '',\n dbName: '',\n dbPort: '',\n dbPwd: '',\n dbType: 'mysql',\n dbUrl: 'jdbc:mysql://主机:3306/数据库名?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull',\n dbUser: '',\n id: '',\n reductionCommond: '',\n systemIp: '',\n systemPwd: '',\n systemType: 'linux',\n systemUser: ''\n },\n saveUrl: '',\n rows: '',\n isSubmit: false\n };\n },\n mounted: function mounted() {\n var _this = this;\n\n this.$bus.on('comback', function () {\n _this.backupsshow = false;\n _this.tableshow = true;\n _this.activeName = 'first';\n });\n },\n methods: (_methods = {\n rowClick: function rowClick(row, column, event) {\n this.$refs.htTable.$refs.htTable.toggleRowSelection(row);\n },\n loadData: function loadData(param, cb) {\n var _this2 = this;\n\n // 加载请求渲染表格\n // param.sorter = [\n // {\n // group: 'main',\n // operation: 'EQUAL',\n // parentGroup: '',\n // property: 'create_time_',\n // relation: 'AND',\n // value: {},\n // },\n // ],\n portal.Backup(param).then(function (response) {\n _this2.data = response.rows;\n _this2.pageResult = {\n page: response.page,\n pageSize: response.pageSize,\n total: response.total\n };\n }).finally(function () {\n return cb();\n });\n },\n selectDict: function selectDict(selection, row) {\n this.queryrow = row;\n },\n beforeCloseDialog: function beforeCloseDialog() {\n this.dialogVisible = false;\n },\n see: function see(row) {\n var _this3 = this;\n\n this.tableshow = false;\n this.$nextTick(function () {\n _this3.$bus.emit('seerow', row.id);\n });\n this.backupsshow = true;\n },\n handleClick: function handleClick(tab, event) {},\n showDialog: function showDialog(row) {\n // console.log(row)\n if (row == 1) {\n this.rows = 1;\n } else {\n this.addform = row;\n }\n\n this.dialogVisible = true;\n },\n backupsbtn: function backupsbtn(row) {\n var _this4 = this;\n\n var data = this.qs.stringify({\n id: row.id\n });\n portal.Backupfunction(data).then(function (res) {\n if (res.state == true) {\n _this4.$message({\n message: res.message,\n type: 'success'\n });\n }\n });\n },\n handleClose: function handleClose() {\n this.dialogVisible = false;\n this.loadData();\n this.addform = {\n backupCommond: '',\n backupType: '1',\n cron: '',\n dbDriver: '',\n dbName: '',\n dbPort: '',\n dbPwd: '',\n dbType: 'mysql',\n dbUrl: 'jdbc:mysql://主机:3306/数据库名?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull',\n dbUser: '',\n id: '',\n reductionCommond: '',\n systemIp: '',\n systemPwd: '',\n systemType: 'linux',\n systemUser: ''\n };\n }\n }, _defineProperty(_methods, \"beforeCloseDialog\", function beforeCloseDialog() {\n this.dialogVisible = false;\n this.addform = {\n backupCommond: '',\n backupType: '1',\n cron: '',\n dbDriver: '',\n dbName: '',\n dbPort: '',\n dbPwd: '',\n dbType: 'mysql',\n dbUrl: 'jdbc:mysql://主机:3306/数据库名?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull',\n dbUser: '',\n id: '',\n reductionCommond: '',\n systemIp: '',\n systemPwd: '',\n systemType: 'linux',\n systemUser: ''\n };\n }), _defineProperty(_methods, \"afterSaveData\", function afterSaveData() {\n this.loadData();\n this.dialogVisible = false;\n this.addform = {\n backupCommond: '',\n backupType: '1',\n cron: '',\n dbDriver: '',\n dbName: '',\n dbPort: '',\n dbPwd: '',\n dbType: 'mysql',\n dbUrl: 'jdbc:mysql://主机:3306/数据库名?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull',\n dbUser: '',\n id: '',\n reductionCommond: '',\n systemIp: '',\n systemPwd: '',\n systemType: 'linux',\n systemUser: ''\n };\n }), _defineProperty(_methods, \"beforeSaveData\", function beforeSaveData() {\n this.isSubmit = true;\n\n if (this.rows == 1) {\n this.saveUrl = window.context.portal + \"/uc/backupDatasource/v1/\";\n } else {\n this.saveUrl = window.context.portal + \"/uc/backupDatasource/v1/updateBackupDatasource\";\n }\n }), _defineProperty(_methods, \"dbchange\", function dbchange(val) {\n for (var i in this.dbTypeList) {\n if (val === this.dbTypeList[i].value) {\n this.addform.dbUrl = this.dbTypeList[i].url;\n }\n } // console.log(this.addform.dburl)\n\n }), _methods),\n beforeDestroy: function beforeDestroy() {\n this.$bus.off('comback');\n }\n};",null]}