diff --git a/package.json b/package.json
index 7b8cec5..1aaf39a 100644
--- a/package.json
+++ b/package.json
@@ -7,7 +7,7 @@
"build": "vue-cli-service build"
},
"dependencies": {
- "@antv/g2plot": "^2.4.31",
+ "@antv/g2plot": "^2.4.25",
"axios": "^1.4.0",
"core-js": "^3.8.3",
"dayjs": "^1.11.9",
diff --git a/src/components/AiCopyFromTemu.vue b/src/components/AiCopyFromTemu.vue
index 8bc4556..8c545e9 100644
--- a/src/components/AiCopyFromTemu.vue
+++ b/src/components/AiCopyFromTemu.vue
@@ -80,7 +80,6 @@ export default {
}
},
created () {
- console.log(this.params?.url)
if (this.params?.url) {
this.form.url = this.params.url
}
diff --git a/src/components/AiProductDetail.vue b/src/components/AiProductDetail.vue
index cc8919a..fc781fa 100644
--- a/src/components/AiProductDetail.vue
+++ b/src/components/AiProductDetail.vue
@@ -16,7 +16,7 @@
-
+
@@ -39,19 +39,23 @@ export default {
},
computed: {
},
- created() {
- this.getInfo()
+ mounted() {
+ // this.info = this.params
+ this.$nextTick(() => {
+ this.init()
+ })
},
methods: {
- getInfo() {
- this.$http.post('/api/monitorDetail/queryDetail',null,{
+ init() {
+ this.$http.post('/api/monitorDetail/queryProductDetail',null,{
params: {
- goodsId: this.params.goodsId
+ goodsId: this.params.goodsId,
+ monitorId: this.params.monitorId
}
}).then(res => {
this.info = res.data
-
- const dualAxes = new DualAxes('chart', {
+
+ const dualAxes = new DualAxes('dataChart', {
data: [this.info.priceAndSale, this.info.priceAndSale],
xField: '日期',
yField: ['价格', '销量'],
@@ -65,14 +69,6 @@ export default {
color: '#5AD8A6',
}
],
- smooth: true,
- // @TODO 后续会换一种动画方式
- animation: {
- appear: {
- animation: 'path-in',
- duration: 5000,
- },
- },
});
dualAxes.render();
diff --git a/src/components/AiProductDropDown.vue b/src/components/AiProductDropDown.vue
index 95343ca..11f7c1b 100644
--- a/src/components/AiProductDropDown.vue
+++ b/src/components/AiProductDropDown.vue
@@ -6,7 +6,7 @@
查看详情
- 复制商品
+ 商品采集
访问商品
访问店铺
@@ -51,7 +51,6 @@ export default {
} else if (e.type == 'goMall') {
window.open('https://www.temu.com/mall.html?mall_id=' + e.mallId, '_blank');
} else if (e.type == 'goWeb') {
- console.log(e.url)
window.open('https://www.temu.com/' + e.url, '_blank');
}
},
diff --git a/src/view/selection/keywordtrack/components/Detail.vue b/src/view/selection/keywordtrack/components/Detail.vue
index c26ec4e..8d689e1 100644
--- a/src/view/selection/keywordtrack/components/Detail.vue
+++ b/src/view/selection/keywordtrack/components/Detail.vue
@@ -16,7 +16,7 @@
${{ item.priceAndSale[0].price }}
{{ item.priceAndSale[0].sale_total }}
-
+
@@ -124,8 +124,8 @@ import AiProductDropDown from '@/components/AiProductDropDown.vue';
handleClose() {
this.isShowDetailDlg = false
},
- goDetail (goodsId) {
- this.detailParams = {goodsId: goodsId}
+ goDetail (goodsId, monitorId) {
+ this.detailParams = {goodsId: goodsId, monitorId: monitorId}
this.isShowDetailDlg = true
}
}
diff --git a/src/view/selection/storetrack/components/Detail.vue b/src/view/selection/storetrack/components/Detail.vue
index 707ed8e..5ac9bd6 100644
--- a/src/view/selection/storetrack/components/Detail.vue
+++ b/src/view/selection/storetrack/components/Detail.vue
@@ -16,7 +16,7 @@
${{ item.priceAndSale[0].price }}
{{ item.priceAndSale[0].sale_total }}
-
+
@@ -122,8 +122,8 @@ import AiProductDropDown from '@/components/AiProductDropDown.vue';
handleClose() {
this.isShowDetailDlg = false
},
- goDetail (goodsId) {
- this.detailParams = {goodsId: goodsId}
+ goDetail (goodsId, monitorId) {
+ this.detailParams = {goodsId: goodsId, monitorId: monitorId}
this.isShowDetailDlg = true
}
}
diff --git a/vue.config.js b/vue.config.js
index b59796f..6401a8e 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -1,6 +1,6 @@
const path = require('path')
const fs = require('fs')
-const JavaScriptObfuscator = require('webpack-obfuscator')
+// const JavaScriptObfuscator = require('webpack-obfuscator')
// Generate pages object
const pages = {}
@@ -47,9 +47,7 @@ module.exports = {
}, lintOnSave: false, configureWebpack: {
output: {
filename: `[name].js`, chunkFilename: `[name].js`
- }, devtool: isDevMode ? 'inline-source-map' : false, plugins: isDevMode ? [] : [new JavaScriptObfuscator({
- rotateStringArray: true,
- }, [])]
+ }, devtool: isDevMode ? 'inline-source-map' : false
}, css: {
extract: false // Make sure the css is the same
}