添加语言适配

This commit is contained in:
X1627315083
2023-11-29 16:30:17 +08:00
parent f432ce7cb3
commit 66e4a5f12c
23 changed files with 126 additions and 68 deletions

View File

@@ -718,7 +718,7 @@ export default defineComponent({
printPreview(){
let file = this.printObject.templateId ? null :this.printObject.file,
models = {
libraryId:this.printObject.libraryId || null,
libraryId:this.printObject.relationId || null,
templateId:this.printObject.templateId || null,
timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,
...this.getPrintLocation()

View File

@@ -715,7 +715,7 @@ export default defineComponent({
printPreview(){
let file = this.printObject.templateId ? null :this.printObject.file,
models = {
libraryId:this.printObject.libraryId || null,
libraryId:this.printObject.relationId || null,
templateId:this.printObject.templateId || null,
timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,
...this.getPrintLocation()

View File

@@ -11,7 +11,7 @@
>
<div class="setLabel_centent">
<ul class="optionsItem">
<li class="optionsItem_title" v-for="optionsItem,optionsIndex in options" :key="optionsItem.id">
<li class="optionsItem_title" @click.stop="" v-for="optionsItem,optionsIndex in options" :key="optionsItem.id">
<div class="setLabel_text">
<a-checkbox v-model:checked="optionsItem.checkAll" @change="onCheckAllChange(optionsItem)"></a-checkbox>
<span v-show="!optionsItem.openType" :title="optionsItem.classificationName">{{ optionsItem.classificationName }}</span>
@@ -174,7 +174,7 @@ export default defineComponent({
let data:any
if(v == 'put'){
this.clearOpenType()
document.addEventListener('click',this.clearOpenType)
item.openType = true
this.itemName = item.classificationName
// this.options[index].openType = true
@@ -209,6 +209,7 @@ export default defineComponent({
item.openType = false
}
this.addLabel(data)
document.removeEventListener('click',this.clearOpenType)
}
},
newLabel(item:any,id:any){
@@ -259,6 +260,7 @@ export default defineComponent({
this.getClass()
}
).catch((res)=>{
this.getClass()
});
},
deleteClass(data:any){
@@ -317,6 +319,10 @@ export default defineComponent({
</script>
<style lang="less">
.library_setLabel{
.ant-modal-content{
border-radius: 1rem;
overflow: hidden;
}
.setLabel_centent{
display: flex;
flex-direction: column;