Commit c95d9b9f authored by zhengke's avatar zhengke

优化管理中心模版 类型

parent 6a7a5511
...@@ -33,7 +33,6 @@ ...@@ -33,7 +33,6 @@
import { ref, onMounted, reactive, watch, onBeforeUnmount } from 'vue' import { ref, onMounted, reactive, watch, onBeforeUnmount } from 'vue'
import { useRouter } from "vue-router"; import { useRouter } from "vue-router";
import { storeToRefs } from 'pinia' import { storeToRefs } from 'pinia'
import { useScreenStore } from '@/store'
import { ApiResult } from '@/configs/axios' import { ApiResult } from '@/configs/axios'
import UserServices from '@/services/UserService' import UserServices from '@/services/UserService'
import { ElMessage, FormInstance } from 'element-plus'; import { ElMessage, FormInstance } from 'element-plus';
...@@ -44,8 +43,6 @@ const qrCode = ref('') ...@@ -44,8 +43,6 @@ const qrCode = ref('')
const qrLoading = ref(false) const qrLoading = ref(false)
const router = useRouter(); const router = useRouter();
const { market, model, ConfigId, CoverImg, dataLoading } = storeToRefs(useScreenStore())
const props = defineProps({ const props = defineProps({
DetaTem:{ DetaTem:{
type: Boolean, type: Boolean,
...@@ -60,10 +57,7 @@ const props = defineProps({ ...@@ -60,10 +57,7 @@ const props = defineProps({
default: false, default: false,
} }
}) })
const params = reactive({
ConfigId: '' as any,
TCID: '' as any,
})
const emit = defineEmits<{ const emit = defineEmits<{
(event: 'close'): void, (event: 'close'): void,
(event: 'success'): void, (event: 'success'): void,
...@@ -79,7 +73,6 @@ const close = () => { ...@@ -79,7 +73,6 @@ const close = () => {
stopTimerHandler(1) stopTimerHandler(1)
emit('close') emit('close')
} }
if(model.value==0 && ConfigId.value) params.ConfigId = ConfigId.value
const beginTimerHandler = ()=>{ const beginTimerHandler = ()=>{
......
...@@ -94,8 +94,8 @@ ...@@ -94,8 +94,8 @@
<span class="fz14 q-pr-md shrink microsoft">&nbsp;&nbsp;类型:</span> <span class="fz14 q-pr-md shrink microsoft">&nbsp;&nbsp;类型:</span>
<el-select v-model="queryObj.QAuthType" <el-select v-model="queryObj.QAuthType"
class="ml-1 shrink TemSel microsoft" class="ml-1 shrink TemSel microsoft"
placeholder="类型" @change="search()"> placeholder="类型" clearable @change="search()">
<!-- <el-option class="microsoft" key="" label="不限" value=""/> --> <el-option class="microsoft" key="" label="不限" value=""/>
<el-option class="microsoft" <el-option class="microsoft"
v-for="item in QAuthTypes" v-for="item in QAuthTypes"
:key="item.ID" :key="item.ID"
...@@ -331,7 +331,7 @@ const queryObj = reactive({ ...@@ -331,7 +331,7 @@ const queryObj = reactive({
TemplateType: 0,//0 不限 1模版 2广告 TemplateType: 0,//0 不限 1模版 2广告
type: 0, type: 0,
OrderByType: 1,//排序方式 OrderByType: 1,//排序方式
QAuthType: '',//1-免费,2-VIP,3-私有 QAuthType: userInfo.value.isp?1:'',//1-免费,2-VIP,3-私有
}) })
const queryColor = ref({ const queryColor = ref({
DictKey: 'Trip_Template_Color', DictKey: 'Trip_Template_Color',
...@@ -780,8 +780,6 @@ getTemplateQuery(); ...@@ -780,8 +780,6 @@ getTemplateQuery();
queryTemplateBySearchHandler(); queryTemplateBySearchHandler();
onMounted(()=>{ onMounted(()=>{
if(userInfo.value.isp) queryObj.QAuthType = 1
console.log(userInfo.value.isp,'-----')
// marketRef.value.addEventListener("scroll", scrollingHandler); // marketRef.value.addEventListener("scroll", scrollingHandler);
}) })
</script> </script>
......
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