上传
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 7.7 KiB |
@@ -24,10 +24,10 @@ export const deleteSchool = async (id) => {
|
|||||||
return await request.delete({ url: '/admin-api/crm/sch-school/delete?id=' + id })
|
return await request.delete({ url: '/admin-api/crm/sch-school/delete?id=' + id })
|
||||||
}
|
}
|
||||||
|
|
||||||
export const updateSchoolStatus = async (id, status) => {
|
export const updateSchoolStatus = async (schoolId, status) => {
|
||||||
const data = {
|
const data = {
|
||||||
id,
|
schoolId,
|
||||||
status
|
status
|
||||||
}
|
}
|
||||||
return request.put({ url: '/admin-api/crm/sch-school/update-status', data: data })
|
return request.put({ url: '/admin-api/crm/sch-school/status/update', data: data })
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<el-tab-pane label="跟进信息" name="follow">
|
<el-tab-pane label="跟进信息" name="follow">
|
||||||
<el-button type="primary" @click="handleAppendFollow">新增跟进人</el-button>
|
<el-button type="primary" @click="handleAppendFollow">新增跟进人</el-button>
|
||||||
<el-table :data="followList">
|
<el-table :data="followList">
|
||||||
<el-table-column label="跟进人">
|
<el-table-column label="跟进人" width="180px">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="row.userId"
|
v-model="row.userId"
|
||||||
@@ -24,13 +24,23 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="nextFollowTime" label="下次跟进时间">
|
<el-table-column prop="nextFollowTime" label="下次跟进时间" width="180px">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="row.nextFollowTime"
|
v-model="row.nextFollowTime"
|
||||||
type="date"
|
type="date"
|
||||||
placeholder="选择日期时间"
|
placeholder="选择日期时间"
|
||||||
:disabled="!row.editable"
|
:disabled="!row.editable"
|
||||||
|
style="width: 100%"
|
||||||
|
/>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="content" label="跟进内容">
|
||||||
|
<template #default="{ row }">
|
||||||
|
<el-input
|
||||||
|
v-model="row.content"
|
||||||
|
placeholder="输入跟进内容"
|
||||||
|
:disabled="!row.editable"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@@ -304,6 +314,7 @@ async function handleSave() {
|
|||||||
function handleAppendFollow() {
|
function handleAppendFollow() {
|
||||||
followList.value.push({
|
followList.value.push({
|
||||||
userId: undefined,
|
userId: undefined,
|
||||||
|
content: undefined,
|
||||||
nextFollowTime: formatDate(new Date()),
|
nextFollowTime: formatDate(new Date()),
|
||||||
editable: true
|
editable: true
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -140,7 +140,8 @@ async function changeStatus(row) {
|
|||||||
const text = row.status === CommonStatusEnum.ENABLE ? '启用' : '停用'
|
const text = row.status === CommonStatusEnum.ENABLE ? '启用' : '停用'
|
||||||
await message.confirm('确认要"' + text + '""' + row.schoolName + '"驾校吗?')
|
await message.confirm('确认要"' + text + '""' + row.schoolName + '"驾校吗?')
|
||||||
// 发起修改状态
|
// 发起修改状态
|
||||||
await api.updateSchoolStatus(row.id, row.status)
|
await api.updateSchoolStatus(row.schoolId, row.status)
|
||||||
|
message.success('修改成功')
|
||||||
// 刷新列表
|
// 刷新列表
|
||||||
await getList()
|
await getList()
|
||||||
} catch {
|
} catch {
|
||||||
|
|||||||
Reference in New Issue
Block a user