diff --git a/.env b/.env index b5c472a..9cf9296 100644 --- a/.env +++ b/.env @@ -1,3 +1,3 @@ NODE_ENV=production VUE_APP_PREVIEW=false -VUE_APP_API_BASE_URL=/api \ No newline at end of file +VUE_APP_API_BASE_URL=/dawa \ No newline at end of file diff --git a/.env.development b/.env.development index 166c0bc..03732b7 100644 --- a/.env.development +++ b/.env.development @@ -1,3 +1,3 @@ NODE_ENV=development VUE_APP_PREVIEW=true -VUE_APP_API_BASE_URL=/api \ No newline at end of file +VUE_APP_API_BASE_URL=/dawa \ No newline at end of file diff --git a/.env.preview b/.env.preview index a9e44c8..1cc1dbf 100644 --- a/.env.preview +++ b/.env.preview @@ -1,3 +1,3 @@ NODE_ENV=production VUE_APP_PREVIEW=true -VUE_APP_API_BASE_URL=/api \ No newline at end of file +VUE_APP_API_BASE_URL=/dawa \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 2f68367..136474a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3073,6 +3073,15 @@ "integrity": "sha512-aT6camzM4xEA54YVJYSqxz1kv4IHnQZRtThJJHhUMRExaU5spC7jX5ugSwTaTgJliIgs4VhZOk7htClvQ/LmRA==", "dev": true }, + "adler-32": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/adler-32/-/adler-32-1.2.0.tgz", + "integrity": "sha1-aj5r8KY5ALoVZSgIyxXGgT0aXyU=", + "requires": { + "exit-on-epipe": "~1.0.1", + "printj": "~1.1.0" + } + }, "ajv": { "version": "6.12.6", "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", @@ -3953,6 +3962,11 @@ "file-uri-to-path": "1.0.0" } }, + "blob.js": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/blob.js/-/blob.js-1.0.1.tgz", + "integrity": "sha1-VHtEmyUshVMT6De1PRW0HQAOodI=" + }, "bluebird": { "version": "3.7.2", "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", @@ -4446,6 +4460,16 @@ "lazy-cache": "^1.0.3" } }, + "cfb": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/cfb/-/cfb-1.2.0.tgz", + "integrity": "sha512-sXMvHsKCICVR3Naq+J556K+ExBo9n50iKl6LGarlnvuA2035uMlGA/qVrc0wQtow5P1vJEw9UyrKLCbtIKz+TQ==", + "requires": { + "adler-32": "~1.2.0", + "crc-32": "~1.2.0", + "printj": "~1.1.2" + } + }, "chalk": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", @@ -4855,6 +4879,22 @@ } } }, + "codepage": { + "version": "1.14.0", + "resolved": "https://registry.npmjs.org/codepage/-/codepage-1.14.0.tgz", + "integrity": "sha1-jL4lSBMjVZ19MHVxsP/5HnodL5k=", + "requires": { + "commander": "~2.14.1", + "exit-on-epipe": "~1.0.1" + }, + "dependencies": { + "commander": { + "version": "2.14.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.14.1.tgz", + "integrity": "sha512-+YR16o3rK53SmWHU3rEM3tPAh2rwb1yPcQX5irVn7mb0gXbwuCCrnkbV5+PBfETdfg1vui07nM6PCG1zndcjQw==" + } + } + }, "collection-visit": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz", @@ -5329,8 +5369,7 @@ "core-util-is": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", - "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", - "dev": true + "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" }, "cosmiconfig": { "version": "5.2.1", @@ -5356,6 +5395,15 @@ } } }, + "crc-32": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/crc-32/-/crc-32-1.2.0.tgz", + "integrity": "sha512-1uBwHxF+Y/4yF5G48fwnKq6QsIXheor3ZLPT80yGBV1oEUwpPojlEhQbWKVw1VwcTQyMGHK1/XMmTjmlsmTTGA==", + "requires": { + "exit-on-epipe": "~1.0.1", + "printj": "~1.1.0" + } + }, "create-ecdh": { "version": "4.0.4", "resolved": "https://registry.npmjs.org/create-ecdh/-/create-ecdh-4.0.4.tgz", @@ -7439,6 +7487,11 @@ "integrity": "sha1-BjJjj42HfMghB9MKD/8aF8uhzQw=", "dev": true }, + "exit-on-epipe": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/exit-on-epipe/-/exit-on-epipe-1.0.1.tgz", + "integrity": "sha512-h2z5mrROTxce56S+pnvAV890uu7ls7f1kEvVGJbw1OlFH3/mlJ5bkXu0KRyW94v37zzHPiUd55iLn3DA7TjWpw==" + }, "expand-brackets": { "version": "2.1.4", "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz", @@ -7814,6 +7867,11 @@ "schema-utils": "^2.5.0" } }, + "file-saver": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/file-saver/-/file-saver-2.0.5.tgz", + "integrity": "sha512-P9bmyZ3h/PRG+Nzga+rbdI4OEpNDzAVyy74uVO9ATgzLK6VtAsYybF/+TOCvrc0MO793d6+42lLyZTw7/ArVzA==" + }, "file-uri-to-path": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz", @@ -8015,6 +8073,11 @@ "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", "dev": true }, + "frac": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/frac/-/frac-1.1.2.tgz", + "integrity": "sha512-w/XBfkibaTl3YDqASwfDUqkna4Z2p9cFSr1aHDt0WoMTECnRfBOv2WArlZILlqgWlmdIlALXGpM2AOhEk5W3IA==" + }, "fragment-cache": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz", @@ -8780,6 +8843,11 @@ "dev": true, "optional": true }, + "immediate": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/immediate/-/immediate-3.0.6.tgz", + "integrity": "sha1-nbHb0Pr43m++D13V5Wu2BigN5ps=" + }, "import-cwd": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/import-cwd/-/import-cwd-2.1.0.tgz", @@ -10932,6 +11000,24 @@ "nopt": "^5.0.0" } }, + "js-export-excel": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/js-export-excel/-/js-export-excel-1.1.4.tgz", + "integrity": "sha512-19m7e3Gnn4CRfHXoFrLYj4fFfJ/KpvI7HRRn25p4GXYD+AlTV+1oU24NH6S904Ksi44tSx7futxhouOPAQ22oQ==", + "requires": { + "blob.js": "^1.0.1", + "file-saver": "^1.3.3", + "script-loader": "0.7.2", + "xlsx": "0.16.3" + }, + "dependencies": { + "file-saver": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/file-saver/-/file-saver-1.3.8.tgz", + "integrity": "sha512-spKHSBQIxxS81N/O21WmuXA2F6wppUCsutpzenOeZzOCCJ5gEfcbqJP983IrpLXzYmXnMUa6J03SubcNPdKrlg==" + } + } + }, "js-message": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/js-message/-/js-message-1.0.7.tgz", @@ -11104,6 +11190,17 @@ "verror": "1.10.0" } }, + "jszip": { + "version": "3.7.1", + "resolved": "https://registry.npmjs.org/jszip/-/jszip-3.7.1.tgz", + "integrity": "sha512-ghL0tz1XG9ZEmRMcEN2vt7xabrDdqHHeykgARpmZ0BiIctWxM47Vt63ZO2dnp4QYt/xJVLLy5Zv1l/xRdh2byg==", + "requires": { + "lie": "~3.3.0", + "pako": "~1.0.2", + "readable-stream": "~2.3.6", + "set-immediate-shim": "~1.0.1" + } + }, "killable": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/killable/-/killable-1.0.1.tgz", @@ -11263,6 +11360,14 @@ "type-check": "~0.3.2" } }, + "lie": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/lie/-/lie-3.3.0.tgz", + "integrity": "sha512-UaiMJzeWRlEujzAuw5LokY1L5ecNQYZKfmyZ9L7wDHb/p5etKaxXhohBcrw0EYby+G/NA52vRSN4N39dxHAIwQ==", + "requires": { + "immediate": "~3.0.5" + } + }, "lines-and-columns": { "version": "1.1.6", "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.1.6.tgz", @@ -12702,8 +12807,7 @@ "pako": { "version": "1.0.11", "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz", - "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==", - "dev": true + "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==" }, "parallel-transform": { "version": "1.2.0", @@ -13742,6 +13846,11 @@ } } }, + "printj": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/printj/-/printj-1.1.2.tgz", + "integrity": "sha512-zA2SmoLaxZyArQTOPj5LXecR+RagfPSU5Kw1qP+jkWeNlrq+eJZyY2oS68SU1Z/7/myXM4lo9716laOFAVStCQ==" + }, "process": { "version": "0.11.10", "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", @@ -13751,8 +13860,7 @@ "process-nextick-args": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", - "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", - "dev": true + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" }, "progress": { "version": "2.0.3", @@ -13992,6 +14100,11 @@ } } }, + "raw-loader": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/raw-loader/-/raw-loader-0.5.1.tgz", + "integrity": "sha1-DD0L6u2KAclm2Xh793goElKpeao=" + }, "react-is": { "version": "16.13.1", "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", @@ -14071,7 +14184,6 @@ "version": "2.3.7", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", - "dev": true, "requires": { "core-util-is": "~1.0.0", "inherits": "~2.0.3", @@ -14085,8 +14197,7 @@ "isarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", - "dev": true + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=" } } }, @@ -14539,8 +14650,7 @@ "safe-buffer": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" }, "safe-regex": { "version": "1.1.0", @@ -14620,6 +14730,14 @@ "ajv-keywords": "^3.5.2" } }, + "script-loader": { + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/script-loader/-/script-loader-0.7.2.tgz", + "integrity": "sha512-UMNLEvgOAQuzK8ji8qIscM3GIrRCWN6MmMXGD4SD5l6cSycgGsCo0tX5xRnfQcoghqct0tjHjcykgI1PyBE2aA==", + "requires": { + "raw-loader": "~0.5.1" + } + }, "select": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/select/-/select-1.1.2.tgz", @@ -14775,6 +14893,11 @@ "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", "dev": true }, + "set-immediate-shim": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz", + "integrity": "sha1-SysbJ+uAip+NzEgaWOXlb1mfP2E=" + }, "set-value": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/set-value/-/set-value-2.0.1.tgz", @@ -15277,6 +15400,14 @@ "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", "dev": true }, + "ssf": { + "version": "0.11.2", + "resolved": "https://registry.npmjs.org/ssf/-/ssf-0.11.2.tgz", + "integrity": "sha512-+idbmIXoYET47hH+d7dfm2epdOMUDjqcB4648sTZ+t2JwoyBFL/insLfB/racrDmsKB3diwsDA696pZMieAC5g==", + "requires": { + "frac": "~1.1.2" + } + }, "sshpk": { "version": "1.16.1", "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz", @@ -15507,7 +15638,6 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dev": true, "requires": { "safe-buffer": "~5.1.0" } @@ -16474,8 +16604,7 @@ "util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", - "dev": true + "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" }, "util.promisify": { "version": "1.1.1", @@ -17752,11 +17881,21 @@ "resolved": "https://registry.npmjs.org/window-size/-/window-size-0.1.0.tgz", "integrity": "sha1-VDjNLqk7IC76Ohn+iIeu58lPnJ0=" }, + "wmf": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wmf/-/wmf-1.0.2.tgz", + "integrity": "sha512-/p9K7bEh0Dj6WbXg4JG0xvLQmIadrner1bi45VMJTfnbVHsc7yIajZyoSoK60/dtVBs12Fm6WkUI5/3WAVsNMw==" + }, "wolfy87-eventemitter": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/wolfy87-eventemitter/-/wolfy87-eventemitter-5.1.0.tgz", "integrity": "sha1-NcGsDdGsDBXjXZgVCPwiCEoToBE=" }, + "word": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/word/-/word-0.3.0.tgz", + "integrity": "sha512-OELeY0Q61OXpdUfTp+oweA/vtLVg5VDOXh+3he3PNzLGG/y0oylSOC1xRVj0+l4vQ3tj/bB1HVHv1ocXkQceFA==" + }, "word-wrap": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", @@ -17871,6 +18010,29 @@ "async-limiter": "~1.0.0" } }, + "xlsx": { + "version": "0.16.3", + "resolved": "https://registry.npmjs.org/xlsx/-/xlsx-0.16.3.tgz", + "integrity": "sha512-LInZ1OK6vpe+Em8XDZ5gDH3WixARwxI7UWc+3chLeafI6gUwECEgL43k4Tjbs1uRfkxpM7wQFy5DLE0hFBRqRw==", + "requires": { + "adler-32": "~1.2.0", + "cfb": "^1.1.4", + "codepage": "~1.14.0", + "commander": "~2.17.1", + "crc-32": "~1.2.0", + "exit-on-epipe": "~1.0.1", + "ssf": "~0.11.2", + "wmf": "~1.0.1", + "word": "~0.3.0" + }, + "dependencies": { + "commander": { + "version": "2.17.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.17.1.tgz", + "integrity": "sha512-wPMUt6FnH2yzG95SA6mzjQOEKUU3aLaDEmzs1ti+1E9h+CsrZghRlqEM/EJ4KscsQVG8uNN4uVreUeT8+drlgg==" + } + } + }, "xml-name-validator": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz", diff --git a/package.json b/package.json index b29405f..2176fb1 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,9 @@ "axios": "^0.19.0", "core-js": "^3.1.2", "enquire.js": "^2.1.6", + "file-saver": "^2.0.5", + "js-export-excel": "^1.1.4", + "jszip": "^3.7.1", "lodash.clonedeep": "^4.5.0", "lodash.get": "^4.4.2", "lodash.pick": "^4.4.0", diff --git a/src/App.vue b/src/App.vue index 070f28a..1a4c900 100644 --- a/src/App.vue +++ b/src/App.vue @@ -20,7 +20,6 @@ export default { // 只是为了切换语言时,更新标题 const { title } = this.$route.meta title && (setDocumentTitle(`${i18nRender(title)} - ${domTitle}`)) - return this.$i18n.getLocaleMessage(this.$store.getters.lang).antLocale } } diff --git a/src/api/bms/brand.js b/src/api/bms/brand.js new file mode 100644 index 0000000..1fa46ec --- /dev/null +++ b/src/api/bms/brand.js @@ -0,0 +1,60 @@ +import request from '@/utils/request' +const brandApi = { + add: '/bms/brand/add', + get: '/bms/brand/get', + update: '/bms/brand/update', + del: '/bms/brand/delete', + page: '/bms/brand/page', + list: '/bms/brand/listByCategory', + updateStatus: '/bms/brand/updateStatus' +} + +export function brandAdd (params) { + return request({ + url: brandApi.add, + method: 'post', + data: params + }) +} +export function brandGet (params) { + return request({ + url: brandApi.get, + method: 'post', + data: params + }) +} +export function brandUpdate (params) { + return request({ + url: brandApi.update, + method: 'post', + data: params + }) +} +export function brandDelete (params) { + return request({ + url: brandApi.del, + method: 'post', + data: params + }) +} +export function brandPage (params) { + return request({ + url: brandApi.page, + method: 'post', + data: params + }) +} +export function brandList (params) { + return request({ + url: brandApi.list, + method: 'post', + data: params + }) +} +export function brandUpdateStatus (params) { + return request({ + url: brandApi.updateStatus, + method: 'post', + data: params + }) +} diff --git a/src/api/bms/businessModel.js b/src/api/bms/businessModel.js new file mode 100644 index 0000000..799152f --- /dev/null +++ b/src/api/bms/businessModel.js @@ -0,0 +1,45 @@ +import request from '@/utils/request' +const businessModelApi = { + add: '/bms/businessModel/save', + get: '/bms/businessModel/get', + update: '/bms/businessModel/update', + del: '/bms/businessModel/delete', + page: '/bms/businessModel/page', + list: '/bms/businessModel/list' +} + +export function add (params) { + return request({ + url: businessModelApi.add, + method: 'post', + data: params + }) +} +export function get (params) { + return request({ + url: businessModelApi.get, + method: 'post', + data: params + }) +} +export function update (params) { + return request({ + url: businessModelApi.update, + method: 'post', + data: params + }) +} +export function del (params) { + return request({ + url: businessModelApi.del, + method: 'post', + data: params + }) +} +export function list (params) { + return request({ + url: businessModelApi.list, + method: 'post', + data: params + }) +} diff --git a/src/api/bms/catalog.js b/src/api/bms/catalog.js new file mode 100644 index 0000000..106712a --- /dev/null +++ b/src/api/bms/catalog.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' +const catalogApi = { + add: '/bms/catalog/add', + update: '/bms/catalog/update', + del: '/bms/catalog/delete', + page: '/bms/catalog/page', + get: '/bms/catalog/get' +} + +export function catalogAdd (params) { + return request({ + url: catalogApi.add, + method: 'post', + data: params + }) +} +export function catalogUpdate (params) { + return request({ + url: catalogApi.update, + method: 'post', + data: params + }) +} +export function catalogDel (params) { + return request({ + url: catalogApi.del, + method: 'post', + data: params + }) +} +export function catalogPage (params) { + return request({ + url: catalogApi.page, + method: 'post', + data: params + }) +} +export function catalogGet (params) { + return request({ + url: catalogApi.get, + method: 'post', + data: params + }) +} diff --git a/src/api/bms/category.js b/src/api/bms/category.js new file mode 100644 index 0000000..817fe3c --- /dev/null +++ b/src/api/bms/category.js @@ -0,0 +1,60 @@ +import request from '@/utils/request' + +const api = { + listStoreCategory: '/bms/category/listStoreCategory', + add: '/bms/category/add', + update: '/bms/category/update', + delete: '/bms/category/delete', + page: '/bms/category/pageCategory', + get: '/bms/category/get', + updateStatus: '/bms/category/updateStatus' +} +export function listStoreCategory (params) { + return request({ + url: api.listStoreCategory, + method: 'post', + data: params + }) +} +export function addCategory (params) { + return request({ + url: api.add, + method: 'post', + data: params + }) +} +export function updateCategory (params) { + return request({ + url: api.update, + method: 'post', + data: params + }) +} +export function deleteCategory (params) { + return request({ + url: api.delete, + method: 'post', + data: params + }) +} +export function pageCategory (params) { + return request({ + url: api.page, + method: 'post', + data: params + }) +} +export function getCategory (params) { + return request({ + url: api.get, + method: 'post', + data: params + }) +} +export function updateStatusCategory (params) { + return request({ + url: api.updateStatus, + method: 'post', + data: params + }) +} diff --git a/src/api/bms/corporation.js b/src/api/bms/corporation.js new file mode 100644 index 0000000..8e7b3df --- /dev/null +++ b/src/api/bms/corporation.js @@ -0,0 +1,60 @@ +import request from '@/utils/request' + +const CorporationApi = { + add: '/bms/corporation/add', + get: '/bms/corporation/get', + update: '/bms/corporation/update', + del: '/bms/corporation/delete', + page: '/bms/corporation/page', + list: '/bms/corporation/list', + updateStatus: '/bms/corporation/updateStatus' +} +export function corporationAdd (params) { + return request({ + url: CorporationApi.add, + method: 'post', + data: params + }) +} +export function corporationPage (params) { + return request({ + url: CorporationApi.page, + method: 'post', + data: params + }) +} +export function corporationUpdate (params) { + return request({ + url: CorporationApi.update, + method: 'post', + data: params + }) +} +export function corporationDelete (params) { + return request({ + url: CorporationApi.del, + method: 'post', + data: params + }) +} +export function corporationList (params) { + return request({ + url: CorporationApi.list, + method: 'post', + data: params + }) +} +export function corporationGet (params) { + return request({ + url: CorporationApi.get, + method: 'post', + data: params + }) +} +export function updateStatus (params) { + return request({ + url: CorporationApi.updateStatus, + method: 'post', + data: params + }) +} diff --git a/src/api/bms/deliverMethod.js b/src/api/bms/deliverMethod.js new file mode 100644 index 0000000..5e24f3d --- /dev/null +++ b/src/api/bms/deliverMethod.js @@ -0,0 +1,11 @@ +import request from '@/utils/request' +const deliverMethodApi = { + list: '/bms/deliverMethod/list' +} +export function listDeliverMethod (params) { + return request({ + url: deliverMethodApi.list, + method: 'post', + data: params + }) +} diff --git a/src/api/bms/division.js b/src/api/bms/division.js new file mode 100644 index 0000000..53ac6e9 --- /dev/null +++ b/src/api/bms/division.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +const divisionApi = { + add: '/bms/division/save', + get: '/bms/division/get', + update: '/bms/division/update', + del: '/bms/division/delete', + listDivision: '/bms/division/listByParentCode' +} +export function divisionAdd (params) { + return request({ + url: divisionApi.add, + method: 'post', + data: params + }) +} +export function divisionGet (params) { + return request({ + url: divisionApi.get, + method: 'post', + data: params + }) +} +export function divisionUpdate (params) { + return request({ + url: divisionApi.update, + method: 'post', + data: params + }) +} +export function divisionDelete (params) { + return request({ + url: divisionApi.del, + method: 'post', + data: params + }) +} +export function listDivision (params) { + return request({ + url: divisionApi.listDivision, + method: 'post', + data: params + }) +} diff --git a/src/api/bms/mall.js b/src/api/bms/mall.js new file mode 100644 index 0000000..4d7824d --- /dev/null +++ b/src/api/bms/mall.js @@ -0,0 +1,78 @@ +import request from '@/utils/request' + +const api = { + add: '/bms/mall/save', + get: '/bms/mall/get', + update: '/bms/mall/update', + del: '/bms/mall/delete', + page: '/bms/mall/page', + list: '/bms/mall/list', + updateStatus: '/bms/mall/updateStatus', + corporationList: '/bms/corporation/list', + listByUserType: '/bms/mall/listByUserType' +} +export function add (params) { + return request({ + url: api.add, + method: 'post', + data: params + }) +} +export function get (params) { + return request({ + url: api.get, + method: 'post', + data: params + }) +} +export function update (params) { + return request({ + url: api.update, + method: 'post', + data: params + }) +} +export function del (params) { + return request({ + url: api.del, + method: 'post', + data: params + }) +} +export function page (params) { + return request({ + url: api.page, + method: 'post', + data: params + }) +} +export function list (params) { + return request({ + url: api.list, + method: 'post', + data: params + }) +} +export function updateStatus (params) { + return request({ + url: api.updateStatus, + method: 'post', + data: params + }) +} + +export function corporationList (params) { + return request({ + url: api.corporationList, + method: 'post', + data: params + }) +} + +export function listByUserType (params) { + return request({ + url: api.listByUserType, + method: 'post', + data: params + }) +} diff --git a/src/api/bms/org.js b/src/api/bms/org.js new file mode 100644 index 0000000..36ada2f --- /dev/null +++ b/src/api/bms/org.js @@ -0,0 +1,20 @@ +import request from '@/utils/request' + +const orgApi = { + orgTreeGet: '/bms/org/getOrgTree', + orgByUserType: '/bms/org/getByUserType' +} +export function orgTreeGet (params) { + return request({ + url: orgApi.orgTreeGet, + method: 'post', + data: params + }) +} +export function orgByUserType (params) { + return request({ + url: orgApi.orgByUserType, + method: 'post', + data: params + }) +} diff --git a/src/api/bms/payMethod.js b/src/api/bms/payMethod.js new file mode 100644 index 0000000..775a3fd --- /dev/null +++ b/src/api/bms/payMethod.js @@ -0,0 +1,52 @@ +import request from '@/utils/request' +const payMethodApi = { + add: '/bms/storePayMethod/add', + get: '/bms/storePayMethod/getById', + update: '/bms/storePayMethod/update', + del: '/bms/storePayMethod/delete', + list: '/bms/storePayMethod/list', + page: '/bms/storePayMethod/page' +} + +export function storePayMethodAdd (params) { + return request({ + url: payMethodApi.add, + method: 'post', + data: params + }) +} +export function storePayMethodPage (params) { + return request({ + url: payMethodApi.page, + method: 'post', + data: params + }) +} +export function storePayMethodGet (params) { + return request({ + url: payMethodApi.get, + method: 'post', + data: params + }) +} +export function storePayMethodUpdate (params) { + return request({ + url: payMethodApi.update, + method: 'post', + data: params + }) +} +export function storePayMethodDelete (params) { + return request({ + url: payMethodApi.del, + method: 'post', + data: params + }) +} +export function storePayMethodList (params) { + return request({ + url: payMethodApi.list, + method: 'post', + data: params + }) +} diff --git a/src/api/bms/settlementAccount.js b/src/api/bms/settlementAccount.js new file mode 100644 index 0000000..97e1f53 --- /dev/null +++ b/src/api/bms/settlementAccount.js @@ -0,0 +1,52 @@ +import request from '@/utils/request' +const settlementAccountApi = { + add: '/bms/storeSettlementAccount/add', + get: '/bms/storeSettlementAccount/getById', + update: '/bms/storeSettlementAccount/update', + del: '/bms/storeSettlementAccount/delete', + list: '/bms/storeSettlementAccount/list', + page: '/bms/storeSettlementAccount/page' +} + +export function settlementAccountAdd (params) { + return request({ + url: settlementAccountApi.add, + method: 'post', + data: params + }) +} +export function settlementAccountPage (params) { + return request({ + url: settlementAccountApi.page, + method: 'post', + data: params + }) +} +export function settlementAccountGet (params) { + return request({ + url: settlementAccountApi.get, + method: 'post', + data: params + }) +} +export function settlementAccountUpdate (params) { + return request({ + url: settlementAccountApi.update, + method: 'post', + data: params + }) +} +export function settlementAccountDelete (params) { + return request({ + url: settlementAccountApi.del, + method: 'post', + data: params + }) +} +export function settlementAccountList (params) { + return request({ + url: settlementAccountApi.list, + method: 'post', + data: params + }) +} diff --git a/src/api/bms/store.js b/src/api/bms/store.js new file mode 100644 index 0000000..afc38f5 --- /dev/null +++ b/src/api/bms/store.js @@ -0,0 +1,60 @@ +import request from '@/utils/request' + +const api = { + add: '/bms/store/add', + get: '/bms/store/get', + update: '/bms/store/update', + del: '/bms/store/delete', + page: '/bms/store/page', + list: '/bms/store/list', + updateStatus: '/bms/store/updateStatus' +} +export function storeAdd (params) { + return request({ + url: api.add, + method: 'post', + data: params + }) +} +export function storeGet (params) { + return request({ + url: api.get, + method: 'post', + data: params + }) +} +export function storeUpdate (params) { + return request({ + url: api.update, + method: 'post', + data: params + }) +} +export function storeDel (params) { + return request({ + url: api.del, + method: 'post', + data: params + }) +} +export function storePage (params) { + return request({ + url: api.page, + method: 'post', + data: params + }) +} +export function storeList (params) { + return request({ + url: api.list, + method: 'post', + data: params + }) +} +export function storeUpdateStatus (params) { + return request({ + url: api.updateStatus, + method: 'post', + data: params + }) +} diff --git a/src/api/customer/customer.js b/src/api/customer/customer.js new file mode 100644 index 0000000..41cbab4 --- /dev/null +++ b/src/api/customer/customer.js @@ -0,0 +1,78 @@ +import request from '@/utils/request' +const customerApi = { + page: '/customer/customer/pageByNameAndMobile', + del: '/customer/customer/delete', + add: '/customer/customer/add', + update: '/customer/customer/update', + get: '/customer/customer/getById', + updateStatus: '/customer/customer/updateStatus', + getCategoryList: '/customer/customerCategory/listCategoryByName', + listCustomer: '/customer/customer/listByNameAndMobile' +} + +export function customerAdd (params) { + return request({ + url: customerApi.add, + method: 'post', + data: params + }) +} +export function customerGet (params) { + return request({ + url: customerApi.get, + method: 'post', + data: params + }) +} +export function customerUpdate (params) { + return request({ + url: customerApi.update, + method: 'post', + data: params + }) +} +export function customerDelete (params) { + return request({ + url: customerApi.del, + method: 'post', + data: params + }) +} +export function customerPage (params) { + return request({ + url: customerApi.page, + method: 'post', + data: params + }) +} +export function customerUpdateStatus (params) { + return request({ + url: customerApi.updateStatus, + method: 'post', + data: params + }) +} +export function categoryTypeList (params) { + return request({ + url: customerApi.getCategoryList, + method: 'post', + data: params + }) +} +export const genderMap = { + 'MALE': '男', + 'FEMALE': '女' +} +export const deliverTypeMap = { + 'SELF': '自提', + 'LOGISTICS': '发物流', + 'DESIGNATED_PLACE': '送指定点', + 'AUTO_CAR': '送车' +} +export function listCustomer (params) { + return request({ + url: customerApi.listCustomer, + method: 'post', + data: params + }) +} diff --git a/src/api/dashboard/dashboard.js b/src/api/dashboard/dashboard.js new file mode 100644 index 0000000..99807db --- /dev/null +++ b/src/api/dashboard/dashboard.js @@ -0,0 +1,12 @@ +import request from '@/utils/request' +const dashboardApi = { + get: '/security/dashboard/data' +} + +export function dashboardGet (params) { + return request({ + url: dashboardApi.get, + method: 'post', + data: params + }) +} diff --git a/src/api/file/file.js b/src/api/file/file.js new file mode 100644 index 0000000..1cac0ba --- /dev/null +++ b/src/api/file/file.js @@ -0,0 +1,14 @@ +import { axios } from '@/utils/request' +const fileApi = { + add: '/file/file/add', + del: '/file/file/delete', + get: '/file/file/get', + upload: '/file/file/uploadFile' +} +export function fileUpload (formData) { + return axios.post(fileApi.upload, formData, { + headers: { + 'Content-Type': 'application/x-www-form-urlencoded' + } + }) +} diff --git a/src/api/gms/goods.js b/src/api/gms/goods.js new file mode 100644 index 0000000..8f8ee28 --- /dev/null +++ b/src/api/gms/goods.js @@ -0,0 +1,100 @@ +import request from '@/utils/request' +const goodsApi = { + add: '/gms/goods/save', + get: '/gms/goods/getGoodsById', + update: '/gms/goods/update', + del: '/gms/goods/delete', + page: '/gms/goods/page', + list: '/gms/goods/list', + updateStatus: '/gms/goods/updateGoodsStatus', + checkGoodsCode: '/gms/goods/checkGoodsGoodsCodeUnique', + checkGoodsBarCode: '/gms/goods/checkGoodsGoodsBarCodeUnique', + goodsCount: '/gms/goods/countGoodsInfo', + detail: '/gms/goods/get', + listByStoreId: '/gms/goods/listByStoreId' +} + +export function goodsAdd (params) { + return request({ + url: goodsApi.add, + method: 'post', + data: params + }) +} +export function goodsGet (params) { + return request({ + url: goodsApi.get, + method: 'post', + data: params + }) +} +export function goodsUpdate (params) { + return request({ + url: goodsApi.update, + method: 'post', + data: params + }) +} +export function goodsDelete (params) { + return request({ + url: goodsApi.del, + method: 'post', + data: params + }) +} +export function goodsPage (params) { + return request({ + url: goodsApi.page, + method: 'post', + data: params + }) +} +export function goodsList (params) { + return request({ + url: goodsApi.list, + method: 'post', + data: params + }) +} +export function goodsUpdateStatus (params) { + return request({ + url: goodsApi.updateStatus, + method: 'post', + data: params + }) +} +export function goodsCheckGoodsCode (params) { + return request({ + url: goodsApi.checkGoodsCode, + method: 'post', + data: params + }) +} +export function goodsCheckGoodsBarCode (params) { + return request({ + url: goodsApi.checkGoodsBarCode, + method: 'post', + data: params + }) +} +export function goodsCount (params) { + return request({ + url: goodsApi.goodsCount, + method: 'post', + data: params + }) +} +export function goodsDetail (params) { + return request({ + url: goodsApi.detail, + method: 'post', + data: params + }) +} +export function getGoodsListByStoreId (params) { + return request({ + url: goodsApi.listByStoreId, + method: 'post', + data: params + }) +} diff --git a/src/api/gms/goodsCategory.js b/src/api/gms/goodsCategory.js new file mode 100644 index 0000000..86ae1de --- /dev/null +++ b/src/api/gms/goodsCategory.js @@ -0,0 +1,52 @@ +import request from '@/utils/request' +const goodsCategoryApi = { + add: '/gms/goodsCategory/save', + get: '/gms/goodsCategory/get', + update: '/gms/goodsCategory/update', + del: '/gms/goodsCategory/delete', + list: '/gms/goodsCategory/listGoodsCategory', + updateStatus: '/gms/goodsCategory/updategoodsCategoryStatus' +} + +export function goodsCategoryAdd (params) { + return request({ + url: goodsCategoryApi.add, + method: 'post', + data: params + }) +} +export function goodsCategoryGet (params) { + return request({ + url: goodsCategoryApi.get, + method: 'post', + data: params + }) +} +export function goodsCategoryUpdate (params) { + return request({ + url: goodsCategoryApi.update, + method: 'post', + data: params + }) +} +export function goodsCategoryDelete (params) { + return request({ + url: goodsCategoryApi.del, + method: 'post', + data: params + }) +} +export function goodsCategoryList (params) { + return request({ + url: goodsCategoryApi.list, + method: 'post', + data: params + }) +} +export function goodsCategoryUpdateStatus (params) { + return request({ + url: goodsCategoryApi.updateStatus, + method: 'post', + data: params + }) +} diff --git a/src/api/gms/goodsStock.js b/src/api/gms/goodsStock.js new file mode 100644 index 0000000..f3319d7 --- /dev/null +++ b/src/api/gms/goodsStock.js @@ -0,0 +1,19 @@ +import request from '@/utils/request' +const skuApi = { + page: '/gms/goods/pageGoodsStock', + exportExcel: '/gms/goods/exportGoodsStock' +} +export function pageGoodsStock (params) { + return request({ + url: skuApi.page, + method: 'post', + data: params + }) +} +export function exportStockExcel (params) { + return request({ + url: skuApi.exportExcel, + method: 'post', + data: params + }) +} diff --git a/src/api/gms/goodsUnit.js b/src/api/gms/goodsUnit.js new file mode 100644 index 0000000..8497df1 --- /dev/null +++ b/src/api/gms/goodsUnit.js @@ -0,0 +1,60 @@ +import request from '@/utils/request' +const goodsUnitApi = { + add: '/gms/goodsUnit/save', + get: '/gms/goodsUnit/get', + update: '/gms/goodsUnit/update', + del: '/gms/goodsUnit/delete', + page: '/gms/goodsUnit/page', + list: '/gms/goodsUnit/list', + updateStatus: '/gms/goodsUnit/updategoodsUnitStatus' +} + +export function goodsUnitAdd (params) { + return request({ + url: goodsUnitApi.add, + method: 'post', + data: params + }) +} +export function goodsUnitGet (params) { + return request({ + url: goodsUnitApi.get, + method: 'post', + data: params + }) +} +export function goodsUnitUpdate (params) { + return request({ + url: goodsUnitApi.update, + method: 'post', + data: params + }) +} +export function goodsUnitDelete (params) { + return request({ + url: goodsUnitApi.del, + method: 'post', + data: params + }) +} +export function goodsUnitPage (params) { + return request({ + url: goodsUnitApi.page, + method: 'post', + data: params + }) +} +export function goodsUnitList (params) { + return request({ + url: goodsUnitApi.list, + method: 'post', + data: params + }) +} +export function goodsUnitUpdateStatus (params) { + return request({ + url: goodsUnitApi.updateStatus, + method: 'post', + data: params + }) +} diff --git a/src/api/gms/salesProp.js b/src/api/gms/salesProp.js new file mode 100644 index 0000000..0a6f2b5 --- /dev/null +++ b/src/api/gms/salesProp.js @@ -0,0 +1,52 @@ +import request from '@/utils/request' +const salesPropApi = { + add: '/gms/salesProp/add', + get: '/gms/salesProp/get', + update: '/gms/salesProp/update', + del: '/gms/salesProp/delete', + page: '/gms/salesProp/page', + list: '/gms/salesProp/list' +} + +export function salesPropAdd (params) { + return request({ + url: salesPropApi.add, + method: 'post', + data: params + }) +} +export function salesPropGet (params) { + return request({ + url: salesPropApi.get, + method: 'post', + data: params + }) +} +export function salesPropUpdate (params) { + return request({ + url: salesPropApi.update, + method: 'post', + data: params + }) +} +export function salesPropDelete (params) { + return request({ + url: salesPropApi.del, + method: 'post', + data: params + }) +} +export function salesPropPage (params) { + return request({ + url: salesPropApi.page, + method: 'post', + data: params + }) +} +export function salesPropList (params) { + return request({ + url: salesPropApi.list, + method: 'post', + data: params + }) +} diff --git a/src/api/gms/salesPropValue.js b/src/api/gms/salesPropValue.js new file mode 100644 index 0000000..86f77c1 --- /dev/null +++ b/src/api/gms/salesPropValue.js @@ -0,0 +1,52 @@ +import request from '@/utils/request' +const salesPropValueApi = { + add: '/gms/salesPropValue/add', + get: '/gms/salesPropValue/get', + update: '/gms/salesPropValue/update', + del: '/gms/salesPropValue/delete', + page: '/gms/salesPropValue/page', + list: '/gms/salesPropValue/list' +} + +export function salesPropValueAdd (params) { + return request({ + url: salesPropValueApi.add, + method: 'post', + data: params + }) +} +export function salesPropValueGet (params) { + return request({ + url: salesPropValueApi.get, + method: 'post', + data: params + }) +} +export function salesPropValueUpdate (params) { + return request({ + url: salesPropValueApi.update, + method: 'post', + data: params + }) +} +export function salesPropValueDelete (params) { + return request({ + url: salesPropValueApi.del, + method: 'post', + data: params + }) +} +export function salesPropValuePage (params) { + return request({ + url: salesPropValueApi.page, + method: 'post', + data: params + }) +} +export function salesPropValueList (params) { + return request({ + url: salesPropValueApi.list, + method: 'post', + data: params + }) +} diff --git a/src/api/gms/sku.js b/src/api/gms/sku.js new file mode 100644 index 0000000..30b07bb --- /dev/null +++ b/src/api/gms/sku.js @@ -0,0 +1,84 @@ +import request from '@/utils/request' +const skuApi = { + add: '/gms/sku/save', + get: '/gms/sku/get', + update: '/gms/sku/update', + del: '/gms/sku/delete', + page: '/gms/sku/page', + list: '/gms/sku/list', + getJsonSkuList: '/gms/sku/getJsonSkuListByParams', + getSalesPropForAdm: '/gms/sku/getSalesPropForAdm', + getSkuBySalesProp: '/gms/sku/getSkuBySalesProp', + getPropForAdm: '/gms/sku/getPropForAdm' +} + +export function skuAdd (params) { + return request({ + url: skuApi.add, + method: 'post', + data: params + }) +} +export function skuGet (params) { + return request({ + url: skuApi.get, + method: 'post', + data: params + }) +} +export function skuUpdate (params) { + return request({ + url: skuApi.update, + method: 'post', + data: params + }) +} +export function skuDelete (params) { + return request({ + url: skuApi.del, + method: 'post', + data: params + }) +} +export function skuPage (params) { + return request({ + url: skuApi.page, + method: 'post', + data: params + }) +} +export function skuList (params) { + return request({ + url: skuApi.list, + method: 'post', + data: params + }) +} +export function skuGetJsonSkuList (params) { + return request({ + url: skuApi.getJsonSkuList, + method: 'post', + data: params + }) +} +export function getSalesPropForAdm (params) { + return request({ + url: skuApi.getSalesPropForAdm, + method: 'post', + data: params + }) +} +export function getSkuBySalesProp (params) { + return request({ + url: skuApi.getSkuBySalesProp, + method: 'post', + data: params + }) +} +export function getPropForAdm (params) { + return request({ + url: skuApi.getPropForAdm, + method: 'post', + data: params + }) +} diff --git a/src/api/gms/skuStockChangeRecord.js b/src/api/gms/skuStockChangeRecord.js new file mode 100644 index 0000000..0232239 --- /dev/null +++ b/src/api/gms/skuStockChangeRecord.js @@ -0,0 +1,36 @@ +import request from '@/utils/request' +const skuStockChangeRecordApi = { + page: '/gms/skuStockChangeRecord/page', + get: '/gms/skuStockChangeRecord/get', + change: '/gms/skuStockChangeRecord/outOrInSkuStockChangeRecord', + cancel: '/gms/skuStockChangeRecord/cancelStockChangeRecord' +} + +export function skuStockChangeRecordPage (params) { + return request({ + url: skuStockChangeRecordApi.page, + method: 'post', + data: params + }) +} +export function skuStockChangeRecordGet (params) { + return request({ + url: skuStockChangeRecordApi.get, + method: 'post', + data: params + }) +} +export function skuStockChangeRecordChange (params) { + return request({ + url: skuStockChangeRecordApi.change, + method: 'post', + data: params + }) +} +export function skuStockChangeRecordCancel (params) { + return request({ + url: skuStockChangeRecordApi.cancel, + method: 'post', + data: params + }) +} diff --git a/src/api/gms/warehouse.js b/src/api/gms/warehouse.js new file mode 100644 index 0000000..332bb89 --- /dev/null +++ b/src/api/gms/warehouse.js @@ -0,0 +1,19 @@ +import request from '@/utils/request' +const skuApi = { + listWarehouse: '/gms/warehouse/listByParams', + findWarehouseListByStoreId: '/gms/warehouse/findWarehouseListByStoreId' +} +export function listWarehouse (params) { + return request({ + url: skuApi.listWarehouse, + method: 'post', + data: params + }) +} +export function listWarehouseByStoreId (params) { + return request({ + url: skuApi.findWarehouseListByStoreId, + method: 'post', + data: params + }) +} diff --git a/src/api/login.js b/src/api/login.js index ea04781..01285ec 100644 --- a/src/api/login.js +++ b/src/api/login.js @@ -1,7 +1,7 @@ import request from '@/utils/request' const userApi = { - Login: '/auth/login', + Login: '/login', Logout: '/auth/logout', ForgePassword: '/auth/forge-password', Register: '/auth/register', diff --git a/src/api/oms/salesOrder.js b/src/api/oms/salesOrder.js new file mode 100644 index 0000000..0b31773 --- /dev/null +++ b/src/api/oms/salesOrder.js @@ -0,0 +1,46 @@ +import request from '@/utils/request' +const salesOrderApi = { + page: '/oms/order/page', + get: '/oms/order/get', + salesOrderLinePage: '/oms/order/findSalesOrderLinePageBySalesOrderId', + exportSalesOrder: '/oms/order/exportSalesOrder', + createOrder: '/oms/order/createOrder' +} + +export function salesOrderPage (params) { + return request({ + url: salesOrderApi.page, + method: 'post', + data: params + }) +} +export function salesOrderGet (params) { + return request({ + url: salesOrderApi.get, + method: 'post', + data: params + }) +} +export function salesOrderLinePage (params) { + return request({ + url: salesOrderApi.salesOrderLinePage, + method: 'post', + data: params + }) +} +export function exportSalesOrder (params) { + var result = request({ + url: salesOrderApi.exportSalesOrder, + method: 'post', + data: params + }) + return result +} +export function createOrder (params) { + var result = request({ + url: salesOrderApi.createOrder, + method: 'post', + data: params + }) + return result +} diff --git a/src/api/purchase/purchase.js b/src/api/purchase/purchase.js new file mode 100644 index 0000000..736ba92 --- /dev/null +++ b/src/api/purchase/purchase.js @@ -0,0 +1,28 @@ +import request from '@/utils/request' +const purchaseApi = { + page: '/purchase/purchaseOrder/pageByParams', + get: '/purchase/purchaseOrder/get', + purchaseOrderLinePage: '/purchase/purchaseOrder/findPurchaseOrderLineParamsByOrderId' +} + +export function purchaseOrderPage (params) { + return request({ + url: purchaseApi.page, + method: 'post', + data: params + }) +} +export function purchaseOrderGet (params) { + return request({ + url: purchaseApi.get, + method: 'post', + data: params + }) +} +export function purchaseOrderLinePage (params) { + return request({ + url: purchaseApi.purchaseOrderLinePage, + method: 'post', + data: params + }) +} diff --git a/src/api/security/accessToken.js b/src/api/security/accessToken.js new file mode 100644 index 0000000..6db44d0 --- /dev/null +++ b/src/api/security/accessToken.js @@ -0,0 +1,12 @@ +import request from '@/utils/request' +const accessTokenApi = { + get: '/security/accessToken/get' +} + +export function get (params) { + return request({ + url: accessTokenApi.get, + method: 'post', + data: params + }) +} diff --git a/src/api/security/app.js b/src/api/security/app.js new file mode 100644 index 0000000..ce4d13a --- /dev/null +++ b/src/api/security/app.js @@ -0,0 +1,67 @@ +import request from '@/utils/request' +const appApi = { + add: '/security/app/save', + get: '/security/app/get', + update: '/security/app/update', + del: '/security/app/delete', + page: '/security/app/page', + updateStatus: '/security/app/updateStatus', + refresh: '/security/app/refreshAccessSecret' +} + +export function appAdd (params) { + return request({ + url: appApi.add, + method: 'post', + data: params + }) +} +export function appGet (params) { + return request({ + url: appApi.get, + method: 'post', + data: params + }) +} +export function appUpdate (params) { + return request({ + url: appApi.update, + method: 'post', + data: params + }) +} +export function appDelete (params) { + return request({ + url: appApi.del, + method: 'post', + data: params + }) +} +export function appPage (params) { + return request({ + url: appApi.page, + method: 'post', + data: params + }) +} +export function appUpdateStatus (params) { + return request({ + url: appApi.updateStatus, + method: 'post', + data: params + }) +} +export function refreshAccessSecret (params) { + return request({ + url: appApi.refresh, + method: 'post', + data: params + }) +} +export const appTypeMap = { + 'ANDROID_APP': 'Android APP', + 'A8_POS': 'POS A8版', + 'IOS_APP': 'iPhone APP', + 'OPENAPI': '开放接口', + 'ADMIN': '管理后台' +} diff --git a/src/api/security/appVersion.js b/src/api/security/appVersion.js new file mode 100644 index 0000000..9220752 --- /dev/null +++ b/src/api/security/appVersion.js @@ -0,0 +1,52 @@ +import request from '@/utils/request' +const appVersionApi = { + add: '/security/appVersion/save', + update: '/security/appVersion/update', + del: '/security/appVersion/delete', + page: '/security/appVersion/page', + updateMustUpgrade: '/security/appVersion/updateMustUpgrade', + get: '/security/appVersion/getAppVersionById' +} + +export function appVersionAdd (params) { + return request({ + url: appVersionApi.add, + method: 'post', + data: params + }) +} +export function appVersionUpdate (params) { + return request({ + url: appVersionApi.update, + method: 'post', + data: params + }) +} +export function appVersionDelete (params) { + return request({ + url: appVersionApi.del, + method: 'post', + data: params + }) +} +export function appVersionPage (params) { + return request({ + url: appVersionApi.page, + method: 'post', + data: params + }) +} +export function updateMustUpgrade (params) { + return request({ + url: appVersionApi.updateMustUpgrade, + method: 'post', + data: params + }) +} +export function appVersionGet (params) { + return request({ + url: appVersionApi.get, + method: 'post', + data: params + }) +} diff --git a/src/api/security/cmsArticle.js b/src/api/security/cmsArticle.js new file mode 100644 index 0000000..62d0f8d --- /dev/null +++ b/src/api/security/cmsArticle.js @@ -0,0 +1,64 @@ +import request from '@/utils/request' +const cmsArticleApi = { + add: '/security/cmsArticle/add', + get: '/security/cmsArticle/get', + update: '/security/cmsArticle/update', + del: '/security/cmsArticle/delete', + page: '/security/cmsArticle/page', + updateStatus: '/security/cmsArticle/updateStatus', + listByCode: '/security/cmsArticle/listByCode' +} + +export function cmsArticleAdd (params) { + return request({ + url: cmsArticleApi.add, + method: 'post', + data: params + }) +} +export function cmsArticleGet (params) { + return request({ + url: cmsArticleApi.get, + method: 'post', + data: params + }) +} +export function cmsArticleUpdate (params) { + return request({ + url: cmsArticleApi.update, + method: 'post', + data: params + }) +} +export function cmsArticleDelete (params) { + return request({ + url: cmsArticleApi.del, + method: 'post', + data: params + }) +} +export function cmsArticlePage (params) { + return request({ + url: cmsArticleApi.page, + method: 'post', + data: params + }) +} +export function cmsArticleUpdateStatus (params) { + return request({ + url: cmsArticleApi.updateStatus, + method: 'post', + data: params + }) +} +export function listByCode (params) { + return request({ + url: cmsArticleApi.listByCode, + method: 'post', + data: params + }) +} +export const articleTypeMap = { + 0: '固化', + 1: '自定义' +} diff --git a/src/api/security/deviceInfo.js b/src/api/security/deviceInfo.js new file mode 100644 index 0000000..4fbbd52 --- /dev/null +++ b/src/api/security/deviceInfo.js @@ -0,0 +1,12 @@ +import request from '@/utils/request' +const deviceInfoApi = { + page: '/security/deviceInfo/page' +} + +export function page (params) { + return request({ + url: deviceInfoApi.page, + method: 'post', + data: params + }) +} diff --git a/src/api/security/function.js b/src/api/security/function.js new file mode 100644 index 0000000..b9248b3 --- /dev/null +++ b/src/api/security/function.js @@ -0,0 +1,52 @@ +import request from '@/utils/request' + +const api = { + add: '/security/function/add', + update: '/security/function/update', + del: '/security/function/delete', + page: '/security/function/page', + get: '/security/function/get', + functionCodeMap: '/security/function/getFunctionCodeMap' +} +export function functionAdd (params) { + return request({ + url: api.add, + method: 'post', + data: params + }) +} +export function functionUpdate (params) { + return request({ + url: api.update, + method: 'post', + data: params + }) +} +export function functionDel (params) { + return request({ + url: api.del, + method: 'post', + data: params + }) +} +export function functionPage (params) { + return request({ + url: api.page, + method: 'post', + data: params + }) +} +export function functionGet (params) { + return request({ + url: api.get, + method: 'post', + data: params + }) +} +export function functionCodeMap (params) { + return request({ + url: api.functionCodeMap, + method: 'post', + data: params + }) +} diff --git a/src/api/security/functionCategory.js b/src/api/security/functionCategory.js new file mode 100644 index 0000000..e73318b --- /dev/null +++ b/src/api/security/functionCategory.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' +const functionCategoryApi = { + add: '/security/functionCategory/add', + update: '/security/functionCategory/update', + del: '/security/functionCategory/delete', + page: '/security/functionCategory/page', + get: '/security/functionCategory/get' +} + +export function functionCategoryAdd (params) { + return request({ + url: functionCategoryApi.add, + method: 'post', + data: params + }) +} +export function functionCategoryUpdate (params) { + return request({ + url: functionCategoryApi.update, + method: 'post', + data: params + }) +} +export function functionCategoryDel (params) { + return request({ + url: functionCategoryApi.del, + method: 'post', + data: params + }) +} +export function functionCategoryPage (params) { + return request({ + url: functionCategoryApi.page, + method: 'post', + data: params + }) +} +export function functionCategoryGet (params) { + return request({ + url: functionCategoryApi.get, + method: 'post', + data: params + }) +} diff --git a/src/api/security/functionResource.js b/src/api/security/functionResource.js new file mode 100644 index 0000000..685c698 --- /dev/null +++ b/src/api/security/functionResource.js @@ -0,0 +1,21 @@ +import request from '@/utils/request' + +const functionResourceApi = { + add: '/security/functionResource/add', + del: '/security/functionResource/delete' +} + +export function functionResourceAdd (params) { + return request({ + url: functionResourceApi.add, + method: 'post', + data: params + }) +} +export function functionResourceDelete (params) { + return request({ + url: functionResourceApi.del, + method: 'post', + data: params + }) +} diff --git a/src/api/security/message.js b/src/api/security/message.js new file mode 100644 index 0000000..4ba8c55 --- /dev/null +++ b/src/api/security/message.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' +const messageApi = { + add: '/security/message/save', + get: '/security/message/get', + update: '/security/message/update', + del: '/security/message/delete', + page: '/security/message/page' +} + +export function messageAdd (params) { + return request({ + url: messageApi.add, + method: 'post', + data: params + }) +} +export function messageGet (params) { + return request({ + url: messageApi.get, + method: 'post', + data: params + }) +} +export function messageUpdate (params) { + return request({ + url: messageApi.update, + method: 'post', + data: params + }) +} +export function messageDelete (params) { + return request({ + url: messageApi.del, + method: 'post', + data: params + }) +} +export function messagePage (params) { + return request({ + url: messageApi.page, + method: 'post', + data: params + }) +} diff --git a/src/api/security/redis.js b/src/api/security/redis.js new file mode 100644 index 0000000..22efbc5 --- /dev/null +++ b/src/api/security/redis.js @@ -0,0 +1,21 @@ +import request from '@/utils/request' +const redisManageApi = { + page: '/security/redisManage/page', + deleteByParams: '/security/redisManage/delete' +} + +export function page (params) { + return request({ + url: redisManageApi.page, + method: 'post', + data: params + }) +} + +export function deleteByParams (params) { + return request({ + url: redisManageApi.deleteByParams, + method: 'post', + data: params + }) +} diff --git a/src/api/security/resource.js b/src/api/security/resource.js new file mode 100644 index 0000000..7d40bcd --- /dev/null +++ b/src/api/security/resource.js @@ -0,0 +1,92 @@ +import request from '@/utils/request' + +const resourceApi = { + add: '/security/resource/add', + get: '/security/resource/get', + update: '/security/resource/update', + del: '/security/resource/delete', + updateStatus: '/security/resource/updateStatus', + list: '/security/resource/listByParentId', + listByUser: '/security/url/listByUser', + listAllResource: '/security/resource/listAllResource', + resourceByRoleId: '/security/resource/listAllResourceByRoleId', + listResourceByUser: '/security/resource/listResourceByLoginUser', + resourceByFunctionId: '/security/resource/listAllResourceByFunctionId' +} + +export function resourceAdd (params) { + return request({ + url: resourceApi.add, + method: 'post', + data: params + }) +} +export function resourceGet (params) { + return request({ + url: resourceApi.get, + method: 'post', + data: params + }) +} +export function resourceUpdate (params) { + return request({ + url: resourceApi.update, + method: 'post', + data: params + }) +} +export function resourceDelete (params) { + return request({ + url: resourceApi.del, + method: 'post', + data: params + }) +} +export function resourceList (params) { + return request({ + url: resourceApi.list, + method: 'post', + data: params + }) +} +export function resourceListByUser (params) { + return request({ + url: resourceApi.listByUser, + method: 'post', + data: params + }) +} +export function resourceAll () { + return request({ + url: resourceApi.listAllResource, + method: 'post' + }) +} +export function resourceUpdateStatus (params) { + return request({ + url: resourceApi.updateStatus, + method: 'post', + data: params + }) +} +export function resourceByRoleId (params) { + return request({ + url: resourceApi.resourceByRoleId, + method: 'post', + data: params + }) +} +export function listResourceByUser (params) { + return request({ + url: resourceApi.listResourceByUser, + method: 'post', + data: params + }) +} +export function resourceByFunctionId (params) { + return request({ + url: resourceApi.resourceByFunctionId, + method: 'post', + data: params + }) +} diff --git a/src/api/security/role.js b/src/api/security/role.js new file mode 100644 index 0000000..a54673d --- /dev/null +++ b/src/api/security/role.js @@ -0,0 +1,61 @@ +import request from '@/utils/request' + +const roleApi = { + add: '/security/role/add', + get: '/security/role/get', + update: '/security/role/update', + del: '/security/role/delete', + page: '/security/role/page', + updateStatus: '/security/role/updateStatus', + rolesByUserId: '/security/role/listAllRoleByUserId' +} + +export function roleAdd (params) { + return request({ + url: roleApi.add, + method: 'post', + data: params + }) +} +export function roleGet (params) { + return request({ + url: roleApi.get, + method: 'post', + data: params + }) +} +export function roleUpdate (params) { + return request({ + url: roleApi.update, + method: 'post', + data: params + }) +} +export function roleDelete (params) { + return request({ + url: roleApi.del, + method: 'post', + data: params + }) +} +export function rolePage (params) { + return request({ + url: roleApi.page, + method: 'post', + data: params + }) +} +export function roleUpdateStatus (params) { + return request({ + url: roleApi.updateStatus, + method: 'post', + data: params + }) +} +export function rolesByUserId (params) { + return request({ + url: roleApi.rolesByUserId, + method: 'post', + data: params + }) +} diff --git a/src/api/security/roleResource.js b/src/api/security/roleResource.js new file mode 100644 index 0000000..4efc967 --- /dev/null +++ b/src/api/security/roleResource.js @@ -0,0 +1,21 @@ +import request from '@/utils/request' + +const roleResourceApi = { + add: '/security/roleResource/add', + del: '/security/roleResource/delete' +} + +export function roleResourceAdd (params) { + return request({ + url: roleResourceApi.add, + method: 'post', + data: params + }) +} +export function roleResourceDelete (params) { + return request({ + url: roleResourceApi.del, + method: 'post', + data: params + }) +} diff --git a/src/api/security/user.js b/src/api/security/user.js new file mode 100644 index 0000000..21c2f8e --- /dev/null +++ b/src/api/security/user.js @@ -0,0 +1,100 @@ +import request from '@/utils/request' + +const userApi = { + login: '/login', + logout: '/security/user/logout', + add: '/security/user/add', + get: '/security/user/getById', + update: '/security/user/update', + del: '/security/user/delete', + page: '/security/user/page', + updateEnabled: '/security/user/updateEnabled', + getListByOrgId: '/security/user/getListByOrgId', + getUserInfo: '/security/user/get' +} + +const userPasswordApi = { + set: '/security/user/password/set', + update: '/security/user/password/update', + send: '/security/user/sendSecuritycode', + setById: '/security/user/password/setByUserId' +} + +export function userLogin (params) { + return request({ + url: userApi.login, + method: 'post', + data: params + }) +} + +export function userAdd (params) { + return request({ + url: userApi.add, + method: 'post', + data: params + }) +} +export function userGet (params) { + return request({ + url: userApi.get, + method: 'post', + data: params + }) +} +export function userUpdate (params) { + return request({ + url: userApi.update, + method: 'post', + data: params + }) +} +export function userDelete (params) { + return request({ + url: userApi.del, + method: 'post', + data: params + }) +} +export function userPage (params) { + return request({ + url: userApi.page, + method: 'post', + data: params + }) +} +export function userUpdateEnabled (params) { + return request({ + url: userApi.updateEnabled, + method: 'post', + data: params + }) +} +export function userPasswordSet (params) { + return request({ + url: userPasswordApi.set, + method: 'post', + data: params + }) +} +export function userPasswordSetById (params) { + return request({ + url: userPasswordApi.setById, + method: 'post', + data: params + }) +} +export function getListByOrgId (params) { + return request({ + url: userApi.getListByOrgId, + method: 'post', + data: params + }) +} +export function getUserInfo (params) { + return request({ + url: userApi.getUserInfo, + method: 'post', + data: params + }) +} diff --git a/src/api/security/userFeedBack.js b/src/api/security/userFeedBack.js new file mode 100644 index 0000000..6234795 --- /dev/null +++ b/src/api/security/userFeedBack.js @@ -0,0 +1,20 @@ +import request from '@/utils/request' +const userFeedBackApi = { + page: '/security/user/feedback/pageUserFeedBack', + handleFeedBack: '/security/user/feedback/handleFeedBack' +} + +export function UserFeedBackPage (params) { + return request({ + url: userFeedBackApi.page, + method: 'post', + data: params + }) +} +export function handleFeedBack (params) { + return request({ + url: userFeedBackApi.handleFeedBack, + method: 'post', + data: params + }) +} diff --git a/src/api/security/userRole.js b/src/api/security/userRole.js new file mode 100644 index 0000000..75bae92 --- /dev/null +++ b/src/api/security/userRole.js @@ -0,0 +1,21 @@ +import request from '@/utils/request' + +const userRoleApi = { + add: '/security/userRole/add', + del: '/security/userRole/delete' +} + +export function userRoleAdd (params) { + return request({ + url: userRoleApi.add, + method: 'post', + data: params + }) +} +export function userRoleDelete (params) { + return request({ + url: userRoleApi.del, + method: 'post', + data: params + }) +} diff --git a/src/api/supplier/supplier.js b/src/api/supplier/supplier.js new file mode 100644 index 0000000..bc4c294 --- /dev/null +++ b/src/api/supplier/supplier.js @@ -0,0 +1,60 @@ +import request from '@/utils/request' +const supplierApi = { + add: '/supplier/supplier/add', + get: '/supplier/supplier/getById', + update: '/supplier/supplier/update', + del: '/supplier/supplier/delete', + page: '/supplier/supplier/pageByParams', + updateStatus: '/supplier/supplier/updateStatus', + list: '/supplier/supplier/listSupplierByParams' +} + +export function supplierAdd (params) { + return request({ + url: supplierApi.add, + method: 'post', + data: params + }) +} +export function supplierGet (params) { + return request({ + url: supplierApi.get, + method: 'post', + data: params + }) +} +export function supplierUpdate (params) { + return request({ + url: supplierApi.update, + method: 'post', + data: params + }) +} +export function supplierDelete (params) { + return request({ + url: supplierApi.del, + method: 'post', + data: params + }) +} +export function supplierPage (params) { + return request({ + url: supplierApi.page, + method: 'post', + data: params + }) +} +export function supplierUpdateStatus (params) { + return request({ + url: supplierApi.updateStatus, + method: 'post', + data: params + }) +} +export function supplierList (params) { + return request({ + url: supplierApi.list, + method: 'post', + data: params + }) +} diff --git a/src/components/AvatarList/Item.vue b/src/components/AvatarList/Item.vue new file mode 100644 index 0000000..26e149e --- /dev/null +++ b/src/components/AvatarList/Item.vue @@ -0,0 +1,46 @@ + + + diff --git a/src/components/AvatarList/List.vue b/src/components/AvatarList/List.vue new file mode 100644 index 0000000..446ceeb --- /dev/null +++ b/src/components/AvatarList/List.vue @@ -0,0 +1,99 @@ + + + diff --git a/src/components/Charts/MiniBar.vue b/src/components/Charts/MiniBar.vue index beac404..b5292f4 100644 --- a/src/components/Charts/MiniBar.vue +++ b/src/components/Charts/MiniBar.vue @@ -10,43 +10,20 @@ diff --git a/src/components/CountDown/index.js b/src/components/CountDown/index.js new file mode 100644 index 0000000..35e954f --- /dev/null +++ b/src/components/CountDown/index.js @@ -0,0 +1,3 @@ +import CountDown from './CountDown' + +export default CountDown diff --git a/src/components/CountDown/index.md b/src/components/CountDown/index.md new file mode 100644 index 0000000..fd46809 --- /dev/null +++ b/src/components/CountDown/index.md @@ -0,0 +1,34 @@ +# CountDown 倒计时 + +倒计时组件。 + + + +引用方式: + +```javascript +import CountDown from '@/components/CountDown/CountDown' + +export default { + components: { + CountDown + } +} +``` + + + +## 代码演示 [demo](https://pro.loacg.com/test/home) + +```html + +``` + + + +## API + +| 参数 | 说明 | 类型 | 默认值 | +|----------|------------------------------------------|-------------|-------| +| target | 目标时间 | Date | - | +| onEnd | 倒计时结束回调 | funtion | -| diff --git a/src/components/DescriptionList/DescriptionList.vue b/src/components/DescriptionList/DescriptionList.vue new file mode 100644 index 0000000..7f98fec --- /dev/null +++ b/src/components/DescriptionList/DescriptionList.vue @@ -0,0 +1,153 @@ + + + + + diff --git a/src/components/DescriptionList/index.js b/src/components/DescriptionList/index.js new file mode 100644 index 0000000..7aed83d --- /dev/null +++ b/src/components/DescriptionList/index.js @@ -0,0 +1,2 @@ +import DescriptionList from './DescriptionList' +export default DescriptionList diff --git a/src/components/Editor/QuillEditor.vue b/src/components/Editor/QuillEditor.vue index 731701c..9e43a91 100644 --- a/src/components/Editor/QuillEditor.vue +++ b/src/components/Editor/QuillEditor.vue @@ -9,7 +9,6 @@ @ready="onEditorReady($event)" @change="onEditorChange($event)"> - @@ -72,6 +71,7 @@ export default { /* 覆盖 quill 默认边框圆角为 ant 默认圆角,用于统一 ant 组件风格 */ .ant-editor-quill { + line-height: initial; /deep/ .ql-toolbar.ql-snow { border-radius: @border-radius-base @border-radius-base 0 0; } diff --git a/src/components/Editor/WangEditor.vue b/src/components/Editor/WangEditor.vue index d9c71c7..5f50c26 100644 --- a/src/components/Editor/WangEditor.vue +++ b/src/components/Editor/WangEditor.vue @@ -1,11 +1,10 @@ - diff --git a/src/components/Exception/ExceptionPage.vue b/src/components/Exception/ExceptionPage.vue new file mode 100644 index 0000000..132e346 --- /dev/null +++ b/src/components/Exception/ExceptionPage.vue @@ -0,0 +1,130 @@ + + + + diff --git a/src/components/Exception/index.js b/src/components/Exception/index.js new file mode 100644 index 0000000..dda91be --- /dev/null +++ b/src/components/Exception/index.js @@ -0,0 +1,2 @@ +import ExceptionPage from './ExceptionPage.vue' +export default ExceptionPage diff --git a/src/components/Exception/type.js b/src/components/Exception/type.js new file mode 100644 index 0000000..39bc6be --- /dev/null +++ b/src/components/Exception/type.js @@ -0,0 +1,28 @@ +const types = { + 401: { + title: '401', + desc: '未登录或登录超时' + }, + 403: { + img: 'https://gw.alipayobjects.com/zos/rmsportal/wZcnGqRDyhPOEYFcZDnb.svg', + title: '403', + desc: '抱歉,你无权访问该页面' + }, + 404: { + img: 'https://gw.alipayobjects.com/zos/rmsportal/KpnpchXsobRgLElEozzI.svg', + title: '404', + desc: '抱歉,你访问的页面不存在或仍在开发中' + }, + 500: { + img: 'https://gw.alipayobjects.com/zos/rmsportal/RVRUAYdCGeYNBWoKiIwB.svg', + title: '500', + desc: '抱歉,服务器出错了' + }, + 503: { + img: 'https://gw.alipayobjects.com/zos/rmsportal/RVRUAYdCGeYNBWoKiIwB.svg', + title: '503', + desc: '抱歉,服务器出错了' + } +} + +export default types diff --git a/src/components/GlobalFooter/GlobalFooter.vue b/src/components/GlobalFooter/GlobalFooter.vue new file mode 100644 index 0000000..5db47d4 --- /dev/null +++ b/src/components/GlobalFooter/GlobalFooter.vue @@ -0,0 +1,42 @@ + + + + + diff --git a/src/components/GlobalFooter/index.js b/src/components/GlobalFooter/index.js new file mode 100644 index 0000000..832e0bd --- /dev/null +++ b/src/components/GlobalFooter/index.js @@ -0,0 +1,2 @@ +import GlobalFooter from './GlobalFooter' +export default GlobalFooter diff --git a/src/components/GlobalFooter/index.vue b/src/components/GlobalFooter/index.vue index ee1e92c..28f0c3f 100644 --- a/src/components/GlobalFooter/index.vue +++ b/src/components/GlobalFooter/index.vue @@ -1,12 +1,8 @@ diff --git a/src/components/GlobalHeader/AvatarDropdown.vue b/src/components/GlobalHeader/AvatarDropdown.vue index 73e202e..36714da 100644 --- a/src/components/GlobalHeader/AvatarDropdown.vue +++ b/src/components/GlobalHeader/AvatarDropdown.vue @@ -1,18 +1,14 @@ diff --git a/src/views/brand/BrandList.vue b/src/views/brand/BrandList.vue new file mode 100644 index 0000000..7bd553b --- /dev/null +++ b/src/views/brand/BrandList.vue @@ -0,0 +1,173 @@ + + + diff --git a/src/views/brand/modules/BrandDetail.vue b/src/views/brand/modules/BrandDetail.vue new file mode 100644 index 0000000..1b7081c --- /dev/null +++ b/src/views/brand/modules/BrandDetail.vue @@ -0,0 +1,48 @@ + + + diff --git a/src/views/brand/modules/CreateForm.vue b/src/views/brand/modules/CreateForm.vue new file mode 100644 index 0000000..55903b2 --- /dev/null +++ b/src/views/brand/modules/CreateForm.vue @@ -0,0 +1,83 @@ + + + diff --git a/src/views/dashboard/Workplace.vue b/src/views/dashboard/Workplace.vue index 4663223..ffe08d8 100644 --- a/src/views/dashboard/Workplace.vue +++ b/src/views/dashboard/Workplace.vue @@ -1,5 +1,5 @@