Files
tekelanew_acs/acs/nladmin-ui/node_modules/.cache/babel-loader/ae298b0241cb4d5d3b737377469c6e24.json
2024-12-05 09:33:18 +08:00

1 line
3.7 KiB
JSON

{"remainingRequest":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\babel-loader\\lib\\index.js!D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\src\\views\\generator\\index.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\src\\views\\generator\\index.vue","mtime":1732871026694},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\babel.config.js","mtime":1732871025888},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1732872824662},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\babel-loader\\lib\\index.js","mtime":1732872825017},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1732872824662},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\vue-loader\\lib\\index.js","mtime":1732872825835}],"contextDependencies":[],"result":["\"use strict\";\n\nvar _interopRequireDefault = require(\"D:/data/hanguodoushan/acs2/nladmin-ui/node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\nvar _interopRequireWildcard = require(\"D:/data/hanguodoushan/acs2/nladmin-ui/node_modules/@babel/runtime/helpers/interopRequireWildcard.js\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nrequire(\"core-js/modules/web.dom.iterable\");\nvar _generator = require(\"@/api/generator/generator\");\nvar _index = require(\"@/utils/index\");\nvar _crud = _interopRequireWildcard(require(\"@crud/crud\"));\nvar _RR = _interopRequireDefault(require(\"@crud/RR.operation\"));\nvar _CRUD = _interopRequireDefault(require(\"@crud/CRUD.operation\"));\nvar _Pagination = _interopRequireDefault(require(\"@crud/Pagination\"));\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 _default = exports.default = {\n name: 'GeneratorIndex',\n components: {\n pagination: _Pagination.default,\n crudOperation: _CRUD.default,\n rrOperation: _RR.default\n },\n cruds: function cruds() {\n return (0, _crud.default)({\n url: 'api/generator/tables'\n });\n },\n mixins: [(0, _crud.presenter)(), (0, _crud.header)()],\n data: function data() {\n return {\n syncLoading: false\n };\n },\n created: function created() {\n this.crud.optShow = {\n add: false,\n edit: false,\n del: false,\n download: false\n };\n },\n methods: {\n toGen: function toGen(table_name) {\n var _this = this;\n // 生成代码\n (0, _generator.generator)(table_name, 0).then(function (data) {\n _this.$notify({\n title: '生成成功',\n type: 'success',\n duration: 2500\n });\n });\n },\n toDownload: function toDownload(table_name) {\n // 打包下载\n (0, _generator.generator)(table_name, 2).then(function (data) {\n (0, _index.downloadFile)(data, table_name, 'zip');\n });\n },\n sync: function sync() {\n var _this2 = this;\n var tables = [];\n this.crud.selections.forEach(function (val) {\n tables.push(val.table_name);\n });\n this.syncLoading = true;\n (0, _generator.sync)(tables).then(function () {\n _this2.crud.refresh();\n _this2.crud.notify('同步成功', _crud.default.NOTIFICATION_TYPE.SUCCESS);\n _this2.syncLoading = false;\n }).then(function () {\n _this2.syncLoading = false;\n });\n }\n }\n};",null]}