|
@@ -32,7 +32,7 @@
|
|
|
|
|
|
|
|
<template #operation="{row}">
|
|
<template #operation="{row}">
|
|
|
<div class="table_row_option">
|
|
<div class="table_row_option">
|
|
|
- <span class="option_button_editor">编辑</span>
|
|
|
|
|
|
|
+ <span class="option_button_editor" @click="OpenFormDialog(row)">编辑</span>
|
|
|
<span class="option_button_editor" @click="GoToDetail(row)">详情</span>
|
|
<span class="option_button_editor" @click="GoToDetail(row)">详情</span>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
@@ -40,6 +40,14 @@
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+
|
|
|
|
|
+ <FormDialog width="640px" title="编辑学校" :visible="editFormDialogVisible"
|
|
|
|
|
+ :submitLoading="editFormDialogSubmitLoading"
|
|
|
|
|
+ :defaultFormData="editFormDefaultFormData"
|
|
|
|
|
+ :formItemList="formItemList"
|
|
|
|
|
+ @close="CloseFormDialog"
|
|
|
|
|
+ @confirm="HandleConfirmFormDialog">
|
|
|
|
|
+ </FormDialog>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
@@ -51,7 +59,9 @@ import {headerSearchList} from './searchBlock'
|
|
|
import Table from '@/baseComponents/Table.vue';
|
|
import Table from '@/baseComponents/Table.vue';
|
|
|
import FormSearchGroup from '@/baseComponents/FormSearchGroup.vue';
|
|
import FormSearchGroup from '@/baseComponents/FormSearchGroup.vue';
|
|
|
import {tableColumns} from './table'
|
|
import {tableColumns} from './table'
|
|
|
|
|
+import FormDialog from '@/baseComponents/FormDialog.vue';
|
|
|
|
|
|
|
|
|
|
+import {formItemList} from './formDialog'
|
|
|
|
|
|
|
|
const router = useRouter()
|
|
const router = useRouter()
|
|
|
/**
|
|
/**
|
|
@@ -62,21 +72,28 @@ const tableData = ref([
|
|
|
id: 1,
|
|
id: 1,
|
|
|
customerType: '首单客户',
|
|
customerType: '首单客户',
|
|
|
schoolName: '流星花园学校',
|
|
schoolName: '流星花园学校',
|
|
|
- educationStage: '中学',
|
|
|
|
|
|
|
+ schoolStage: 'middle',
|
|
|
|
|
+ province:'beijing',
|
|
|
provinceName: '北京市',
|
|
provinceName: '北京市',
|
|
|
- cityName: '西城区',
|
|
|
|
|
|
|
+ city:'dongcheng',
|
|
|
|
|
+ cityName: '东城区',
|
|
|
|
|
+ detailAddress:'通州北苑',
|
|
|
groupName: '小组',
|
|
groupName: '小组',
|
|
|
owner: '张三',
|
|
owner: '张三',
|
|
|
claimTime: '2026-03-11',
|
|
claimTime: '2026-03-11',
|
|
|
- lastFollowUpTime: '2026-03-11'
|
|
|
|
|
|
|
+ lastFollowUpTime: '2026-03-11',
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
id: 2,
|
|
id: 2,
|
|
|
customerType: '首单客户',
|
|
customerType: '首单客户',
|
|
|
schoolName: '北京师达',
|
|
schoolName: '北京师达',
|
|
|
- educationStage: '中学',
|
|
|
|
|
|
|
+ schoolStage: 'primary',
|
|
|
|
|
+ province:'beijing',
|
|
|
provinceName: '北京市',
|
|
provinceName: '北京市',
|
|
|
- cityName: '西城区',
|
|
|
|
|
|
|
+ city:'dongcheng',
|
|
|
|
|
+ cityName: '东城区',
|
|
|
|
|
+ detailAddress:'通州北苑',
|
|
|
|
|
+
|
|
|
groupName: '小组',
|
|
groupName: '小组',
|
|
|
owner: '张三',
|
|
owner: '张三',
|
|
|
claimTime: '2026-03-11',
|
|
claimTime: '2026-03-11',
|
|
@@ -86,9 +103,12 @@ const tableData = ref([
|
|
|
id: 3,
|
|
id: 3,
|
|
|
customerType: '首单客户',
|
|
customerType: '首单客户',
|
|
|
schoolName: '北京五十七中学',
|
|
schoolName: '北京五十七中学',
|
|
|
- educationStage: '中学',
|
|
|
|
|
|
|
+ schoolStage: 'senior',
|
|
|
|
|
+ province:'beijing',
|
|
|
provinceName: '北京市',
|
|
provinceName: '北京市',
|
|
|
- cityName: '西城区',
|
|
|
|
|
|
|
+ city:'dongcheng',
|
|
|
|
|
+ cityName: '东城区',
|
|
|
|
|
+ detailAddress:'通州北苑',
|
|
|
groupName: '小组',
|
|
groupName: '小组',
|
|
|
owner: '张三',
|
|
owner: '张三',
|
|
|
claimTime: '2025-11-01',
|
|
claimTime: '2025-11-01',
|
|
@@ -119,8 +139,32 @@ const HandleBlurSearchChange = (params,key)=>{
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
- * 3. 表格操作
|
|
|
|
|
|
|
+ * 3. 编辑学校弹窗有关操作
|
|
|
*/
|
|
*/
|
|
|
|
|
+const editFormDialogVisible = ref(false)
|
|
|
|
|
+const editFormDialogSubmitLoading = ref(false)
|
|
|
|
|
+const editFormDefaultFormData = ref({})
|
|
|
|
|
+
|
|
|
|
|
+const OpenFormDialog = (row)=>{
|
|
|
|
|
+ editFormDialogVisible.value = true
|
|
|
|
|
+ editFormDefaultFormData.value = {
|
|
|
|
|
+ ...row,
|
|
|
|
|
+ provinceArea:{
|
|
|
|
|
+ province:row.province,
|
|
|
|
|
+ district:row.city,
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+const CloseFormDialog = ()=>{
|
|
|
|
|
+ editFormDialogVisible.value = false
|
|
|
|
|
+ editFormDefaultFormData.value = {}
|
|
|
|
|
+}
|
|
|
|
|
+const HandleConfirmFormDialog = ()=>{
|
|
|
|
|
+ CloseFormDialog()
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+/** 跳转详情 */
|
|
|
const GoToDetail = (row)=>{
|
|
const GoToDetail = (row)=>{
|
|
|
router.push(`myCustomerDetail?id=${row.id}`)
|
|
router.push(`myCustomerDetail?id=${row.id}`)
|
|
|
}
|
|
}
|