master
doublekou 9 months ago
parent 3c4dec73da
commit 22a52470cd

@ -74,6 +74,7 @@
"watch": true, "watch": true,
"watchEffect": true, "watchEffect": true,
"watchPostEffect": true, "watchPostEffect": true,
"watchSyncEffect": true "watchSyncEffect": true,
"toValue": true
} }
} }

@ -18,14 +18,7 @@ const useAdminWebSocket = () => {
// ws地址 // ws地址
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
<<<<<<< HEAD
console.log(host, 'host')
const wsUri = `wss://${host}${baseUri}/ws?access_token=${accessToken}` const wsUri = `wss://${host}${baseUri}/ws?access_token=${accessToken}`
console.log(baseUri, 'baseUri')
=======
const wsUri = `wss://${host}${baseUri}/ws?access_token=${accessToken}`
console.log(wsUri, 'wsUri')
>>>>>>> 51148e12890616d99b5cb637a2b4197ca26fbcf1
//使用useWebSocket函数创建WebSocket连接并配置自动重连和心跳机制 //使用useWebSocket函数创建WebSocket连接并配置自动重连和心跳机制
useWebSocketReturn = useWebSocket(wsUri, { useWebSocketReturn = useWebSocket(wsUri, {

@ -10,8 +10,9 @@
@ok="handleSubmit" @ok="handleSubmit"
@cancel="handleClose" @cancel="handleClose"
> >
<a-empty v-if="clueStage.length === 0 && label.length === 0" /> <!-- <a-empty v-if="clueStage.length === 0 && label.length === 0" /> -->
<a-form v-else :model="formModel" :label-col="labelCol" :wrapper-col="wrapperCol"> <!-- v-else -->
<a-form :model="formModel" :label-col="labelCol" :wrapper-col="wrapperCol">
<div class="modalTitle">线索阶段树</div> <div class="modalTitle">线索阶段树</div>
<a-form-item style="overflow-x: auto" class="stepsbox maxWidth"> <a-form-item style="overflow-x: auto" class="stepsbox maxWidth">
<a-steps v-if="clueStage.length > 0" v-model:current="current" :initial="-1"> <a-steps v-if="clueStage.length > 0" v-model:current="current" :initial="-1">
@ -55,13 +56,13 @@
</a-checkbox-group> </a-checkbox-group>
<a-empty v-else /> <a-empty v-else />
</a-form-item> </a-form-item>
<!-- v-bind="validateInfos.customInformation" -->
<a-form-item <a-form-item
ref="customInformation" ref="customInformation"
label="客户资料" label="客户资料"
:label-col="{ span: 4 }" :label-col="{ span: 3 }"
:wrapper-col="{ span: 19 }" :wrapper-col="{ span: 19 }"
name="customInformation" name="customInformation"
v-bind="validateInfos.customInformation"
> >
<a-textarea v-model:value="formModel.customInformation" class="customInformationInput" /> <a-textarea v-model:value="formModel.customInformation" class="customInformationInput" />
</a-form-item> </a-form-item>
@ -198,21 +199,21 @@ const formModel = reactive<SysEdit>({
customInformation: '' customInformation: ''
}) })
// //
const formRule = reactive({ // const formRule = reactive({
customInformation: [{ required: true, message: '请输入客户资料', trigger: ['blur', 'change'] }] // customInformation: [{ required: true, message: '', trigger: ['blur', 'change'] }]
}) // })
// //
const formRequestMapping: FormRequestMapping<SysEdit> = { const formRequestMapping: FormRequestMapping<SysEdit> = {
// [FormAction.CREATE]: createMenu, // [FormAction.CREATE]: createMenu,
[FormAction.UPDATE]: updateResource [FormAction.UPDATE]: updateResource
} }
// validateInfos
const { submitLoading, validateAndSubmit, resetFields, validateInfos } = useAdminForm( const { submitLoading, validateAndSubmit, resetFields } = useAdminForm(
formAction, formAction,
formRequestMapping, formRequestMapping,
formModel, formModel
formRule // formRule
) )
// //
@ -407,13 +408,13 @@ defineExpose({
} }
//textarea //textarea
.customInformationInput { .customInformationInput {
// margin-left: 10px; margin-left: 10px;
} }
::v-deep textarea.ant-input { ::v-deep textarea.ant-input {
min-height: 90px; min-height: 90px;
} }
//label //label
::v-deep .ant-form-item-required { ::v-deep .ant-form-item-label > label {
color: rgba(0, 0, 0, 0.85); color: rgba(0, 0, 0, 0.85);
font-weight: 500; font-weight: 500;
font-size: 16px; font-size: 16px;

@ -1,6 +1,7 @@
/* 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