diff --git a/src/api/xj/warnSetup.js b/src/api/xj/warnSetup.js new file mode 100644 index 0000000..9a5a0bc --- /dev/null +++ b/src/api/xj/warnSetup.js @@ -0,0 +1,20 @@ +/* + * @Author: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git + * @Date: 2024-10-08 09:26:24 + * @LastEditors: SunTao 328867980@qq.com + * @LastEditTime: 2024-11-05 13:54:44 + * @FilePath: \znxjxt-ui\src\api\xj\disease.js + * @Description: 巡检信息-预警设置 + */ +import request from "@/utils/request"; + +// 查询列表病害类型 +export function getDefectList(params) { + return request({ + // 病害类型下拉 + // url: "/metadata/defectType", + url: "/bigscreen/v2/getDefectTypesDrowDown", + method: "get", + params, + }); +} diff --git a/src/views/big-screen/disease-components/traffic-log.vue b/src/views/big-screen/disease-components/traffic-log.vue index a894963..4c372ab 100644 --- a/src/views/big-screen/disease-components/traffic-log.vue +++ b/src/views/big-screen/disease-components/traffic-log.vue @@ -74,9 +74,9 @@ --> - + + + + + + diff --git a/src/views/xj/inspection-warn/warning-setup/index.vue b/src/views/xj/inspection-warn/warning-setup/index.vue new file mode 100644 index 0000000..dc92ffd --- /dev/null +++ b/src/views/xj/inspection-warn/warning-setup/index.vue @@ -0,0 +1,367 @@ + + + + + + diff --git a/src/views/xj/inspection/road-management/index.vue b/src/views/xj/inspection/road-management/index.vue index 47e1d3c..ab9c464 100644 --- a/src/views/xj/inspection/road-management/index.vue +++ b/src/views/xj/inspection/road-management/index.vue @@ -468,7 +468,11 @@ export default { this.getTaskSelectList(); }, methods: { - /* 获取道路名称下拉数据 */ + /** + * @description: 获取道路名称下拉数据 + * @param {*} + * @return {*} + */ getSegmentList() { getSegment().then(({ code, data }) => { if (code === 200) { @@ -476,8 +480,12 @@ export default { } }); }, - - /* 获取路产类型下拉数据 */ + + /** + * @description: 获取路产类型下拉数据 + * @param {*} + * @return {*} + */ getRoadTypeList() { getRoadType().then(({ code, data }) => { if (code === 200) { @@ -486,7 +494,11 @@ export default { }); }, - /* 路产状态下拉数据 */ + /** + * @description: 获取路产状态下拉数据 + * @param {*} + * @return {*} + */ getDefectStatusList() { getDefectStatus().then(({ data, code }) => { if (code === 200) { @@ -495,7 +507,11 @@ export default { }); }, - /* 获取巡检任务下拉数据 */ + /** + * @description: 获取巡检任务下拉数据 + * @param {*} + * @return {*} + */ getTaskSelectList() { getTaskList().then(({ data, code }) => { if (code === 200) { @@ -504,7 +520,11 @@ export default { }); }, - /* 点击搜索事件 */ + /** + * @description: 点击搜索事件 + * @param {*} + * @return {*} + */ handleQuery() { const phonereg = /^K\d{4}\+\d{3}$/; if (this.queryParams.stakeStart) { @@ -530,7 +550,11 @@ export default { } }, - /* 点击重置事件 */ + /** + * @description: 点击重置事件 + * @param {*} + * @return {*} + */ resetQuery() { this.searchForm = {}; this.queryParams = { @@ -548,7 +572,11 @@ export default { this.getRoadList(); }, - /* 获取列表数据 */ + /** + * @description: 获取列表数据 + * @param {*} + * @return {*} + */ getRoadList() { const params = { ...this.pagination, @@ -564,7 +592,11 @@ export default { }); }, - /* 过滤列表路产类型 */ + /** + * @description: 过滤列表路产类型 + * @param {*} value + * @return {*} + */ filterDefect(value) { let a = null; [a] = this.roadType.filter((item) => { @@ -575,7 +607,11 @@ export default { } }, - /* 过滤路产状态 */ + /** + * @description: 过滤路产状态 + * @param {*} value + * @return {*} + */ filterState(value) { let a = null; [a] = this.defectStatus.filter((item) => { @@ -586,7 +622,11 @@ export default { } }, - /* 点击新增事件 */ + /** + * @description: 点击新增事件 + * @param {*} + * @return {*} + */ handleAdd() { this.addVisible = true; this.addTitle = "添加路产"; @@ -595,7 +635,11 @@ export default { }; }, - /* 点击删除事件 */ + /** + * @description: 点击删除事件 + * @param {*} row + * @return {*} + */ handleDelete(row) { const checkIds = row ? [row.id] : this.checkIds; if (!checkIds.length) { @@ -615,10 +659,18 @@ export default { .catch(() => {}); }, - /* 点击导出事件 */ + /** + * @description: 点击导出事件 + * @param {*} + * @return {*} + */ handleExport() {}, - /* 批量确认事件 */ + /** + * @description: 批量确认事件 + * @param {*} + * @return {*} + */ handleUpdateBatch() { if (this.checkIds.length > 0) { changeRoad(this.checkIds).then(({ code, data }) => { @@ -633,14 +685,22 @@ export default { } }, - /* 列表选择改变事件 */ + /** + * @description: 列表选择改变事件 + * @param {*} selection + * @return {*} + */ handleSelectionChange(selection) { this.checkIds = selection.map((item) => item.id); this.single = selection.length !== 1; this.multiple = !selection.length; }, - /* 列表-点击修改事件 */ + /** + * @description: 列表-点击修改事件 + * @param {*} item + * @return {*} + */ handleUpdate(item) { this.addVisible = true; this.addTitle = "修改路产"; @@ -650,7 +710,11 @@ export default { }; }, - /* 列表-点击查看事件 */ + /** + * @description: 列表-点击查看事件 + * @param {*} item + * @return {*} + */ viewDefect(item) { this.viewVisible = true; this.dialogItem = { @@ -659,19 +723,31 @@ export default { }; }, - /* 切换分页 */ + /** + * @description: 切换分页 + * @param {*} arg + * @return {*} + */ handleCurrentChange(arg) { this.pagination.page = arg; this.getRoadList(); }, - /* 切换每条/页 */ + /** + * @description: 切换每条/页 + * @param {*} arg + * @return {*} + */ handleSizeChange(arg) { this.pagination.size = arg; this.getRoadList(); }, - /* 关闭新增/编辑弹窗 */ + /** + * @description: 关闭新增/编辑弹窗 + * @param {*} + * @return {*} + */ addCancel() { this.addVisible = false; this.dialogItem = { title: "添加路产" }; @@ -679,19 +755,31 @@ export default { this.getRoadList(); }, - /* 关闭查看弹窗 */ + /** + * @description: 关闭查看弹窗 + * @param {*} + * @return {*} + */ viewCancel() { this.viewVisible = false; this.dialogItem = { title: "添加路产" }; }, - /* 打开查看图片弹窗 */ + /** + * @description: 打开查看图片弹窗 + * @param {*} item + * @return {*} + */ showScreenImg(item) { this.currentImageItem = item; this.showImageDialog = true; }, - /* 图片位置信息获取 */ + /** + * @description: 图片位置信息获取 + * @param {*} + * @return {*} + */ updateRects() { this.rects = []; this.rectsItem = {}; @@ -708,7 +796,11 @@ export default { // this.rectsItem = this.defectData[this.currentIndex]; }, - /* 图片红框位置 */ + /** + * @description: 图片红框位置 + * @param {*} { left, top, width, height } + * @return {*} + */ getRectStyle({ left, top, width, height }) { const image = this.$refs.mainImage; const container = this.$refs.imageContainer; @@ -735,7 +827,11 @@ export default { }; }, - /* 关闭查看图片弹窗 */ + /** + * @description: 关闭查看图片弹窗 + * @param {*} + * @return {*} + */ imgCancel() { this.showImageDialog = false; this.currentImageItem = {};