dev2 #1

Open
panjunjie wants to merge 174 commits from dev2 into main
3 changed files with 13 additions and 36 deletions
Showing only changes of commit 62f680b5b0 - Show all commits

View File

@ -77,7 +77,7 @@
if(res.status==200){
this.$message.success('空白模板创建成功!')
this.visible = false
this.$emit('copySuccess')//
this.$emit('createBlankSuccess')//
}
},
//

View File

@ -78,9 +78,9 @@
</li>
</ul>
<copyTemplate ref="copyTemplateRef"></copyTemplate>
<copyTemplate ref="copyTemplateRef" @copySuccess="handleCopySuccess"></copyTemplate>
<previewTemplate ref="previewTemplateRef"></previewTemplate>
<createBlank ref="blankTemplateRef"></createBlank>
<createBlank ref="blankTemplateRef" @createBlankSuccess="handleCreateSuccess"></createBlank>
</div>
</el-dialog>
</template>
@ -163,37 +163,6 @@ export default {
this.templateList = { records: [] }
}
},
showEditApp(page) {
if (page.tpl_id === 107) {
this.$router.push({
path: '/appTemplate',
query: {
app_id: page.app_id,
tpl_id: page.tpl_id,
app_type: 0,
},
})
} else {
this.$router.push({
path: '/setupshop',
})
}
},
async setThemes(tpl_id, tpl_label, app_id) {
this.$baseConfirm(this.__('确定启用此模板风格?'), null, async () => {
const { msg, status } = await setThemes({
tpl_id: tpl_id,
store_template: tpl_label,
app_id: app_id,
})
if (200 == status) {
this.$baseMessage(msg, 'success')
} else {
this.$baseMessage(msg, 'error')
}
this.getAppPages()
})
},
openCopy(page) {
this.$refs.copyTemplateRef?.open(page)
},
@ -203,6 +172,14 @@ export default {
openPreview(page) {
this.$refs.previewTemplateRef?.open(page)
},
handleCreateSuccess() {
this.$emit('refreshList')
this.visible=false
},
handleCopySuccess() {
this.$emit('refreshList')
this.visible=false
},
}
}
</script>

View File

@ -201,10 +201,10 @@
@size-change="handleSizeChange"
/>
</el-row>
<templateMenu ref="templateMenuRef"></templateMenu>
<templateMenu ref="templateMenuRef" @refreshList="refreshAllData"></templateMenu>
<decoarationDetail ref="decoarationDetailRef" @editSuccess="refreshAllData"></decoarationDetail>
<copyTemplate ref="copyTemplateRef" @copySuccess="refreshAllData"></copyTemplate>
<createBlank ref="blankTemplateRef" @copySuccess="refreshAllData"></createBlank>
<createBlank ref="blankTemplateRef" @createBlankSuccess="refreshAllData"></createBlank>
<previewTemplate ref="previewTemplateRef"></previewTemplate>
</div>
</template>