Compare commits

...

3 Commits

@ -4,4 +4,5 @@ VITE_PASSWORD_SECRET_KEY===ad-distribute=
VITE_IMAGE_DOMAIN=https://hccake-img.oss-cn-shanghai.aliyuncs.com VITE_IMAGE_DOMAIN=https://hccake-img.oss-cn-shanghai.aliyuncs.com
# 用来回显图片 # 用来回显图片
# http://39.100.77.21:8001 # http://39.100.77.21:8001
VITE_SERVERURL=https://byffp.top VITE_SERVERURL=https://byffp.top
# VITE_SERVERURL=http://39.100.77.21:8001

@ -77,4 +77,4 @@
"watchSyncEffect": true, "watchSyncEffect": true,
"toValue": true "toValue": true
} }
} }

@ -1,6 +1,7 @@
{ {
"name": "ballcat-ui-vue3", "name": "byhl-zt",
"version": "0.0.0", "version": "0.0.1",
"description": "线索分发系统",
"packageManager": "pnpm@8.2.0", "packageManager": "pnpm@8.2.0",
"scripts": { "scripts": {
"dev": "vite --host", "dev": "vite --host",

@ -144,9 +144,11 @@ export function selectedReviewerList() {
return httpClient.get<ApiResult>('/system/user/review/list') return httpClient.get<ApiResult>('/system/user/review/list')
} }
/** /**
* * -
* @param customerDto * @param
*/ */
// export function updatedistribute(customerDto: CustomerDTO) { export function customRecallForm(id: number) {
// return httpClient.post<ApiResult<void>>('/custom/auditDistribute', customerDto) return httpClient.get<ApiResult>('/custom/recallForm', {
// } params: { id }
})
}

