Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
datax-cloud
Overview
Overview
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
黄营
datax-cloud
Commits
46088183
Commit
46088183
authored
Sep 24, 2020
by
yuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
项目初始化
parent
5003eac7
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
51 additions
and
2 deletions
+51
-2
flowDel.js
datax-ui/src/directive/flow/flowDel.js
+16
-0
flowEdit.js
datax-ui/src/directive/flow/flowEdit.js
+16
-0
index.js
datax-ui/src/directive/flow/index.js
+15
-0
main.js
datax-ui/src/main.js
+2
-0
DataModelList.vue
datax-ui/src/views/masterdata/datamodel/DataModelList.vue
+2
-2
No files found.
datax-ui/src/directive/flow/flowDel.js
0 → 100644
View file @
46088183
export
default
{
inserted
(
el
,
binding
,
vnode
)
{
const
{
value
}
=
binding
// 工作流状态(1待提交,2已退回,3审核中,4通过,5不通过,6已撤销)
if
(
value
)
{
if
(
value
===
'1'
||
value
===
'6'
)
{
el
.
disabled
=
false
}
else
{
el
.
disabled
=
true
el
.
classList
.
add
(
'is-disabled'
)
}
}
else
{
throw
new
Error
(
'请设置流程权限标签值'
)
}
}
}
datax-ui/src/directive/flow/flowEdit.js
0 → 100644
View file @
46088183
export
default
{
inserted
(
el
,
binding
,
vnode
)
{
const
{
value
}
=
binding
// 工作流状态(1待提交,2已退回,3审核中,4通过,5不通过,6已撤销)
if
(
value
)
{
if
(
value
===
'1'
||
value
===
'2'
||
value
===
'6'
)
{
el
.
disabled
=
false
}
else
{
el
.
disabled
=
true
el
.
classList
.
add
(
'is-disabled'
)
}
}
else
{
throw
new
Error
(
'请设置流程权限标签值'
)
}
}
}
datax-ui/src/directive/flow/index.js
0 → 100644
View file @
46088183
import
flowEdit
from
'./flowEdit'
import
flowDel
from
'./flowDel'
const
install
=
function
(
Vue
)
{
Vue
.
directive
(
'flowEdit'
,
flowEdit
)
Vue
.
directive
(
'flowDel'
,
flowDel
)
}
if
(
window
.
Vue
)
{
window
[
'flowEdit'
]
=
flowEdit
window
[
'flowDel'
]
=
flowDel
Vue
.
use
(
install
)
// eslint-disable-line
}
export
default
install
datax-ui/src/main.js
View file @
46088183
...
...
@@ -16,6 +16,7 @@ import '@/icons'
import
'@/permission'
import
perms
from
'@/directive/permission'
import
flowPerms
from
'@/directive/flow'
import
{
getDicts
}
from
'@/api/system/dict'
import
{
getConfigKey
}
from
'@/api/system/config'
...
...
@@ -27,6 +28,7 @@ Vue.prototype.selectDictLabel = selectDictLabel
Vue
.
use
(
ElementUI
)
Vue
.
use
(
perms
)
Vue
.
use
(
flowPerms
)
Vue
.
config
.
productionTip
=
false
...
...
datax-ui/src/views/masterdata/datamodel/DataModelList.vue
View file @
46088183
...
...
@@ -103,7 +103,7 @@
type=
"text"
icon=
"el-icon-edit-outline"
@
click=
"handleEdit(scope.row)"
:disabled=
"scope.row.flowStatus === '3' || scope.row.flowStatus === '4' || scope.row.flowStatus === '5'
"
v-flow-edit=
"scope.row.flowStatus
"
>
修改
</el-button>
<el-button
size=
"mini"
...
...
@@ -116,7 +116,7 @@
type=
"text"
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
:disabled=
"scope.row.flowStatus === '2' || scope.row.flowStatus === '3' || scope.row.flowStatus === '4' || scope.row.flowStatus === '5'
"
v-flow-del=
"scope.row.flowStatus
"
>
删除
</el-button>
<el-button
slot=
"reference"
>
操作
</el-button>
</el-popover>
...
...
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