Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Chatopera OpenSource
/
ferry_web
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
544c1088
authored
Jul 17, 2020
by
Mr. Lan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加全局只读。
parent
6bcfa858
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
45 additions
and
39 deletions
src/components/VueFormMaking/App.vue
src/components/VueFormMaking/components/CusDialog.vue
src/components/VueFormMaking/components/FormConfig.vue
src/components/VueFormMaking/components/GenerateForm.vue
src/components/VueFormMaking/components/GenerateFormItem.vue
src/components/VueFormMaking/components/WidgetConfig.vue
src/components/VueFormMaking/components/WidgetForm.vue
src/components/VueFormMaking/components/WidgetFormItem.vue
src/components/VueFormMaking/demo/Home.vue
src/components/VueFormMaking/indexBundle.js
src/components/VueFormMaking/router/LanguageView.vue
src/components/VueFormMaking/router/index.js
src/views/process/list/handle.vue
src/components/VueFormMaking/App.vue
View file @
544c1088
...
...
@@ -33,9 +33,8 @@
</
template
>
<
script
>
import
Vue
from
'vue'
export
default
{
export
default
{
name
:
'App'
,
methods
:
{
handleHome
()
{
...
...
@@ -46,7 +45,7 @@
this
.
$router
.
replace
({
name
:
this
.
$route
.
name
,
params
:
{
lang
:
command
}})
}
}
}
}
</
script
>
<
style
lang=
"scss"
>
...
...
@@ -96,10 +95,6 @@
.action-item
{
display
:
inline-block
;
margin-left
:
15px
;
.el-dropdown{
//
font-size
:
16px
;
//
font-weight
:
500
;
}
.el-dropdown-link{
cursor
:
pointer
;
color
:
#fff
;
...
...
src/components/VueFormMaking/components/CusDialog.vue
View file @
544c1088
...
...
@@ -30,7 +30,7 @@
</
template
>
<
script
>
export
default
{
export
default
{
props
:
{
visible
:
Boolean
,
loadingText
:
{
...
...
@@ -102,7 +102,7 @@
this
.
loading
=
false
}
}
}
}
</
script
>
<
style
lang=
"scss"
>
...
...
src/components/VueFormMaking/components/FormConfig.vue
View file @
544c1088
...
...
@@ -25,7 +25,7 @@
</
template
>
<
script
>
export
default
{
export
default
{
/* eslint-disable */
props
:
[
'data'
]
}
...
...
src/components/VueFormMaking/components/GenerateForm.vue
View file @
544c1088
...
...
@@ -32,8 +32,8 @@
:remote=
"remote"
:rules=
"rules"
:widget=
"citem"
@
input-change=
"onInputChange"
:data=
"data"
@
input-change=
"onInputChange"
/>
</
template
>
</el-col>
...
...
@@ -54,6 +54,7 @@
:widget=
"item"
:remote=
"remote"
:data=
"data"
:disabled=
"disabled"
@
input-change=
"onInputChange"
/>
</
template
>
...
...
@@ -64,15 +65,15 @@
</template>
<
script
>
import
GenetateFormItem
from
'./GenerateFormItem'
import
GenetateFormItem
from
'./GenerateFormItem'
export
default
{
export
default
{
name
:
'FmGenerateForm'
,
components
:
{
GenetateFormItem
},
/* eslint-disable */
props
:
[
'data'
,
'remote'
,
'value'
,
'insite'
],
props
:
[
'data'
,
'remote'
,
'value'
,
'insite'
,
'disabled'
],
data
()
{
return
{
models
:
{},
...
...
src/components/VueFormMaking/components/GenerateFormItem.vue
View file @
544c1088
...
...
@@ -238,14 +238,14 @@
</template>
<
script
>
import
FmUpload
from
'./Upload'
import
FmUpload
from
'./Upload'
export
default
{
export
default
{
components
:
{
FmUpload
},
/* eslint-disable */
props
:
[
'widget'
,
'models'
,
'rules'
,
'remote'
,
'data'
],
props
:
[
'widget'
,
'models'
,
'rules'
,
'remote'
,
'data'
,
'disabled'
],
data
()
{
return
{
dataModel
:
this
.
models
[
this
.
widget
.
model
]
...
...
@@ -288,6 +288,12 @@
this
.
widget
.
options
.
token
=
data
})
}
if
(
this
.
disabled
===
undefined
||
this
.
disabled
===
null
)
{
this
.
widget
.
options
.
disabled
=
false
}
else
{
this
.
widget
.
options
.
disabled
=
this
.
disabled
}
},
methods
:
{
}
...
...
src/components/VueFormMaking/components/WidgetConfig.vue
View file @
544c1088
...
...
@@ -389,9 +389,9 @@
</template>
<
script
>
import
Draggable
from
'vuedraggable'
import
Draggable
from
'vuedraggable'
export
default
{
export
default
{
components
:
{
Draggable
},
...
...
src/components/VueFormMaking/components/WidgetForm.vue
View file @
544c1088
...
...
@@ -35,8 +35,8 @@
@add="handleWidgetColAdd($event, element, colIndex)"
>
<transition-group
name=
"fade"
tag=
"div"
class=
"widget-col-list"
>
<template
v-for=
"(el, i) in col.list"
>
<widget-form-item
v-for=
"(el, i) in col.list"
v-if=
"el.key"
:key=
"el.key"
:element=
"el"
...
...
@@ -45,6 +45,8 @@
:data=
"col"
:data-config=
"data"
/>
</
template
>
</transition-group>
</draggable>
...
...
@@ -78,10 +80,10 @@
</template>
<
script
>
import
Draggable
from
'vuedraggable'
import
WidgetFormItem
from
'./WidgetFormItem'
import
Draggable
from
'vuedraggable'
import
WidgetFormItem
from
'./WidgetFormItem'
export
default
{
export
default
{
components
:
{
Draggable
,
WidgetFormItem
...
...
src/components/VueFormMaking/components/WidgetFormItem.vue
View file @
544c1088
...
...
@@ -230,8 +230,8 @@
</template>
<
script
>
import
FmUpload
from
'./Upload'
export
default
{
import
FmUpload
from
'./Upload'
export
default
{
components
:
{
FmUpload
},
...
...
src/components/VueFormMaking/demo/Home.vue
View file @
544c1088
...
...
@@ -5,8 +5,9 @@
</
template
>
<
script
>
export
default
{
export
default
{
mounted
()
{
}
}
}
</
script
>
src/components/VueFormMaking/indexBundle.js
View file @
544c1088
import
Vue
from
'vue'
import
GenerateForm
from
'./components/GenerateForm.vue'
import
'./styles/cover.scss'
...
...
src/components/VueFormMaking/router/LanguageView.vue
View file @
544c1088
...
...
@@ -3,9 +3,9 @@
</
template
>
<
script
>
import
Vue
from
'vue'
import
Vue
from
'vue'
export
default
{
export
default
{
watch
:
{
'$route.params.lang'
:
function
(
val
)
{
this
.
loadLanguage
()
...
...
@@ -16,16 +16,16 @@
},
methods
:
{
loadLanguage
()
{
if
(
this
.
$route
.
params
.
lang
==
'zh-CN'
)
{
if
(
this
.
$route
.
params
.
lang
=
==
'zh-CN'
)
{
Vue
.
config
.
lang
=
'zh-CN'
localStorage
.
setItem
(
'language'
,
'zh-CN'
)
}
else
if
(
this
.
$route
.
params
.
lang
==
'en-US'
)
{
}
else
if
(
this
.
$route
.
params
.
lang
=
==
'en-US'
)
{
Vue
.
config
.
lang
=
'en-US'
localStorage
.
setItem
(
'language'
,
'en-US'
)
}
else
{
this
.
$router
.
replace
({
name
:
this
.
$route
.
name
,
params
:
{
lang
:
navigator
.
language
==
'zh-CN'
?
'zh-CN'
:
'en-US'
}})
}
this
.
$router
.
replace
({
name
:
this
.
$route
.
name
,
params
:
{
lang
:
navigator
.
language
===
'zh-CN'
?
'zh-CN'
:
'en-US'
}})
}
}
}
}
</
script
>
src/components/VueFormMaking/router/index.js
View file @
544c1088
...
...
@@ -6,7 +6,7 @@ import LanguageView from './LanguageView.vue'
Vue
.
use
(
Router
)
const
language
=
localStorage
.
getItem
(
'language'
)
||
(
navigator
.
language
==
'zh-CN'
?
'zh-CN'
:
'en-US'
)
const
language
=
localStorage
.
getItem
(
'language'
)
||
(
navigator
.
language
==
=
'zh-CN'
?
'zh-CN'
:
'en-US'
)
export
default
new
Router
({
routes
:
[
...
...
src/views/process/list/handle.vue
View file @
544c1088
...
...
@@ -50,10 +50,11 @@
:remote=
"remoteFunc"
:value=
"tplItem.form_data"
:data=
"tplItem.form_structure"
:disabled=
"true"
/>
</div>
<div
v-if=
"processStructureValue.userAuthority"
>
<
!-- <hr style="background-color: #d9d9d9; border:0; height:1px;"> --
>
<
hr
style=
"background-color: #d9d9d9; border:0; height:1px;"
>
<div
class=
"text item"
style=
"text-align: center;margin-top:18px"
>
<
template
v-for=
"(item, index) in processStructureValue.edges"
>
<el-button
...
...
@@ -169,10 +170,11 @@ export default {
// 获取当前展示节点列表
for
(
var
i
=
0
;
i
<
this
.
processStructureValue
.
nodes
.
length
;
i
++
)
{
if
(
this
.
processStructureValue
.
nodes
[
i
].
id
===
this
.
processStructureValue
.
workOrder
.
current_state
)
{
// 当前节点
this
.
nodeStepList
.
push
(
this
.
processStructureValue
.
nodes
[
i
])
this
.
activeIndex
=
this
.
nodeStepList
.
length
-
1
if
(
i
===
this
.
processStructureValue
.
nodes
.
length
-
2
)
{
this
.
activeIndex
=
i
+
1
if
(
i
+
1
===
this
.
processStructureValue
.
nodes
.
length
)
{
this
.
activeIndex
=
this
.
nodeStepList
.
length
}
}
else
if
(
!
this
.
processStructureValue
.
nodes
[
i
].
isHideNode
)
{
// 非隐藏节点
...
...
@@ -191,7 +193,7 @@ export default {
flow_properties
:
item
.
flowProperties
===
undefined
?
2
:
parseInt
(
item
.
flowProperties
),
work_order_id
:
parseInt
(
this
.
$route
.
query
.
workOrderId
)
}).
then
(
response
=>
{
if
(
response
.
code
===
1000
00
)
{
if
(
response
.
code
===
2
00
)
{
// this.$router.push({ name: 'upcoming' })
window
.
location
.
reload
()
}
...
...
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