From 0522cadeeea1403bcc178b47969f071bc9b19a7a Mon Sep 17 00:00:00 2001 From: liushiwei <499672082@qq.com> Date: Wed, 25 Oct 2023 12:20:10 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/AiCopyFromTemu.vue | 38 +- src/components/AiLazyCascader.vue | 466 ++++++++++++++++++ src/components/AiPayment.vue | 2 +- src/utils/index.js | 4 +- src/utils/product.js | 1 + src/view/product/CopyProduct.vue | 39 +- src/view/selection/NiubiCopy.vue | 2 +- .../keywordtrack/components/Detail.vue | 64 ++- .../keywordtrack/components/List.vue | 76 ++- .../storetrack/components/Detail.vue | 64 ++- .../selection/storetrack/components/List.vue | 76 ++- 11 files changed, 761 insertions(+), 71 deletions(-) create mode 100644 src/components/AiLazyCascader.vue diff --git a/src/components/AiCopyFromTemu.vue b/src/components/AiCopyFromTemu.vue index 8c545e9..cd23a7b 100644 --- a/src/components/AiCopyFromTemu.vue +++ b/src/components/AiCopyFromTemu.vue @@ -26,7 +26,11 @@ - +
@@ -38,23 +42,25 @@ + diff --git a/src/components/AiPayment.vue b/src/components/AiPayment.vue index 35eae2e..5ca2648 100644 --- a/src/components/AiPayment.vue +++ b/src/components/AiPayment.vue @@ -113,7 +113,7 @@ export default { search: {module: "0"}, show: true, descriptionsModule0: ["抢仓发货", "数据下载", "复制商品", "会员服务"], - descriptionsModule1: ["智能复制"], + descriptionsModule1: ["商品采集", "店铺跟踪", "关键字跟踪"], payments: [], qrcode: "", amount: 0, diff --git a/src/utils/index.js b/src/utils/index.js index 976811b..156cf67 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -104,8 +104,8 @@ const userCheck = (mallId) => { tempMallId = store.state.mallId } if (res.type != 4 && tempMallId != store.state.userInfo.mallId) { - Message.error('您当前登录的TEMU账号与会员绑定账号不一致') - reject('您当前登录的TEMU账号与会员绑定账号不一致') + Message.error('您当前登录的卖家中心店铺与会员绑定店铺不一致') + reject('您当前登录的卖家中心店铺与会员绑定店铺不一致') return false } diff --git a/src/utils/product.js b/src/utils/product.js index 8257a31..af6f9db 100644 --- a/src/utils/product.js +++ b/src/utils/product.js @@ -16,6 +16,7 @@ export function transform(leftData) { // 普通属性 rightData.productName = leftData.productName; rightData.materialMultiLanguages = leftData.productLocalExtAttr.materialMultiLanguages; + rightData.productI18nReqs = leftData.productI18nList; rightData.productPropertyReqs = []; for (let i = 0; i < leftData.productPropertyList.length; i++) { rightData.productPropertyReqs.push({ diff --git a/src/view/product/CopyProduct.vue b/src/view/product/CopyProduct.vue index c80ee11..63f0539 100644 --- a/src/view/product/CopyProduct.vue +++ b/src/view/product/CopyProduct.vue @@ -110,7 +110,11 @@ - + @@ -91,8 +130,9 @@ import { Message } from 'element-ui' }, colConfigs: [ { type: "selection", width: '70px', align: 'left' }, - { prop: 'content', label: '关键字', align: 'left' }, + { slot: 'content', label: '关键字', align: 'left' }, { prop: 'orderType', label: '排序方式', align: 'left', format: v => this.$dict.getLabel('monitor_order_type', v) }, + { prop: 'remark', label: '备注', align: 'left'}, { prop: 'lastUpdateTime', label: '最后一次更新时间', align: 'left' }, { prop: 'status', label: '状态', align: 'left', format: v => this.$dict.getLabel('monitor_status', v), }, { prop: 'expireTime', label: '失效时间', align: 'left' }, @@ -103,7 +143,16 @@ import { Message } from 'element-ui' form: { content: '', - orderType: '0:1' + orderType: '0:1', + remark: '' + }, + + updateObj: {}, + isUpdateDlgShow: false, + updateForm: { + id: '', + mallId: '', + remark: '' }, isDlgShow: false, @@ -142,7 +191,7 @@ import { Message } from 'element-ui' if (valid) { this.$http.post('/api/monitor/check',null, {params: {type: 0}}).then(res => { if (res.code == 0) { - this.$http.post(`/api/monitor/add`, {content: this.form.content, orderType: this.form.orderType, type: this.search.type}).then(res => { + this.$http.post(`/api/monitor/add`, {content: this.form.content, remark: this.form.remark, orderType: this.form.orderType, type: this.search.type}).then(res => { if (res.code == 0) { this.$message.success('添加成功!') this.$store.dispatch('getUserInfo') @@ -155,6 +204,25 @@ import { Message } from 'element-ui' } }) }, + toUpdateMonitor (obj) { + this.updateObj = obj + this.updateForm.mallId = obj.content + this.updateForm.remark = obj.remark + this.isUpdateDlgShow = true + }, + updateStore () { + this.$refs.updateForm.validate((valid) => { + if (valid) { + this.$http.post(`/api/monitor/update`, {id: this.updateObj.id, remark: this.updateForm.remark}).then(res => { + if (res.code == 0) { + this.$message.success('修改成功!') + this.getList() + this.isUpdateDlgShow = false + } + }) + } + }) + }, renew(id) { this.$confirm('确定要续费?', '温馨提示', { type: 'warning' diff --git a/src/view/selection/storetrack/components/Detail.vue b/src/view/selection/storetrack/components/Detail.vue index 5ac9bd6..301763b 100644 --- a/src/view/selection/storetrack/components/Detail.vue +++ b/src/view/selection/storetrack/components/Detail.vue @@ -7,14 +7,24 @@ isShowBottomBorder isShowBack @onBackClick="cancel(false)"> @@ -60,12 +66,45 @@ :rules="[{ required: true, message: '请输入店铺ID', trigger: 'blur' }]"> + + + + + + + + + + + + + + +
@@ -84,7 +123,8 @@ import {sendTemuAPIMessage} from '@/api/chromeApi' }, colConfigs: [ { type: "selection", width: '70px', align: 'left' }, - { prop: 'content', label: '店铺ID', align: 'left' }, + { slot: 'content', label: '店铺ID', align: 'left' }, + { prop: 'remark', label: '备注', align: 'left'}, { prop: 'lastUpdateTime', label: '最后一次更新时间', align: 'left' }, { prop: 'status', label: '状态', align: 'left', format: v => this.$dict.getLabel('monitor_status', v), }, { prop: 'expireTime', label: '失效时间', align: 'left' }, @@ -94,7 +134,16 @@ import {sendTemuAPIMessage} from '@/api/chromeApi' total: 0, form: { - mallId: '' + mallId: '', + remark: '' + }, + + updateObj: {}, + isUpdateDlgShow: false, + updateForm: { + id: '', + mallId: '', + remark: '' }, isDlgShow: false, @@ -133,7 +182,7 @@ import {sendTemuAPIMessage} from '@/api/chromeApi' if (valid) { this.$http.post('/api/monitor/check',null, {params: {type: 1}}).then(res => { if (res.code == 0) { - this.$http.post(`/api/monitor/add`, {content: this.form.mallId, type: this.search.type}).then(res => { + this.$http.post(`/api/monitor/add`, {content: this.form.mallId, remark: this.form.remark, type: this.search.type}).then(res => { if (res.code == 0) { this.$message.success('添加成功!') this.$store.dispatch('getUserInfo') @@ -146,6 +195,25 @@ import {sendTemuAPIMessage} from '@/api/chromeApi' } }) }, + toUpdateMonitor (obj) { + this.updateObj = obj + this.updateForm.mallId = obj.content + this.updateForm.remark = obj.remark + this.isUpdateDlgShow = true + }, + updateStore () { + this.$refs.updateForm.validate((valid) => { + if (valid) { + this.$http.post(`/api/monitor/update`, {id: this.updateObj.id, remark: this.updateForm.remark}).then(res => { + if (res.code == 0) { + this.$message.success('修改成功!') + this.getList() + this.isUpdateDlgShow = false + } + }) + } + }) + }, batchRemove() { if (this.selectRows.length <= 0) { this.$message.error('请选择要删除的监测对象');