Merge branch 'main' of http://114.55.169.15:3000/qiushanhe/ss-crm-manage-web into dev-cl
This commit is contained in:
@@ -79,3 +79,8 @@ export const getSimpleUserList = (): Promise<UserVO[]> => {
|
|||||||
export const getAllUserList = (): Promise<UserVO[]> => {
|
export const getAllUserList = (): Promise<UserVO[]> => {
|
||||||
return request.get({ url: '/admin-api/system/user/no/permission/list-all-simple' })
|
return request.get({ url: '/admin-api/system/user/no/permission/list-all-simple' })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 获取所有包括离职的用户
|
||||||
|
export const getAllUserListWithHire = (): Promise<UserVO[]> => {
|
||||||
|
return request.get({ url: '/admin-api/system/user/no/permission/list-all' })
|
||||||
|
}
|
||||||
|
|||||||
@@ -37,6 +37,7 @@
|
|||||||
<script setup name="DialogBatchChangeFollow">
|
<script setup name="DialogBatchChangeFollow">
|
||||||
import { batchUpdateFollowUser } from '@/api/clue'
|
import { batchUpdateFollowUser } from '@/api/clue'
|
||||||
|
|
||||||
|
const message = useMessage() // 消息弹窗
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
userOptions: {
|
userOptions: {
|
||||||
type: Array
|
type: Array
|
||||||
|
|||||||
@@ -169,7 +169,8 @@ const formSchema = computed(() => {
|
|||||||
newSchema.forEach((it) => {
|
newSchema.forEach((it) => {
|
||||||
if (it.field == 'consultTime') {
|
if (it.field == 'consultTime') {
|
||||||
it.componentProps['disabled-date'] = dateAfterToday
|
it.componentProps['disabled-date'] = dateAfterToday
|
||||||
it.componentProps['disabled'] = formType.value != 'create'
|
// it.componentProps['disabled'] = formType.value != 'create'
|
||||||
|
it.componentProps['disabled'] = true
|
||||||
}
|
}
|
||||||
if (it.field == 'convertPeople') {
|
if (it.field == 'convertPeople') {
|
||||||
it.options = props.allUserOptions.map((it) => ({ ...it, name: it.nickname }))
|
it.options = props.allUserOptions.map((it) => ({ ...it, name: it.nickname }))
|
||||||
|
|||||||
@@ -188,7 +188,7 @@
|
|||||||
<DialogFollow ref="followRef" @success="getTableList" />
|
<DialogFollow ref="followRef" @success="getTableList" />
|
||||||
<DialogBatchChangeFollow
|
<DialogBatchChangeFollow
|
||||||
ref="batchChangeFollowDialog"
|
ref="batchChangeFollowDialog"
|
||||||
:userOptions="userOptions"
|
:userOptions="allStatusUserOptions"
|
||||||
@success="getTableList"
|
@success="getTableList"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@@ -203,7 +203,11 @@ import DialogSuccess from './Comp/DialogSuccess.vue'
|
|||||||
import DialogFollow from './Comp/DialogFollow.vue'
|
import DialogFollow from './Comp/DialogFollow.vue'
|
||||||
import ClueMap from './Comp/ClueMap.vue'
|
import ClueMap from './Comp/ClueMap.vue'
|
||||||
import DialogBatchChangeFollow from './Comp/DialogBatchChangeFollow.vue'
|
import DialogBatchChangeFollow from './Comp/DialogBatchChangeFollow.vue'
|
||||||
import { getSimpleUserList as getUserOption, getAllUserList } from '@/api/system/user'
|
import {
|
||||||
|
getSimpleUserList as getUserOption,
|
||||||
|
getAllUserList,
|
||||||
|
getAllUserListWithHire
|
||||||
|
} from '@/api/system/user'
|
||||||
|
|
||||||
import { removeNullField } from '@/utils'
|
import { removeNullField } from '@/utils'
|
||||||
import { formatDate } from '@/utils/formatTime'
|
import { formatDate } from '@/utils/formatTime'
|
||||||
@@ -230,8 +234,10 @@ async function getCurdSchemas() {
|
|||||||
try {
|
try {
|
||||||
const data = await getSimpleFieldList()
|
const data = await getSimpleFieldList()
|
||||||
data.forEach((elem) => {
|
data.forEach((elem) => {
|
||||||
if (['followUser', 'convertPeople', 'firstFollowUser'].includes(elem.field)) {
|
if (['followUser', 'convertPeople'].includes(elem.field)) {
|
||||||
elem.search.options = userOptions.value
|
elem.search.options = userOptions.value
|
||||||
|
} else if (['firstFollowUser'].includes(elem.field)) {
|
||||||
|
elem.search.options = allStatusUserOptions.value
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
allSchemas.value = useCrudSchemas(data).allSchemas
|
allSchemas.value = useCrudSchemas(data).allSchemas
|
||||||
@@ -387,10 +393,12 @@ function handleGain(id) {
|
|||||||
|
|
||||||
const userOptions = ref([])
|
const userOptions = ref([])
|
||||||
const allUserOptions = ref([])
|
const allUserOptions = ref([])
|
||||||
|
const allStatusUserOptions = ref([])
|
||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
userOptions.value = await getUserOption()
|
userOptions.value = await getUserOption()
|
||||||
allUserOptions.value = await getAllUserList()
|
allUserOptions.value = await getAllUserList()
|
||||||
|
allStatusUserOptions.value = await getAllUserListWithHire()
|
||||||
getCurdSchemas()
|
getCurdSchemas()
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user