|
@@ -156,6 +156,8 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+
|
|
|
+ // 确定保存
|
|
|
onSubmit() {
|
|
|
this.$refs.form.validate(valid => {
|
|
|
if (valid) {
|
|
@@ -168,6 +170,7 @@ export default {
|
|
|
item.errorCurrent = false;
|
|
|
});
|
|
|
api.saveHospitalRelation(params).then(res => {
|
|
|
+ console.log('添加的数据??', res);
|
|
|
if (res.data.code === '0') {
|
|
|
this.$message({
|
|
|
showClose: true,
|
|
@@ -229,6 +232,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
|
|
|
+ // 添加
|
|
|
add() {
|
|
|
this.form.hospitalRelationVOList.push({
|
|
|
name: '',
|
|
@@ -237,6 +241,8 @@ export default {
|
|
|
errorCurrent: false
|
|
|
});
|
|
|
},
|
|
|
+
|
|
|
+ // 新增
|
|
|
addIndex(i) {
|
|
|
this.form.hospitalRelationVOList.splice(i + 1, 0, {
|
|
|
name: '',
|
|
@@ -244,10 +250,13 @@ export default {
|
|
|
errorOther: false,
|
|
|
errorCurrent: false
|
|
|
});
|
|
|
+ // 延迟执行
|
|
|
this.$nextTick(() => {
|
|
|
this.$refs.tableList.bodyWrapper.scrollTop += 55;
|
|
|
});
|
|
|
},
|
|
|
+
|
|
|
+ // 删除
|
|
|
delIndex(i) {
|
|
|
this.form.hospitalRelationVOList.splice(i, 1);
|
|
|
}
|