Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zeroing-editor
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
劳工
zeroing-editor
Commits
6433b9e7
Commit
6433b9e7
authored
Apr 09, 2020
by
张超
🎱
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
5b6c9dde
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
58 additions
and
4 deletions
+58
-4
zh-CN.json
src/locales/zh-CN.json
+4
-2
DetailsDialog.vue
src/views/Editor/dialogs/DetailsDialog.vue
+7
-2
AuthManagerEditor.vue
src/views/Editor/dialogs/editors/AuthManagerEditor.vue
+47
-0
No files found.
src/locales/zh-CN.json
View file @
6433b9e7
...
@@ -129,6 +129,7 @@
...
@@ -129,6 +129,7 @@
"Custom module"
:
"自定义模块"
,
"Custom module"
:
"自定义模块"
,
"Package manager"
:
"包管理"
,
"Package manager"
:
"包管理"
,
"Projectx config"
:
"星速台配置"
,
"Projectx config"
:
"星速台配置"
,
"Auth manager"
:
"权限管理"
,
"Custom module asset mapping"
:
"自定义模块素材映射"
,
"Custom module asset mapping"
:
"自定义模块素材映射"
,
"Copy template to clipboard"
:
"复制模板到粘贴板"
,
"Copy template to clipboard"
:
"复制模板到粘贴板"
,
"Copied process to clipboard"
:
"复制过程到粘贴板"
,
"Copied process to clipboard"
:
"复制过程到粘贴板"
,
...
@@ -170,6 +171,7 @@
...
@@ -170,6 +171,7 @@
"Are you sure to combine those assets?"
:
"确定合并这些素材吗"
,
"Are you sure to combine those assets?"
:
"确定合并这些素材吗"
,
"Are you sure to delete all assets"
:
"确定删除全部素材吗"
,
"Are you sure to delete all assets"
:
"确定删除全部素材吗"
,
"Are you sure to delete this item"
:
"确定删除这一项吗"
,
"Are you sure to delete this item"
:
"确定删除这一项吗"
,
"Are you sure to delete this user auth"
:
"确定删除这一用户权限"
,
"Rename asset"
:
"重命名素材"
,
"Rename asset"
:
"重命名素材"
,
"Input asset name"
:
"输入素材名"
,
"Input asset name"
:
"输入素材名"
,
"Invalid asset name"
:
"无效的素材名"
,
"Invalid asset name"
:
"无效的素材名"
,
...
...
src/views/Editor/dialogs/DetailsDialog.vue
View file @
6433b9e7
...
@@ -25,6 +25,9 @@
...
@@ -25,6 +25,9 @@
<el-tab-pane
:label=
"$t('Projectx config')"
name=
"projectxConfig"
>
<el-tab-pane
:label=
"$t('Projectx config')"
name=
"projectxConfig"
>
<projectx-config
ref=
"projectxConfig"
/>
<projectx-config
ref=
"projectxConfig"
/>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
:label=
"$t('Auth manager')"
name=
"authManagerEditor"
>
<auth-manager-editor></auth-manager-editor>
</el-tab-pane>
</el-tabs>
</el-tabs>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div></div>
<div></div>
...
@@ -44,6 +47,7 @@
...
@@ -44,6 +47,7 @@
import
DataMappingEditor
from
"./editors/DataMappingEditor"
;
import
DataMappingEditor
from
"./editors/DataMappingEditor"
;
import
ProjectxConfig
from
"./editors/ProjectxConfig"
;
import
ProjectxConfig
from
"./editors/ProjectxConfig"
;
import
PackageManagerEditor
from
"./editors/PackageManagerEditor"
;
import
PackageManagerEditor
from
"./editors/PackageManagerEditor"
;
import
AuthManagerEditor
from
"./editors/AuthManagerEditor"
;
const
refs
=
[
const
refs
=
[
'projectEditor'
,
'projectEditor'
,
...
@@ -52,13 +56,14 @@
...
@@ -52,13 +56,14 @@
'customModuleEditor'
,
'customModuleEditor'
,
'packageManager'
,
'packageManager'
,
'projectxConfig'
,
'projectxConfig'
,
'authManagerEditor'
];
];
export
default
{
export
default
{
name
:
"DetailsDialog"
,
name
:
"DetailsDialog"
,
components
:
{
components
:
{
PackageManagerEditor
,
DataMappingEditor
,
CustomModuleEditor
,
EnvEditor
,
ProjectEditor
,
PackageManagerEditor
,
DataMappingEditor
,
CustomModuleEditor
,
EnvEditor
,
ProjectEditor
,
ProjectxConfig
ProjectxConfig
,
AuthManagerEditor
},
},
data
()
{
data
()
{
return
{
return
{
...
...
src/views/Editor/dialogs/editors/AuthManagerEditor.vue
0 → 100644
View file @
6433b9e7
<
template
>
<div
class=
"project-auth-manager"
>
<el-card
shadow=
"hover"
>
<h3
class=
"title"
>
当前权限用户列表
</h3>
<el-tag
:key=
"tag"
v-for=
"tag in authList"
closable
:disable-transitions=
"false"
@
close=
"deleteAuth(tag)"
>
{{
tag
}}
</el-tag>
</el-card>
</div>
</
template
>
<
script
>
import
{
mapState
,
mapGetters
,
mapMutations
}
from
"vuex"
;
export
default
{
name
:
"AuthManagerEditor"
,
data
()
{
return
{
authList
:
[
"张超"
,
"姜西西"
,
"王竹君"
],
};
},
methods
:
{
deleteAuth
(
tag
)
{
this
.
$confirm
(
this
.
$t
(
'Are you sure to delete this user auth'
)
+
tag
,
this
.
$t
(
'Alert'
),
{
confirmButtonText
:
this
.
$t
(
'Confirm'
),
cancelButtonText
:
this
.
$t
(
'Cancel'
),
type
:
'warning'
}).
then
(()
=>
{
this
.
authList
=
this
.
authList
.
filter
(
item
=>
item
!==
tag
);
}).
catch
((
e
)
=>
{
});
console
.
log
(
tag
);
},
},
};
</
script
>
<
style
lang=
"scss"
scoped
>
.el-tag
+
.el-tag
{
margin-left
:
10px
;
}
</
style
>
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