|
@@ -211,10 +211,8 @@ export default {
|
|
|
this.isEdit = isEdit;
|
|
|
this.isCopy = isCopy;
|
|
|
this.title = isEdit ? '修改' : isCopy ? '复制' : '添加';
|
|
|
- isEdit && this.changeWord(data);
|
|
|
- api
|
|
|
- .getTremList({ id: data.id })
|
|
|
- .then(res => {
|
|
|
+ (isEdit||isCopy) && this.changeWord(data);
|
|
|
+ api.getTremList({ id: data.id }).then(res => {
|
|
|
if (res.data.code == '0') {
|
|
|
const data = res.data.data;
|
|
|
if (this.form.typeId === 82 || this.form.typeId === 83) {
|
|
@@ -614,10 +612,9 @@ export default {
|
|
|
},
|
|
|
|
|
|
//保存编辑 接口
|
|
|
- sendSaveOrEdit(param) {
|
|
|
- api
|
|
|
- .saveTermPrompts(param)
|
|
|
- .then(res => {
|
|
|
+ sendSaveOrEdit(param) {console.log(this.$route.params,param);
|
|
|
+ this.isCopy&&(param.id=undefined);
|
|
|
+ api.saveTermPrompts(param).then(res => {
|
|
|
if (res.data.code === '0') {
|
|
|
this.isSuccessUpload = 0; // 修改文件上传状态为0
|
|
|
this.warning(res.data.msg || '保存成功', 'success');
|