Browse Source

报表数据映射修改-提交

lxh 8 months ago
parent
commit
e11cef788d

+ 3 - 1
src/views/vent/performance/fileDetail/index.vue

@@ -56,7 +56,7 @@
           </a-select>
           <a-button type="primary" preIcon="ant-design:search-outlined" @click="onSearch"
             :disabled="activeKey != '1'">查询</a-button>
-          <a-button type="primary" style="float: right;" @click="reportSum">汇总报表</a-button>
+          <a-button type="primary" style="float: right;" @click="reportSum" v-if="sysOrgCode=='sdmtjtgsd'">汇总报表</a-button>
           <a-button type="primary" style="float: right; margin-right: 20px" @click="openModal(true)">文件上传</a-button>
         </div>
         <div class="list">
@@ -126,7 +126,9 @@ import { SvgIcon } from '/@/components/Icon';
 import { ref, onMounted, reactive, nextTick, watch,onUnmounted } from 'vue';
 import { columns } from './fileDetail.data';
 import { getTree, createFile, editMenu, delMenu, uploadApi, downLoad, deleteById, listData, getNowUserAgencyData,sumVentReport, queryVentMonReportJd, zipdownload } from './fileDetail.api';
+import { useGlobSetting } from '/@/hooks/setting';
 
+const { sysOrgCode } = useGlobSetting();
 let visiblehHz = ref(false)
 let reportHzList = ref<any[]>([])
 let timer: null | NodeJS.Timeout = null;

+ 6 - 0
src/views/vent/reportManager/comment/reportMap.vue

@@ -135,6 +135,12 @@ function pageChange(val) {
 async function queryDepartTreeSyncList() {
     let res = await queryTreeList()
     console.log(res, '部门编号列表--------')
+    res.forEach(el=>{
+        el.value=el.orgCode
+        el.children.forEach(v=>{
+            v.value=v.orgCode
+        })
+    })
     sysOrgCodeList = res || []
 }