From fe898632d423b924c68bf7087c7fe69831c892fe Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Wed, 24 May 2023 10:18:28 +0800 Subject: [PATCH] fix --- package-lock.json | 71 +- package.json | 3 +- src/components/img-upload/Cropper.vue | 186 ++-- src/setting.js | 2 +- src/utils/api.js | 1 + src/views/order/AddOrder.vue | 12 +- src/views/parnerOperation/learnMg.vue | 1483 +++++++++++++------------ src/views/serve/projectList.vue | 794 +++++++------ src/views/shop/addProduct/index.vue | 183 ++- src/views/shop/list/market/index.vue | 2 +- src/views/shop/list/product/index.vue | 7 +- 11 files changed, 1504 insertions(+), 1240 deletions(-) diff --git a/package-lock.json b/package-lock.json index 67cde37..35d09e7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2460,6 +2460,15 @@ "schema-utils": "^1.0.0" } }, + "call-bind": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", + "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", + "requires": { + "function-bind": "^1.1.1", + "get-intrinsic": "^1.0.2" + } + }, "call-me-maybe": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/call-me-maybe/-/call-me-maybe-1.0.1.tgz", @@ -5605,6 +5614,24 @@ "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==" }, + "get-intrinsic": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz", + "integrity": "sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==", + "requires": { + "function-bind": "^1.1.1", + "has": "^1.0.3", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3" + }, + "dependencies": { + "has-symbols": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", + "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==" + } + } + }, "get-stdin": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-4.0.1.tgz", @@ -6562,6 +6589,11 @@ "sparkles": "^1.0.0" } }, + "has-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", + "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==" + }, "has-symbols": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.1.tgz", @@ -10223,9 +10255,12 @@ "dev": true }, "qs": { - "version": "6.5.2", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", - "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==" + "version": "6.11.2", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.2.tgz", + "integrity": "sha512-tDNIz22aBzCDxLtVH++VnTfzxlfeK5CbqohpSqpJgj1Wg/cQbStNAz3NuqCs5vV+pjBsK4x4pN9HlVh7rcYRiA==", + "requires": { + "side-channel": "^1.0.4" + } }, "query-string": { "version": "4.3.4", @@ -10707,6 +10742,13 @@ "tough-cookie": "~2.4.3", "tunnel-agent": "^0.6.0", "uuid": "^3.3.2" + }, + "dependencies": { + "qs": { + "version": "6.5.3", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.3.tgz", + "integrity": "sha512-qxXIEh4pCGfHICj1mAJQ2/2XVZkjCDTcEgfoSQxc/fYivUZxTkk7L3bDBJSoNrEzXI17oUO5Dp07ktqE5KzczA==" + } } }, "request-promise-core": { @@ -11272,6 +11314,23 @@ "integrity": "sha512-mRz/m/JVscCrkMyPqHc/bczi3OQHkLTqXHEFu0zDhK/qfv3UcOA4SVmRCLmos4bhjr9ekVQubj/R7waKapmiQg==", "dev": true }, + "side-channel": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", + "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", + "requires": { + "call-bind": "^1.0.0", + "get-intrinsic": "^1.0.2", + "object-inspect": "^1.9.0" + }, + "dependencies": { + "object-inspect": { + "version": "1.12.3", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz", + "integrity": "sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==" + } + } + }, "sigmund": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/sigmund/-/sigmund-1.0.1.tgz", @@ -12709,9 +12768,9 @@ } }, "vue-cropper": { - "version": "0.5.6", - "resolved": "https://registry.npmjs.org/vue-cropper/-/vue-cropper-0.5.6.tgz", - "integrity": "sha512-54Z/AipXDBcE5nzJweTM+BryzSAcC0FCTMQLvLt6f4XanP4AWB3mPkQw3PG3NRICo7knljHO+N+pjZxYAKoTLQ==" + "version": "0.5.8", + "resolved": "https://registry.npmjs.org/vue-cropper/-/vue-cropper-0.5.8.tgz", + "integrity": "sha512-Xgi/aLQCcNCiBTUdovy/i4LWx0G7fQnAENBpDWA3J4i87Zlk9DJRksXrClsQ6nnaFRfQVkMimij5GEvAMaXdYw==" }, "vue-cropperjs": { "version": "3.0.0", diff --git a/package.json b/package.json index 6b39fb2..040b0db 100644 --- a/package.json +++ b/package.json @@ -22,10 +22,11 @@ "mavon-editor": "^2.6.17", "postcss-px2rem": "^0.3.0", "px2rem-loader": "^0.1.9", + "qs": "^6.11.2", "sortablejs": "^1.14.0", "vue": "^2.6.10", "vue-codemirror": "^4.0.6", - "vue-cropper": "^0.5.5", + "vue-cropper": "^0.5.8", "vue-cropperjs": "^3.0.0", "vue-pdf": "^4.3.0", "vue-quill-editor": "^3.0.6", diff --git a/src/components/img-upload/Cropper.vue b/src/components/img-upload/Cropper.vue index a525d3d..91a05c1 100644 --- a/src/components/img-upload/Cropper.vue +++ b/src/components/img-upload/Cropper.vue @@ -3,33 +3,31 @@
- - +
-
- -
- +
+ +
+
@@ -43,11 +41,10 @@
-->
- + 上传
@@ -59,7 +56,7 @@ import { VueCropper } from 'vue-cropper' -import {compress, compressAccurately} from 'image-conversion' +import { compress, compressAccurately } from 'image-conversion' export default { components: { VueCropper @@ -90,7 +87,7 @@ export default { default: true } }, - data() { + data () { return { previews: {}, // 预览数据 option: { @@ -113,31 +110,30 @@ export default { } }, methods: { - changeScale(num) { + changeScale (num) { // 图片缩放 num = num || 1 this.$refs.cropper.changeScale(num) }, - rotateLeft() { + rotateLeft () { // 向左旋转 this.$refs.cropper.rotateLeft() }, - rotateRight() { + rotateRight () { // 向右旋转 this.$refs.cropper.rotateRight() }, - updateImg(file) { + updateImg (file) { this.option.img = file.url this.option.size = file.size / 1024 > 200 ? 0.9 : 0.95 }, - realTimes(data) { - console.log('data=>',data) + realTime (data) { // 实时预览 this.previews = data }, - close() { + close () { }, - uploadImg(type) { + uploadImg (type) { this.isDisabled = true // 将剪裁好的图片回传给父组件 const that = this @@ -158,81 +154,81 @@ export default { diff --git a/src/setting.js b/src/setting.js index 5f0626c..15826f8 100644 --- a/src/setting.js +++ b/src/setting.js @@ -12,7 +12,7 @@ if (isDev) { host = 'http://121.37.12.51/' // host = 'https://huorantech.cn/' // host = 'http://192.168.31.151:9000/'// 榕 - // host = 'http://192.168.31.52:9000/'// 赓 + host = 'http://192.168.31.53:9000/'// 赓 } else if (isPro) { jumpPath = 'https://www.huorantech.cn/judgmentPoint/' } diff --git a/src/utils/api.js b/src/utils/api.js index 8e61dba..6df6f67 100644 --- a/src/utils/api.js +++ b/src/utils/api.js @@ -450,6 +450,7 @@ export default { deleteTags: `nakadai/tags/deleteTags`, tagsList: `nakadai/tags/tagsList`, updateTags: `nakadai/tags/updateTags`, + updateTagsSort: `nakadai/tags/updateTagsSort`, addGoods: `nakadai/mall/addGoods`, listOfGoods: `nakadai/mall/listOfGoods`, deletionOfGoods: `nakadai/mall/deletionOfGoods`, diff --git a/src/views/order/AddOrder.vue b/src/views/order/AddOrder.vue index 7b89f55..c1ddb19 100644 --- a/src/views/order/AddOrder.vue +++ b/src/views/order/AddOrder.vue @@ -175,7 +175,7 @@
-