Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
national_museum_vod
Project
Project
Details
Activity
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
qzhxx
national_museum_vod
Commits
3832a5e8
Commit
3832a5e8
authored
Jun 07, 2021
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改机顶盒页面说明
parent
828a2b6d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
282 additions
and
283 deletions
+282
-283
stbAdmin.vue
src/page/accounts/stbAdmin.vue
+281
-281
index.vue
src/page/content/display/content/index.vue
+1
-1
index.vue
src/page/content/video/copyright/index.vue
+0
-1
No files found.
src/page/accounts/stbAdmin.vue
View file @
3832a5e8
<
template
>
<!-- 机顶盒运维账号管理 -->
<div
class=
"stb=admin-wrapper height100"
>
<div
class=
"search-container"
>
<el-form
:inline=
"true"
:model=
"form"
>
<el-form-item>
<el-input
clearable
v-model=
"form.userName"
placeholder=
"请输入运维人员姓名"
suffix-icon=
"el-icon-search"
></el-input>
</el-form-item>
<el-form-item>
<el-select
v-model=
"form.status"
placeholder=
"请选择账号状态"
clearable
>
<el-option
v-for=
"(item, index) in statusOption"
:key=
"index"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item>
<div
class=
"btn-group"
>
<el-button
type=
"primary"
@
click=
"handleSubmit"
>
查询
</el-button>
<el-button
@
click=
"handleReset"
>
重置
</el-button>
</div>
</el-form-item>
</el-form>
<div
class=
"page-tip"
>
<span
class=
"page-tip-title"
>
页面说明:
</span>
<span
class=
"page-tips"
>
可按
按照用户名及账号状态进行信息筛选。可新增机顶盒运维账号,“*”为必填项。
</span
>
</div>
</div>
<div
class=
"table-content"
>
<div
class=
"btn-group"
>
<el-button
type=
"primary"
@
click=
"handleAdd()"
>
新建运维账号
</el-button>
</div>
<account-table
:feildList=
"feildList"
:list=
"list"
@
action=
"handleAction"
:currentPage=
"page._index"
/>
<party-pagination
:page=
"page"
@
changePage=
"handleChangeCurrent"
/>
</div>
<add-dialog
ref=
"addDialog"
@
success=
"getFirstPageList()"
/>
<edit-dialog
ref=
"editDialog"
@
success=
"getFirstPageList()"
/>
<msg-dialog
ref=
"msgDilaog"
:msgInfo=
"msgInfo"
/>
</div>
</
template
>
<
script
>
import
{
partyPagination
}
from
"@/components/index"
;
import
accountTable
from
"./components/accountTable"
;
import
{
addDialog
,
editDialog
}
from
"./stbDialog/index"
;
import
msgDialog
from
"./msgDialog.vue"
;
import
{
statusOption
}
from
"@/config/account"
;
export
default
{
data
()
{
return
{
form
:
{
userName
:
""
,
status
:
""
,
type
:
4
,
//1.用户账号 2.平台单位单位管理员账号 3.机顶盒账号 4.运维账号
},
statusOption
:
statusOption
,
feildList
:
[
{
prop
:
"userName"
,
label
:
"运维人员姓名"
},
{
prop
:
"areaName"
,
label
:
"运维区域"
},
{
prop
:
"exiredDate"
,
label
:
"到期时间"
},
// { prop: "type", label: "账号类型" },
{
prop
:
"statusName"
,
label
:
"账号状态"
},
{
prop
:
""
,
label
:
"操作"
,
isEdit
:
true
,
width
:
280
},
],
list
:
[],
page
:
{
_index
:
1
,
_size
:
10
,
total
:
0
,
},
activeRow
:
{},
msgInfo
:
{},
};
},
components
:
{
partyPagination
,
accountTable
,
addDialog
,
editDialog
,
msgDialog
,
},
mounted
()
{
this
.
getFirstPageList
();
},
methods
:
{
getFirstPageList
()
{
this
.
page
.
_index
=
1
;
this
.
getPageList
();
},
handleSubmit
()
{
this
.
getFirstPageList
();
},
handleReset
()
{
this
.
form
.
userName
=
""
;
this
.
form
.
status
=
""
this
.
getFirstPageList
();
},
getPageList
()
{
let
requestParams
=
{};
requestParams
.
_index
=
this
.
page
.
_index
;
requestParams
.
_size
=
this
.
page
.
_size
;
requestParams
.
type
=
this
.
form
.
type
;
if
(
this
.
form
.
userName
)
{
requestParams
.
userName
=
this
.
form
.
userName
;
}
if
(
this
.
form
.
status
)
{
requestParams
.
status
=
this
.
form
.
status
;
}
this
.
$https
(
{
method
:
"get"
,
url
:
"tUser/getPageList"
,
authType
:
this
.
backToken
,
},
requestParams
)
.
then
((
res
)
=>
{
if
(
res
.
status
!=
200
)
{
this
.
getResWithOutData
();
}
else
{
if
(
res
.
data
.
resultCode
==
200
)
{
this
.
list
=
res
.
data
.
data
.
records
;
this
.
page
.
_size
=
res
.
data
.
data
.
size
;
this
.
page
.
total
=
res
.
data
.
data
.
total
;
}
else
{
this
.
getResWithOutData
();
}
}
})
.
catch
((
err
)
=>
{
console
.
log
(
err
);
});
},
// 页面返回值为空
getResWithOutData
()
{
this
.
list
=
[];
this
.
page
=
{
_index
:
1
,
_size
:
10
,
total
:
0
,
};
},
// 新增账号
handleAdd
()
{
this
.
$refs
.
addDialog
.
dialogVisible
=
true
;
},
// 编辑
handleEdit
()
{
this
.
$refs
.
editDialog
.
id
=
this
.
activeRow
.
id
;
this
.
$refs
.
editDialog
.
getDetailById
();
this
.
$refs
.
editDialog
.
dialogVisible
=
true
;
},
// 重置密码
handleResetPwd
()
{
let
_this
=
this
;
this
.
$https
({
method
:
"put"
,
url
:
`tUser/resetPassword?userId=
${
this
.
activeRow
.
id
}
`
,
authType
:
this
.
backToken
,
})
.
then
((
res
)
=>
{
if
(
res
.
status
!=
200
)
{
_this
.
$message
.
error
(
res
.
data
.
message
);
}
else
{
if
(
res
.
data
.
resultCode
==
200
)
{
_this
.
msgInfo
=
{
type
:
"success"
,
des
:
`用户
${
this
.
activeRow
.
userName
}
密码已重置!`
,
};
_this
.
$refs
.
msgDilaog
.
dialogVisible
=
true
;
}
else
{
_this
.
$message
.
error
(
res
.
data
.
message
);
}
}
})
.
catch
((
err
)
=>
{
console
.
log
(
err
);
});
},
// 禁用
handleDisable
()
{
let
_this
=
this
;
this
.
$https
({
method
:
"put"
,
url
:
`tUser/disable?userId=
${
this
.
activeRow
.
id
}
`
,
authType
:
this
.
backToken
,
})
.
then
((
res
)
=>
{
if
(
res
.
status
!=
200
)
{
_this
.
$message
.
error
(
res
.
data
.
message
);
}
else
{
if
(
res
.
data
.
resultCode
==
200
)
{
_this
.
msgInfo
=
{
type
:
"wait"
,
des
:
`
${
this
.
activeRow
.
userName
}
账号禁用申请已提交,待审核…`
,
};
_this
.
$refs
.
msgDilaog
.
dialogVisible
=
true
;
_this
.
getPageList
();
}
else
{
_this
.
$message
.
error
(
res
.
data
.
message
);
}
}
})
.
catch
((
err
)
=>
{
console
.
log
(
err
);
});
},
// 激活
handleActive
()
{
let
_this
=
this
;
this
.
$https
({
method
:
"put"
,
url
:
`tUser/enable?userId=
${
this
.
activeRow
.
id
}
`
,
authType
:
this
.
backToken
,
})
.
then
((
res
)
=>
{
if
(
res
.
status
!=
200
)
{
_this
.
$message
.
error
(
res
.
data
.
message
);
}
else
{
if
(
res
.
data
.
resultCode
==
200
)
{
_this
.
msgInfo
=
{
type
:
"success"
,
des
:
`用户
${
this
.
activeRow
.
userName
}
账号激活成功!`
,
};
_this
.
$refs
.
msgDilaog
.
dialogVisible
=
true
;
_this
.
getPageList
();
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
);
}
}
})
.
catch
((
err
)
=>
{
console
.
log
(
err
);
});
},
handleAction
(
params
)
{
this
.
activeRow
=
params
.
row
;
switch
(
params
.
type
)
{
case
"enable"
:
this
.
handleActive
();
break
;
case
"disable"
:
this
.
handleDisable
();
break
;
case
"reset"
:
this
.
handleResetPwd
();
break
;
case
"edit"
:
this
.
handleEdit
();
break
;
default
:
break
;
}
},
// 翻页
handleChangeCurrent
(
val
)
{
this
.
page
.
_index
=
val
;
this
.
getPageList
();
},
},
};
</
script
>
<
style
lang=
"less"
scoped
>
<
template
>
<!-- 机顶盒运维账号管理 -->
<div
class=
"stb=admin-wrapper height100"
>
<div
class=
"search-container"
>
<el-form
:inline=
"true"
:model=
"form"
>
<el-form-item>
<el-input
clearable
v-model=
"form.userName"
placeholder=
"请输入运维人员姓名"
suffix-icon=
"el-icon-search"
></el-input>
</el-form-item>
<el-form-item>
<el-select
v-model=
"form.status"
placeholder=
"请选择账号状态"
clearable
>
<el-option
v-for=
"(item, index) in statusOption"
:key=
"index"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item>
<div
class=
"btn-group"
>
<el-button
type=
"primary"
@
click=
"handleSubmit"
>
查询
</el-button>
<el-button
@
click=
"handleReset"
>
重置
</el-button>
</div>
</el-form-item>
</el-form>
<div
class=
"page-tip"
>
<span
class=
"page-tip-title"
>
页面说明:
</span>
<span
class=
"page-tips"
>
可按
照用户名及账号状态进行信息筛选。可新增机顶盒运维账号,“*”为必填项。
</span
>
</div>
</div>
<div
class=
"table-content"
>
<div
class=
"btn-group"
>
<el-button
type=
"primary"
@
click=
"handleAdd()"
>
新建运维账号
</el-button>
</div>
<account-table
:feildList=
"feildList"
:list=
"list"
@
action=
"handleAction"
:currentPage=
"page._index"
/>
<party-pagination
:page=
"page"
@
changePage=
"handleChangeCurrent"
/>
</div>
<add-dialog
ref=
"addDialog"
@
success=
"getFirstPageList()"
/>
<edit-dialog
ref=
"editDialog"
@
success=
"getFirstPageList()"
/>
<msg-dialog
ref=
"msgDilaog"
:msgInfo=
"msgInfo"
/>
</div>
</
template
>
<
script
>
import
{
partyPagination
}
from
"@/components/index"
;
import
accountTable
from
"./components/accountTable"
;
import
{
addDialog
,
editDialog
}
from
"./stbDialog/index"
;
import
msgDialog
from
"./msgDialog.vue"
;
import
{
statusOption
}
from
"@/config/account"
;
export
default
{
data
()
{
return
{
form
:
{
userName
:
""
,
status
:
""
,
type
:
4
,
//1.用户账号 2.平台单位单位管理员账号 3.机顶盒账号 4.运维账号
},
statusOption
:
statusOption
,
feildList
:
[
{
prop
:
"userName"
,
label
:
"运维人员姓名"
},
{
prop
:
"areaName"
,
label
:
"运维区域"
},
{
prop
:
"exiredDate"
,
label
:
"到期时间"
},
// { prop: "type", label: "账号类型" },
{
prop
:
"statusName"
,
label
:
"账号状态"
},
{
prop
:
""
,
label
:
"操作"
,
isEdit
:
true
,
width
:
280
},
],
list
:
[],
page
:
{
_index
:
1
,
_size
:
10
,
total
:
0
,
},
activeRow
:
{},
msgInfo
:
{},
};
},
components
:
{
partyPagination
,
accountTable
,
addDialog
,
editDialog
,
msgDialog
,
},
mounted
()
{
this
.
getFirstPageList
();
},
methods
:
{
getFirstPageList
()
{
this
.
page
.
_index
=
1
;
this
.
getPageList
();
},
handleSubmit
()
{
this
.
getFirstPageList
();
},
handleReset
()
{
this
.
form
.
userName
=
""
;
this
.
form
.
status
=
""
this
.
getFirstPageList
();
},
getPageList
()
{
let
requestParams
=
{};
requestParams
.
_index
=
this
.
page
.
_index
;
requestParams
.
_size
=
this
.
page
.
_size
;
requestParams
.
type
=
this
.
form
.
type
;
if
(
this
.
form
.
userName
)
{
requestParams
.
userName
=
this
.
form
.
userName
;
}
if
(
this
.
form
.
status
)
{
requestParams
.
status
=
this
.
form
.
status
;
}
this
.
$https
(
{
method
:
"get"
,
url
:
"tUser/getPageList"
,
authType
:
this
.
backToken
,
},
requestParams
)
.
then
((
res
)
=>
{
if
(
res
.
status
!=
200
)
{
this
.
getResWithOutData
();
}
else
{
if
(
res
.
data
.
resultCode
==
200
)
{
this
.
list
=
res
.
data
.
data
.
records
;
this
.
page
.
_size
=
res
.
data
.
data
.
size
;
this
.
page
.
total
=
res
.
data
.
data
.
total
;
}
else
{
this
.
getResWithOutData
();
}
}
})
.
catch
((
err
)
=>
{
console
.
log
(
err
);
});
},
// 页面返回值为空
getResWithOutData
()
{
this
.
list
=
[];
this
.
page
=
{
_index
:
1
,
_size
:
10
,
total
:
0
,
};
},
// 新增账号
handleAdd
()
{
this
.
$refs
.
addDialog
.
dialogVisible
=
true
;
},
// 编辑
handleEdit
()
{
this
.
$refs
.
editDialog
.
id
=
this
.
activeRow
.
id
;
this
.
$refs
.
editDialog
.
getDetailById
();
this
.
$refs
.
editDialog
.
dialogVisible
=
true
;
},
// 重置密码
handleResetPwd
()
{
let
_this
=
this
;
this
.
$https
({
method
:
"put"
,
url
:
`tUser/resetPassword?userId=
${
this
.
activeRow
.
id
}
`
,
authType
:
this
.
backToken
,
})
.
then
((
res
)
=>
{
if
(
res
.
status
!=
200
)
{
_this
.
$message
.
error
(
res
.
data
.
message
);
}
else
{
if
(
res
.
data
.
resultCode
==
200
)
{
_this
.
msgInfo
=
{
type
:
"success"
,
des
:
`用户
${
this
.
activeRow
.
userName
}
密码已重置!`
,
};
_this
.
$refs
.
msgDilaog
.
dialogVisible
=
true
;
}
else
{
_this
.
$message
.
error
(
res
.
data
.
message
);
}
}
})
.
catch
((
err
)
=>
{
console
.
log
(
err
);
});
},
// 禁用
handleDisable
()
{
let
_this
=
this
;
this
.
$https
({
method
:
"put"
,
url
:
`tUser/disable?userId=
${
this
.
activeRow
.
id
}
`
,
authType
:
this
.
backToken
,
})
.
then
((
res
)
=>
{
if
(
res
.
status
!=
200
)
{
_this
.
$message
.
error
(
res
.
data
.
message
);
}
else
{
if
(
res
.
data
.
resultCode
==
200
)
{
_this
.
msgInfo
=
{
type
:
"wait"
,
des
:
`
${
this
.
activeRow
.
userName
}
账号禁用申请已提交,待审核…`
,
};
_this
.
$refs
.
msgDilaog
.
dialogVisible
=
true
;
_this
.
getPageList
();
}
else
{
_this
.
$message
.
error
(
res
.
data
.
message
);
}
}
})
.
catch
((
err
)
=>
{
console
.
log
(
err
);
});
},
// 激活
handleActive
()
{
let
_this
=
this
;
this
.
$https
({
method
:
"put"
,
url
:
`tUser/enable?userId=
${
this
.
activeRow
.
id
}
`
,
authType
:
this
.
backToken
,
})
.
then
((
res
)
=>
{
if
(
res
.
status
!=
200
)
{
_this
.
$message
.
error
(
res
.
data
.
message
);
}
else
{
if
(
res
.
data
.
resultCode
==
200
)
{
_this
.
msgInfo
=
{
type
:
"success"
,
des
:
`用户
${
this
.
activeRow
.
userName
}
账号激活成功!`
,
};
_this
.
$refs
.
msgDilaog
.
dialogVisible
=
true
;
_this
.
getPageList
();
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
);
}
}
})
.
catch
((
err
)
=>
{
console
.
log
(
err
);
});
},
handleAction
(
params
)
{
this
.
activeRow
=
params
.
row
;
switch
(
params
.
type
)
{
case
"enable"
:
this
.
handleActive
();
break
;
case
"disable"
:
this
.
handleDisable
();
break
;
case
"reset"
:
this
.
handleResetPwd
();
break
;
case
"edit"
:
this
.
handleEdit
();
break
;
default
:
break
;
}
},
// 翻页
handleChangeCurrent
(
val
)
{
this
.
page
.
_index
=
val
;
this
.
getPageList
();
},
},
};
</
script
>
<
style
lang=
"less"
scoped
>
</
style
>
\ No newline at end of file
src/page/content/display/content/index.vue
View file @
3832a5e8
...
...
@@ -50,7 +50,7 @@
</el-form-item>
</el-form>
<div
class=
"page-tip"
>
<span
class=
"page-tip-title"
style=
'width:
8
0px'
>
页面说明:
</span>
<span
class=
"page-tip-title"
style=
'width:
7
0px'
>
页面说明:
</span>
<span
class=
"page-tips"
>
可通过展板名称、创建时间对展板信息进行快速检索。可对展板进行上架、下架、删除、修改及查看展板详情等操作。已上架展板需先下架才能删除。
</span>
</div>
</div>
...
...
src/page/content/video/copyright/index.vue
View file @
3832a5e8
...
...
@@ -340,7 +340,6 @@ export default {
res
=>
{
if
(
res
.
data
.
resultCode
===
"200"
){
this
.
$message
({
type
:
"success"
,
message
:
"删除成功!"
});
console
.
log
(
111
)
_this
.
Search
();
}
else
{
this
.
$message
({
type
:
"error"
,
message
:
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