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
849ea7df
Commit
849ea7df
authored
Sep 27, 2020
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
1f9a6379
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
75 additions
and
50 deletions
+75
-50
informationEvalution.vue
src/components/education/informationEvalution.vue
+75
-50
No files found.
src/components/education/informationEvalution.vue
View file @
849ea7df
...
...
@@ -2,21 +2,21 @@
<div
class=
"informationEvalution"
>
<div
class=
"head-title"
>
资讯评价
<
el-button
style=
"float:right;margin-left:10px"
@
click=
"CommonJump('addZixunPj')"
size=
"small"
type=
"primary"
>
新增评价
</el-button
>
<
!--
<el-button
style=
"float:right;margin-left:10px"
@
click=
"CommonJump('addZixunPj')"
size=
"small"
type=
"primary"
>
新增评价
</el-button>
--
>
</div>
<div
class=
"content"
>
<div
style=
"margin-bottom:20px"
>
<span>
评价类型
</span>
<el-select
style=
"margin:0 10px"
class=
"w100"
@
change=
"msg.pageIndex=1,getList()"
v-model=
"msg.CommentGrade"
size=
"small"
placeholder=
"请选择"
>
<el-select
style=
"margin:0 10px"
class=
"w100"
@
change=
"msg.pageIndex=1,getList()"
v-model=
"msg.CommentGrade"
size=
"small"
placeholder=
"请选择"
>
<el-option
label=
"全部评价"
:value=
"0"
></el-option>
<el-option
v-for=
"item in templateList"
:key=
"item.Id"
:label=
"item.Name"
:value=
"item.Id"
>
</el-option>
</el-select>
<span>
所属平台
</span>
<el-select
class=
"w100"
@
change=
"msg.pageIndex=1,getList()"
style=
"margin-right: 10px;"
v-model=
"msg.PlatformSource"
size=
"small"
placeholder=
"请选择"
>
<el-select
class=
"w100"
@
change=
"msg.pageIndex=1,getList()"
style=
"margin-right: 10px;"
v-model=
"msg.PlatformSource"
size=
"small"
placeholder=
"请选择"
>
<el-option
label=
"全平台"
:value=
"0"
></el-option>
<el-option
v-for=
"item in platList"
:key=
"item.Id"
:label=
"item.Name"
:value=
"item.Id"
>
</el-option>
...
...
@@ -30,7 +30,7 @@
<el-button
@
click=
"msg.pageIndex=1,getList()"
slot=
"append"
icon=
"el-icon-search"
></el-button>
</el-input>
<el-date-picker
size=
"small"
@
change=
"msg.pageIndex=1,getList()"
v-model=
"dateList"
type=
"datetimerange"
range-separator=
"至"
start-placeholder=
"开始日期"
value-format=
"yyyy-MM-dd HH:mm:ss"
end-placeholder=
"结束日期"
>
range-separator=
"至"
start-placeholder=
"开始日期"
value-format=
"yyyy-MM-dd HH:mm:ss"
end-placeholder=
"结束日期"
>
</el-date-picker>
<!--
<el-button
@
click=
"plHf"
style=
"margin-left:10px"
size=
"small"
>
批量回复
</el-button>
<el-button
@
click=
"plSet(2)"
style=
"margin-left:10px"
size=
"small"
>
批量隐藏
</el-button>
...
...
@@ -89,27 +89,27 @@
</el-table-column>
<el-table-column
width=
"220"
prop=
"address"
label=
"操作"
>
<
template
slot-scope=
"scope"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"评价回复"
placement=
"top"
>
<
!--
<
el-tooltip
class=
"item"
effect=
"dark"
content=
"评价回复"
placement=
"top"
>
<img
@
click=
"EditTemplate(scope.row)"
style=
"margin-right:10px"
src=
"../../assets/img/userman/reply.png"
alt=
""
>
</el-tooltip>
</el-tooltip>
-->
<el-tooltip
class=
"item"
effect=
"dark"
content=
"删除"
placement=
"top"
>
<img
@
click=
"setBatch(scope.row,6)"
style=
"margin-right:10px"
src=
"../../assets/img/userman/del.png"
alt=
""
>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"隐藏"
placement=
"top"
>
<
!--
<
el-tooltip
class=
"item"
effect=
"dark"
content=
"隐藏"
placement=
"top"
>
<img
@
click=
"setBatch(scope.row,2)"
v-if=
"scope.row.Is_Show==1"
style=
"margin-right:10px"
src=
"../../assets/img/userman/icon-hidden.png"
alt=
""
>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"显示"
placement=
"top"
>
<img
@
click=
"setBatch(scope.row,3)"
v-if=
"scope.row.Is_Show==2"
style=
"margin-right:10px"
src=
"../../assets/img/userman/icon-show.png"
alt=
""
>
</el-tooltip>
</el-tooltip>
-->
</
template
>
</el-table-column>
</el-table>
<el-pagination
style=
"text-align:right"
background
@
current-change=
"handleCurrentChange"
:page-size=
"msg.pageSize"
:current-page
.
sync=
"msg.pageIndex"
layout=
"prev, pager, next"
:total=
"total"
>
<el-pagination
style=
"text-align:right"
background
@
current-change=
"handleCurrentChange"
:page-size=
"msg.pageSize"
:current-page
.
sync=
"msg.pageIndex"
layout=
"prev, pager, next"
:total=
"total"
>
</el-pagination>
</div>
</div>
...
...
@@ -119,25 +119,25 @@
export
default
{
data
()
{
return
{
loading
:
false
,
loading
:
false
,
msgVal
:
''
,
msgId
:
''
,
msg
:
{
pageIndex
:
1
,
pageSize
:
15
,
pageSize
:
15
,
CommentGrade
:
0
,
PlatformSource
:
0
,
ArticleName
:
''
,
//咨询标题
Content
:
''
,
//评价内容
StartTime
:
''
,
//评价时间
EndTime
:
''
,
//评价时间
UserName
:
''
,
//用户昵称
ArticleId
:
0
//资讯id
ArticleName
:
''
,
//咨询标题
Content
:
''
,
//评价内容
StartTime
:
''
,
//评价时间
EndTime
:
''
,
//评价时间
UserName
:
''
,
//用户昵称
ArticleId
:
0
//资讯id
},
templateList
:
[],
//评价类型
platList
:[],
//所属平台
platList
:
[],
//所属平台
total
:
0
,
tableData
:[],
tableData
:
[],
addMsg
:
{
Id
:
0
,
Name
:
''
,
...
...
@@ -194,33 +194,33 @@
});
},
OpenImg
(
item
)
{
OpenImg
(
item
)
{
// this.imgSrc = 'https://cdnimg.iotweixin.com/uploads/mall1285/20200316/586d61c616082de7c3a7d1d778104785.jpg';
// this.seeimgDig = true;
},
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;
// },
// // 批量回复
// 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
;
...
...
@@ -251,11 +251,11 @@
this
.
msg
.
StartTime
=
''
;
this
.
msg
.
EndTime
=
''
;
}
this
.
loading
=
true
;
this
.
loading
=
true
;
this
.
apipost
(
"/api/Education/GetArticleCommentPageList"
,
this
.
msg
,
res
=>
{
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
console
.
log
(
res
,
'数据'
);
console
.
log
(
res
,
'数据'
);
this
.
total
=
res
.
data
.
data
.
count
;
let
pageData
=
res
.
data
.
data
.
pageData
;
this
.
tableData
=
pageData
;
...
...
@@ -306,13 +306,38 @@
}
})
},
EditTemplate
(){
EditTemplate
()
{
},
setBatch
(){
}
setBatch
(
item
,
index
)
{
let
msg
=
{
CommentIds
:
item
.
ID
,
Type
:
index
,
}
if
(
index
==
6
)
{
this
.
delComent
(
msg
);
}
},
delComent
(
msg
)
{
let
that
=
this
;
that
.
$confirm
(
"确认删除?"
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
this
.
apipost
(
"/api/Education/SetArticleCommentBatch"
,
msg
,
res
=>
{
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
Success
(
res
.
data
.
message
)
this
.
getList
();
}
else
{
this
.
Error
(
res
.
data
.
message
)
}
})
}).
catch
(()
=>
{
});
},
},
};
...
...
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