|
|
@ -188,7 +188,7 @@ |
|
|
|
<DialogFollow ref="followRef" @success="getTableList" /> |
|
|
|
<DialogFollow ref="followRef" @success="getTableList" /> |
|
|
|
<DialogBatchChangeFollow |
|
|
|
<DialogBatchChangeFollow |
|
|
|
ref="batchChangeFollowDialog" |
|
|
|
ref="batchChangeFollowDialog" |
|
|
|
:userOptions="allStatusUserOptions" |
|
|
|
:userOptions="userOptions" |
|
|
|
@success="getTableList" |
|
|
|
@success="getTableList" |
|
|
|
/> |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -203,11 +203,7 @@ 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 { |
|
|
|
import { getSimpleUserList as getUserOption, getAllUserList } from '@/api/system/user' |
|
|
|
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' |
|
|
@ -234,10 +230,8 @@ async function getCurdSchemas() { |
|
|
|
try { |
|
|
|
try { |
|
|
|
const data = await getSimpleFieldList() |
|
|
|
const data = await getSimpleFieldList() |
|
|
|
data.forEach((elem) => { |
|
|
|
data.forEach((elem) => { |
|
|
|
if (['followUser', 'convertPeople'].includes(elem.field)) { |
|
|
|
if (['followUser', 'convertPeople', 'firstFollowUser'].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 |
|
|
@ -393,12 +387,10 @@ 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> |
|
|
|