|
@@ -46,12 +46,9 @@ class _EntryClassifcationDialogState extends State<EntryClassifcationDialog> {
|
|
|
insetPadding: EdgeInsets.symmetric(vertical: 100),
|
|
|
children: [
|
|
|
Container(
|
|
|
+ color: Colors.white,
|
|
|
width: 580,
|
|
|
height: 250,
|
|
|
- padding: EdgeInsets.only(
|
|
|
- left: 25,
|
|
|
- right: 25,
|
|
|
- ),
|
|
|
child: _EntryClassifcation(
|
|
|
thesaurusInfoKey: widget.thesaurusInfoKey,
|
|
|
),
|
|
@@ -64,109 +61,112 @@ class _EntryClassifcationDialogState extends State<EntryClassifcationDialog> {
|
|
|
///词条分类词典对话框框内容页
|
|
|
class _EntryClassifcation extends GetView<VocabularyEntryController> {
|
|
|
_EntryClassifcation({this.thesaurusInfoKey});
|
|
|
- String? thesaurusInfoKey;
|
|
|
+ final String? thesaurusInfoKey;
|
|
|
|
|
|
@override
|
|
|
Widget build(BuildContext context) {
|
|
|
- return Column(
|
|
|
- crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
- mainAxisAlignment: MainAxisAlignment.center,
|
|
|
- children: [
|
|
|
- _EntryClassifcationItem(
|
|
|
- isRequire: true,
|
|
|
- inputWidget: FRow(
|
|
|
- children: [
|
|
|
- FExpanded(
|
|
|
- child: FContainer(
|
|
|
- height: 45,
|
|
|
- // color: Colors.red,
|
|
|
- child: FRow(
|
|
|
- crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
- children: [
|
|
|
- FSizedBox(
|
|
|
- width: 25,
|
|
|
- ),
|
|
|
- FBorderInput(
|
|
|
- hintSize: 16,
|
|
|
- contentSize: 16,
|
|
|
- maxLength: 40,
|
|
|
- borderColor: Color(0xffdcdfe6),
|
|
|
- height: 40,
|
|
|
- hintText: i18nBook.remedical.inputCatName.t,
|
|
|
- controller: TextEditingController(
|
|
|
- text: controller
|
|
|
- .state.createClassification['thesaurusItemName'],
|
|
|
+ return Container(
|
|
|
+ child: Column(
|
|
|
+ crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
+ mainAxisAlignment: MainAxisAlignment.center,
|
|
|
+ children: [
|
|
|
+ _EntryClassifcationItem(
|
|
|
+ isRequire: true,
|
|
|
+ inputWidget: FRow(
|
|
|
+ children: [
|
|
|
+ FExpanded(
|
|
|
+ child: FContainer(
|
|
|
+ height: 45,
|
|
|
+ // color: Colors.red,
|
|
|
+ child: FRow(
|
|
|
+ crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
+ children: [
|
|
|
+ FSizedBox(
|
|
|
+ width: 25,
|
|
|
),
|
|
|
- onChanged: (value) {
|
|
|
- controller.state
|
|
|
- .createClassification['thesaurusItemName'] =
|
|
|
- value.toString().trim();
|
|
|
- },
|
|
|
- ),
|
|
|
- FSizedBox(
|
|
|
- width: 10,
|
|
|
- ),
|
|
|
- ],
|
|
|
- ),
|
|
|
- ),
|
|
|
- ),
|
|
|
- ],
|
|
|
- ),
|
|
|
- title: i18nBook.remedical.categoryName.t,
|
|
|
- ),
|
|
|
- FSizedBox(
|
|
|
- height: 20,
|
|
|
- ),
|
|
|
- _EntryClassifcationItem(
|
|
|
- inputWidget: FRow(
|
|
|
- children: [
|
|
|
- FExpanded(
|
|
|
- child: FContainer(
|
|
|
- height: 45,
|
|
|
- // color: Colors.red,
|
|
|
- child: FRow(
|
|
|
- crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
- children: [
|
|
|
- FSizedBox(
|
|
|
- width: 25,
|
|
|
- ),
|
|
|
- FExpanded(
|
|
|
- child: FSelect<OrgModel, String>(
|
|
|
- source: thesaurusInfoKey != null
|
|
|
- ? controller.state.editClassification
|
|
|
- : controller.state.classification,
|
|
|
- hintText: i18nBook.remedical.selectUpperCat.t,
|
|
|
- value: controller
|
|
|
- .state.createClassification['parentItemCode']
|
|
|
- .toString()
|
|
|
- .isEmpty
|
|
|
- ? null
|
|
|
- : controller
|
|
|
- .state.createClassification['parentItemCode'],
|
|
|
- textColor: Colors.black,
|
|
|
- clearable: true,
|
|
|
- // isExpanded: true,
|
|
|
- height: 36,
|
|
|
- optionLabelExtractor: (data) => data.name,
|
|
|
- optionValueExtractor: (data) => data.code,
|
|
|
- onSelectChanged: (value, index) {
|
|
|
+ FBorderInput(
|
|
|
+ hintSize: 16,
|
|
|
+ contentSize: 16,
|
|
|
+ maxLength: 40,
|
|
|
+ borderColor: Color(0xffdcdfe6),
|
|
|
+ height: 40,
|
|
|
+ hintText: i18nBook.remedical.inputCatName.t,
|
|
|
+ controller: TextEditingController(
|
|
|
+ text: controller.state
|
|
|
+ .createClassification['thesaurusItemName'],
|
|
|
+ ),
|
|
|
+ onChanged: (value) {
|
|
|
controller.state
|
|
|
- .createClassification['parentItemCode'] = value;
|
|
|
+ .createClassification['thesaurusItemName'] =
|
|
|
+ value.toString().trim();
|
|
|
},
|
|
|
),
|
|
|
- ),
|
|
|
- FSizedBox(
|
|
|
- width: 10,
|
|
|
- ),
|
|
|
- ],
|
|
|
+ FSizedBox(
|
|
|
+ width: 10,
|
|
|
+ ),
|
|
|
+ ],
|
|
|
+ ),
|
|
|
),
|
|
|
),
|
|
|
- ),
|
|
|
- ],
|
|
|
+ ],
|
|
|
+ ),
|
|
|
+ title: i18nBook.remedical.categoryName.t,
|
|
|
),
|
|
|
- title: i18nBook.remedical.parentClass.t,
|
|
|
- )
|
|
|
- ],
|
|
|
+ FSizedBox(
|
|
|
+ height: 20,
|
|
|
+ ),
|
|
|
+ _EntryClassifcationItem(
|
|
|
+ inputWidget: FRow(
|
|
|
+ children: [
|
|
|
+ FExpanded(
|
|
|
+ child: FContainer(
|
|
|
+ height: 45,
|
|
|
+ // color: Colors.red,
|
|
|
+ child: FRow(
|
|
|
+ crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
+ children: [
|
|
|
+ FSizedBox(
|
|
|
+ width: 25,
|
|
|
+ ),
|
|
|
+ FExpanded(
|
|
|
+ child: FSelect<OrgModel, String>(
|
|
|
+ source: thesaurusInfoKey != null
|
|
|
+ ? controller.state.editClassification
|
|
|
+ : controller.state.classification,
|
|
|
+ hintText: i18nBook.remedical.selectUpperCat.t,
|
|
|
+ value: controller.state
|
|
|
+ .createClassification['parentItemCode']
|
|
|
+ .toString()
|
|
|
+ .isEmpty
|
|
|
+ ? null
|
|
|
+ : controller.state
|
|
|
+ .createClassification['parentItemCode'],
|
|
|
+ textColor: Colors.black,
|
|
|
+ clearable: true,
|
|
|
+ // isExpanded: true,
|
|
|
+ height: 36,
|
|
|
+ optionLabelExtractor: (data) => data.name,
|
|
|
+ optionValueExtractor: (data) => data.code,
|
|
|
+ onSelectChanged: (value, index) {
|
|
|
+ controller.state
|
|
|
+ .createClassification['parentItemCode'] =
|
|
|
+ value;
|
|
|
+ },
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ FSizedBox(
|
|
|
+ width: 10,
|
|
|
+ ),
|
|
|
+ ],
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ ],
|
|
|
+ ),
|
|
|
+ title: i18nBook.remedical.parentClass.t,
|
|
|
+ )
|
|
|
+ ],
|
|
|
+ ),
|
|
|
);
|
|
|
}
|
|
|
}
|