|
@@ -291,7 +291,7 @@ export default {
|
|
|
// 设置上传的请求头部
|
|
|
headers: {Authorization: "Bearer " + getToken()},
|
|
|
// 上传的地址
|
|
|
- url: process.env.VUE_APP_BASE_API + "/bccnew/flPlanTmpl/uploadFile",
|
|
|
+ url: process.env.VUE_APP_BASE_API + "/training/flPlan/uploadFile",
|
|
|
commonfileList: null,
|
|
|
queryParams: {
|
|
|
pId: null,
|
|
@@ -396,7 +396,7 @@ export default {
|
|
|
this.doc.commonfileList = [];
|
|
|
this.doc.open = true;
|
|
|
this.doc.id = row.id;
|
|
|
- getFirstPlanTmpl(row.id).then(res => {
|
|
|
+ getFlPlan(row.id).then(res => {
|
|
|
if (res.data.fileUrl != null)
|
|
|
this.doc.commonfileList.push({fileUrl: res.data.fileUrl, fileName: res.data.fileName, id: res.data.id})
|
|
|
})
|
|
@@ -432,7 +432,7 @@ export default {
|
|
|
cancelButtonText: this.$t('取消'),
|
|
|
type: "warning"
|
|
|
}).then(function () {
|
|
|
- return updateFirstPlanTmpl({id: row.id, fileUrl: '', fileName: ''});
|
|
|
+ return updateFlPlan({id: row.id, fileUrl: '', fileName: ''});
|
|
|
}).then(() => {
|
|
|
this.msgSuccess(this.$t('删除成功'));
|
|
|
this.doc.commonfileList = [];
|
|
@@ -449,7 +449,7 @@ export default {
|
|
|
this.$alert(response.msg, this.$t('导入结果'), {dangerouslyUseHTMLString: true});
|
|
|
this.getList();
|
|
|
this.doc.commonfileList = [];
|
|
|
- getFirstPlanTmpl(response.data).then(res => {
|
|
|
+ getFlPlan(response.data).then(res => {
|
|
|
if (res.data.fileUrl != null) {
|
|
|
this.doc.commonfileList.push({fileUrl: res.data.fileUrl, fileName: res.data.fileName, id: res.data.id})
|
|
|
}
|