Commit c7556497 authored by zhengke's avatar zhengke

修复 系列查询图片

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