Commit 6e2ec99c authored by zhengke's avatar zhengke

优化销售 首页 选项

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