提交 9e8287d2 authored 作者: lidongxu's avatar lidongxu

feat(invalidplan): 完成查看已删除计划列表_分页分开统计功能

同上
上级 540b7ef0
...@@ -92,8 +92,8 @@ ...@@ -92,8 +92,8 @@
</el-table> </el-table>
<!-- 分页 --> <!-- 分页 -->
<pagination :total="total" <pagination :total="total"
v-model:page="queryParams.pageNum" v-model:page="pageNum"
v-model:limit="queryParams.pageSize" v-model:limit="pageSize"
@pagination="getPlanList" /> @pagination="getPlanList" />
<!-- 弹窗确认上传计划表格 --> <!-- 弹窗确认上传计划表格 -->
<el-dialog title="上传计划" <el-dialog title="上传计划"
...@@ -327,8 +327,6 @@ const props = defineProps({ ...@@ -327,8 +327,6 @@ const props = defineProps({
} }
}) })
const { proxy } = getCurrentInstance(); const { proxy } = getCurrentInstance();
const isCityManager = userStore().promotionIdentity const isCityManager = userStore().promotionIdentity
const empInfo = userStore().empInfo const empInfo = userStore().empInfo
...@@ -350,6 +348,7 @@ const handleDelete = async () => { ...@@ -350,6 +348,7 @@ const handleDelete = async () => {
employeeNo: empInfo.empNo employeeNo: empInfo.empNo
}) })
proxy.$modal.msgSuccess('删除成功') proxy.$modal.msgSuccess('删除成功')
proxy.eventBus.emit('refreshPlanList') // 刷新计划列表
getPlanList() getPlanList()
} }
// 单条 // 单条
...@@ -810,11 +809,13 @@ const tableRowTimeOutClassName = ({ row }) => { ...@@ -810,11 +809,13 @@ const tableRowTimeOutClassName = ({ row }) => {
/*************** 数据和分页 ***************/ /*************** 数据和分页 ***************/
const total = ref(0) const total = ref(0)
const pageNum = ref(1)
const pageSize = ref(10)
// 任务列表 // 任务列表
const getPlanList = async () => { const getPlanList = async () => {
const res = await getPlanListAPI({ const res = await getPlanListAPI({
pageNum: props.queryParams.pageNum, pageNum: pageNum.value,
pageSize: props.queryParams.pageSize, pageSize: pageSize.value,
queryParams: { queryParams: {
activityStartDate: props.queryParams.activityDate && props.queryParams.activityDate[0], activityStartDate: props.queryParams.activityDate && props.queryParams.activityDate[0],
activityEndDate: props.queryParams.activityDate && props.queryParams.activityDate[1], activityEndDate: props.queryParams.activityDate && props.queryParams.activityDate[1],
...@@ -823,7 +824,7 @@ const getPlanList = async () => { ...@@ -823,7 +824,7 @@ const getPlanList = async () => {
province: props.queryParams.provinceName, province: props.queryParams.provinceName,
city: props.queryParams.cityName, city: props.queryParams.cityName,
dealerId: props.queryParams.dealerId, dealerId: props.queryParams.dealerId,
orgQcId: props.queryParams.warzoneId, orgQcId: props.queryParams.warZoneId,
employeeId: props.queryParams.employeeId, employeeId: props.queryParams.employeeId,
storeNameLike: props.queryParams.storeName storeNameLike: props.queryParams.storeName
} }
......
...@@ -132,7 +132,10 @@ ...@@ -132,7 +132,10 @@
<EffectivePlan ref="effectivePlan" <EffectivePlan ref="effectivePlan"
:queryParams="queryParams" /> :queryParams="queryParams" />
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="已删除计划">Config</el-tab-pane> <el-tab-pane label="已删除计划">
<InvalidPlan ref="invalidPlan"
:queryParams="queryParams" />
</el-tab-pane>
</el-tabs> </el-tabs>
</div> </div>
</div> </div>
...@@ -144,7 +147,10 @@ import { parseTime } from '@/utils' ...@@ -144,7 +147,10 @@ import { parseTime } from '@/utils'
import userStore from '@/store/modules/user' import userStore from '@/store/modules/user'
import { useDatePickerOptions } from '@/hooks' import { useDatePickerOptions } from '@/hooks'
import { PROMOTION_STATUS } from '@/dicts' import { PROMOTION_STATUS } from '@/dicts'
import EffectivePlan from './effectivePlan.vue'; import EffectivePlan from './effectivePlan.vue'
import InvalidPlan from './invalidPlan.vue'
const { proxy } = getCurrentInstance()
const isCityManager = userStore().promotionIdentity const isCityManager = userStore().promotionIdentity
const empInfo = userStore().empInfo // 当前登录员工信息 const empInfo = userStore().empInfo // 当前登录员工信息
...@@ -159,8 +165,6 @@ const queryParams = reactive({ ...@@ -159,8 +165,6 @@ const queryParams = reactive({
warZoneId: '', // 战区 warZoneId: '', // 战区
employeeId: '', // 归属人 employeeId: '', // 归属人
storeName: '', // 门店名称 storeName: '', // 门店名称
pageNum: 1,
pageSize: 10,
}) })
/************* 选择日期 *************/ /************* 选择日期 *************/
const { recentPickerOptions: pickerOptions } = useDatePickerOptions() const { recentPickerOptions: pickerOptions } = useDatePickerOptions()
...@@ -275,8 +279,8 @@ onMounted(async () => { ...@@ -275,8 +279,8 @@ onMounted(async () => {
}) })
/************ 数据列表管理 ************/ /************ 数据列表管理 ************/
const effectivePlan = ref({})
const getPlanList = () => { const getPlanList = () => {
effectivePlan.value.getPlanList() proxy.$refs.effectivePlan.getPlanList()
proxy.$refs.invalidPlan.getPlanList()
} }
</script> </script>
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论