1 line
7.0 KiB
JSON
1 line
7.0 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\\components\\Crud\\CRUD.operation.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\src\\components\\Crud\\CRUD.operation.vue","mtime":1732871026457},{"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 _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/es6.array.find\");\nrequire(\"core-js/modules/web.dom.iterable\");\nvar _crud = _interopRequireWildcard(require(\"@crud/crud\"));\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\nfunction sortWithRef(src, ref) {\n var result = Object.assign([], ref);\n var cursor = -1;\n src.forEach(function (e) {\n var idx = result.indexOf(e);\n if (idx === -1) {\n cursor += 1;\n result.splice(cursor, 0, e);\n } else {\n cursor = idx;\n }\n });\n return result;\n}\nvar _default2 = exports.default = {\n mixins: [(0, _crud.crud)()],\n props: {\n permission: {\n type: Object,\n default: function _default() {\n return {};\n }\n },\n hiddenColumns: {\n type: Array,\n default: function _default() {\n return [];\n }\n },\n ignoreColumns: {\n type: Array,\n default: function _default() {\n return [];\n }\n }\n },\n data: function data() {\n return {\n tableColumns: [],\n allColumnsSelected: true,\n allColumnsSelectedIndeterminate: false,\n tableUnwatcher: null,\n // 忽略下次表格列变动\n ignoreNextTableColumnsChange: false\n };\n },\n watch: {\n 'crud.props.table': function crudPropsTable() {\n var _this = this;\n this.updateTableColumns();\n this.tableColumns.forEach(function (column) {\n if (_this.hiddenColumns.indexOf(column.property) !== -1) {\n column.visible = false;\n _this.updateColumnVisible(column);\n }\n });\n },\n 'crud.props.table.store.states.columns': function crudPropsTableStoreStatesColumns() {\n this.updateTableColumns();\n }\n },\n created: function created() {\n this.crud.updateProp('searchToggle', true);\n },\n methods: {\n updateTableColumns: function updateTableColumns() {\n var _this2 = this;\n var table = this.crud.getTable();\n if (!table) {\n this.tableColumns = [];\n return;\n }\n var cols = null;\n var columnFilter = function columnFilter(e) {\n return e && e.type === 'default' && e.property && _this2.ignoreColumns.indexOf(e.property) === -1;\n };\n var refCols = table.columns.filter(columnFilter);\n if (this.ignoreNextTableColumnsChange) {\n th
|