Commit c95d9b9f authored by zhengke's avatar zhengke

优化管理中心模版 类型

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