吉安感知网项目-前端
chenyao
7 days ago 2d83f0c2b6348366f1e7a234012142e755b16e98
feat:更新ws地址和字段
4 files modified
34 ■■■■■ changed files
applications/drone-command/src/views/audioCall.vue 3 ●●●● patch | view | raw | blame | history
applications/drone-command/src/views/basicManage/deviceStock/FormDiaLog.vue 15 ●●●● patch | view | raw | blame | history
applications/mobile-web-view/src/appPages/voiceCallDetail/index.vue 3 ●●●● patch | view | raw | blame | history
applications/task-work-order/src/views/orderView/orderManage/inspectionReport/index.vue 13 ●●●● patch | view | raw | blame | history
applications/drone-command/src/views/audioCall.vue
@@ -36,7 +36,8 @@
import { ref, computed, onBeforeUnmount } from 'vue'
/** ✅ 你的 WS 地址前缀(后面拼 userId) */
const WS_BASE = 'ws://218.202.104.82:38201/ws/chat'
// const WS_BASE = 'ws://218.202.104.82:38201/ws/chat'
const WS_BASE = 'ws://220.177.172.27:8100/yisuanzhijian/system/ws/chat'
const uid = ref('2021474568497131521')
const peerUid = ref('2021474815063486465')
applications/drone-command/src/views/basicManage/deviceStock/FormDiaLog.vue
@@ -150,19 +150,20 @@
                    </el-form-item>
                </el-col>
                <el-col :span="12">
                    <el-form-item label="使用日期" prop="serviceLife">
                    <el-form-item label="使用日期" prop="useDate">
                        <el-date-picker class="command-date-picker" popper-class="command-date-picker-popper"
                            v-model="formData.serviceLife"
                            v-model="formData.useDate"
                            type="date"
                            placeholder="选择日期"
                            value-format="YYYY-MM-DD HH:mm:ss"
                            value-format="YYYY-MM-DD"
                            clearable
                        />
                    </el-form-item>
                </el-col>
                <el-col :span="12">
                    <el-form-item label="使用年限" prop="useDate">
                        <el-input type="number" class="command-input" v-model="formData.useDate" maxlength="50" placeholder="请输入" clearable />
                    <el-form-item label="使用年限" prop="serviceLife">
                        <!-- <el-input type="number" class="command-input" v-model="formData.useDate" maxlength="50" placeholder="请输入" clearable /> -->
                         <el-input-number class="command-input" v-model="formData.serviceLife" :min="0" :max="100" :controls="false" placeholder="请输入" />
                    </el-form-item>
                </el-col>
                <el-col :span="12">
@@ -262,8 +263,8 @@
    belongDept: fieldRules(true),
    contactPhone: contactPhoneRules(true, 50),
    charger: fieldRules(true),
    serviceLife: fieldRules(true, 50),
    useDate: fieldRules(true, 50),
    serviceLife: fieldRules(true),
    useDate: fieldRules(true),
}
const userList = ref([])
applications/mobile-web-view/src/appPages/voiceCallDetail/index.vue
@@ -43,7 +43,8 @@
const route = useRoute()
/** ✅ 你的 WS 地址前缀(后面拼 userId) */
// const WS_BASE = 'ws://218.202.104.82:38201/ws/chat?userId='
const WS_BASE = 'ws://218.202.104.82:38201/ws/chat'
// const WS_BASE = 'ws://218.202.104.82:38201/ws/chat'
const WS_BASE = 'ws://220.177.172.27:8100/yisuanzhijian/system/ws/chat'
const newUserInfo = ref(null)
const uid = ref('')
const peerUid = ref('')
applications/task-work-order/src/views/orderView/orderManage/inspectionReport/index.vue
@@ -269,14 +269,23 @@
];
const { VITE_APP_PREVIEW_URL } = import.meta.env
// kkfileView 中,word/pdf 默认转成只读 pdf 预览,excel 才是可编辑的 html 模式。
// 对这些类型追加 officePreviewType=html,让其以可编辑的 html 方式打开
const editableOfficeTypes = ['doc', 'docx', 'pdf']
// 在线查看文档
function seeOnlineWord(row) {
    // 获取点之后的文件格式名
    const fileType = row?.link?.split('.').pop() || ''
    const fileType = (row?.link?.split('.').pop() || '').toLowerCase()
    if (!row.link) {
        ElMessage.warning('文件链接不存在')
    } else if (allSupportedExtensions.includes(fileType)){
        window.open(`${VITE_APP_PREVIEW_URL}/onlinePreview?url=`+encodeURIComponent(Base64.encode(row.link)));
        let url = `${VITE_APP_PREVIEW_URL}/onlinePreview?url=` + encodeURIComponent(Base64.encode(row.link))
        // word/pdf 以可编辑的 html 模式打开(与 excel 一致)
        if (editableOfficeTypes.includes(fileType)) {
            url += '&officePreviewType=html'
        }
        window.open(url)
    } else {
        ElMessage.warning(`${fileType}文件格式,可以下载再查看`)
    }