2d7d3d57 by xiaomiao

--no commit message

1 parent 5a8b29e4
......@@ -189,12 +189,17 @@ export default {
* @author: renchao
*/
onSubmit() {
this.shows = true;
this.tableData.forEach((item, index) => {
item["bsmBusiness"] = this.propsParam.bsmBusiness;
item["czjg"] = "1";
});
saveSpyjBySlsq(this.tableData).then((res) => {
var index = this.tableData.findIndex(
(item) => item.shyj === null||item.shyj === ""
);
if(index==-1){
this.shows = true;
saveSpyjBySlsq(this.tableData).then((res) => {
if (res.code === 200) {
this.$message.success("保存成功");
this.refresh += 1;
......@@ -203,6 +208,10 @@ export default {
this.$message.error(res.message);
}
});
}else{
this.$message.error("意见不能为空");
}
},
//打开常用意见列表弹窗
/**
......