Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
flowable-engine-fontend
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
王万里
flowable-engine-fontend
Commits
95fe3217
Commit
95fe3217
authored
May 19, 2021
by
王万里
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add: 数据必填
parent
01a6cf66
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
6 deletions
+17
-6
properties-default-controllers.js
editor-app/configuration/properties-default-controllers.js
+4
-1
form-field-read-config.html
...-app/configuration/properties/form-field-read-config.html
+9
-3
stencil-controller copy.js
editor-app/stencil-controller copy.js
+2
-1
stencil-controller.js
editor-app/stencil-controller.js
+2
-1
No files found.
editor-app/configuration/properties-default-controllers.js
View file @
95fe3217
...
@@ -146,6 +146,7 @@ angular.module('flowableModeler').controller('FieldReadConfigPopupCtrl', ['$root
...
@@ -146,6 +146,7 @@ angular.module('flowableModeler').controller('FieldReadConfigPopupCtrl', ['$root
pItem
.
defaultUnit
=
item
.
Unit
pItem
.
defaultUnit
=
item
.
Unit
pItem
.
defaultValue
=
item
.
Type
pItem
.
defaultValue
=
item
.
Type
pItem
.
defaultChecked
=
item
.
IsShow
===
"1"
?
true
:
false
pItem
.
defaultChecked
=
item
.
IsShow
===
"1"
?
true
:
false
pItem
.
defaultIsRequired
=
item
.
IsRequired
}
}
})
})
})
})
...
@@ -164,6 +165,7 @@ angular.module('flowableModeler').controller('FieldReadConfigPopupCtrl', ['$root
...
@@ -164,6 +165,7 @@ angular.module('flowableModeler').controller('FieldReadConfigPopupCtrl', ['$root
el
.
defaultValue
=
""
el
.
defaultValue
=
""
el
.
defaultChecked
=
true
el
.
defaultChecked
=
true
el
.
defaultUnit
=
""
el
.
defaultUnit
=
""
el
.
defaultIsRequired
=
false
});
});
}
}
})
})
...
@@ -232,7 +234,8 @@ angular.module('flowableModeler').controller('FieldReadConfigPopupCtrl', ['$root
...
@@ -232,7 +234,8 @@ angular.module('flowableModeler').controller('FieldReadConfigPopupCtrl', ['$root
FormKey
:
shareformKey
,
FormKey
:
shareformKey
,
IsShow
:
params
.
defaultChecked
?
1
:
0
,
IsShow
:
params
.
defaultChecked
?
1
:
0
,
Type
:
params
.
defaultValue
,
Type
:
params
.
defaultValue
,
Unit
:
params
.
defaultUnit
Unit
:
params
.
defaultUnit
,
IsRequired
:
params
.
defaultIsRequired
}
}
$http
({
method
:
'POST'
,
url
:
FLOWABLE
.
APP_URL
.
SaveFieldConfig
(),
data
:
data
})
$http
({
method
:
'POST'
,
url
:
FLOWABLE
.
APP_URL
.
SaveFieldConfig
(),
data
:
data
})
.
success
(
function
(
res
)
{
.
success
(
function
(
res
)
{
...
...
editor-app/configuration/properties/form-field-read-config.html
View file @
95fe3217
...
@@ -14,22 +14,25 @@
...
@@ -14,22 +14,25 @@
<th>
字段
</th>
<th>
字段
</th>
<th>
默认值
</th>
<th>
默认值
</th>
<th>
单位
</th>
<th>
单位
</th>
<th>
必填
</th>
</tr>
</tr>
<tr
ng-repeat=
"child in childFieldObj.properties"
>
<tr
ng-repeat=
"child in childFieldObj.properties"
>
<td
style=
"width: 20px;"
>
<td
style=
"width: 20px;"
>
<input
type=
"checkbox"
ng-model=
"child.defaultChecked"
ng-change=
"changeValue(child)"
/>
<input
type=
"checkbox"
ng-model=
"child.defaultChecked"
ng-change=
"changeValue(child)"
/>
</td>
</td>
<td
class=
"active"
>
{{child.title}}
</td>
<td
class=
"active"
style=
"width: 80px;"
title=
"{{child.title}}"
>
{{child.title}}
</td>
<td
class=
"active"
>
<td
class=
"active"
style=
"width: 85px;"
>
<select
ng-model=
"child.defaultValue"
ng-change=
"changeValue(child)"
>
<select
ng-model=
"child.defaultValue"
ng-change=
"changeValue(child)"
>
<option
value=
"无"
>
无
</option>
<option
value=
"无"
>
无
</option>
<option
value=
"本人"
>
本人
</option>
<option
value=
"本人"
>
本人
</option>
<option
value=
"本部门"
>
本部门
</option>
<option
value=
"本部门"
>
本部门
</option>
<option
value=
"部门主管"
>
部门主管
</option>
<option
value=
"部门主管"
>
部门主管
</option>
<option
value=
"财务"
>
财务
</option>
<option
value=
"财务"
>
财务
</option>
<option
value=
"当前时间"
>
当前时间
</option>
<option
value=
"所属站点"
>
所属站点
</option>
</select>
</select>
</td>
</td>
<td
class=
"active"
>
<td
class=
"active"
style=
"width: 85px;"
>
<select
ng-model=
"child.defaultUnit"
ng-change=
"changeValue(child)"
>
<select
ng-model=
"child.defaultUnit"
ng-change=
"changeValue(child)"
>
<option
value=
"无"
>
无
</option>
<option
value=
"无"
>
无
</option>
<option
value=
"个"
>
个
</option>
<option
value=
"个"
>
个
</option>
...
@@ -38,6 +41,9 @@
...
@@ -38,6 +41,9 @@
<option
value=
"万元"
>
万元
</option>
<option
value=
"万元"
>
万元
</option>
</select>
</select>
</td>
</td>
<td
style=
"width: 45px;text-align: center;"
>
<input
type=
"checkbox"
ng-model=
"child.defaultIsRequired"
ng-change=
"changeValue(child)"
/>
</td>
</tr>
</tr>
</table>
</table>
</div>
</div>
editor-app/stencil-controller copy.js
View file @
95fe3217
...
@@ -405,7 +405,8 @@ angular.module('flowableModeler')
...
@@ -405,7 +405,8 @@ angular.module('flowableModeler')
FormKey
:
formKey
,
FormKey
:
formKey
,
IsShow
:
1
,
IsShow
:
1
,
Type
:
""
,
Type
:
""
,
Unit
:
""
Unit
:
""
,
IsRequired
:
false
})
})
}
}
}
}
...
...
editor-app/stencil-controller.js
View file @
95fe3217
...
@@ -406,7 +406,8 @@ angular.module('flowableModeler')
...
@@ -406,7 +406,8 @@ angular.module('flowableModeler')
FormKey
:
formKey
,
FormKey
:
formKey
,
IsShow
:
1
,
IsShow
:
1
,
Type
:
""
,
Type
:
""
,
Unit
:
""
Unit
:
""
,
IsRequired
:
false
})
})
}
}
}
}
...
...
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