From 56a6c8683611bac39db65d178e66b7b7e81efe0a Mon Sep 17 00:00:00 2001 From: kun <1422840143@qq.com> Date: Wed, 5 Jul 2023 15:08:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20BUG=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/modules/huizhou.ts | 16 +- .../components/RigthBottRigthView.vue | 26 +- .../panoramicPlan/index.scss | 2 + .../panoramicPlan/index.vue | 322 ++++++++++++------ .../components/auditDialog.vue | 171 ++++++++++ .../projectApproval/index.scss | 50 +++ .../projectApproval/index.vue | 122 ++++++- .../globalPlanManagement/index.vue | 62 +++- 8 files changed, 639 insertions(+), 132 deletions(-) create mode 100644 src/views/goverment/huizhou/projectMonitoring/projectApproval/components/auditDialog.vue create mode 100644 src/views/goverment/huizhou/projectMonitoring/projectApproval/index.scss diff --git a/src/api/modules/huizhou.ts b/src/api/modules/huizhou.ts index f2270fe..dad882f 100644 --- a/src/api/modules/huizhou.ts +++ b/src/api/modules/huizhou.ts @@ -81,7 +81,7 @@ export const subGovermentItemDetailList = (params: any) => { return http.post(BASEURL + `/gov/investmentPaymentDetail/list`, params); }; -// 全景计划------------ +// 全景计划(项目端)------------ // 全景计划分页列表 export const globalPlanList = (params: any) => { return http.post(BASEURL + `/project/projectNodePlan/page`, params); @@ -94,3 +94,17 @@ export const globalPlanAdd = (params: any) => { export const globalPlanEdit = (params: any) => { return http.post(BASEURL + `/project/projectNodePlan/edit`, params); }; + +// 全景计划(政务端)------------ +// 全景计划分页列表 +export const globalPlanGovermentList = (params: any) => { + return http.post(BASEURL + `/gov/projectNodePlan/page`, params); +}; +// 全景计划项目分页列表 +export const globalPlanProList = (params: any) => { + return http.post(BASEURL + `/gov/projectNodePlan/projectPage`, params); +}; +// 全景计划工程分页列表 +export const globalPlanEngList = (params: any) => { + return http.post(BASEURL + `/gov/projectNodePlan/engineeringPage`, params); +}; diff --git a/src/views/goverment/huizhou/largeScreen/largeScreenTwo/components/RigthBottRigthView.vue b/src/views/goverment/huizhou/largeScreen/largeScreenTwo/components/RigthBottRigthView.vue index 0266e2e..8a42da2 100644 --- a/src/views/goverment/huizhou/largeScreen/largeScreenTwo/components/RigthBottRigthView.vue +++ b/src/views/goverment/huizhou/largeScreen/largeScreenTwo/components/RigthBottRigthView.vue @@ -24,7 +24,15 @@
状态
- +
{{ item.create_time }}
{{ item.type }}
@@ -78,10 +86,24 @@ const getEnvironmentAlarmStatFn = async () => { }); }; // 获取报警列表 -const list = ref([{ time: "" }]); +const list = ref([]); const getEnvironmentAlarmFn = async () => { const res = await getEnvironmentAlarm(); list.value = res.result; + // if (res.result.length > 0) { + // } else { + // list.value = [ + // { create_time: "2022-01-01", type: "污染", cause: "泄露", state: 1 }, + // { create_time: "2022-02-02", type: "污染", cause: "泄露", state: 1 }, + // { create_time: "2022-03-03", type: "污染", cause: "泄露", state: 1 }, + // { create_time: "2022-04-04", type: "污染", cause: "泄露", state: 1 }, + // { create_time: "2022-05-05", type: "污染", cause: "泄露", state: 1 }, + // { create_time: "2022-06-06", type: "污染", cause: "泄露", state: 1 }, + // { create_time: "2022-07-07", type: "污染", cause: "泄露", state: 1 }, + // { create_time: "2022-08-08", type: "污染", cause: "泄露", state: 1 } + // ]; + // } + console.log(list.value); }; const rigthBottRigth = ref(); diff --git a/src/views/goverment/huizhou/progressManagement/panoramicPlan/index.scss b/src/views/goverment/huizhou/progressManagement/panoramicPlan/index.scss index 212146a..996182d 100644 --- a/src/views/goverment/huizhou/progressManagement/panoramicPlan/index.scss +++ b/src/views/goverment/huizhou/progressManagement/panoramicPlan/index.scss @@ -4,6 +4,7 @@ width: 100%; height: 100%; .leftMenu { + width: 300px; // width: 290px; // 页面的项目工程 :deep(.item) { @@ -55,6 +56,7 @@ } } .table-box { + width: calc(100% - 320px); height: 100%; .table { margin-left: 20px; diff --git a/src/views/goverment/huizhou/progressManagement/panoramicPlan/index.vue b/src/views/goverment/huizhou/progressManagement/panoramicPlan/index.vue index a26f8fe..f7f33c5 100644 --- a/src/views/goverment/huizhou/progressManagement/panoramicPlan/index.vue +++ b/src/views/goverment/huizhou/progressManagement/panoramicPlan/index.vue @@ -16,8 +16,8 @@ }}
- - 影像视频树:{{ data.deviceNum }} + + {{ data.projectAddress || data.address }}
@@ -35,14 +35,12 @@ :pagination="true" background :isShowSearch="false" + :onReset="true" > - - @@ -71,64 +75,76 @@ const formConfig = { { label: "节点编码", prop: "nodeNumber", - type: "input" + type: "input", + disabled: false }, { label: "节点名称", prop: "nodeName", - type: "input" + type: "input", + disabled: false }, { label: "节点类型", prop: "type", - type: "input" + type: "input", + disabled: false }, { label: "标准完成时间", prop: "standardCompleteTime", - type: "date" + type: "date", + disabled: false }, { label: "计划完成时间", prop: "planCompleteTime", - type: "date" + type: "date", + disabled: false }, { label: "预计完成时间", prop: "expectCompleteTime", - type: "date" + type: "date", + disabled: false }, { label: "实际完成时间", prop: "realCompleteTime", - type: "date" + type: "date", + disabled: false }, { label: "状态", prop: "state", type: "select", data: [], - clearable: true + clearable: true, + disabled: false }, { label: "实际偏差", prop: "actualDeviation", - type: "input" + type: "input", + disabled: false }, { label: "职能线条", prop: "phaseName", - type: "input" + type: "input", + disabled: false }, { label: "节点负责人编号", prop: "chargerNumber", - type: "input" + type: "input", + disabled: false }, { label: "节点负责人", prop: "chargerName", - type: "input" + type: "input", + disabled: false } ], rules: { @@ -295,7 +311,7 @@ const columns: ColumnProps[] = [ return scoped.row.isSendBack == 1 ? "是" : "否"; } }, - { prop: "operation", label: "操作", fixed: "right" } + { prop: "operation", label: "操作", width: 200, fixed: "right" } ]; const getDicMainList = async () => { // 获取学历字典 @@ -316,12 +332,12 @@ const getDicMainList = async () => { }; // 新增,编辑数据 const saveItem = async (form: any) => { - if (form.id) { + if (form.id && newTitle.value != "查看") { // console.log(form.dictCode); const res = await globalPlanEdit(form); proTable.value.getTableList(); ElMessage.success("编辑成功"); - } else { + } else if (newTitle.value != "查看" && !form.id) { const res = await globalPlanAdd(form); ElMessage.success("新增成功"); proTable.value.getTableList(); @@ -408,6 +424,9 @@ const handleAddItem = () => { }); newTitle.value = "新增"; // fileList.value = reactive([]); + formConfig.formItemConfig.map(item => { + item.disabled = false; + }); visible.value = true; }; @@ -416,6 +435,19 @@ const handleEditItem = async (row: any) => { console.log(row); formData.value = reactive({ ...row }); newTitle.value = "编辑"; + formConfig.formItemConfig.map(item => { + item.disabled = false; + }); + visible.value = true; +}; +// 查看数据按钮 +const handleItemDetail = async (row: any) => { + console.log(row); + formData.value = reactive({ ...row }); + formConfig.formItemConfig.map(item => { + item.disabled = true; + }); + newTitle.value = "查看"; visible.value = true; }; onMounted(() => {