|
@@ -475,14 +475,16 @@ export default {
|
|
|
file.isEdit = !file.isEdit;
|
|
file.isEdit = !file.isEdit;
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- //提交到资源库
|
|
|
|
|
|
|
+ // 提交到资源库
|
|
|
addResource(file) {
|
|
addResource(file) {
|
|
|
let data = {
|
|
let data = {
|
|
|
project_id: this.project_id,
|
|
project_id: this.project_id,
|
|
|
file_id: file.file_id,
|
|
file_id: file.file_id,
|
|
|
};
|
|
};
|
|
|
SubmitFileToResourceStore(data)
|
|
SubmitFileToResourceStore(data)
|
|
|
- .then((res) => {})
|
|
|
|
|
|
|
+ .then((res) => {
|
|
|
|
|
+ this.$message.success('操作成功!');
|
|
|
|
|
+ })
|
|
|
.catch(() => {
|
|
.catch(() => {
|
|
|
this.loading = false;
|
|
this.loading = false;
|
|
|
});
|
|
});
|