🐞 fix(期刊): 修复期刊tag回显

dev
zhangjiabao 12 months ago
parent d88bef6ca9
commit 25b7aee253

@ -457,7 +457,7 @@ export default {
} }
}, },
getTagNameById(tagIdList) { getTagNameById(tagIdList) {
if (!tagIdList || typeof exp == "undefined") { if (!tagIdList || typeof tagIdList == "undefined") {
return ""; return "";
} }
let tagList = []; let tagList = [];

@ -411,9 +411,7 @@ export default {
}; };
}, },
filters: {}, filters: {},
created() { created() {},
this.syncTagDataToComponent();
},
components: { components: {
quillEditor, quillEditor,
MusicModify MusicModify
@ -439,9 +437,9 @@ export default {
// ************************* ************************* // ************************* *************************
syncTagDataToComponent() { syncTagDataToComponent() {
// selectTag // selectTag
this.selectTag = [];
for (let i in this.data.tag) { for (let i in this.data.tag) {
let tag = this.data.tag[i]; let tag = this.data.tag[i];
for (let j in this.remoteTagList) { for (let j in this.remoteTagList) {
let jId = this.remoteTagList[j].value; let jId = this.remoteTagList[j].value;
if (tag === jId) { if (tag === jId) {

@ -95,6 +95,9 @@ export default {
this.data = JSON.parse(JSON.stringify(res.data)); this.data = JSON.parse(JSON.stringify(res.data));
this.type = 1; this.type = 1;
this.contentShow = true; this.contentShow = true;
setTimeout(() => {
this.$refs.modifyDialog.syncTagDataToComponent();
}, 800);
} else { } else {
this.type = 0; this.type = 0;
this.$message.error(res.message); this.$message.error(res.message);

Loading…
Cancel
Save