Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
提交
议题看板
打开侧边栏
jingqi.liu
pica.cloud.web-education-admin
提交
0f53df6a
提交
0f53df6a
编写于
9月 16, 2020
作者:
bo.dang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
审核列表
上级
40404e4d
变更
4
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
55 行增加
和
42 行删除
+55
-42
filter.js
src/utils/filter.js
+11
-0
create-live.vue
src/views/yqrange/create-live.vue
+2
-2
range-apply.vue
src/views/yqrange/range-apply.vue
+33
-38
yq-range.vue
src/views/yqrange/yq-range.vue
+9
-2
未找到文件。
src/utils/filter.js
浏览文件 @
0f53df6a
...
@@ -483,6 +483,17 @@ const vueFilter = {
...
@@ -483,6 +483,17 @@ const vueFilter = {
return
'-'
return
'-'
}
}
},
},
circleApplyStatus
:
(
value
)
=>
{
if
(
value
==
0
){
return
'拒绝'
}
else
if
(
value
==
1
){
return
'待审核'
}
else
if
(
value
==
2
){
return
'通过'
}
},
// 圈子状态 0:暂存 10:待发布(已保存) 20:已发布(已提交待审核、审核被拒绝) 30:已上架(审核通过)40:下架 50:解散
// 圈子状态 0:暂存 10:待发布(已保存) 20:已发布(已提交待审核、审核被拒绝) 30:已上架(审核通过)40:下架 50:解散
rangeStatus
:
(
value
)
=>
{
rangeStatus
:
(
value
)
=>
{
if
(
value
==
0
)
{
if
(
value
==
0
)
{
...
...
src/views/yqrange/create-live.vue
浏览文件 @
0f53df6a
...
@@ -642,6 +642,7 @@
...
@@ -642,6 +642,7 @@
pullFlag: false, // 是否显示拉流地址
pullFlag: false, // 是否显示拉流地址
dialogVisible: false,
dialogVisible: false,
uploadProgress1: 0,
uploadProgress1: 0,
searchList: [],
formData: {
formData: {
circleId: "",// 圈子ID
circleId: "",// 圈子ID
name: '',// 直播名称
name: '',// 直播名称
...
@@ -746,8 +747,7 @@
...
@@ -746,8 +747,7 @@
// 一天是24*60*60*1000 = 86400000 = 8.64e7
// 一天是24*60*60*1000 = 86400000 = 8.64e7
// console.log('this.maxDate',this.maxDate)
// console.log('this.maxDate',this.maxDate)
return time.getTime() < Date.now() - 8.64e7
return time.getTime() < Date.now() - 8.64e7
},
}
searchList: null
},
},
rules: {
rules: {
name: [
name: [
...
...
src/views/yqrange/range-apply.vue
浏览文件 @
0f53df6a
...
@@ -49,8 +49,8 @@
...
@@ -49,8 +49,8 @@
<el-table-column
label=
"操作"
min-width=
"370"
align=
"center"
>
<el-table-column
label=
"操作"
min-width=
"370"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<div
v-if=
"scope.row.status != 50"
>
<div
v-if=
"scope.row.status != 50"
>
<el-button
@
click=
"approve(scope.row)"
type=
"text"
size=
"small"
v-if=
"s
howAllFlag && scope.row.status != 0
"
>
通过
</el-button>
<el-button
@
click=
"approve(scope.row)"
type=
"text"
size=
"small"
v-if=
"s
cope.row.status != 0 && scope.row.status != 2
"
>
通过
</el-button>
<el-button
@
click=
"reject(scope.row)"
type=
"text"
size=
"small"
v-if=
"scope.row.status != 0"
>
拒绝
</el-button>
<el-button
@
click=
"reject(scope.row)"
type=
"text"
size=
"small"
v-if=
"scope.row.status != 0
&& scope.row.status != 2
"
>
拒绝
</el-button>
</div>
</div>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
@@ -76,7 +76,7 @@
...
@@ -76,7 +76,7 @@
<
script
>
<
script
>
import
{
openLoading
,
closeLoading
}
from
"../../utils/utils"
;
import
{
openLoading
,
closeLoading
}
from
"../../utils/utils"
;
import
BreadCrumb
from
"@/components/breadcrumb.vue"
;
import
BreadCrumb
from
"@/components/breadcrumb.vue"
;
import
{
getRangeList
,
updateRangeStatus
,
getCircleSettingList
,
saveCircleSetting
,
applyList
,
applyUpdate
}
from
"../../utils/yqrange/yqrangeApi"
;
import
{
applyList
,
applyUpdate
}
from
"../../utils/yqrange/yqrangeApi"
;
export
default
{
export
default
{
components
:
{
components
:
{
BreadCrumb
BreadCrumb
...
@@ -198,71 +198,66 @@
...
@@ -198,71 +198,66 @@
resetForm
()
{
resetForm
()
{
this
.
searchForm
.
name
=
""
;
this
.
searchForm
.
name
=
""
;
this
.
searchForm
.
circleName
=
""
;
this
.
searchForm
.
circleName
=
""
;
this
.
searchForm
.
status
=
""
;
this
.
searchForm
.
status
=
-
1
;
console
.
log
(
'重置'
)
console
.
log
(
'重置'
)
this
.
search
();
this
.
search
();
},
},
// 更新圈子状态(上线,下线)
// 更新圈子状态(上线,下线)
updateStatus
(
id
,
status
){
updateStatus
(
params
){
let
params
=
{
"doctorId"
:
id
,
circleId
:
this
.
circleId
,
"status"
:
status
};
applyUpdate
(
params
).
then
((
res
)
=>
{
updateRangeStatus
(
params
).
then
((
res
)
=>
{
closeLoading
(
this
);
closeLoading
(
this
);
if
(
res
.
code
==
"000000"
)
{
if
(
res
.
code
==
"000000"
)
{
if
(
status
==
2
){
this
.
$message
.
success
(
"成功"
);
this
.
$message
.
success
(
"成功通过"
);
}
else
if
(
status
==
0
)
{
this
.
$message
.
success
(
"拒绝成功"
);
}
this
.
searchList
();
this
.
searchList
();
}
else
{
}
else
{
if
(
status
==
2
){
this
.
$message
.
success
(
"失败"
);
this
.
$message
.
success
(
"通过失败"
);
}
else
if
(
status
==
0
)
{
this
.
$message
.
success
(
"拒绝失败"
);
}
}
}
}).
catch
((
error
)
=>
{
}).
catch
((
error
)
=>
{
// this.$message({
// this.$message({
// message: error,
// message: error,
// type: 'error'
// type: 'error'
// });
// });
if
(
status
==
"40"
){
this
.
$message
.
error
(
"请重试"
);
this
.
$message
.
error
(
"下线失败,请重试"
);
}
else
if
(
status
==
"30"
)
{
this
.
$message
.
error
(
"上线失败,请重试"
);
}
else
if
(
status
==
"50"
)
{
this
.
$message
.
error
(
"解散失败,请重试"
);
}
})
})
},
},
rangeManage
(
row
)
{
// 0:拒绝,1:待审核;2.通过
this
.
$router
.
push
({
approve
(
row
){
path
:
'/range-manage'
,
query
:
{
let
params
=
{
id
:
row
.
id
,
applyList
:
[{
name
:
row
.
name
,
"circleId"
:
row
.
circleId
,
activeName
:
'first'
,
"doctorId"
:
row
.
doctorId
,
roleType
:
row
.
roleId
"status"
:
2
}
}]
})
};
this
.
updateStatus
(
params
);
},
},
//拒绝
//拒绝
reject
(
row
)
{
reject
(
row
)
{
this
.
$confirm
(
``
,
`确定拒绝“
${
row
.
name
}
”吗?`
,
{
let
params
=
{
applyList
:
[{
"circleId"
:
row
.
circleId
,
"doctorId"
:
row
.
doctorId
,
"status"
:
0
}]
};
this
.
$confirm
(
`确定拒绝吗?`
,
`“
${
row
.
name
}
”申请加入"
${
row
.
circleName
}
"圈子`
,
{
confirmButtonText
:
'拒绝'
,
confirmButtonText
:
'拒绝'
,
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
type
:
'warning'
,
customClass
:
'range-make-box'
,
customClass
:
'range-make-box'
,
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
updateStatus
(
row
.
doctorId
,
0
);
this
.
updateStatus
(
params
);
// confirm
// confirm
}).
catch
(()
=>
{
}).
catch
(()
=>
{
// cancel
// cancel
...
...
src/views/yqrange/yq-range.vue
浏览文件 @
0f53df6a
...
@@ -117,7 +117,7 @@
...
@@ -117,7 +117,7 @@
</el-dialog>
</el-dialog>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"审核列表"
name=
"second"
>
<el-tab-pane
label=
"审核列表"
name=
"second"
v-if=
"showApplyFlag"
>
<range-apply></range-apply>
<range-apply></range-apply>
</el-tab-pane>
</el-tab-pane>
...
@@ -148,6 +148,7 @@ export default {
...
@@ -148,6 +148,7 @@ export default {
activeName
:
'first'
,
activeName
:
'first'
,
showAllFlag
:
false
,
showAllFlag
:
false
,
showNewFlag
:
false
,
showNewFlag
:
false
,
showApplyFlag
:
true
,
searchForm
:
{
searchForm
:
{
name
:
''
,
name
:
''
,
createdTime
:
''
,
createdTime
:
''
,
...
@@ -193,7 +194,6 @@ export default {
...
@@ -193,7 +194,6 @@ export default {
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
getUserAuth
();
this
.
getUserAuth
();
},
1500
)
},
1500
)
}
}
},
},
...
@@ -203,6 +203,13 @@ export default {
...
@@ -203,6 +203,13 @@ export default {
let
highMainManager
=
localStorage
.
getItem
(
'highMainManager'
);
let
highMainManager
=
localStorage
.
getItem
(
'highMainManager'
);
let
mainManager
=
localStorage
.
getItem
(
'mainManager'
);
let
mainManager
=
localStorage
.
getItem
(
'mainManager'
);
let
manager
=
localStorage
.
getItem
(
'manager'
);
let
manager
=
localStorage
.
getItem
(
'manager'
);
let
ordinary
=
localStorage
.
getItem
(
'ordinary'
);
if
(
ordinary
==
"1"
){
this
.
showApplyFlag
=
false
;
}
else
{
this
.
showApplyFlag
=
true
;
}
if
(
highMainManager
==
"1"
||
mainManager
==
"1"
){
if
(
highMainManager
==
"1"
||
mainManager
==
"1"
){
this
.
showNewFlag
=
true
;
this
.
showNewFlag
=
true
;
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录