diff --git a/src/api/longoPeration/inspectiontasks.js b/src/api/longoPeration/inspectiontasks.js index 372ebb6..e837d13 100644 --- a/src/api/longoPeration/inspectiontasks.js +++ b/src/api/longoPeration/inspectiontasks.js @@ -25,19 +25,10 @@ }); } -// // 修改排水防涝--市主干道积水点信息 -// export function waterloggedRoadedit(data) { -// return request({ -// url: '/business/waterloggedRoad/edit', -// method: 'put', -// data: data, -// }); -// } - -// // 删除排水防涝--防汛物资 -// export function waterloggedRoaddelete(id) { -// return request({ -// url: '/business/waterloggedRoad/' + id, -// method: 'delete', -// }); -// } +export function patrolProblempage(query) { + return request({ + url: '/business/patrolProblem/page', + method: 'get', + params: query, + }); +} diff --git a/src/api/longoPeration/inspectiontasks.js b/src/api/longoPeration/inspectiontasks.js index 372ebb6..e837d13 100644 --- a/src/api/longoPeration/inspectiontasks.js +++ b/src/api/longoPeration/inspectiontasks.js @@ -25,19 +25,10 @@ }); } -// // 修改排水防涝--市主干道积水点信息 -// export function waterloggedRoadedit(data) { -// return request({ -// url: '/business/waterloggedRoad/edit', -// method: 'put', -// data: data, -// }); -// } - -// // 删除排水防涝--防汛物资 -// export function waterloggedRoaddelete(id) { -// return request({ -// url: '/business/waterloggedRoad/' + id, -// method: 'delete', -// }); -// } +export function patrolProblempage(query) { + return request({ + url: '/business/patrolProblem/page', + method: 'get', + params: query, + }); +} diff --git a/src/components/WangEditor/index.vue b/src/components/WangEditor/index.vue index d59f2b7..271ac3e 100644 --- a/src/components/WangEditor/index.vue +++ b/src/components/WangEditor/index.vue @@ -16,6 +16,7 @@ import '@wangeditor/editor/dist/css/style.css'; // 引入 css import { Editor, Toolbar } from '@wangeditor/editor-for-vue'; import { sysUpload } from '@/api/login.js'; +import bus from '@/utils/mitt'; const props = defineProps({ modelValue: [String], @@ -93,7 +94,12 @@ { immediate: true, deep: true } ); // 模拟 ajax 异步获取内容 -onMounted(() => {}); +onMounted(() => { + bus.on('changeEdit', i => { + if (!i) editorRef.value.disable(); + else editorRef.value.enable(); + }); +}); // 组件销毁时,也及时销毁编辑器 onBeforeUnmount(() => { const editor = editorRef.value; diff --git a/src/api/longoPeration/inspectiontasks.js b/src/api/longoPeration/inspectiontasks.js index 372ebb6..e837d13 100644 --- a/src/api/longoPeration/inspectiontasks.js +++ b/src/api/longoPeration/inspectiontasks.js @@ -25,19 +25,10 @@ }); } -// // 修改排水防涝--市主干道积水点信息 -// export function waterloggedRoadedit(data) { -// return request({ -// url: '/business/waterloggedRoad/edit', -// method: 'put', -// data: data, -// }); -// } - -// // 删除排水防涝--防汛物资 -// export function waterloggedRoaddelete(id) { -// return request({ -// url: '/business/waterloggedRoad/' + id, -// method: 'delete', -// }); -// } +export function patrolProblempage(query) { + return request({ + url: '/business/patrolProblem/page', + method: 'get', + params: query, + }); +} diff --git a/src/components/WangEditor/index.vue b/src/components/WangEditor/index.vue index d59f2b7..271ac3e 100644 --- a/src/components/WangEditor/index.vue +++ b/src/components/WangEditor/index.vue @@ -16,6 +16,7 @@ import '@wangeditor/editor/dist/css/style.css'; // 引入 css import { Editor, Toolbar } from '@wangeditor/editor-for-vue'; import { sysUpload } from '@/api/login.js'; +import bus from '@/utils/mitt'; const props = defineProps({ modelValue: [String], @@ -93,7 +94,12 @@ { immediate: true, deep: true } ); // 模拟 ajax 异步获取内容 -onMounted(() => {}); +onMounted(() => { + bus.on('changeEdit', i => { + if (!i) editorRef.value.disable(); + else editorRef.value.enable(); + }); +}); // 组件销毁时,也及时销毁编辑器 onBeforeUnmount(() => { const editor = editorRef.value; diff --git a/src/views/login.vue b/src/views/login.vue index 9ce6025..c709514 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -275,7 +275,7 @@ background: url('@/assets/images/login/inputUser2.png') no-repeat; background-size: 100% 100%; position: relative; - left: 3px; + left: 0px; top: -2px; } .pass { @@ -284,7 +284,7 @@ background: url('@/assets/images/login/inputPass1.png') no-repeat; background-size: 100% 100%; position: relative; - left: 3px; + left: 0px; top: -2px; } } diff --git a/src/api/longoPeration/inspectiontasks.js b/src/api/longoPeration/inspectiontasks.js index 372ebb6..e837d13 100644 --- a/src/api/longoPeration/inspectiontasks.js +++ b/src/api/longoPeration/inspectiontasks.js @@ -25,19 +25,10 @@ }); } -// // 修改排水防涝--市主干道积水点信息 -// export function waterloggedRoadedit(data) { -// return request({ -// url: '/business/waterloggedRoad/edit', -// method: 'put', -// data: data, -// }); -// } - -// // 删除排水防涝--防汛物资 -// export function waterloggedRoaddelete(id) { -// return request({ -// url: '/business/waterloggedRoad/' + id, -// method: 'delete', -// }); -// } +export function patrolProblempage(query) { + return request({ + url: '/business/patrolProblem/page', + method: 'get', + params: query, + }); +} diff --git a/src/components/WangEditor/index.vue b/src/components/WangEditor/index.vue index d59f2b7..271ac3e 100644 --- a/src/components/WangEditor/index.vue +++ b/src/components/WangEditor/index.vue @@ -16,6 +16,7 @@ import '@wangeditor/editor/dist/css/style.css'; // 引入 css import { Editor, Toolbar } from '@wangeditor/editor-for-vue'; import { sysUpload } from '@/api/login.js'; +import bus from '@/utils/mitt'; const props = defineProps({ modelValue: [String], @@ -93,7 +94,12 @@ { immediate: true, deep: true } ); // 模拟 ajax 异步获取内容 -onMounted(() => {}); +onMounted(() => { + bus.on('changeEdit', i => { + if (!i) editorRef.value.disable(); + else editorRef.value.enable(); + }); +}); // 组件销毁时,也及时销毁编辑器 onBeforeUnmount(() => { const editor = editorRef.value; diff --git a/src/views/login.vue b/src/views/login.vue index 9ce6025..c709514 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -275,7 +275,7 @@ background: url('@/assets/images/login/inputUser2.png') no-repeat; background-size: 100% 100%; position: relative; - left: 3px; + left: 0px; top: -2px; } .pass { @@ -284,7 +284,7 @@ background: url('@/assets/images/login/inputPass1.png') no-repeat; background-size: 100% 100%; position: relative; - left: 3px; + left: 0px; top: -2px; } } diff --git a/src/views/longoPeration/Patrolmanagement/inspectiontasks.vue b/src/views/longoPeration/Patrolmanagement/inspectiontasks.vue index 6a78290..dbd882b 100644 --- a/src/views/longoPeration/Patrolmanagement/inspectiontasks.vue +++ b/src/views/longoPeration/Patrolmanagement/inspectiontasks.vue @@ -2,7 +2,7 @@
- + @@ -10,10 +10,11 @@ - + +
- + @@ -54,8 +56,8 @@ - - + + - - + + - - + + - - + +