husq
2023-09-23 cdf1527ad601d5c9d9b2e82cf12c7f799bd7834e
修改订阅和取消订阅名字
3 files modified
10 ■■■■ changed files
src/api/manage.ts 2 ●●● patch | view | raw | blame | history
src/components/common/sidebar.vue 4 ●●●● patch | view | raw | blame | history
src/pages/page-web/projects/task.vue 4 ●●●● patch | view | raw | blame | history
src/api/manage.ts
@@ -153,7 +153,7 @@
  const result = await request.delete(url)
  return result.data
}
export const testUnBind = async function (device_sn: string): Promise<IWorkspaceResponse<any>> {
export const UnBind = async function (device_sn: string): Promise<IWorkspaceResponse<any>> {
  const url = `${HTTP_PREFIX}/devices/${device_sn}/unsubscribeTopic`
  const result = await request.get(url)
  return result.data
src/components/common/sidebar.vue
@@ -28,7 +28,7 @@
import { getRoot } from '/@/root'
import * as icons from '@ant-design/icons-vue'
import { ERouterName } from '/@/types'
import { testUnBind } from '/@/api/manage'
import { UnBind } from '/@/api/manage'
import { useMyStore } from '/@/store'
interface IOptions {
  key: number
@@ -73,7 +73,7 @@
    async function goBack () {
      const query = toRefs(osdVisible.value)
      snList.value.forEach(async (v: string) => {
        await testUnBind(v)
        await UnBind(v)
      })
      store.commit('SET_OSD_VISIBLE_INFO', { ...query, visible: false })
      root.$router.push('/' + ERouterName.PROJECT_LIST)
src/pages/page-web/projects/task.vue
@@ -169,7 +169,7 @@
                            <div :class="hmsInfo[dock.sn][0].level === EHmsLevel.CAUTION ? 'caution' :
                            hmsInfo[dock.sn][0].level === EHmsLevel.WARN ? 'warn' : 'notice'"
                                 style="margin-left: 3px; width: 62px; height: 16px;">
                              <span class="word-loop">{{ hmsInfo[dock.sn][0].message_en }}</span>
                              <span class="word-loop">{{ hmsInfo[dock.sn][0].message_zh }}</span>
                            </div>
                            <template #content>
                              <a-collapse style="background: black; height: 300px; overflow-y: auto;" :bordered="false"
@@ -180,7 +180,7 @@
                                  <template #header="{ isActive }">
                                    <div class="flex-row flex-align-center" style="width: 130px;">
                                      <div style="width: 110px;">
                                        <span class="word-loop">{{ hms.message_en }}</span>
                                        <span class="word-loop">{{ hms.message_zh }}</span>
                                      </div>
                                      <div style="width: 20px; height: 15px; font-size: 10px; z-index: 2 "
                                           class="flex-row flex-align-center flex-justify-center"