|
@@ -374,7 +374,7 @@ function editHtml(data, index) {
|
|
|
updateYxnn(1, data);
|
|
|
layer.msg('修改成功');
|
|
|
}else{
|
|
|
- layer.msg('编辑失败');
|
|
|
+ layer.msg('编辑失败,文字描述过长,不能超过200字');
|
|
|
}
|
|
|
|
|
|
}
|
|
@@ -398,6 +398,13 @@ function editHtml(data, index) {
|
|
|
, btn: ['通过', '不通过', '返回']
|
|
|
, yes: function (index, layero) {
|
|
|
data.pictureType = $("[name='pictureTypeSelect']").val();
|
|
|
+ if($("[name='pictureDescription']").val().length<=200){
|
|
|
+ data.pictureDescription = $("[name='pictureDescription']").val();
|
|
|
+ updateYxnn(1, data);
|
|
|
+ layer.msg('成功');
|
|
|
+ }else{
|
|
|
+ layer.msg('通过失败,文字描述过长,不能超过200字');
|
|
|
+ }
|
|
|
updateYxnn(1, data);
|
|
|
}
|
|
|
, btn2: function (index, layero) {
|