This commit is contained in:
zmj 2024-01-30 09:55:14 +08:00
parent 7fdbe23ca5
commit df822e8324
3 changed files with 18 additions and 17 deletions

View File

@ -3,7 +3,9 @@
<popup ref="popupRef" title="导出设置" width="500px" confirm-button-text="确认导出" @confirm="handleConfirm" :async="true"
@open="getData">
<template #trigger>
<el-button>导出</el-button>
<!-- <el-button>导出</el-button> -->
<li class="el-dropdown-menu__item action-menu-li" :tabindex="-1" role="menuitem" aria-disabled="false">导出
</li>
</template>
<div>
<el-form ref="formRef" :model="formData" label-width="120px" :rules="formRules">
@ -130,3 +132,16 @@ const handleConfirm = async () => {
}
// getData()
</script>
<style lang="scss">
.action-menu-li {
// transform: translateX(-10px);
background-color: red;
width: 70px;
margin: 0 !important;
}
.action-menu-li:hover {
background-color: #EDEFFF;
color: blue;
}
</style>

View File

@ -1,12 +1,6 @@
<template>
<div class="tit">项目跟进</div>
<div>
<el-button v-perms="['project.project/add']" type="primary" @click="handleAdd" style="float: right;">
<template #icon>
<icon name="el-icon-Plus" />
</template>
新增
</el-button>
<el-table :data="tableData1" stripe style="width: 100%">
<el-table-column label="项目名称" prop="project_name" show-overflow-tooltip />
<el-table-column label="客户名称" prop="custom_name" show-overflow-tooltip />
@ -32,8 +26,6 @@
</template>
</el-table-column>
</el-table>
<edit-popup v-if="showEdit" ref="editRef" @close="showEdit = false" :dict-data="dictData" @success="followUpLists"
:project="formData" />
</div>
<div style="margin: 20px 0;">
@ -172,13 +164,6 @@ const props = defineProps({
})
const { dictData } = useDictData('project_assurance,follow_status,follow_type,follow_stage')
const showEdit = ref(false)
const editRef = ref(null)
//
const handleAdd = async () => {
showEdit.value = true
await nextTick()
editRef.value?.open('add')
}
const tableData1 = ref([])
const tableData2 = ref([])
const tableData3 = ref([])

View File

@ -13,7 +13,8 @@
<el-dropdown-item @click="handleAdd">添加</el-dropdown-item>
<el-dropdown-item> 编辑</el-dropdown-item>
<el-dropdown-item> 删除</el-dropdown-item>
<el-dropdown-item> 导出</el-dropdown-item>
<export-data class="ml-2.5" :fetch-fun="baseData.fetchFun" :params="baseData.queryParams"
:page-size="15" />
</el-dropdown-menu>
</template>
</el-dropdown>