|
@@ -206,8 +206,8 @@ export default {
|
|
|
console.log(param);
|
|
|
this.showSaveDialog(param);
|
|
|
},
|
|
|
- addLisMapping(param, msg, type) {
|
|
|
- api.addLisMapping(param).then((res) => {
|
|
|
+ saveLisMapping(param, msg, type) {
|
|
|
+ api.saveLisMapping(param).then((res) => {
|
|
|
if (res.data.code === '0') {
|
|
|
this.warning(res.data.msg || msg, type);
|
|
|
// this.$router.push({name: 'ChemicalAndCommonMapping'});
|
|
@@ -220,14 +220,14 @@ export default {
|
|
|
showSaveDialog(param) {
|
|
|
// 修改(不需要)
|
|
|
// if(this.isEdit) {
|
|
|
- // this.addLisMapping(param)
|
|
|
+ // this.saveLisMapping(param)
|
|
|
// } else {
|
|
|
api.hasLisMapping(param).then((res) => {
|
|
|
if (!res.data.data) {
|
|
|
- this.addLisMapping(param, '关联建立成功', 'success' )
|
|
|
+ this.saveLisMapping(param, '关联建立成功', 'success' )
|
|
|
} else {
|
|
|
this.showConfirmDialog('该关联已存在是否替换旧的关系信息', () => {
|
|
|
- this.addLisMapping(param, '关联建立成功', 'success' )
|
|
|
+ this.saveLisMapping(param, '关联建立成功', 'success' )
|
|
|
});
|
|
|
}
|
|
|
}).catch((err) => {
|