Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
marketing
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
marketing-web
marketing
Commits
b14262fb
Commit
b14262fb
authored
Jan 11, 2019
by
zhangmeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add:新增了插件
parent
04190ead
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
40 additions
and
33 deletions
+40
-33
routes.js
src/router/routes.js
+2
-2
group.vue
src/test/component/dmStore/group.vue
+4
-10
index.vue
src/test/component/dmStore/index.vue
+1
-0
option-area.vue
src/test/component/dmStore/options/option-area.vue
+1
-0
option-group.vue
src/test/component/dmStore/options/option-group.vue
+1
-0
option-part.vue
src/test/component/dmStore/options/option-part.vue
+1
-0
option-tags.vue
src/test/component/dmStore/options/option-tags.vue
+1
-0
option-type.vue
src/test/component/dmStore/options/option-type.vue
+1
-0
option-area.vue
src/test/component/dmStore/optionsGroup/option-area.vue
+5
-4
option-group.vue
src/test/component/dmStore/optionsGroup/option-group.vue
+8
-7
option-part.vue
src/test/component/dmStore/optionsGroup/option-part.vue
+8
-6
option-tags.vue
src/test/component/dmStore/optionsGroup/option-tags.vue
+0
-0
option-type.vue
src/test/component/dmStore/optionsGroup/option-type.vue
+5
-4
store-card.vue
src/test/component/dmStore/store-card.vue
+2
-0
No files found.
src/router/routes.js
View file @
b14262fb
...
...
@@ -4,7 +4,7 @@ import page403 from '@/views/error/403'
import
page404
from
'@/views/error/404'
import
page500
from
'@/views/error/500'
//
import test from './modules/test'
import
test
from
'./modules/test'
//微信营销
import
wechat
from
'./modules/wechat'
...
...
@@ -66,5 +66,5 @@ export default [
name
:
'未知领域'
,
component
:
page404
},
//
test
test
]
src/test/component/dmStore/group.vue
View file @
b14262fb
...
...
@@ -69,16 +69,12 @@ export default {
// 编辑或者详情
if
(
val
&&
!
this
.
isAdd
)
{
if
(
this
.
isSendCache
)
return
;
console
.
log
(
'走到这了'
);
this
.
init
();
}
},
isSendCache
(
val
)
{
console
.
log
(
val
)
if
(
val
)
{
this
.
$emit
(
'update:uuid'
,
this
.
cacheUuid
);
this
.
$nextTick
(
_
=>
{
console
.
log
(
this
.
uuid
)
})
...
...
@@ -98,8 +94,6 @@ export default {
}
},
created
()
{
console
.
log
(
this
.
isAdd
)
if
(
this
.
options
instanceof
Array
)
{
leftList
.
map
(
v
=>
{
if
(
this
.
options
.
indexOf
(
v
.
value
)
>=
0
)
{
...
...
@@ -123,7 +117,6 @@ export default {
// 这是保存新的id
this
.
saveInit
();
}
/*如果有uuid的情况下
1 创建一个新的uuid备用 newUUid
2 保存 一下这个新的uuid
...
...
@@ -146,7 +139,7 @@ export default {
currentPage
:
1
,
pageSize
:
20
}
this
.
axios
.
post
(
baseUrl
+
'/api-plug/get-store-widget-config?requestProject=gic-
web
'
,
qs
.
stringify
(
params
)).
then
(
res
=>
{
this
.
axios
.
post
(
baseUrl
+
'/api-plug/get-store-widget-config?requestProject=gic-
clique
'
,
qs
.
stringify
(
params
)).
then
(
res
=>
{
if
(
res
.
data
.
errorCode
===
0
)
{
this
.
storeType
=
res
.
data
.
result
.
selectType
||
0
;
let
list
=
res
.
data
.
result
.
config
.
result
||
[];
...
...
@@ -184,8 +177,9 @@ export default {
isAll
:
0
,
value
:
''
,
removeItems
:
''
,
isClique
:
1
};
this
.
axios
.
post
(
baseUrl
+
'/api-plug/save-store-widget?requestProject=gic-
web
'
,
qs
.
stringify
(
params
)).
then
(
res
=>
{
this
.
axios
.
post
(
baseUrl
+
'/api-plug/save-store-widget?requestProject=gic-
clique
'
,
qs
.
stringify
(
params
)).
then
(
res
=>
{
}).
catch
(
err
=>
{
console
.
log
(
err
)
...
...
@@ -201,7 +195,7 @@ export default {
if
(
params
.
selectType
===
0
)
{
resolve
(
true
);
}
this
.
axios
.
post
(
baseUrl
+
'/api-plug/is-empty?requestProject=gic-
web
'
,
qs
.
stringify
(
params
)).
then
(
res
=>
{
this
.
axios
.
post
(
baseUrl
+
'/api-plug/is-empty?requestProject=gic-
clique
'
,
qs
.
stringify
(
params
)).
then
(
res
=>
{
console
.
log
(
res
);
if
(
res
.
data
.
errorCode
===
0
)
{
resolve
(
res
.
data
.
result
);
...
...
src/test/component/dmStore/index.vue
View file @
b14262fb
...
...
@@ -184,6 +184,7 @@ export default {
isAll
:
0
,
value
:
''
,
removeItems
:
''
,
isClique
:
0
};
this
.
axios
.
post
(
baseUrl
+
'/api-plug/save-store-widget?requestProject=gic-web'
,
qs
.
stringify
(
params
)).
then
(
res
=>
{
...
...
src/test/component/dmStore/options/option-area.vue
View file @
b14262fb
...
...
@@ -102,6 +102,7 @@ export default {
isAll
:
0
,
// 是 int 是否勾选全部 1是 0否
value
:
''
,
//否 string isAll=0时,必填,选中项id,多个逗号分隔
removeItems
:
''
,
//否 string isAll=1,取消选中项的id,多个逗号分隔
isClique
:
0
},
}
},
...
...
src/test/component/dmStore/options/option-group.vue
View file @
b14262fb
...
...
@@ -87,6 +87,7 @@ export default {
isAll
:
0
,
// 是 int 是否勾选全部 1是 0否
value
:
''
,
//否 string isAll=0时,必填,选中项id,多个逗号分隔
removeItems
:
''
,
//否 string isAll=1,取消选中项的id,多个逗号分隔
isClique
:
0
},
isIndeterminate
:
true
,
rightHoverIndex
:
null
,
...
...
src/test/component/dmStore/options/option-part.vue
View file @
b14262fb
...
...
@@ -94,6 +94,7 @@ export default {
isAll
:
0
,
// 是 int 是否勾选全部 1是 0否
value
:
''
,
//否 string isAll=0时,必填,选中项id,多个逗号分隔
removeItems
:
''
,
//否 string isAll=1,取消选中项的id,多个逗号分隔
isClique
:
0
},
rightParams
:{
key
:
this
.
uuid
,
...
...
src/test/component/dmStore/options/option-tags.vue
View file @
b14262fb
...
...
@@ -89,6 +89,7 @@ export default {
isAll
:
0
,
// 是 int 是否勾选全部 1是 0否
value
:
''
,
//否 string isAll=0时,必填,选中项id,多个逗号分隔
removeItems
:
''
,
//否 string isAll=1,取消选中项的id,多个逗号分隔
isClique
:
0
},
rightParams
:{
key
:
this
.
uuid
,
...
...
src/test/component/dmStore/options/option-type.vue
View file @
b14262fb
...
...
@@ -64,6 +64,7 @@ export default {
isAll
:
0
,
// 是 int 是否勾选全部 1是 0否
value
:
''
,
//否 string isAll=0时,必填,选中项id,多个逗号分隔
removeItems
:
''
,
//否 string isAll=1,取消选中项的id,多个逗号分隔
isClique
:
0
},
}
},
...
...
src/test/component/dmStore/optionsGroup/option-area.vue
View file @
b14262fb
...
...
@@ -102,6 +102,7 @@ export default {
isAll
:
0
,
// 是 int 是否勾选全部 1是 0否
value
:
''
,
//否 string isAll=0时,必填,选中项id,多个逗号分隔
removeItems
:
''
,
//否 string isAll=1,取消选中项的id,多个逗号分隔
isClique
:
1
},
}
},
...
...
@@ -116,7 +117,7 @@ export default {
methods
:{
// 获取树形结构
async
getAreaTree
()
{
let
res
=
await
this
.
axios
.
get
(
baseUrl
+
'/api-plug/dict-district-tree?requestProject=gic-
web
'
)
let
res
=
await
this
.
axios
.
get
(
baseUrl
+
'/api-plug/dict-district-tree?requestProject=gic-
clique
'
)
this
.
areaList
=
res
.
data
.
result
.
map
(
v
=>
({
isCheck
:
false
,
indeterminate
:
false
,
...
...
@@ -142,7 +143,7 @@ export default {
currentPage
:
1
,
pageSize
:
3000
}
this
.
axios
.
post
(
baseUrl
+
'/api-plug/list-right-data?requestProject=gic-
web
'
,
qs
.
stringify
(
params
)).
then
(
res
=>
{
this
.
axios
.
post
(
baseUrl
+
'/api-plug/list-right-data?requestProject=gic-
clique
'
,
qs
.
stringify
(
params
)).
then
(
res
=>
{
let
list
=
(
res
.
data
.
result
&&
res
.
data
.
result
.
result
)
||
[];
list
.
map
(
u
=>
u
.
id
).
map
(
u
=>
{
this
.
areaList
.
map
(
v
=>
{
...
...
@@ -222,7 +223,7 @@ export default {
this
.
$message
({
type
:
"warning"
,
message
:
"门店选择不能为空"
});
return
;
}
this
.
axios
.
post
(
baseUrl
+
'/api-plug/save-store-widget?requestProject=gic-
web
'
,
qs
.
stringify
(
this
.
params
)).
then
(
res
=>
{
this
.
axios
.
post
(
baseUrl
+
'/api-plug/save-store-widget?requestProject=gic-
clique
'
,
qs
.
stringify
(
this
.
params
)).
then
(
res
=>
{
if
(
res
.
data
.
errorCode
===
0
)
{
if
(
!
this
.
isAdd
)
{
this
.
$emit
(
'update:isCache'
,
true
);
...
...
@@ -239,7 +240,7 @@ export default {
// 把老数据拷贝到新的临时id上
copyStoreWidget
()
{
this
.
axios
.
get
(
baseUrl
+
'/api-plug/copy-store-widget?requestProject=gic-
web
&oldKey='
+
this
.
uuid
+
'&newKey='
+
this
.
cacheUuid
).
then
(
res
=>
{
this
.
axios
.
get
(
baseUrl
+
'/api-plug/copy-store-widget?requestProject=gic-
clique
&oldKey='
+
this
.
uuid
+
'&newKey='
+
this
.
cacheUuid
).
then
(
res
=>
{
if
(
res
.
data
.
errorCode
===
0
)
{
console
.
log
(
'拷贝成功'
);
}
...
...
src/test/component/dmStore/optionsGroup/option-group.vue
View file @
b14262fb
...
...
@@ -11,7 +11,7 @@
<div
class=
"dm-store__search"
>
<el-input
v-model=
"leftValue"
placeholder=
"请输入门店名称"
prefix-icon=
"el-icon-search"
@
change=
"getLeftList"
></el-input>
</div>
<el-tree
ref=
"tree"
class=
"dm-store__list"
:data=
"leftList"
:default-expand-all=
"true"
show-checkbox
node-key=
"storeGroupId"
:props=
"defaultProps"
></el-tree>
<el-tree
ref=
"tree"
class=
"dm-store__list"
:data=
"leftList"
:default-expand-all=
"true"
show-checkbox
node-key=
"storeGroupId"
:props=
"defaultProps"
></el-tree>
</div>
<div
class=
"dm-store__center"
>
<el-button
type=
"primary"
icon=
"el-icon-arrow-right"
circle
@
click=
"saveToRight"
></el-button>
...
...
@@ -87,6 +87,7 @@ export default {
isAll
:
0
,
// 是 int 是否勾选全部 1是 0否
value
:
''
,
//否 string isAll=0时,必填,选中项id,多个逗号分隔
removeItems
:
''
,
//否 string isAll=1,取消选中项的id,多个逗号分隔
isClique
:
1
},
isIndeterminate
:
true
,
rightHoverIndex
:
null
,
...
...
@@ -112,7 +113,7 @@ export default {
// 拉取左侧数据
getLeftList
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
this
.
axios
.
get
(
baseUrl
+
'/api-plug/
store-group-list?requestProject=gic-web
&search='
+
this
.
leftValue
).
then
(
res
=>
{
this
.
axios
.
get
(
baseUrl
+
'/api-plug/
clique-store-group-list?requestProject=gic-clique
&search='
+
this
.
leftValue
).
then
(
res
=>
{
this
.
leftList
=
res
.
data
.
result
||
[];
resolve
();
// this.leftTotal = res.data.result.totalCount || 0;
...
...
@@ -132,7 +133,7 @@ export default {
pageSize
:
999
}
this
.
axios
.
post
(
baseUrl
+
'/api-plug/list-right-data?requestProject=gic-
web
'
,
qs
.
stringify
(
params
)).
then
(
res
=>
{
this
.
axios
.
post
(
baseUrl
+
'/api-plug/list-right-data?requestProject=gic-
clique
'
,
qs
.
stringify
(
params
)).
then
(
res
=>
{
this
.
rightList
=
(
res
.
data
.
result
&&
res
.
data
.
result
.
result
)
||
[];
this
.
rightTotal
=
(
res
.
data
.
result
&&
res
.
data
.
result
.
totalCount
)
||
0
;
this
.
$nextTick
(
_
=>
{
...
...
@@ -156,7 +157,7 @@ export default {
return
;
}
}
this
.
axios
.
post
(
baseUrl
+
'/api-plug/save-store-widget?requestProject=gic-
web
'
,
qs
.
stringify
(
this
.
params
)).
then
(
res
=>
{
this
.
axios
.
post
(
baseUrl
+
'/api-plug/save-store-widget?requestProject=gic-
clique
'
,
qs
.
stringify
(
this
.
params
)).
then
(
res
=>
{
if
(
!
this
.
isAdd
)
{
this
.
$emit
(
'update:isCache'
,
true
);
}
...
...
@@ -169,7 +170,7 @@ export default {
},
// 删除右侧全部
deleteRightAll
()
{
this
.
axios
.
get
(
baseUrl
+
'/api-plug/remove-allitems?requestProject=gic-
web
&key='
+
(
this
.
isAdd
?
this
.
uuid
:
this
.
cacheUuid
)).
then
(
res
=>
{
this
.
axios
.
get
(
baseUrl
+
'/api-plug/remove-allitems?requestProject=gic-
clique
&key='
+
(
this
.
isAdd
?
this
.
uuid
:
this
.
cacheUuid
)).
then
(
res
=>
{
if
(
res
.
data
.
errorCode
===
0
)
{
if
(
!
this
.
isAdd
)
{
this
.
$emit
(
'update:isCache'
,
true
);
...
...
@@ -193,7 +194,7 @@ export default {
console
.
log
(
this
.
isAdd
,
this
.
uuid
,
this
.
cacheUuid
)
this
.
params
.
value
=
this
.
leftCheckList
.
join
(
','
);
// console.log(url);
this
.
axios
.
post
(
baseUrl
+
'/api-plug/remove-items?requestProject=gic-
web
'
,
qs
.
stringify
(
params
)).
then
(
res
=>
{
this
.
axios
.
post
(
baseUrl
+
'/api-plug/remove-items?requestProject=gic-
clique
'
,
qs
.
stringify
(
params
)).
then
(
res
=>
{
if
(
!
this
.
isAdd
)
{
this
.
$emit
(
'update:isCache'
,
true
);
}
...
...
@@ -211,7 +212,7 @@ export default {
},
// 把老数据拷贝到新的临时id上
copyStoreWidget
()
{
this
.
axios
.
get
(
baseUrl
+
'/api-plug/copy-store-widget?requestProject=gic-
web
&oldKey='
+
this
.
uuid
+
'&newKey='
+
this
.
cacheUuid
).
then
(
res
=>
{
this
.
axios
.
get
(
baseUrl
+
'/api-plug/copy-store-widget?requestProject=gic-
clique
&oldKey='
+
this
.
uuid
+
'&newKey='
+
this
.
cacheUuid
).
then
(
res
=>
{
if
(
res
.
data
.
errorCode
===
0
)
{
console
.
log
(
'拷贝成功'
);
}
...
...
src/test/component/dmStore/optionsGroup/option-part.vue
View file @
b14262fb
...
...
@@ -94,6 +94,7 @@ export default {
isAll
:
0
,
// 是 int 是否勾选全部 1是 0否
value
:
''
,
//否 string isAll=0时,必填,选中项id,多个逗号分隔
removeItems
:
''
,
//否 string isAll=1,取消选中项的id,多个逗号分隔
isClique
:
1
},
rightParams
:{
key
:
this
.
uuid
,
...
...
@@ -106,6 +107,7 @@ export default {
searchParam
:
''
,
pageSize
:
20
,
currentPage
:
1
,
isClique
:
1
},
rightHoverIndex
:
null
,
rightTotal
:
0
,
...
...
@@ -166,7 +168,7 @@ export default {
getLeftList
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
this
.
leftMoreLoading
=
true
;
this
.
axios
.
post
(
baseUrl
+
'/api-plug/query-store-by-code-name-new?requestProject=gic-
web
'
,
qs
.
stringify
(
this
.
leftParams
)).
then
(
res
=>
{
this
.
axios
.
post
(
baseUrl
+
'/api-plug/query-store-by-code-name-new?requestProject=gic-
clique
'
,
qs
.
stringify
(
this
.
leftParams
)).
then
(
res
=>
{
this
.
leftMoreLoading
=
false
;
if
(
res
.
data
.
errorCode
===
0
)
{
let
list
=
(
res
.
data
.
result
&&
res
.
data
.
result
.
result
)
||
[];
...
...
@@ -192,7 +194,7 @@ export default {
return
new
Promise
((
resolve
,
reject
)
=>
{
this
.
rightMoreLoading
=
true
;
this
.
rightParams
.
key
=
this
.
isCache
?
this
.
cacheUuid
:
this
.
uuid
;
this
.
axios
.
post
(
baseUrl
+
'/api-plug/list-right-data?requestProject=gic-
web
'
,
qs
.
stringify
(
this
.
rightParams
)).
then
(
res
=>
{
this
.
axios
.
post
(
baseUrl
+
'/api-plug/list-right-data?requestProject=gic-
clique
'
,
qs
.
stringify
(
this
.
rightParams
)).
then
(
res
=>
{
this
.
rightMoreLoading
=
false
;
if
(
res
.
data
.
errorCode
===
0
)
{
this
.
rightTotal
=
(
res
.
data
.
result
&&
res
.
data
.
result
.
totalCount
)
||
0
;
...
...
@@ -251,7 +253,7 @@ export default {
return
;
}
}
this
.
axios
.
post
(
baseUrl
+
'/api-plug/save-store-widget?requestProject=gic-
web
'
,
qs
.
stringify
(
this
.
saveParams
)).
then
(
res
=>
{
this
.
axios
.
post
(
baseUrl
+
'/api-plug/save-store-widget?requestProject=gic-
clique
'
,
qs
.
stringify
(
this
.
saveParams
)).
then
(
res
=>
{
this
.
rightParams
.
currentPage
=
1
;
if
(
!
this
.
isAdd
)
{
this
.
$emit
(
'update:isCache'
,
true
);
...
...
@@ -267,7 +269,7 @@ export default {
},
// 删除右侧全部
deleteRightAll
()
{
this
.
axios
.
get
(
baseUrl
+
'/api-plug/remove-allitems?requestProject=gic-
web
&key='
+
(
this
.
isAdd
?
this
.
uuid
:
this
.
cacheUuid
)).
then
(
res
=>
{
this
.
axios
.
get
(
baseUrl
+
'/api-plug/remove-allitems?requestProject=gic-
clique
&key='
+
(
this
.
isAdd
?
this
.
uuid
:
this
.
cacheUuid
)).
then
(
res
=>
{
if
(
res
.
data
.
errorCode
===
0
)
{
if
(
!
this
.
isAdd
)
{
this
.
$emit
(
'update:isCache'
,
true
);
...
...
@@ -289,7 +291,7 @@ export default {
removeItems
:
item
||
this
.
rightCheckList
.
join
(
','
)
}
this
.
saveParams
.
value
=
this
.
leftCheckList
.
join
(
','
);
this
.
axios
.
post
(
baseUrl
+
'/api-plug/remove-items?requestProject=gic-
web
'
,
qs
.
stringify
(
params
)).
then
(
res
=>
{
this
.
axios
.
post
(
baseUrl
+
'/api-plug/remove-items?requestProject=gic-
clique
'
,
qs
.
stringify
(
params
)).
then
(
res
=>
{
this
.
rightParams
.
currentPage
=
1
;
if
(
!
this
.
isAdd
)
{
this
.
$emit
(
'update:isCache'
,
true
);
...
...
@@ -308,7 +310,7 @@ export default {
},
// 把老数据拷贝到新的临时id上
copyStoreWidget
()
{
this
.
axios
.
get
(
baseUrl
+
'/api-plug/copy-store-widget?requestProject=gic-
web
&oldKey='
+
this
.
uuid
+
'&newKey='
+
this
.
cacheUuid
).
then
(
res
=>
{
this
.
axios
.
get
(
baseUrl
+
'/api-plug/copy-store-widget?requestProject=gic-
clique
&oldKey='
+
this
.
uuid
+
'&newKey='
+
this
.
cacheUuid
).
then
(
res
=>
{
if
(
res
.
data
.
errorCode
===
0
)
{
console
.
log
(
'拷贝成功'
);
}
...
...
src/test/component/dmStore/optionsGroup/option-tags.vue
View file @
b14262fb
This diff is collapsed.
Click to expand it.
src/test/component/dmStore/optionsGroup/option-type.vue
View file @
b14262fb
...
...
@@ -64,6 +64,7 @@ export default {
isAll
:
0
,
// 是 int 是否勾选全部 1是 0否
value
:
''
,
//否 string isAll=0时,必填,选中项id,多个逗号分隔
removeItems
:
''
,
//否 string isAll=1,取消选中项的id,多个逗号分隔
isClique
:
1
},
}
},
...
...
@@ -87,7 +88,7 @@ export default {
currentPage
:
1
,
pageSize
:
20
}
this
.
axios
.
post
(
baseUrl
+
'/api-plug/list-right-data?requestProject=gic-
web
'
,
qs
.
stringify
(
params
)).
then
(
res
=>
{
this
.
axios
.
post
(
baseUrl
+
'/api-plug/list-right-data?requestProject=gic-
clique
'
,
qs
.
stringify
(
params
)).
then
(
res
=>
{
if
(
res
.
data
.
errorCode
===
0
)
{
this
.
checkedList
=
((
res
.
data
.
result
&&
res
.
data
.
result
.
result
)
||
[]).
map
(
v
=>
v
.
id
);
}
...
...
@@ -103,7 +104,7 @@ export default {
this
.
$message
({
type
:
"warning"
,
message
:
"门店选择不能为空"
});
return
;
}
this
.
axios
.
post
(
baseUrl
+
'/api-plug/save-store-widget?requestProject=gic-
web
'
,
qs
.
stringify
(
this
.
params
)).
then
(
res
=>
{
this
.
axios
.
post
(
baseUrl
+
'/api-plug/save-store-widget?requestProject=gic-
clique
'
,
qs
.
stringify
(
this
.
params
)).
then
(
res
=>
{
// 如果是编辑 并且有操作 把isCache设为true 最终保存是临时id
if
(
!
this
.
isAdd
)
{
this
.
$emit
(
'update:isCache'
,
true
);
...
...
@@ -120,7 +121,7 @@ export default {
value
:
''
}
console
.
log
(
this
.
isAdd
,
this
.
uuid
,
this
.
cacheUuid
)
this
.
axios
.
post
(
baseUrl
+
'/api-plug/remove-items?requestProject=gic-
web
'
,
qs
.
stringify
(
params
)).
then
(
res
=>
{
this
.
axios
.
post
(
baseUrl
+
'/api-plug/remove-items?requestProject=gic-
clique
'
,
qs
.
stringify
(
params
)).
then
(
res
=>
{
if
(
!
this
.
isAdd
)
{
this
.
$emit
(
'update:isCache'
,
true
);
}
...
...
@@ -133,7 +134,7 @@ export default {
},
// 把老数据拷贝到新的临时id上
copyStoreWidget
()
{
this
.
axios
.
get
(
baseUrl
+
'/api-plug/copy-store-widget?requestProject=gic-
web
&oldKey='
+
this
.
uuid
+
'&newKey='
+
this
.
cacheUuid
).
then
(
res
=>
{
this
.
axios
.
get
(
baseUrl
+
'/api-plug/copy-store-widget?requestProject=gic-
clique
&oldKey='
+
this
.
uuid
+
'&newKey='
+
this
.
cacheUuid
).
then
(
res
=>
{
if
(
res
.
data
.
errorCode
===
0
)
{
console
.
log
(
'拷贝成功'
);
}
...
...
src/test/component/dmStore/store-card.vue
View file @
b14262fb
...
...
@@ -117,11 +117,13 @@ export default {
value
:
''
,
//否 string isAll=0时,必填,选中项id,多个逗号分隔
removeItems
:
''
,
//否 string isAll=1,取消选中项的id,多个逗号分隔
_key
:
''
,
isClique
:
0
},
leftParams
:{
searchParam
:
''
,
pageSize
:
20
,
currentPage
:
1
,
isClique
:
0
},
rightParams
:{
key
:
''
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment