|
@ -1,8 +1,9 @@ |
|
|
<template> |
|
|
<template> |
|
|
<div v-if="isShowComponent" class="handle-right-fixed clearfix"> |
|
|
<div v-if="isShowComponent" class="handle-right-fixed clearfix"> |
|
|
|
|
|
<img v-if="isShowAddButton" @click="handleUpload" src="../../assets/img/import.png" alt="" title="批量导入"> |
|
|
<el-dropdown v-if="isDropdown" trigger="click" @visible-change="handleCommand"> |
|
|
<el-dropdown v-if="isDropdown" trigger="click" @visible-change="handleCommand"> |
|
|
<span class="el-dropdown-link"> |
|
|
<span class="el-dropdown-link"> |
|
|
<img :src="notalReadyPic" alt=""> |
|
|
|
|
|
|
|
|
<img :src="notalReadyPic" alt="" title="检索条件"> |
|
|
</span> |
|
|
</span> |
|
|
<template #dropdown> |
|
|
<template #dropdown> |
|
|
<div class="predict-search-container"> |
|
|
<div class="predict-search-container"> |
|
@ -17,14 +18,24 @@ |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
</el-dropdown> |
|
|
</el-dropdown> |
|
|
<img v-if="isShowAddButton" @click="handleNew" src="../../assets/img/add.png" alt=""> |
|
|
|
|
|
<img v-if="isDownload" @click="download" src="../../assets/img/download.png" alt=""> |
|
|
|
|
|
|
|
|
<img v-if="isShowAddButton" @click="handleNew" src="../../assets/img/add.png" alt="" title="新增"> |
|
|
|
|
|
<img v-if="isDownload" @click="download" src="../../assets/img/download.png" alt="" title="下载"> |
|
|
|
|
|
<!-- 上传 --> |
|
|
|
|
|
<uploadTemplate |
|
|
|
|
|
v-if="isShowDialog === 'upload'" |
|
|
|
|
|
:item="item" |
|
|
|
|
|
v-model:isShowDialog="isShowDialog" |
|
|
|
|
|
@editCallBack="completeCallBack" /> |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
|
|
|
import uploadTemplate from "./upload.vue"; |
|
|
export default { |
|
|
export default { |
|
|
name: "QueryComponent", |
|
|
name: "QueryComponent", |
|
|
|
|
|
components: { |
|
|
|
|
|
uploadTemplate |
|
|
|
|
|
}, |
|
|
props: ["isShowComponent", "isShowAddButton","customerId","CreateModel", 'isDownload', 'isDropdown'], |
|
|
props: ["isShowComponent", "isShowAddButton","customerId","CreateModel", 'isDownload', 'isDropdown'], |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
@ -32,9 +43,17 @@ export default { |
|
|
notalReadyPic: require('../../assets/img/notalready.png'), |
|
|
notalReadyPic: require('../../assets/img/notalready.png'), |
|
|
// 查询条件 |
|
|
// 查询条件 |
|
|
SearchId: undefined, |
|
|
SearchId: undefined, |
|
|
|
|
|
isShowDialog: '', |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
// 上传 |
|
|
|
|
|
handleUpload() { |
|
|
|
|
|
this.isShowDialog = 'upload' |
|
|
|
|
|
}, |
|
|
|
|
|
completeCallBack() { |
|
|
|
|
|
this.isShowDialog = '' |
|
|
|
|
|
}, |
|
|
// 下拉框出现/隐藏时触发的事件 |
|
|
// 下拉框出现/隐藏时触发的事件 |
|
|
handleCommand(bool) { |
|
|
handleCommand(bool) { |
|
|
if (bool) { |
|
|
if (bool) { |
|
@ -82,6 +101,7 @@ export default { |
|
|
width: 24px; |
|
|
width: 24px; |
|
|
height: 24px; |
|
|
height: 24px; |
|
|
cursor: pointer; |
|
|
cursor: pointer; |
|
|
|
|
|
margin-left: 10px; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
</style> |
|
|
</style> |
|
|