From 3d4a0b57fe6f6a1bb64ed5682a3df00a1de5a32d Mon Sep 17 00:00:00 2001
From: liutong <836164388@qq.com>
Date: Wed, 21 May 2025 18:03:06 +0800
Subject: [PATCH] =?UTF-8?q?feat(market):=20=E6=B7=BB=E5=8A=A0=E5=AE=A2?=
=?UTF-8?q?=E6=88=B7=E8=B5=84=E6=BA=90=E5=92=8C=E5=85=AD=E8=A6=81=E7=B4=A0?=
=?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AE=B0=E5=BD=95=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 新增客户资源和六要素修改记录的 API 接口和页面组件
- 实现修改记录的获取、展示和切换功能
-优化页面样式,增加时间轴和表格展示效果
---
api/apiRoute.js | 7 ++
common/config.js | 8 +-
pages/market/clue/edit_clues_log.vue | 135 ++++++++++++++++++++++-----
3 files changed, 122 insertions(+), 28 deletions(-)
diff --git a/api/apiRoute.js b/api/apiRoute.js
index c2bb466..c0f67d8 100644
--- a/api/apiRoute.js
+++ b/api/apiRoute.js
@@ -153,6 +153,13 @@ export default {
return res;
})
},
+ //销售端-客户资源-获取修改日志列表
+ xs_customerResourcesGetEditLogList(data = {}) {
+ let url = '/customerResources/getEditLogList'
+ return http.get(url, data).then(res => {
+ return res;
+ })
+ },
//销售端-资源共享-列表
xs_resourceSharingIndex(data = {}) {
let url = '/resourceSharing/index'
diff --git a/common/config.js b/common/config.js
index 180e8cb..d026265 100644
--- a/common/config.js
+++ b/common/config.js
@@ -1,13 +1,13 @@
// 线上测试地址
-// const Api_url='http://aaaaaaaa.hksywl.cn/api'
-// const img_domian = 'http://aaaaaaaa.hksywl.cn/'
+const Api_url='http://146.56.228.75:20025/api'
+const img_domian = 'http://146.56.228.75:20025/'
//本地测试地址
// const Api_url='http://zhjw.cc/api'
// const img_domian = 'http://zhjw.cc/'
-const Api_url='http://146.56.228.75:20024/api'
-const img_domian = 'http://146.56.228.75:20024/'
+// const Api_url='http://146.56.228.75:20024/api'
+// const img_domian = 'http://146.56.228.75:20024/'
const IsDemo = false
diff --git a/pages/market/clue/edit_clues_log.vue b/pages/market/clue/edit_clues_log.vue
index 8890467..af47812 100644
--- a/pages/market/clue/edit_clues_log.vue
+++ b/pages/market/clue/edit_clues_log.vue
@@ -1,15 +1,31 @@
+
+
+
+
+
+
+
-
+
- 2025-04-01 23:05:05
+
+ {{v.modification_time}}
- 修改人:张三 修改了如下内容
+ 修改人:{{v.staff_id_name}} 修改了如下内容
- 客户资源修改
@@ -48,19 +64,60 @@
-
- | {{ row.field }} |
- {{ row.oldValue }} |
- {{ row.newValue }} |
+
+ | {{ row.field_name_zh }} |
+ {{ row.old_value }} |
+ {{ row.new_value }} |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{v.modification_time}}
+
+
+ 修改人:{{v.staff_id_name}} 修改了如下内容
- 六要素修改
-
@@ -72,10 +129,10 @@
-
- | {{ row.field }} |
- {{ row.oldValue }} |
- {{ row.newValue }} |
+
+ | {{ row.field_name_zh }} |
+ {{ row.old_value }} |
+ {{ row.new_value }} |
@@ -87,6 +144,7 @@
+
@@ -106,7 +164,8 @@ export default {
page:1,//当前页码
limit:10,//每页返回数据条数
total:10,//数据总条数
- resource_id: '',//客户资源表id
+ type:'resource',//查询类型|resource=客户资源,six_speed=六要素
+ customer_resource_id: '',//客户资源表id
},
//数据列表
tableList:[{
@@ -140,14 +199,29 @@ export default {
oldValue:'张三',
newValue:'11李四李四李四李四李四李四李四李四李四李四李四123',
}
+ ],
+
+ //tab切换
+ optionTableId:0,//分段器初始选中项索引
+ optionTable:[
+ {
+ id: 0,
+ name: '客户资源修改记录',
+ type:'resource',
+ },
+ {
+ id: 1,
+ name: '六要素修改记录',
+ type:'six_speed',
+ }
]
}
},
onLoad(options) {
- this.filteredData.resource_id = options.resource_id//客户资源表id
+ this.filteredData.customer_resource_id = options.resource_id//客户资源表id
},
onShow() {
- // this.init()
+ this.init()
},
//下拉刷新
async onPullDownRefresh() {
@@ -197,7 +271,7 @@ export default {
this.tableList = []
}
- let res = await apiRoute.xs_resourceSharingIndex(data)
+ let res = await apiRoute.xs_customerResourcesGetEditLogList(data)
this.loading = false
this.isReachedBottom = false;
if (res.code != 1){
@@ -208,6 +282,8 @@ export default {
return
}
+ console.log(123123123,res)
+
this.tableList = this.tableList.concat(res.data.data); // 使用 concat 方法 将新数据追加到数组中
console.log('列表1',this.tableList)
@@ -216,6 +292,18 @@ export default {
},
+ //切换tag列表
+ async segmented(e) {
+ console.log('切换',e)
+ //e.id|0=基础信息 1=六要素
+ let status = e.id
+ this.optionTableId = String(status)
+ this.filteredData.type = e.type//查询类型|resource=客户资源,six_speed=六要素
+
+ await this.resetFilteredData()
+ await this.getList()
+ },
+
}
}
@@ -226,6 +314,10 @@ export default {
height: 100%;
//background-color: #292929;
overflow: auto;
+ .tab_section{
+ padding: 0 20rpx;
+ padding-top: 30rpx;
+ }
.table_list{
.itme_box {
margin-top: 30rpx;
@@ -236,11 +328,6 @@ export default {
font-size: 28rpx;
}
.table_section{
- .table_name{
- padding: 20rpx 0;
- padding-bottom: 10rpx;
- font-size: 28rpx;
- }
.table_box{
width: 100%;
border-collapse: collapse;