|
...
|
...
|
@@ -109,50 +109,55 @@ class _FeastDepositTypePageState extends State<FeastDepositTypePage> { |
|
|
|
TextStyle(fontSize: font(16), color: MyColours.color_E6000000),
|
|
|
|
),
|
|
|
|
Spacer(),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
DialogUtil.textfeildAlertDialog(context,
|
|
|
|
title: '输入类型名称',
|
|
|
|
hintText: '请输入',
|
|
|
|
text: sunModel.dname,
|
|
|
|
lenghtLimit: true,
|
|
|
|
toast: '请输入类型名称', rCallback: (name) {
|
|
|
|
// _addCookbookClass(name, showLoading: true);
|
|
|
|
_setDeposit(name, did: sunModel.id);
|
|
|
|
});
|
|
|
|
},
|
|
|
|
child: Text(
|
|
|
|
'修改',
|
|
|
|
style: TextStyle(
|
|
|
|
decoration: TextDecoration.underline,
|
|
|
|
fontSize: font(16),
|
|
|
|
color: MyColours.color_438E93),
|
|
|
|
)),
|
|
|
|
sunModel.isDefault == '1'
|
|
|
|
? SizedBox()
|
|
|
|
: InkWell(
|
|
|
|
onTap: () {
|
|
|
|
DialogUtil.textfeildAlertDialog(context,
|
|
|
|
title: '输入类型名称',
|
|
|
|
hintText: '请输入',
|
|
|
|
text: sunModel.dname,
|
|
|
|
lenghtLimit: true,
|
|
|
|
toast: '请输入类型名称', rCallback: (name) {
|
|
|
|
// _addCookbookClass(name, showLoading: true);
|
|
|
|
_setDeposit(name, did: sunModel.id);
|
|
|
|
});
|
|
|
|
},
|
|
|
|
child: Text(
|
|
|
|
'修改',
|
|
|
|
style: TextStyle(
|
|
|
|
decoration: TextDecoration.underline,
|
|
|
|
fontSize: font(16),
|
|
|
|
color: MyColours.color_438E93),
|
|
|
|
)),
|
|
|
|
HEmptyView(32),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
//已经传到服务器,弹提醒窗口,是否删除
|
|
|
|
//修改之前有内容,则弹框
|
|
|
|
DialogUtil.cupertinoAlertDialogFeast(context,
|
|
|
|
rTitle: '删除',
|
|
|
|
title: "是否确认删除",
|
|
|
|
content: sunModel.dname, lCallback: () {
|
|
|
|
print("取消");
|
|
|
|
}, rCallback: () async {
|
|
|
|
print("确定");
|
|
|
|
Map<String, String> pramas = {'id': sunModel.id};
|
|
|
|
bool success = await feastModel.delDeposit(context, pramas);
|
|
|
|
if (success) {
|
|
|
|
Utils.showToast('删除成功');
|
|
|
|
_getDeposit(isShowLoading: true);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
},
|
|
|
|
child: Image.asset(
|
|
|
|
Utils.getImgPath('f_delete_red'),
|
|
|
|
width: w(32),
|
|
|
|
height: w(32),
|
|
|
|
)),
|
|
|
|
sunModel.isDefault == '1'
|
|
|
|
? SizedBox()
|
|
|
|
: InkWell(
|
|
|
|
onTap: () {
|
|
|
|
//已经传到服务器,弹提醒窗口,是否删除
|
|
|
|
//修改之前有内容,则弹框
|
|
|
|
DialogUtil.cupertinoAlertDialogFeast(context,
|
|
|
|
rTitle: '删除',
|
|
|
|
title: "是否确认删除",
|
|
|
|
content: sunModel.dname, lCallback: () {
|
|
|
|
print("取消");
|
|
|
|
}, rCallback: () async {
|
|
|
|
print("确定");
|
|
|
|
Map<String, String> pramas = {'id': sunModel.id};
|
|
|
|
bool success =
|
|
|
|
await feastModel.delDeposit(context, pramas);
|
|
|
|
if (success) {
|
|
|
|
Utils.showToast('删除成功');
|
|
|
|
_getDeposit(isShowLoading: true);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
},
|
|
|
|
child: Image.asset(
|
|
|
|
Utils.getImgPath('f_delete_red'),
|
|
|
|
width: w(32),
|
|
|
|
height: w(32),
|
|
|
|
)),
|
|
|
|
HEmptyView(32),
|
|
|
|
],
|
|
|
|
),
|
...
|
...
|
|