@ -19,11 +19,6 @@ const useAdminWebSocket = () => {
const baseUri = import.meta.env.VITE_API_URL const baseUri = import.meta.env.VITE_API_URL
const host = window.location.host const host = window.location.host
const wsUri = `wss://${host}${baseUri}/ws?access_token=${accessToken}` const wsUri = `wss://${host}${baseUri}/ws?access_token=${accessToken}`
<<<<<<< HEAD
=======
console.log(wsUri, 'wsUri')
>>>>>>> 5f87413450a7cc2d78ad58061d92f900031ae1f9
//使用useWebSocket函数创建WebSocket连接并配置自动重连和心跳机制 //使用useWebSocket函数创建WebSocket连接并配置自动重连和心跳机制
useWebSocketReturn = useWebSocket(wsUri, { useWebSocketReturn = useWebSocket(wsUri, {
autoReconnect: { autoReconnect: {

@ -112,7 +112,6 @@ const stepItemClick = (record: clueStageItem) => {
formModel.clueId = resourcesId.value formModel.clueId = resourcesId.value
formModel.clueStageName = record.name formModel.clueStageName = record.name
formModel.clueStageId = record.clueStageId formModel.clueStageId = record.clueStageId
console.log(formModel, 'formModel')
} }
// //
@ -276,13 +275,7 @@ const clueStageCurrentId = ref<number>()
defineExpose({ defineExpose({
async open(newFormAction: FormAction, record: CustomerListRecord, tabIndex: string) { async open(newFormAction: FormAction, record: CustomerListRecord, tabIndex: string) {
// activeKey.value = tabIndex
openModal()
resetFields() resetFields()
// if (newFormAction === FormAction.CREATE) {
// title.value = ''
// } else {
title.value = '编辑'
resourcesId.value = record.clueId resourcesId.value = record.clueId
formModel.clueId = record.clueId formModel.clueId = record.clueId
formModel.customInformation = record.customInformation formModel.customInformation = record.customInformation
@ -291,6 +284,8 @@ defineExpose({
clueStage.length = 0 clueStage.length = 0
await doRequest(getResourcesDetail(toRaw(resourcesId.value)), { await doRequest(getResourcesDetail(toRaw(resourcesId.value)), {
onSuccess: (res: any) => { onSuccess: (res: any) => {
openModal()
title.value = '编辑'
const a = res.data.clueStageEntities.map((item: any) => { const a = res.data.clueStageEntities.map((item: any) => {
return { name: item.name, sort: item.sort, clueStageId: item.clueStageId } return { name: item.name, sort: item.sort, clueStageId: item.clueStageId }
}) })
@ -331,8 +326,8 @@ defineExpose({
// // } // // }
// }) // })
// } // }
console.log(res.data.clueLabelName, 'res.data.clueLabelName') // console.log(res.data.clueLabelName, 'res.data.clueLabelName')
console.log(formModel.clueLabelList, 'formModel.clueLabelList') // console.log(formModel.clueLabelList, 'formModel.clueLabelList')
// formModel.clueLabelList.length = 0 // formModel.clueLabelList.length = 0
// formModel.clueLabelList.push(...b) // formModel.clueLabelList.push(...b)
clueStageCurrentId.value = res.data.clueStageId clueStageCurrentId.value = res.data.clueStageId

@ -25,6 +25,7 @@
@click="handleEditView(record)" @click="handleEditView(record)"
>审核</a >审核</a
> >
<a v-if="record.enrollStatus == 2" @click="customRecallFormFun(record.customId)"></a>
</operation-group> </operation-group>
</template> </template>
</template> </template>
@ -35,18 +36,19 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { ref } from 'vue' import { ref, createVNode } from 'vue'
// import { message } from 'ant-design-vue' import { message, Modal } from 'ant-design-vue'
// import { doRequest } from '@/utils/axios/request' import { doRequest } from '@/utils/axios/request'
// //
import ProTable from '#/table' import ProTable from '#/table'
import { ExclamationCircleOutlined } from '@ant-design/icons-vue'
import type { ProTableInstanceExpose, TableRequest, ProColumns } from '#/table' import type { ProTableInstanceExpose, TableRequest, ProColumns } from '#/table'
import { mergePageParam } from '@/utils/page-utils' import { mergePageParam } from '@/utils/page-utils'
import { FormAction } from '@/hooks/form' import { FormAction } from '@/hooks/form'
import inspectionModal from './inspectionModal.vue' import inspectionModal from './inspectionModal.vue'
import inspectionSearch from './inspectionSearch.vue' import inspectionSearch from './inspectionSearch.vue'
import inspectionSelectModal from './inspectionSelectModal.vue' import inspectionSelectModal from './inspectionSelectModal.vue'
import { pageAccessLogs } from '@/api/geopoliticalCustomers' import { pageAccessLogs, customRecallForm } from '@/api/geopoliticalCustomers'
import type { import type {
DistributeTaskManagementPageParam, DistributeTaskManagementPageParam,
DistributeTaskManagementRecord DistributeTaskManagementRecord
@ -91,6 +93,24 @@ const searchTable = (params: DistributeTaskManagementPageParam) => {
const handleView = (id: number) => { const handleView = (id: number) => {
inspectionSelectModalRef.value?.open(FormAction.OTHER, id) inspectionSelectModalRef.value?.open(FormAction.OTHER, id)
} }
const customRecallFormFun = (id: number) => {
Modal.confirm({
title: '确定要撤回该条吗?',
icon: createVNode(ExclamationCircleOutlined),
content: '分发后10分钟内可撤回,撤回后将无法恢复',
okText: '确定',
okType: 'danger',
cancelText: '取消',
onOk() {
doRequest(customRecallForm(id), {
onSuccess: (res: any) => {
message.success('操作成功')
reloadTable()
}
})
}
})
}
// //
const handleEditView = (record: DistributeTaskManagementRecord) => { const handleEditView = (record: DistributeTaskManagementRecord) => {
inspectionModalRef.value?.open({ inspectionModalRef.value?.open({

@ -473,5 +473,6 @@ defineExpose({
::v-deep .ant-form-item-control-input-content { ::v-deep .ant-form-item-control-input-content {
display: flex; display: flex;
align-items: center; align-items: center;
flex-wrap: wrap;
} }
</style> </style>

@ -1,7 +1,6 @@
/* eslint-disable */ /* eslint-disable */
/* prettier-ignore */ /* prettier-ignore */
// @ts-nocheck // @ts-nocheck
// noinspection JSUnusedGlobalSymbols
// Generated by unplugin-auto-import // Generated by unplugin-auto-import
export {} export {}
declare global { declare global {

@ -26,10 +26,10 @@ import { antdvStyleDeps } from './src/utils/resolvers'
//ts //ts
// export const serverAddress = 'http://172.18.0.228:8000' // export const serverAddress = 'http://172.18.0.228:8000'
//测试 //测试
export const serverAddress = 'http://39.100.77.21:8000' // export const serverAddress = 'http://39.100.77.21:8000'
//线上域名,现在用这个 //线上域名,现在用这个
// export const serverAddress = 'https://byffp.top' export const serverAddress = 'https://byffp.top'
export default defineConfig({ export default defineConfig({
server: { server: {

Loading…
Cancel
Save