Commit c7556497 authored by zhengke's avatar zhengke

修复 系列查询图片

parent 4fed9afb
......@@ -123,6 +123,6 @@ window.addEventListener('unload', () => {
height: 100%;
}
.el-overlay{
z-index: 99999 !important;
}
</style>
\ No newline at end of file
......@@ -6,15 +6,28 @@
</template>
<el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick">
<el-tab-pane label="erp资料库" name="1">
<div class="q-mb-md">
<el-input v-model="datas.queryMsg.Name"
placeholder="输入关键字快速查找" clearable
class="input-with-select" @keyup.enter="SearchHandler()">
<template #append>
<el-button type="primary" @click="SearchHandler">搜索</el-button>
</template>
</el-input>
</div>
<el-row class="q-mb-md">
<el-col :span="6">
<el-select v-model="datas.queryMsg.Type" class="m-2"
@change="SearchHandler()">
<el-option
v-for="item in typeLists"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</el-col>
<el-col :span="18">
<el-input v-model="datas.queryMsg.Name"
placeholder="输入关键字快速查找" clearable
class="input-with-select q-pl-lg" @keyup.enter="SearchHandler()">
<template #append>
<el-button type="primary" @click="SearchHandler">搜索</el-button>
</template>
</el-input>
</el-col>
</el-row>
<div class="row UploadPicture-box" v-loading="datas.loading">
<div v-for="(item,index) in datas.imgList" class="UploadPicture-list">
<div class="UploadPicture-listBox">
......@@ -101,6 +114,12 @@ const upload = ref<UploadInstance>()
const imgType = ref(0) // 1 插入图片 2替换图片
imgType.value = inject('imgType')
const propsDatas = ref({src: ''})
const typeLists = ref([
{label: '不限',value:0},
{label: '酒店',value:1},
{label: '餐厅',value:2},
{label: '景点',value:3},
])
const datas = reactive({
DataSource:{},
loading: false,
......@@ -116,9 +135,9 @@ const datas = reactive({
}
})
datas.DataSource = inject(injectKeyDataSource)
if(datas.DataSource.pageType==2) datas.queryMsg.Type = 1
else if(datas.DataSource.pageType==3) datas.queryMsg.Type = 3
else if(datas.DataSource.pageType==4) datas.queryMsg.Type = 2
// if(datas.DataSource.pageType==2) datas.queryMsg.Type = 1
// else if(datas.DataSource.pageType==3) datas.queryMsg.Type = 3
// else if(datas.DataSource.pageType==4) datas.queryMsg.Type = 2
const mainStore = useMainStore()
const { createImageElement } = useCreateElement()
......@@ -261,6 +280,9 @@ const getImgList = async () =>{
getImgList()
</script>
<style lang="scss" scoped>
.col #tippy-30{
z-index: 99999 !important;
}
.upload-box{
display: flex;
justify-content: center;
......
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