Commit 9ef64b2f authored by zhengke's avatar zhengke

优化 查看 排序

parent e52c8f3d
......@@ -50,6 +50,12 @@ const healthCheckHandler = async ()=>{
setInterval(() => {
healthCheckHandler()
}, 1000*60)
onMounted( () => {
window.onbeforeunload = function(event) {
event.preventDefault();
};
})
</script>
<style lang="scss">
......
......@@ -36,7 +36,12 @@
<div>尺寸</div>
<div class="q-pt-lg">
<div class="addTemplateBoxRec addTemplateBoxRecw136 rounded6 color0 text-center">
{{showCurrentTemplate.Width?showCurrentTemplate.Width:0}} * {{showCurrentTemplate.Height?showCurrentTemplate.Height:0}} px
<template v-if="!showCurrentTemplate.Width">
{{showCurrentTemplate.TempType==1?'横版':'竖版'}}
</template>
<template v-else>
{{showCurrentTemplate.Width?showCurrentTemplate.Width:0}} * {{showCurrentTemplate.Height?showCurrentTemplate.Height:0}} px
</template>
</div>
</div>
</div>
......
......@@ -289,7 +289,7 @@ const queryObj = reactive({
TempType: 0,
TemplateType: TemplateType,//0 不限 1模版 2广告
type: 0,
OrderByType: 0,//排序方式
OrderByType: 1,//排序方式
})
const queryColor = ref({
DictKey: 'Trip_Template_Color',
......
......@@ -272,7 +272,7 @@ const queryObj = reactive({
TempType: 0,
TemplateType: TemplateType,//0 不限 1模版 2广告
type: 0,
sort: 0,//排序方式
OrderByType: 0,//排序方式
})
const queryColor = ref({
DictKey: 'Trip_Template_Color',
......@@ -548,7 +548,7 @@ const onSeasonNameChangeHandler = (row: Object) => {
//类型切换
const onTypeChangeHandler = (Type: string,num: Number) => {
if(num==1){
queryObj.sort = Type;
queryObj.OrderByType = Type;
}else if(num==2){
setTemplateType.value = Type
} else{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment