|
|
@ -11,15 +11,24 @@
|
|
|
|
<span class="card-header-text">{{
|
|
|
|
<span class="card-header-text">{{
|
|
|
|
["期刊发布", "期刊编辑"][type]
|
|
|
|
["期刊发布", "期刊编辑"][type]
|
|
|
|
}}</span>
|
|
|
|
}}</span>
|
|
|
|
|
|
|
|
<div style="float: right; margin-top: -5px;">
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
icon="el-icon-s-fold"
|
|
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
|
|
@click="handleBackToList"
|
|
|
|
|
|
|
|
>返回列表</el-button
|
|
|
|
|
|
|
|
>
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
style="float: right; margin-top: -5px;"
|
|
|
|
|
|
|
|
type="primary"
|
|
|
|
type="primary"
|
|
|
|
icon="el-icon-circle-check"
|
|
|
|
icon="el-icon-circle-check"
|
|
|
|
size="small"
|
|
|
|
size="small"
|
|
|
|
@click="save"
|
|
|
|
@click="save"
|
|
|
|
|
|
|
|
:loading="saveLoading"
|
|
|
|
|
|
|
|
:disabled="saveLoading"
|
|
|
|
>保存期刊</el-button
|
|
|
|
>保存期刊</el-button
|
|
|
|
>
|
|
|
|
>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<el-result v-if="resultShow" icon="success" title="保存成功">
|
|
|
|
<el-result v-if="resultShow" icon="success" title="保存成功">
|
|
|
|
<template slot="extra">
|
|
|
|
<template slot="extra">
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
@ -59,6 +68,7 @@ export default {
|
|
|
|
remoteData: { tags: [], publisher: [] },
|
|
|
|
remoteData: { tags: [], publisher: [] },
|
|
|
|
contentShow: false,
|
|
|
|
contentShow: false,
|
|
|
|
resultShow: false,
|
|
|
|
resultShow: false,
|
|
|
|
|
|
|
|
saveLoading: false,
|
|
|
|
data: {
|
|
|
|
data: {
|
|
|
|
id: null,
|
|
|
|
id: null,
|
|
|
|
title: null,
|
|
|
|
title: null,
|
|
|
@ -69,6 +79,7 @@ export default {
|
|
|
|
songs: [],
|
|
|
|
songs: [],
|
|
|
|
size: 0,
|
|
|
|
size: 0,
|
|
|
|
content: "",
|
|
|
|
content: "",
|
|
|
|
|
|
|
|
summary: "",
|
|
|
|
duration: 0
|
|
|
|
duration: 0
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -151,6 +162,7 @@ export default {
|
|
|
|
songs: [],
|
|
|
|
songs: [],
|
|
|
|
size: 0,
|
|
|
|
size: 0,
|
|
|
|
content: "",
|
|
|
|
content: "",
|
|
|
|
|
|
|
|
summary: "",
|
|
|
|
duration: 0
|
|
|
|
duration: 0
|
|
|
|
};
|
|
|
|
};
|
|
|
|
this.type = 0;
|
|
|
|
this.type = 0;
|
|
|
@ -162,11 +174,13 @@ export default {
|
|
|
|
* 保存
|
|
|
|
* 保存
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
save() {
|
|
|
|
save() {
|
|
|
|
|
|
|
|
this.saveLoading = true;
|
|
|
|
this.$refs.modifyDialog.$refs.modifyDialogForm.validate(valid => {
|
|
|
|
this.$refs.modifyDialog.$refs.modifyDialogForm.validate(valid => {
|
|
|
|
if (valid) {
|
|
|
|
if (valid) {
|
|
|
|
let orgData = this.$refs.modifyDialog.data;
|
|
|
|
let orgData = this.$refs.modifyDialog.data;
|
|
|
|
let param = {
|
|
|
|
let param = {
|
|
|
|
id: orgData["id"],
|
|
|
|
id: orgData["id"],
|
|
|
|
|
|
|
|
summary: orgData["summary"],
|
|
|
|
content: orgData["content"],
|
|
|
|
content: orgData["content"],
|
|
|
|
image: orgData["image"],
|
|
|
|
image: orgData["image"],
|
|
|
|
journalNo: orgData["journalNo"],
|
|
|
|
journalNo: orgData["journalNo"],
|
|
|
@ -197,19 +211,21 @@ export default {
|
|
|
|
image: null,
|
|
|
|
image: null,
|
|
|
|
songs: [],
|
|
|
|
songs: [],
|
|
|
|
size: 0,
|
|
|
|
size: 0,
|
|
|
|
|
|
|
|
summary: "",
|
|
|
|
content: "",
|
|
|
|
content: "",
|
|
|
|
duration: 0
|
|
|
|
duration: 0
|
|
|
|
};
|
|
|
|
};
|
|
|
|
this.$refs.modifyDialog.selectTag = [];
|
|
|
|
this.$refs.modifyDialog.selectTag = [];
|
|
|
|
|
|
|
|
this.saveLoading = false;
|
|
|
|
this.contentShow = false;
|
|
|
|
this.contentShow = false;
|
|
|
|
this.resultShow = true;
|
|
|
|
this.resultShow = true;
|
|
|
|
|
|
|
|
|
|
|
|
this.$message.success(res.message);
|
|
|
|
this.$message.success(res.message);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.saveLoading = false;
|
|
|
|
this.$message.error(res.message);
|
|
|
|
this.$message.error(res.message);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
console.log("新增");
|
|
|
|
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (this.type === 1) {
|
|
|
|
if (this.type === 1) {
|
|
|
@ -225,22 +241,24 @@ export default {
|
|
|
|
songs: [],
|
|
|
|
songs: [],
|
|
|
|
size: 0,
|
|
|
|
size: 0,
|
|
|
|
content: "",
|
|
|
|
content: "",
|
|
|
|
|
|
|
|
summary: "",
|
|
|
|
duration: 0
|
|
|
|
duration: 0
|
|
|
|
};
|
|
|
|
};
|
|
|
|
this.$refs.modifyDialog.selectTag = [];
|
|
|
|
this.$refs.modifyDialog.selectTag = [];
|
|
|
|
|
|
|
|
this.saveLoading = false;
|
|
|
|
this.contentShow = false;
|
|
|
|
this.contentShow = false;
|
|
|
|
this.resultShow = true;
|
|
|
|
this.resultShow = true;
|
|
|
|
this.$message.success(res.message);
|
|
|
|
this.$message.success(res.message);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.saveLoading = false;
|
|
|
|
this.$message.error(res.message);
|
|
|
|
this.$message.error(res.message);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
console.log("新增");
|
|
|
|
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.$message.error("请完善表单相关信息!");
|
|
|
|
this.$message.error("请完善表单相关信息!");
|
|
|
|
|
|
|
|
this.saveLoading = false;
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|