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
7adb1fe9
Commit
7adb1fe9
authored
Nov 03, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
845a6711
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
276 additions
and
296 deletions
+276
-296
userCenter.vue
src/components/StoreDesign/userCenter.vue
+0
-1
choicezx.vue
src/components/common/choicezx.vue
+0
-1
directorGoodsEdit.vue
src/components/director/directorGoodsEdit.vue
+0
-1
educationEdit.vue
src/components/education/educationEdit.vue
+67
-54
educationOrderDetail.vue
src/components/education/educationOrderDetail.vue
+46
-39
informationEvalution.vue
src/components/education/informationEvalution.vue
+0
-22
informationManage.vue
src/components/education/informationManage.vue
+1
-8
ServiceManageEdit.vue
src/components/offlineService/ServiceManageEdit.vue
+0
-1
ServiceMannage.vue
src/components/offlineService/ServiceMannage.vue
+0
-1
customerEvaluation.vue
src/components/orderMan/customerEvaluation.vue
+162
-166
educationArticle.vue
src/components/sallCenter/plugin/educationArticle.vue
+0
-2
No files found.
src/components/StoreDesign/userCenter.vue
View file @
7adb1fe9
...
...
@@ -1054,7 +1054,6 @@
this
.
apipost
(
"/api/Tenant/GetMiniprogramPageListExt"
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
userCenterMsg
.
MenuList
=
res
.
data
.
data
;
console
.
log
(
res
,
'userCenter'
);
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
...
...
src/components/common/choicezx.vue
View file @
7adb1fe9
...
...
@@ -65,7 +65,6 @@
getList
()
{
this
.
apipost
(
"/api/Education/GetArticlePageList"
,
this
.
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
console
.
log
(
res
,
'res'
);
this
.
total
=
res
.
data
.
data
.
count
;
var
tempArray
=
res
.
data
.
data
.
pageData
;
if
(
tempArray
&&
tempArray
.
length
>
0
)
{
...
...
src/components/director/directorGoodsEdit.vue
View file @
7adb1fe9
...
...
@@ -1678,7 +1678,6 @@
})
},
changeCarColorList
(
val
)
{
console
.
log
(
val
)
},
changeEnumList
(
val
)
{
this
.
EnumType
=
val
...
...
src/components/education/educationEdit.vue
View file @
7adb1fe9
...
...
@@ -209,10 +209,11 @@
<div>
<div
class=
"Teacher_List"
v-for=
"(item,index) in addMsg.TeacherList"
:key=
"index"
>
<div
class=
"Teacher_tou"
>
<img
style=
"width:100%;height:100%;"
:src=
"item.TeacherLogo"
alt=
""
/>
<img
style=
"width:100%;height:100%;"
:src=
"item.TeacherLogo"
alt=
""
/>
</div>
{{
item
.
Name
}}
<el-button
@
click=
"yichuTeacher(index)"
class=
"edu_edlBtn"
type=
"danger"
icon=
"el-icon-close"
circle
></el-button>
<el-button
@
click=
"yichuTeacher(index)"
class=
"edu_edlBtn"
type=
"danger"
icon=
"el-icon-close"
circle
></el-button>
</div>
</div>
<!--
<el-tag
v-for=
"(item,index) in addMsg.TeacherList"
closable
size=
"small"
...
...
@@ -220,7 +221,8 @@
{{
item
.
Name
}}
</el-tag>
-->
</
template
>
<el-button
@
click=
"choosejsDig=true"
style=
"position:relative;top:-4px;"
size=
"mini"
>
选择教师
</el-button>
<el-button
@
click=
"choosejsDig=true"
style=
"position:relative;top:-4px;"
size=
"mini"
>
选择教师
</el-button>
</el-form-item>
<el-form-item
label=
"标签"
size=
"small"
>
<el-tag
:key=
"tag"
size=
"small"
v-for=
"tag in dynamicTags"
closable
:disable-transitions=
"false"
...
...
@@ -285,12 +287,16 @@
<div
class=
"eduFileDiv"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"预览文件"
placement=
"top"
>
<img
v-if=
"getFileType(subItem.FilePath)==1"
@
click=
"goUrlVideo(subItem.FilePath)"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/z_video.png"
alt=
""
>
<img
v-if=
"getFileType(subItem.FilePath)==2"
@
click=
"showUpLoadFileT(subItem.FilePath)"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/z_video.png"
alt=
""
>
<img
v-if=
"getFileType(subItem.FilePath)==2"
@
click=
"showUpLoadFileT(subItem.FilePath)"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/WORD.png"
alt=
""
>
<img
v-if=
"getFileType(subItem.FilePath)==3"
@
click=
"showUpLoadFileT(subItem.FilePath)"
<img
v-if=
"getFileType(subItem.FilePath)==3"
@
click=
"showUpLoadFileT(subItem.FilePath)"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/pdf.png"
alt=
""
>
<img
v-if=
"getFileType(subItem.FilePath)==4"
@
click=
"showUpLoadFileT(subItem.FilePath)"
<img
v-if=
"getFileType(subItem.FilePath)==4"
@
click=
"showUpLoadFileT(subItem.FilePath)"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/PPT.png"
alt=
""
>
</el-tooltip>
</div>
...
...
@@ -675,7 +681,7 @@
<el-checkbox-group
v-model=
"ckedTeacher"
>
<el-checkbox
v-for=
"(item,index) in teacherList"
:label=
"item.ID"
:key=
"index"
>
<div
class=
"teacherHead"
>
<img
:src=
"item.TeacherLogo"
alt=
""
/>
<img
:src=
"item.TeacherLogo"
alt=
""
/>
</div>
{{item.Name}}
</el-checkbox>
</el-checkbox-group>
...
...
@@ -837,7 +843,7 @@
TeacherList
:
[],
//教师
CourseList
:
[],
//课程
SalesNum
:
0
,
//已售数量
CourseLableList
:[]
//标签
CourseLableList
:
[]
//标签
},
predefineColors
:
[
'#000000'
,
...
...
@@ -986,7 +992,7 @@
dynamicTags
:
[],
inputVisible
:
false
,
inputValue
:
''
,
commonTitle
:
'新增课程'
,
commonTitle
:
'新增课程'
,
};
},
created
()
{
...
...
@@ -1501,7 +1507,7 @@
if
(
this
.
addMsg
.
PresentFXGrade
==
0
)
{
this
.
addMsg
.
PresentFXGrade
=
''
}
if
(
this
.
addMsg
.
CourseLableList
&&
this
.
addMsg
.
CourseLableList
.
length
>
0
)
{
if
(
this
.
addMsg
.
CourseLableList
&&
this
.
addMsg
.
CourseLableList
.
length
>
0
)
{
this
.
dynamicTags
=
this
.
addMsg
.
CourseLableList
}
if
(
this
.
addMsg
.
TeacherList
.
length
>
0
)
{
...
...
@@ -1717,14 +1723,13 @@
},
getckedTeachArr
()
{
this
.
addMsg
.
TeacherList
=
[];
console
.
log
(
this
.
ckedTeacher
,
'this.ckedTeacher'
);
this
.
ckedTeacher
.
forEach
(
x
=>
{
this
.
teacherList
.
forEach
(
y
=>
{
if
(
x
==
y
.
ID
)
{
this
.
addMsg
.
TeacherList
.
push
({
TeacherId
:
y
.
ID
,
Name
:
y
.
Name
,
TeacherLogo
:
y
.
TeacherLogo
TeacherLogo
:
y
.
TeacherLogo
})
}
})
...
...
@@ -1824,7 +1829,7 @@
},
//修改课件
updateCourse
(
subItem
,
index
)
{
this
.
commonTitle
=
'修改课程'
;
this
.
commonTitle
=
'修改课程'
;
this
.
isReplace
=
index
;
this
.
courseDialog
=
true
;
this
.
courseMsg
.
Id
=
subItem
.
Id
;
...
...
@@ -1872,9 +1877,6 @@
if
(
Url
.
substring
(
Url
.
lastIndexOf
(
'.'
)
+
1
,
Url
.
length
).
toUpperCase
()
==
'PDF'
)
{
this
.
previewPDF
(
Url
)
}
else
{
// let dom = document.querySelector("#groupTourOrder_DownLoad");
// dom.href = Url;
// dom.click();
window
.
open
(
"https://view.officeapps.live.com/op/view.aspx?src="
+
Url
)
}
},
...
...
@@ -2183,7 +2185,7 @@
width
:
100%
;
height
:
100%
;
border
:
1px
solid
#EBEEF5
;
border-bottom
:
0
;
border-bottom
:
0
;
}
.courseHeader
{
...
...
@@ -2280,62 +2282,72 @@
width
:
100%
;
height
:
100%
;
}
.directorGoodsEdit
.input-new-tag
{
width
:
90px
;
margin-left
:
10px
;
vertical-align
:
bottom
;
}
.directorGoodsEdit
.el-tag
+
.el-tag
{
.directorGoodsEdit
.el-tag
+
.el-tag
{
margin-left
:
10px
;
}
.teacherHead
{
width
:
30px
;
height
:
30px
;
.teacherHead
{
width
:
30px
;
height
:
30px
;
display
:
inline-block
;
border-radius
:
50%
;
overflow
:
hidden
;
position
:
relative
;
top
:
10px
;
margin-right
:
3px
;
top
:
10px
;
margin-right
:
3px
;
}
.directorGoodsEdit
.teacherHead
img
{
width
:
100%
;
height
:
100%
;
.directorGoodsEdit
.teacherHead
img
{
width
:
100%
;
height
:
100%
;
}
.directorGoodsEdit
.el-checkbox
{
margin-bottom
:
10px
;
.directorGoodsEdit
.el-checkbox
{
margin-bottom
:
10px
;
}
.Teacher_List
{
padding
:
2px
5px
;
.Teacher_List
{
padding
:
2px
5px
;
position
:
relative
;
margin-right
:
5px
;
border
:
1px
solid
#d1d1d1
;
border-radius
:
4px
;
margin-right
:
5px
;
border
:
1px
solid
#d1d1d1
;
border-radius
:
4px
;
display
:
flex
;
align-items
:
center
;
line-height
:
normal
;
font-size
:
12px
;
float
:
left
;
}
.Teacher_tou
{
width
:
25px
;
height
:
25px
;
.Teacher_tou
{
width
:
25px
;
height
:
25px
;
overflow
:
hidden
;
margin-right
:
3px
;
margin-right
:
3px
;
border-radius
:
50%
;
display
:
inline-block
;
}
.edu_edlBtn
{
.edu_edlBtn
{
position
:
absolute
;
right
:
-8px
;
top
:
-14px
;
padding
:
1px
1px
!important
;
right
:
-8px
;
top
:
-14px
;
padding
:
1px
1px
!important
;
}
.edu_fileName
{
text-align
:
left
!important
;
line-height
:
normal
!important
;
.edu_fileName
{
text-align
:
left
!important
;
line-height
:
normal
!important
;
}
.edu_fileName
>
div
{
.edu_fileName
>
div
{
text-overflow
:
-o-ellipsis-lastline
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
...
...
@@ -2344,4 +2356,5 @@
line-clamp
:
2
;
-webkit-box-orient
:
vertical
;
}
</
style
>
src/components/education/educationOrderDetail.vue
View file @
7adb1fe9
...
...
@@ -54,7 +54,8 @@
class=
"el-tag el-tag--success el-tag--small el-tag--light is-hit"
>
{{
dataInfo
.
OrderInfo
.
PaymentWayName
}}
</span>
</div>
<div
flex=
"dir:left cross:center"
class=
"item-box"
v-if=
"dataInfo.CouponMoney && dataInfo.CouponMoney !='' && dataInfo.CouponMoney>0"
>
<div
flex=
"dir:left cross:center"
class=
"item-box"
v-if=
"dataInfo.CouponMoney && dataInfo.CouponMoney !='' && dataInfo.CouponMoney>0"
>
<span
class=
"label"
>
优惠金额:
</span>
<div>
¥
{{
dataInfo
.
CouponMoney
}}
</div>
</div>
...
...
@@ -64,15 +65,18 @@
¥
{{
dataInfo
.
EducationMoney
}}
</div>
</div>
<div
flex=
"dir:left cross:center"
class=
"item-box"
v-if=
"dataInfo.IntegralMoney && dataInfo.IntegralMoney !='' && dataInfo.IntegralMoney>0"
>
<div
flex=
"dir:left cross:center"
class=
"item-box"
v-if=
"dataInfo.IntegralMoney && dataInfo.IntegralMoney !='' && dataInfo.IntegralMoney>0"
>
<span
class=
"label"
>
积分抵用金额:
</span>
<div>
¥
{{
dataInfo
.
IntegralMoney
}}
</div>
</div>
<div
flex=
"dir:left cross:center"
class=
"item-box"
v-if=
"dataInfo.IntegralNumber && dataInfo.IntegralNumber !='' && dataInfo.IntegralNumber>0"
>
<div
flex=
"dir:left cross:center"
class=
"item-box"
v-if=
"dataInfo.IntegralNumber && dataInfo.IntegralNumber !='' && dataInfo.IntegralNumber>0"
>
<span
class=
"label"
>
积分数:
</span>
<div>
¥
{{
dataInfo
.
IntegralNumber
}}
</div>
</div>
<div
flex=
"dir:left cross:center"
class=
"item-box"
v-if=
"dataInfo.MemberDiscountCouponList && dataInfo.MemberDiscountCouponList.length >0"
>
<div
flex=
"dir:left cross:center"
class=
"item-box"
v-if=
"dataInfo.MemberDiscountCouponList && dataInfo.MemberDiscountCouponList.length >0"
>
<span
class=
"label"
>
优惠券信息:
</span>
<div>
<span
v-for=
"(MItem,Mindex) in dataInfo.MemberDiscountCouponList"
:key=
"Mindex"
>
...
...
@@ -153,7 +157,8 @@
style=
"color: rgb(64, 158, 255); cursor: pointer; margin-left: 10px;"
></i>
</div>
</div>
<div
v-if=
"dataInfo.BuyerMessage && dataInfo.BuyerMessage!=''"
flex=
"dir:left cross:center"
class=
"item-box"
style=
"flex-shrink: 0;"
>
<div
v-if=
"dataInfo.BuyerMessage && dataInfo.BuyerMessage!=''"
flex=
"dir:left cross:center"
class=
"item-box"
style=
"flex-shrink: 0;"
>
<span
class=
"label"
>
买家留言:
</span>
<div>
{{dataInfo.BuyerMessage}}
...
...
@@ -163,7 +168,8 @@
</el-col>
<el-col
:span=
"8"
>
<div
flex=
"dir:top"
class=
"card-box"
>
<div
v-if=
"dataInfo.DistributionInfo !=undefined &&dataInfo.DistributionInfo.length>0 && dataInfo.VipCommissionInfo!=undefined && dataInfo.VipCommissionInfo.length==0"
>
<div
v-if=
"dataInfo.DistributionInfo !=undefined &&dataInfo.DistributionInfo.length>0 && dataInfo.VipCommissionInfo!=undefined && dataInfo.VipCommissionInfo.length==0"
>
<h3>
分销信息
</h3>
<div
v-for=
"(item,index) in dataInfo.DistributionInfo"
:key=
"index"
>
<div
class=
"share-title"
>
...
...
@@ -184,7 +190,7 @@
</div>
</div>
<div
v-if=
"dataInfo.VipCommissionInfo!=undefined && dataInfo.VipCommissionInfo.length>0"
>
<h3
>
Vip返利
</h3>
<h3>
Vip返利
</h3>
<div
v-for=
"(item,index2) in dataInfo.VipCommissionInfo"
:key=
"index2"
>
<div
class=
"share-title"
>
<span>
{{item.GradeDescription}}
</span>
...
...
@@ -202,7 +208,7 @@
</div>
<div
v-if=
"dataInfo.OrderIntroductionInfo!=undefined && dataInfo.OrderIntroductionInfo.length>0"
>
<h3
>
推荐供应商返佣
</h3>
<h3>
推荐供应商返佣
</h3>
<div
v-for=
"(item,index2) in dataInfo.OrderIntroductionInfo"
:key=
"index2"
>
<div
flex=
"dir:left cross:center"
class=
"item-box"
>
<span
class=
"label"
>
姓名:
</span>
...
...
@@ -217,7 +223,7 @@
</div>
<div
v-if=
"dataInfo.SmallShopsCommissionInfo!=undefined && dataInfo.SmallShopsCommissionInfo.length>0"
>
<h3
>
微店佣金
</h3>
<h3>
微店佣金
</h3>
<div
v-for=
"(item,index2) in dataInfo.SmallShopsCommissionInfo"
:key=
"index2"
>
<div
class=
"share-title"
>
<span>
{{item.SmallShopsName}}
</span>
...
...
@@ -257,7 +263,8 @@
<el-table-column
prop=
"name"
label=
"信息"
width=
"300"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<div
v-if=
"scope.row.SpecificationList.length>0"
>
老师:
<el-tag
size=
"small"
style=
"margin-right:5px;"
v-for=
"(SubItem,SubIndex) in scope.row.SpecificationList"
:key=
"SubIndex"
>
{{
SubItem
}}
</el-tag>
老师:
<el-tag
size=
"small"
style=
"margin-right:5px;"
v-for=
"(SubItem,SubIndex) in scope.row.SpecificationList"
:key=
"SubIndex"
>
{{
SubItem
}}
</el-tag>
</div>
<div
style=
"margin-top:5px;"
v-if=
"scope.row.MemberEducationCouponList.length>0"
>
课程卡信息:
<span
v-for=
"(childItem,childIndex) in scope.row.MemberEducationCouponList"
:key=
"childIndex"
>
...
...
@@ -518,11 +525,11 @@
};
let
that
=
this
;
let
text
if
(
num
==
1
)
{
if
(
num
==
1
)
{
text
=
'是否确定订单?'
}
else
if
(
num
==
2
)
{
}
else
if
(
num
==
2
)
{
text
=
'是否出行?'
}
else
if
(
num
==
2
)
{
}
else
if
(
num
==
2
)
{
text
=
'是否完成该订单?'
}
that
.
$confirm
(
text
,
'提示'
,
{
...
...
@@ -634,7 +641,6 @@
OrderId
:
this
.
OrderId
},
res
=>
{
this
.
dataInfo
=
res
.
data
.
data
;
console
.
log
(
res
,
'res'
);
let
data
=
res
.
data
.
data
;
// 未付款
if
(
data
.
PaymentTime
==
''
&&
data
.
DeliveryTime
==
''
)
{
...
...
@@ -865,6 +871,7 @@
width
:
30px
;
background-image
:
url("../../assets/img/userman/status_2.png")
;
}
.app-order-detail
.step01
{
height
:
30px
;
width
:
30px
;
...
...
src/components/education/informationEvalution.vue
View file @
7adb1fe9
...
...
@@ -215,26 +215,6 @@
TableSelectChange
(
val
)
{
this
.
SelectList
=
val
;
},
// // 批量回复
// plHf() {
// let that = this;
// if (this.SelectList.length == 0) {
// this.Error("请勾选数据!");
// return;
// }
// let Ids = "";
// let IdList = [];
// this.SelectList.forEach(item => {
// IdList.push(item.OrderDetailId);
// })
// Ids = IdList.join(',');
// this.hfMsg = {
// OrderDetailIds: Ids,
// Type: 1,
// Content: '',
// }
// this.addDig = true;
// },
//改变下拉切换搜索名称或者内容 标题
ChangeId
(
val
)
{
let
msgVal
=
this
.
msgVal
;
...
...
@@ -255,7 +235,6 @@
}
this
.
getList
();
},
//获取数据
getList
()
{
if
(
this
.
dateList
&&
this
.
dateList
.
length
>
0
)
{
...
...
@@ -269,7 +248,6 @@
this
.
apipost
(
"/api/Education/GetArticleCommentPageList"
,
this
.
msg
,
res
=>
{
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
console
.
log
(
res
,
'数据'
);
this
.
total
=
res
.
data
.
data
.
count
;
let
pageData
=
res
.
data
.
data
.
pageData
;
this
.
tableData
=
pageData
;
...
...
src/components/education/informationManage.vue
View file @
7adb1fe9
...
...
@@ -299,7 +299,7 @@
},
//保存
saveMsg
()
{
if
(
this
.
addMsg
.
LableNameList
.
length
==
0
)
{
if
(
this
.
addMsg
.
LableNameList
.
length
==
0
)
{
this
.
Error
(
'请选择标签'
);
return
;
}
...
...
@@ -326,7 +326,6 @@
})
},
changeSupplier
(
val
)
{},
//单个删除
Delete
(
item
)
{
let
that
=
this
;
...
...
@@ -424,17 +423,14 @@
handleClose
(
tag
)
{
this
.
addMsg
.
LableNameList
.
splice
(
this
.
addMsg
.
LableNameList
.
indexOf
(
tag
),
1
);
},
showInput
()
{
this
.
inputVisible
=
true
;
this
.
$nextTick
(
_
=>
{
this
.
$refs
.
saveTagInput
.
$refs
.
input
.
focus
();
});
},
handleInputConfirm
()
{
let
inputValue
=
this
.
inputValue
;
console
.
log
(
inputValue
)
if
(
inputValue
)
{
this
.
addMsg
.
LableNameList
.
push
(
inputValue
);
}
...
...
@@ -442,7 +438,6 @@
this
.
inputValue
=
''
;
},
openChangeDig
(
num
)
{
this
.
changeState
=
true
;
this
.
imgType
=
num
;
},
...
...
@@ -453,13 +448,11 @@
}
this
.
changeState
=
false
;
},
},
mounted
()
{
}
};
</
script
>
<
style
>
.informationManage
.content
.searchInput
{
...
...
src/components/offlineService/ServiceManageEdit.vue
View file @
7adb1fe9
...
...
@@ -262,7 +262,6 @@
this
.
apipost
(
"/api/Reserve/GetGenderEnumList"
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
genderList
=
res
.
data
.
data
;
console
.
log
(
res
,
'行呗'
);
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
...
...
src/components/offlineService/ServiceMannage.vue
View file @
7adb1fe9
...
...
@@ -164,7 +164,6 @@
this
.
apipost
(
"/api/Reserve/GetServicePersonalPageList"
,
this
.
msg
,
res
=>
{
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
console
.
log
(
res
,
'数据'
);
this
.
dataList
=
res
.
data
.
data
.
pageData
;
this
.
total
=
res
.
data
.
data
.
count
;
}
else
{
...
...
src/components/orderMan/customerEvaluation.vue
View file @
7adb1fe9
...
...
@@ -7,11 +7,7 @@
<el-form
style=
"width:50%"
:model=
"addMsg"
:rules=
"rules"
ref=
"addMsg"
label-width=
"150px"
>
<el-form-item
label=
"用户来源"
>
<el-select
filterable
v-model=
"addMsg.PlatformSource"
size=
"small"
placeholder=
"请选择"
>
<el-option
v-for=
"item in platList"
:key=
"item.Id"
:label=
"item.Name"
:value=
"item.Id"
>
<el-option
v-for=
"item in platList"
:key=
"item.Id"
:label=
"item.Name"
:value=
"item.Id"
>
</el-option>
</el-select>
</el-form-item>
...
...
@@ -19,11 +15,7 @@
<el-input
v-model=
"addMsg.UserName"
size=
"small"
></el-input>
</el-form-item>
<el-form-item
label=
"评价时间"
prop=
"CreateDate"
>
<el-date-picker
size=
"small"
v-model=
"addMsg.CreateDate"
type=
"datetime"
value-format=
"yyyy-MM-dd HH:mm:ss"
<el-date-picker
size=
"small"
v-model=
"addMsg.CreateDate"
type=
"datetime"
value-format=
"yyyy-MM-dd HH:mm:ss"
placeholder=
"选择日期时间"
>
</el-date-picker>
</el-form-item>
...
...
@@ -32,19 +24,14 @@
<el-button
@
click=
"openChangeDig(1)"
size=
"small"
>
选择文件
</el-button>
</el-tooltip>
<div
class=
"app-gallery-item"
style=
"position: relative;width: 100px;margin-top: 10px;"
>
<img
v-if=
"!addMsg.userPath || addMsg.userPath==''"
src=
"../../assets/img/default.png"
style=
"width:80px;height:80px"
alt=
""
>
<img
v-else
style=
"width:80px;height:80px"
:src=
"addMsg.userPath"
alt=
""
>
<img
v-if=
"!addMsg.userPath || addMsg.userPath==''"
src=
"../../assets/img/default.png"
style=
"width:80px;height:80px"
alt=
""
>
<img
v-else
style=
"width:80px;height:80px"
:src=
"addMsg.userPath"
alt=
""
>
</div>
</el-form-item>
<el-form-item
label=
"商品"
prop=
"GoodsId"
>
<el-select
filterable
v-model=
"addMsg.GoodsId"
size=
"small"
placeholder=
"请选择"
>
<el-option
v-for=
"item in tableData"
:key=
"item.Id"
:label=
"item.Name"
:value=
"item.Id"
>
<el-option
v-for=
"item in tableData"
:key=
"item.Id"
:label=
"item.Name"
:value=
"item.Id"
>
</el-option>
</el-select>
</el-form-item>
...
...
@@ -53,17 +40,17 @@
<el-button
@
click=
"openChangeDig(2)"
size=
"small"
>
选择文件
</el-button>
</el-tooltip>
<div
class=
"app-gallery-item"
style=
"position: relative;width: 100px;margin-top: 10px;"
>
<img
v-if=
"!addMsg.pjPath || addMsg.pjPath==''"
src=
"../../assets/img/default.png"
style=
"width:80px;height:80px"
alt=
""
>
<img
v-else
style=
"width:80px;height:80px"
:src=
"addMsg.pjPath"
alt=
""
>
<img
v-if=
"!addMsg.pjPath || addMsg.pjPath==''"
src=
"../../assets/img/default.png"
style=
"width:80px;height:80px"
alt=
""
>
<img
v-else
style=
"width:80px;height:80px"
:src=
"addMsg.pjPath"
alt=
""
>
</div>
</el-form-item>
<el-form-item
label=
"评价"
>
<el-input
v-model=
"addMsg.Content"
type=
"textarea"
row=
"2"
size=
"small"
></el-input>
</el-form-item>
<el-form-item
label=
"评分"
prop=
"CommentGrade"
>
<el-radio
v-model=
"addMsg.CommentGrade"
:label=
"item.Id"
v-for=
"(item,index) in templateList"
:key=
"index"
>
{{
item
.
Name
}}
</el-radio>
<el-radio
v-model=
"addMsg.CommentGrade"
:label=
"item.Id"
v-for=
"(item,index) in templateList"
:key=
"index"
>
{{
item
.
Name
}}
</el-radio>
</el-form-item>
<el-form-item
label=
"是否匿名"
prop=
"Is_Anonymity"
>
<el-switch
v-model=
"addMsg.Is_Anonymity"
active-color=
"#409EFF"
:active-value=
"1"
:inactive-value=
"2"
>
...
...
@@ -86,7 +73,7 @@
</div>
</
template
>
<
script
>
import
ChooseImg
from
"@/components/global/ChooseImg.vue"
;
import
ChooseImg
from
"@/components/global/ChooseImg.vue"
;
export
default
{
components
:
{
ChooseImg
...
...
@@ -94,48 +81,59 @@ import ChooseImg from "@/components/global/ChooseImg.vue";
data
()
{
return
{
rules
:
{
CreateDate
:
[
{
type
:
'string'
,
required
:
true
,
message
:
'请选择时间'
,
trigger
:
'change'
}
],
GoodsId
:
[
{
required
:
true
,
message
:
'请选择商品'
,
trigger
:
'change'
}
],
CommentGrade
:
[
{
required
:
true
,
message
:
'请选择评分'
,
trigger
:
'change'
}
],
Is_Show
:
[
{
required
:
true
,
message
:
'请选择'
,
trigger
:
'change'
}
],
Is_Anonymity
:
[
{
required
:
true
,
message
:
'请选择'
,
trigger
:
'change'
}
],
CreateDate
:
[{
type
:
'string'
,
required
:
true
,
message
:
'请选择时间'
,
trigger
:
'change'
}],
GoodsId
:
[{
required
:
true
,
message
:
'请选择商品'
,
trigger
:
'change'
}],
CommentGrade
:
[{
required
:
true
,
message
:
'请选择评分'
,
trigger
:
'change'
}],
Is_Show
:
[{
required
:
true
,
message
:
'请选择'
,
trigger
:
'change'
}],
Is_Anonymity
:
[{
required
:
true
,
message
:
'请选择'
,
trigger
:
'change'
}],
},
addMsg
:
{
PlatformSource
:
1
,
CreateDate
:
''
,
UserName
:
''
,
GoodsId
:
''
,
UserPhoto
:
''
,
CommentGrade
:
''
,
Content
:
''
,
CommentImgList
:
[],
Is_Show
:
2
,
Is_Anonymity
:
2
,
PlatformSource
:
1
,
CreateDate
:
''
,
UserName
:
''
,
GoodsId
:
''
,
UserPhoto
:
''
,
CommentGrade
:
''
,
Content
:
''
,
CommentImgList
:
[],
Is_Show
:
2
,
Is_Anonymity
:
2
,
},
msg
:{
pageIndex
:
1
,
pageSize
:
15
,
CommentGrade
:
0
,
PlatformSource
:
0
,
UserName
:
''
,
GoodsName
:
''
,
Content
:
''
,
msg
:
{
pageIndex
:
1
,
pageSize
:
15
,
CommentGrade
:
0
,
PlatformSource
:
0
,
UserName
:
''
,
GoodsName
:
''
,
Content
:
''
,
},
tableData
:
[],
templateList
:[],
platList
:[],
changeState
:
false
,
imgType
:
1
,
templateList
:
[],
platList
:
[],
changeState
:
false
,
imgType
:
1
,
};
},
created
()
{
...
...
@@ -145,25 +143,22 @@ import ChooseImg from "@/components/global/ChooseImg.vue";
},
methods
:
{
SelectId
(
msg
)
{
if
(
this
.
imgType
==
1
)
{
SelectId
(
msg
)
{
if
(
this
.
imgType
==
1
)
{
let
url
=
this
.
getIconLink
(
msg
.
url
)
console
.
log
(
url
)
this
.
addMsg
.
UserPhoto
=
msg
.
selectId
;
this
.
addMsg
.
userPath
=
url
;
this
.
addMsg
.
UserPhoto
=
msg
.
selectId
;
this
.
addMsg
.
userPath
=
url
;
}
if
(
this
.
imgType
==
2
)
{
if
(
this
.
imgType
==
2
)
{
let
url
=
this
.
getIconLink
(
msg
.
url
)
console
.
log
(
url
)
this
.
addMsg
.
CommentImgList
=
[
url
];
this
.
addMsg
.
pjPath
=
url
;
this
.
addMsg
.
CommentImgList
=
[
url
];
this
.
addMsg
.
pjPath
=
url
;
}
this
.
changeState
=
false
;
},
openChangeDig
(
num
)
{
this
.
changeState
=
true
;
this
.
imgType
=
num
;
this
.
imgType
=
num
;
},
Save
()
{
this
.
apipost
(
"/api/order/SetGoodsCommentInfo"
,
this
.
addMsg
,
res
=>
{
...
...
@@ -174,29 +169,29 @@ import ChooseImg from "@/components/global/ChooseImg.vue";
}
})
},
getList
()
{
let
msg
=
{
pageIndex
:
1
,
pageSize
:
999
,
Name
:
''
,
getList
()
{
let
msg
=
{
pageIndex
:
1
,
pageSize
:
999
,
Name
:
''
,
}
this
.
apipost
(
"/api/product/GetProductGoodsDialogList_V2"
,
msg
,
res
=>
{
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
let
pageData
=
res
.
data
.
data
.
pageData
;
this
.
tableData
=
pageData
;
this
.
apipost
(
"/api/product/GetProductGoodsDialogList_V2"
,
msg
,
res
=>
{
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
let
pageData
=
res
.
data
.
data
.
pageData
;
this
.
tableData
=
pageData
;
}
})
},
getplat
()
{
this
.
apipost
(
"/api/user/GetMemberUserSourceEnumList"
,
{},
res
=>
{
this
.
platList
=
res
.
data
.
data
;
getplat
()
{
this
.
apipost
(
"/api/user/GetMemberUserSourceEnumList"
,
{},
res
=>
{
this
.
platList
=
res
.
data
.
data
;
})
},
getTemplate
()
{
this
.
apipost
(
"/api/order/GetGoodsCommentTypeEnumList"
,
{},
res
=>
{
this
.
templateList
=
res
.
data
.
data
;
getTemplate
()
{
this
.
apipost
(
"/api/order/GetGoodsCommentTypeEnumList"
,
{},
res
=>
{
this
.
templateList
=
res
.
data
.
data
;
})
},
...
...
@@ -205,6 +200,7 @@ import ChooseImg from "@/components/global/ChooseImg.vue";
}
};
</
script
>
<
style
>
.usersListEdit
.tip
{
...
...
src/components/sallCenter/plugin/educationArticle.vue
View file @
7adb1fe9
...
...
@@ -491,13 +491,11 @@
},
//选择图片
SelectId
(
msg
)
{
// this.data.goodsTagPicUrl = msg.url;
this
.
choicImg
=
false
;
},
//选择商品
getGoodsChoice
()
{
var
ckedArr
=
this
.
$refs
.
choiceGood
.
getChoicedGoods
();
console
.
log
(
ckedArr
,
'ckedarrrr'
);
var
myArray
=
[];
if
(
ckedArr
&&
ckedArr
.
length
>
0
)
{
ckedArr
.
forEach
(
element
=>
{
...
...
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