Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-link
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 62106cd1
authored
Mar 17, 2023
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
57c45447
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
7 deletions
src/api/modules/giftBag.js
src/config/index.js
src/main.js
src/setup/qiankun.js
src/utils/index.js
src/views/activityLink/components/selectGoodsDialog.vue
src/api/modules/giftBag.js
View file @
62106cd
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2022-12-13 16:38:54
* @Date: 2022-12-13 16:38:54
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-03-1
4 14:08:40
* @LastEditTime: 2023-03-1
7 18:22:18
* @FilePath: \scrm-micro-link\src\api\modules\giftBag.js
* @FilePath: \scrm-micro-link\src\api\modules\giftBag.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
*/
...
...
src/config/index.js
View file @
62106cd
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* @Author: limin
* @Author: limin
* @Date: 2021-06-07 14:12:32
* @Date: 2021-06-07 14:12:32
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-03-
02 17:28:20
* @LastEditTime: 2023-03-
14 14:04:37
*/
*/
// 根据环境引入不同配置 process.env.VUE_APP_ENV
// 根据环境引入不同配置 process.env.VUE_APP_ENV
// let request = require('@/http/request.js')
// let request = require('@/http/request.js')
...
...
src/main.js
View file @
62106cd
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* @Author: limin
* @Author: limin
* @Date: 2021-08-13 14:12:11
* @Date: 2021-08-13 14:12:11
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-03-1
0 18:08:50
* @LastEditTime: 2023-03-1
3 13:56:05
* @FilePath: \scrm\scrm-sub-blog\src\main.js
* @FilePath: \scrm\scrm-sub-blog\src\main.js
*/
*/
import
Vue
from
'vue'
import
Vue
from
'vue'
...
@@ -20,7 +20,7 @@ Vue.prototype.size = 'small'
...
@@ -20,7 +20,7 @@ Vue.prototype.size = 'small'
Vue
.
prototype
.
defaultLabelWidth
=
'154px'
Vue
.
prototype
.
defaultLabelWidth
=
'154px'
try
{
try
{
const
loginpath
=
JSON
.
parse
(
sessionStorage
.
getItem
(
'SCRM_BASE_SESSION'
))?.
loginpath
const
loginpath
=
JSON
.
parse
(
sessionStorage
.
getItem
(
'SCRM_BASE_SESSION'
))?.
loginpath
if
(
loginpath
=
==
'/oss'
)
Vue
.
prototype
.
loginpath
=
true
if
(
loginpath
!
==
'/oss'
)
Vue
.
prototype
.
loginpath
=
true
}
catch
(
e
)
{
}
catch
(
e
)
{
console
.
log
(
e
)
console
.
log
(
e
)
}
}
...
...
src/setup/qiankun.js
View file @
62106cd
/*
/*
* @Author: 前端 qianduan01@didihu.com.cn
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2022-12-13 09:23:57
* @Date: 2022-12-13 09:23:57
* @LastEditors:
前端 qianduan01
@didihu.com.cn
* @LastEditors:
yangming yangming
@didihu.com.cn
* @LastEditTime: 202
2-12-23 15:17:06
* @LastEditTime: 202
3-03-14 14:01:38
* @FilePath: \scrm-micro-link\src\setup\qiankun.js
* @FilePath: \scrm-micro-link\src\setup\qiankun.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
*/
...
...
src/utils/index.js
View file @
62106cd
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Author: yangming yangming@didihu.com.cn
* @Date: 2022-11-23 11:06:49
* @Date: 2022-11-23 11:06:49
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 202
2-12-01 10:06:04
* @LastEditTime: 202
3-03-16 14:46:00
* @FilePath: \live\src\utils\index.js
* @FilePath: \live\src\utils\index.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
*/
...
@@ -56,3 +56,18 @@ export function GetDateDiff(time1, time2 = new Date()) {
...
@@ -56,3 +56,18 @@ export function GetDateDiff(time1, time2 = new Date()) {
let
seconds
=
Math
.
round
(
leave3
/
1000
)
let
seconds
=
Math
.
round
(
leave3
/
1000
)
return
days
+
'天'
+
hours
+
'时'
+
minutes
+
'分'
+
seconds
+
'秒'
return
days
+
'天'
+
hours
+
'时'
+
minutes
+
'分'
+
seconds
+
'秒'
}
}
export
function
deepClone
(
obj
)
{
let
result
=
typeof
obj
.
splice
===
'function'
?
[]
:
{}
if
(
obj
&&
typeof
obj
===
'object'
)
{
for
(
let
key
in
obj
)
{
if
(
obj
[
key
]
&&
typeof
obj
[
key
]
===
'object'
)
{
result
[
key
]
=
deepClone
(
obj
[
key
])
//如果对象的属性值为object的时候,递归调用deepClone,即在吧某个值对象复制一份到新的对象的对应值中。
}
else
{
result
[
key
]
=
obj
[
key
]
//如果对象的属性值不为object的时候,直接复制参数对象的每一个键值到新的对象对应的键值对中。
}
}
return
result
}
return
obj
}
src/views/activityLink/components/selectGoodsDialog.vue
View file @
62106cd
...
@@ -336,8 +336,10 @@ export default {
...
@@ -336,8 +336,10 @@ export default {
// },
// },
// 选择/取消
// 选择/取消
handleSelectionTable
(
val
)
{
handleSelectionTable
(
val
)
{
console
.
log
(
val
)
const
selectedList
=
this
.
initSelected
?
this
.
initSelected
[
this
.
activeName
].
list
:
this
.
selectedList
[
this
.
activeName
].
list
const
selectedList
=
this
.
initSelected
?
this
.
initSelected
[
this
.
activeName
].
list
:
this
.
selectedList
[
this
.
activeName
].
list
var
list
=
this
.
$common
.
utils
.
deepClone
(
selectedList
)
var
list
=
this
.
$common
.
utils
.
deepClone
(
selectedList
)
// const val = this.getSelectionTable(list, valp)
var
count
=
0
var
count
=
0
var
currentIdList
=
this
.
GoodsList
.
map
(
item
=>
item
.
id
)
var
currentIdList
=
this
.
GoodsList
.
map
(
item
=>
item
.
id
)
val
val
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment