Commit 6e2ec99c authored by zhengke's avatar zhengke

优化销售 首页 选项

parent 5fe29047
......@@ -6,7 +6,7 @@
<template v-for="item in TemplateTypeList">
<el-button type="primary"
:plain="queryObj.TemplateType==item.Id?false:true" size="small"
@click="queryObj.TemplateType=item.Id,querySearchHandler()">
@click="setTemplateType(item.Id)">
{{item.Name}}
</el-button>
</template>
......@@ -115,12 +115,14 @@
const searchData = ref({} as any)
searchData.value = inject(injectKeyTemplate)
const deleteLoading = ref<any>(null)
let TemplateType = 0
if(searchData.value.SellTemplateType) TemplateType = searchData.value.SellTemplateType
const queryObj = reactive({
Title: '',
pageIndex: 1,
pageSize: 20,
pageCount: 0, //总页数
TemplateType: 0,
TemplateType: TemplateType,
})
searchData.value.sellId = 0
const dataList = ref([] as Array < any > );
......@@ -136,6 +138,12 @@
activeId: 1,
}
})
const setTemplateType = (Id:number) => {
console.log(Id)
queryObj.TemplateType = Id
searchData.value.SellTemplateType = Id
querySearchHandler()
}
const DeleteTemplate = async (item:any) => {
ElMessageBox.confirm(
'此操作将删除该模版,是否确定?',
......
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