Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ElectricitySheep
Project
Project
Details
Activity
Releases
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
黄媛媛
ElectricitySheep
Commits
165c3040
Commit
165c3040
authored
Mar 10, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
462f24d5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
787 additions
and
2 deletions
+787
-2
choiceActive.vue
src/components/common/choiceActive.vue
+121
-0
miaiactivitytype.vue
src/components/sallCenter/plugin/miaiactivitytype.vue
+642
-0
templateEdit.vue
src/components/sallCenter/templateEdit.vue
+24
-2
No files found.
src/components/common/choiceActive.vue
0 → 100644
View file @
165c3040
<
style
>
.choiceActiveImg
{
width
:
40px
;
height
:
40px
;
}
</
style
>
<
template
>
<div>
<el-input
size=
"mini"
v-model=
"msg.Name"
placeholder=
"根据名称搜索"
:clearable=
"true"
@
clear=
"msg.pageIndex=1,getList()"
@
keyup
.
enter
.
native=
"msg.pageIndex=1,getList()"
>
<el-button
slot=
"append"
@
click=
"msg.pageIndex=1,getList()"
>
搜索
</el-button>
</el-input>
<el-table
ref=
"multipleTable"
:data=
"dataList"
tooltip-effect=
"dark"
height=
"450"
style=
"width: 100%"
@
selection-change=
"handleSelectionChange"
>
<template
v-if=
"isSingle"
>
<el-table-column
width=
"50px"
label=
""
>
<template
slot-scope=
"scope"
>
<el-radio
v-model=
"scope.row.IsChecked"
@
change
.
native=
"getTemplateRow(scope.$index,scope.row)"
>
</el-radio>
</
template
>
</el-table-column>
</template>
<
template
v-else
>
<el-table-column
type=
"selection"
width=
"50px"
>
</el-table-column>
</
template
>
<el-table-column
label=
"编号"
width=
"80px"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
Id
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"TypeName"
label=
"类型名称"
>
</el-table-column>
<el-table-column
prop=
"CoverImage"
label=
"封面图"
>
<
template
slot-scope=
"scope"
>
<div
class=
"choiceActiveImg"
:style=
"
{backgroundImage:'url(' + scope.row.CoverImage + ')',backgroundSize:'cover'}">
</div>
</
template
>
</el-table-column>
</el-table>
<el-pagination
style=
"text-align:center"
background
@
current-change=
"handleCurrentChange"
:page-size=
"msg.pageSize"
layout=
"prev, pager, next"
:total=
"total"
>
</el-pagination>
</div>
</template>
<
script
>
export
default
{
props
:
[
'ckGoods'
,
"isSingle"
,
"IsGetSpec"
],
data
()
{
return
{
dataList
:
[],
msg
:
{
pageIndex
:
1
,
pageSize
:
10
,
TypeName
:
''
,
},
total
:
0
,
selectRow
:
[],
};
},
created
()
{
if
(
this
.
IsGetSpec
)
{
this
.
msg
.
IsGetSpec
=
this
.
IsGetSpec
;
}
},
methods
:
{
//获取所有菜单
getList
()
{
this
.
apipost
(
"/api/Trade/GetCommerceActivityTypePage"
,
this
.
msg
,
res
=>
{
console
.
log
(
res
,
'res'
);
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
total
=
res
.
data
.
data
.
count
;
var
tempArray
=
res
.
data
.
data
.
pageData
;
if
(
tempArray
&&
tempArray
.
length
>
0
)
{
tempArray
.
forEach
(
item
=>
{
item
.
IsChecked
=
false
;
});
}
this
.
dataList
=
JSON
.
parse
(
JSON
.
stringify
(
tempArray
));
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
})
},
handleSelectionChange
(
val
)
{
this
.
selectRow
=
JSON
.
parse
(
JSON
.
stringify
(
val
));
},
getTemplateRow
(
index
,
row
)
{
this
.
selectRow
=
[];
if
(
this
.
dataList
&&
this
.
dataList
.
length
>
0
)
{
this
.
dataList
.
forEach
(
item
=>
{
if
(
item
.
ID
!=
row
.
ID
)
{
item
.
IsChecked
=
false
;
}
})
}
this
.
selectRow
.
push
(
JSON
.
parse
(
JSON
.
stringify
(
row
)));
},
handleCurrentChange
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
this
.
getList
();
},
//父组件调用方法
getChoicedGoods
()
{
return
this
.
selectRow
;
},
//清空多选方法
toggleSelection
(
rows
)
{
if
(
rows
)
{
rows
.
forEach
(
row
=>
{
this
.
$refs
.
multipleTable
.
toggleRowSelection
(
row
);
});
}
else
{
this
.
$refs
.
multipleTable
.
clearSelection
();
}
},
},
mounted
()
{
this
.
getList
();
}
};
</
script
>
src/components/sallCenter/plugin/miaiactivitytype.vue
0 → 100644
View file @
165c3040
This diff is collapsed.
Click to expand it.
src/components/sallCenter/templateEdit.vue
View file @
165c3040
...
...
@@ -300,6 +300,8 @@
:index=
"index"
:dataLeng=
"dataList.length"
></navPage>
<miaiuser
v-if=
"item.Id=='miaiuser'"
:pData=
"item"
@
getSord=
"getSord"
@
comDelPlugin=
"comDelPlugin"
:index=
"index"
:dataLeng=
"dataList.length"
></miaiuser>
<miaiactivitytype
v-if=
"item.Id=='miaiactivitytype'"
:mData=
"item"
@
getSord=
"getSord"
@
comDelPlugin=
"comDelPlugin"
:index=
"index"
:dataLeng=
"dataList.length"
></miaiactivitytype>
</div>
</div>
</div>
...
...
@@ -416,6 +418,7 @@
import
storeGoods
from
"../sallCenter/plugin/storeGoods"
import
navPage
from
"../sallCenter/plugin/nav-page"
import
miaiuser
from
"../sallCenter/plugin/miaiuser"
import
miaiactivitytype
from
"../sallCenter/plugin/miaiactivitytype"
import
ChooseImg
from
"@/components/global/ChooseImg.vue"
;
export
default
{
...
...
@@ -493,7 +496,8 @@
storeGoods
,
educationteacher
,
navPage
,
miaiuser
miaiuser
,
miaiactivitytype
},
methods
:
{
//选择图片
...
...
@@ -1509,6 +1513,24 @@
}
this
.
dataList
.
push
(
miaiuserData
);
break
;
//相亲活动
case
'miaiactivitytype'
:
let
miaiactivityData
=
{
Id
:
'miaiactivitytype'
,
isCked
:
false
,
data
:
{
listStyle
:
1
,
backgroundColor
:
''
,
PaddingTop
:
0
,
PaddingBottom
:
0
,
PaddingLeft
:
0
,
PaddingRight
:
0
,
SearchFilletPX
:
0
,
list
:[]
}
}
this
.
dataList
.
push
(
miaiactivityData
);
break
;
}
},
//给子组件调用 重新排序上移下移
...
...
@@ -1563,7 +1585,7 @@
Id
:
res
.
data
.
data
});
this
.
GetData
();
location
.
reload
();
//
location.reload();
this
.
Success
(
res
.
data
.
message
);
}
else
{
this
.
Info
(
res
.
data
.
message
);
...
...
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