Commit 95fe3217 authored by 王万里's avatar 王万里

add: 数据必填

parent 01a6cf66
...@@ -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) {
......
...@@ -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>
...@@ -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
}) })
} }
} }
......
...@@ -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
}) })
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment