tj
This commit is contained in:
@@ -188,7 +188,7 @@
|
||||
<DialogFollow ref="followRef" @success="getTableList" />
|
||||
<DialogBatchChangeFollow
|
||||
ref="batchChangeFollowDialog"
|
||||
:userOptions="userOptions"
|
||||
:userOptions="allStatusUserOptions"
|
||||
@success="getTableList"
|
||||
/>
|
||||
</div>
|
||||
@@ -203,7 +203,11 @@ import DialogSuccess from './Comp/DialogSuccess.vue'
|
||||
import DialogFollow from './Comp/DialogFollow.vue'
|
||||
import ClueMap from './Comp/ClueMap.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 { formatDate } from '@/utils/formatTime'
|
||||
@@ -230,8 +234,10 @@ async function getCurdSchemas() {
|
||||
try {
|
||||
const data = await getSimpleFieldList()
|
||||
data.forEach((elem) => {
|
||||
if (['followUser', 'convertPeople', 'firstFollowUser'].includes(elem.field)) {
|
||||
if (['followUser', 'convertPeople'].includes(elem.field)) {
|
||||
elem.search.options = userOptions.value
|
||||
} else if (['firstFollowUser'].includes(elem.field)) {
|
||||
elem.search.options = allStatusUserOptions.value
|
||||
}
|
||||
})
|
||||
allSchemas.value = useCrudSchemas(data).allSchemas
|
||||
@@ -387,10 +393,12 @@ function handleGain(id) {
|
||||
|
||||
const userOptions = ref([])
|
||||
const allUserOptions = ref([])
|
||||
const allStatusUserOptions = ref([])
|
||||
|
||||
onMounted(async () => {
|
||||
userOptions.value = await getUserOption()
|
||||
allUserOptions.value = await getAllUserList()
|
||||
allStatusUserOptions.value = await getAllUserListWithHire()
|
||||
getCurdSchemas()
|
||||
})
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user