Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
罗超
SuperMan
Commits
15f3eedc
Commit
15f3eedc
authored
Nov 04, 2019
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
25242c04
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
87 additions
and
168 deletions
+87
-168
AdManageList.vue
src/components/Buying/AdManageList.vue
+20
-6
GuestAccountList.vue
src/components/Buying/GuestAccountList.vue
+67
-162
No files found.
src/components/Buying/AdManageList.vue
View file @
15f3eedc
...
...
@@ -27,7 +27,8 @@
</el-button>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"删除"
placement=
"top"
>
<el-button
type=
"danger"
size=
"mini"
class=
"iconfont icon-quxiao1"
@
click=
"removeAdManage(item.Id)"
></el-button>
<el-button
type=
"danger"
size=
"mini"
class=
"iconfont icon-quxiao1"
@
click=
"removeAdManage(item.Id)"
>
</el-button>
</el-tooltip>
</el-button-group>
</td>
...
...
@@ -40,9 +41,6 @@
</div>
</
template
>
<
script
>
import
{
get
}
from
'http'
;
export
default
{
data
()
{
return
{
...
...
@@ -62,7 +60,6 @@
this
.
getList
();
},
filters
:
{},
methods
:
{
//获取数据
getList
()
{
...
...
@@ -111,7 +108,24 @@
}
},
null
);
},
}
},
//上传图片
UploadImage
(
file
)
{
let
newArr
=
[];
newArr
.
push
(
file
.
file
);
let
fileName
=
file
.
file
.
name
;
var
path
=
"/Upload/Temporary/"
;
this
.
UploadSelfFileT
(
path
,
newArr
,
x
=>
{
//统一图片处理
if
(
this
.
DiningImageArray
.
length
===
5
)
{
return
this
.
$message
.
error
(
'最多上传5张图片'
)
}
var
obj
=
{}
var
str
=
x
.
data
.
FilePath
;
var
imgUrl
=
this
.
domainManager
().
ViittoFileUrl
+
x
.
data
.
FilePath
;
this
.
DiningImageArray
.
push
(
imgUrl
);
});
},
};
</
script
>
src/components/Buying/GuestAccountList.vue
View file @
15f3eedc
<
style
>
.height_auto.el-select
.el-input
{
height
:
auto
}
</
style
>
<
template
>
<div
class=
"flexOne"
>
<div
class=
"query-box"
>
<ul
class=
"user_time_picker"
>
<li>
<span>
<em>
{{
$t
(
'MarketingActi.commName'
)
}}
</em>
<el-input
v-model=
"msg.name"
@
keyup
.
enter
.
native=
"getList"
></el-input>
</span>
</li>
<li>
<span>
<em>
商品类型
</em>
<el-select
filterable
v-model=
"msg.SellType"
>
<el-option
:label=
"$t('pub.unlimitedSel')"
:value=
"0"
key=
"0"
></el-option>
<el-option
v-for=
"item in CommodityTypeList"
:label=
"item.Name"
:value=
"item.Id"
:key=
"item.Id"
></el-option>
</el-select>
</span>
</li>
<li>
<span>
<em>
商品分类
</em>
<el-select
filterable
v-model=
"msg.CategoryId"
>
<el-option
:label=
"$t('pub.unlimitedSel')"
:value=
"-1"
></el-option>
<el-option
v-for=
"item in GoodsTypeList"
:label=
"item.Name"
:value=
"item.Id"
:key=
"item.Id"
></el-option>
</el-select>
</span>
</li>
<li>
<span>
<em>
{{
$t
(
'admin.admin_status'
)
}}
</em>
<el-select
filterable
v-model=
"msg.Status"
>
<el-option
:label=
"$t('pub.unlimitedSel')"
:value=
"-1"
></el-option>
<el-option
label=
"待完善"
:value=
"1"
></el-option>
<el-option
label=
"上架"
:value=
"2"
></el-option>
<el-option
label=
"下架"
:value=
"3"
></el-option>
<el-option
label=
"取消"
:value=
"4"
></el-option>
</el-select>
</span>
</li>
<li>
<input
type=
"button"
@
click=
"getList"
class=
"hollowFixedBtn"
:value=
"$t('pub.searchBtn')"
>
<input
type=
"button"
@
click=
"addIntegralMall('BuyingAdd')"
class=
"normalBtn"
:value=
"$t('pub.addBtn')"
>
</li>
</ul>
</div>
<div
class=
"clearfix"
></div>
<table
class=
"singeRowTable"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
v-loading=
"loading"
>
<tr>
<th
width=
'80'
>
{{
$t
(
'MarketingActi.commNum'
)
}}
</th>
<th>
{{
$t
(
'MarketingActi.commName'
)
}}
</th>
<th>
分类名称
</th>
<th>
类型名称
</th>
<th>
成本价
</th>
<th>
销售价
</th>
<th>
领队返佣
</th>
<th>
公司返佣
</th>
<th>
同行返佣
</th>
<th>
微途返佣
</th>
<th>
姓名
</th>
<th>
账户
</th>
<th>
手机号码
</th>
<th>
护照
</th>
<th>
性别
</th>
<th>
状态
</th>
<th>
创建时间
</th>
<th>
{{
$t
(
'system.table_operation'
)
}}
</th>
</tr>
<tr
v-for=
"item in dataList"
>
<td>
{{
item
.
Id
}}
</td>
<td>
{{
item
.
Name
}}
</td>
<td>
{{
item
.
CategoryName
}}
</td>
<td>
{{
item
.
SellTypeName
}}
</td>
<td>
{{
item
.
CostPrice
}}
</td>
<td>
{{
item
.
SellPrice
}}
</td>
<td>
{{
item
.
LeaderRebate
}}
</td>
<td>
{{
item
.
CompanyRebate
}}
</td>
<td>
{{
item
.
ClientRebate
}}
</td>
<td>
{{
item
.
WeiTuRebate
}}
</td>
<td>
<el-button-group>
<td>
{{
item
.
AccountName
}}
</td>
<td>
{{
item
.
LoginAccount
}}
</td>
<td>
{{
item
.
MobilePhone
}}
</td>
<td>
{{
item
.
PassportNo
}}
</td>
<td>
{{
item
.
SexStr
}}
</td>
<td>
{{
item
.
AccountStatus
}}
</td>
<td>
{{
item
.
CreateTimeStr
}}
</td>
<td>
<!--
<el-button-group>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"$t('active.ld_editInfo')"
placement=
"top"
>
<el-button
type=
"primary"
size=
"mini"
icon=
"el-icon-edit"
@
click=
"addIntegralMall('BuyingAdd', item.Id, '修改商品')"
></el-button>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"上架"
placement=
"top"
>
<el-button
type=
"success"
size=
"mini"
class=
"iconfont icon-shangjia1"
></el-button>
<el-button
type=
"primary"
size=
"mini"
icon=
"el-icon-edit"
@
click=
"getAdManage(item.Id)"
>
</el-button>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"下架"
placement=
"top"
>
<el-button
type=
"warning"
size=
"mini"
class=
"iconfont icon-xiajia1"
></el-button>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"删除"
placement=
"top"
>
<el-button
type=
"danger"
size=
"mini"
class=
"iconfont icon-quxiao1"
@
click=
"removeAdManage(item.Id)"
>
</el-button>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"取消"
placement=
"top"
>
<el-button
type=
"danger"
size=
"mini"
class=
"iconfont icon-quxiao1"
></el-button>
</el-tooltip>
</el-button-group>
</td>
</el-button-group>
-->
</td>
</tr>
<tfoot>
<tr>
<td
colspan=
"8"
>
<el-pagination
background
@
current-change=
"handleCurrentChange"
layout=
"total,prev, pager, next, jumper"
:page-size=
"msg.pageSize"
:total=
"msg.total"
>
</el-pagination>
</td>
</tr>
</tfoot>
</table>
<el-pagination
background
@
current-change=
"handleCurrentChange"
layout=
"total,prev, pager, next, jumper"
:page-size=
msg.pageSize
:total=
total
>
</el-pagination>
<div
class=
"noDataNotice"
v-if=
"dataList.length
<1
"
>
<i
class=
"iconfont icon-kong"
></i>
<p>
{{
$t
(
"active.ld_noData"
)
}}
</p>
</div>
</div>
</div>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
//请求
msg
:
{
pageSize
:
15
,
pageIndex
:
1
,
SellType
:
0
,
Name
:
''
,
CategoryId
:
-
1
,
Status
:
-
1
},
loading
:
false
,
dataList
:[],
GoodsTypeList
:
[],
total
:
0
,
CommodityTypeList
:
[],
};
},
mounted
()
{
this
.
getList
();
this
.
getCommodityTypeList
();
this
.
getGoodsTypeManager
();
},
filters
:
{
},
methods
:
{
handleCurrentChange
(
val
){
this
.
msg
.
pageIndex
=
val
;
this
.
getList
();
},
addIntegralMall
:
function
(
path
,
proId
,
tab
){
this
.
$router
.
push
({
name
:
path
,
query
:{
blank
:
'y'
,
proId
:
proId
,
tab
:
tab
}
})
},
getGoodsTypeManager
()
{
this
.
apipost
(
"Shop_post_GetCommodityCategoryList"
,{
Name
:
""
,
ParentId
:
0
},
res
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
GoodsTypeList
=
res
.
data
.
data
;
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
export
default
{
data
()
{
return
{
//查询参数
msg
:
{
pageIndex
:
1
,
pageSize
:
10
,
total
:
0
,
},
null
);
loading
:
false
,
dataList
:
[],
};
},
getCommodityTypeList
()
{
this
.
apipost
(
"Shop_post_GetCommodityTypeList"
,
{},
res
=>
{
mounted
()
{
this
.
getList
();
},
filters
:
{},
methods
:
{
handleCurrentChange
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
this
.
getList
();
},
//获取数据
getList
()
{
this
.
loading
=
true
;
this
.
apipost
(
"ShopGuest_get_GetGuestAccountPageListService"
,
this
.
msg
,
res
=>
{
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
CommodityTypeList
=
res
.
data
.
data
;
console
.
log
(
res
.
data
.
data
);
this
.
dataList
=
res
.
data
.
data
.
pageData
;
this
.
msg
.
total
=
res
.
data
.
data
.
count
;
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
null
);
},
//获取数据
getList
()
{
this
.
loading
=
true
;
this
.
apipost
(
"Shop_post_GetPageList"
,
this
.
msg
,
res
=>
{
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
dataList
=
res
.
data
.
data
.
pageData
;
this
.
total
=
res
.
data
.
data
.
count
;
}
else
{
this
.
Error
(
res
.
data
.
message
)
}
},
null
);
},
}
};
</
script
>
\ No newline at end of file
},
null
);
},
}
};
</
script
>
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