瀏覽代碼

api添加

master
wwp 2 月之前
父節點
當前提交
07826d6bfb
共有 3 個文件被更改,包括 53 次插入3 次删除
  1. +25
    -0
      monitorMobile/api/monitor/index.js
  2. +25
    -0
      monitorMobile/api/warn/index.js
  3. +3
    -3
      monitorMobile/pages/earlyWarning/components/warningInfo.vue

+ 25
- 0
monitorMobile/api/monitor/index.js 查看文件

@@ -0,0 +1,25 @@
import http from '@/http/api.js'
// 获取监控分组
export const groupList = (params) => {
return http.request({
url: '/api/business/cameraGroup/getNoPageList',
method: 'get',
params
})
}
// 获取监控列表
export const list = (params) => {
return http.request({
url: '/api/business/cameraInfo/getPageList',
method: 'get',
params
})
}
// 停止视频流获取
export const stopUrl = (params) => {
return http.request({
url: '/api/business/deviceApi/getStopVideoLive',
method: 'get',
params
})
}

+ 25
- 0
monitorMobile/api/warn/index.js 查看文件

@@ -0,0 +1,25 @@
import http from '@/http/api.js'
// 获取预警列表
export const page = (params) => {
return http.request({
url: '/api/business/warn/getList',
method: 'get',
params
})
}
// 获取预警详情
export const detail = (params) => {
return http.request({
url: '/api/business/warn/getInfo',
method: 'get',
params
})
}
// 获取预警类型
export const warnType = (params) => {
return http.request({
url: '/api/business/warn/getAlarmType',
method: 'get',
params
})
}

+ 3
- 3
monitorMobile/pages/earlyWarning/components/warningInfo.vue 查看文件

@@ -174,10 +174,10 @@
<u-loadmore :status="status" />
</u-list>
</view>
<selectSearch ref="selectSearchBox" :cellVisible="false" :v-model="searchForm.alarmType"
<selectSearch ref="selectSearchBox" :cellVisible="false" v-model="searchForm.alarmType"
:options="warnOption" :title.sync="searchForm.$alarmType" placeholder="预警类型" search-placeholder="预警类型" />
<selectRadio ref="selectRadioBox" :cellVisible="false" :value.sync="searchForm.warnHand"
:options="handOption" title="处理状态" />
<selectRadio ref="selectRadioBox" :cellVisible="false" v-model="searchForm.warnHand"
:options="handOption" placeholder="处理状态" />
</view>
</template>



Loading…
取消
儲存