scorpio 2 years ago
parent
commit
8e58447890

+ 30 - 25
src/views/invest/components/left.vue

@@ -2,40 +2,39 @@
   <div>
     <div class="flex flex-col flex-center full-height">
       <span class="font-16 grey-6 bold">年度资金管理</span>
-      <div v-if="user.info.viewStage === 1">
+      <div v-if="user.info.viewStage === 1 && dataType !== 'project'">
         <base-button
-            class="mt-20"
-            title="全县投资情况"
-            icon=""
-            :type="active === -1 ? '1' : '2'"
-            @click="viewAll"
+          class="mt-20"
+          title="全县投资情况"
+          icon=""
+          :type="active === -1 ? '1' : '2'"
+          @click="viewAll"
         />
         <el-link
-            type="primary"
-            class="mt-20 pointer"
-            @click="
+          type="primary"
+          class="mt-20 pointer"
+          @click="
             download(
               'https://wutong-1302848345.cos.ap-chengdu.myqcloud.com/wtzx/0c8500447e3947cab5a1353b891db963.docx'
             )
           "
-        >智能监测预警分析报告
-        </el-link
-        >
+          >智能监测预警分析报告
+        </el-link>
       </div>
       <div v-else style="height: 55px"></div>
       <div class="full-width flex flex-center mt-20">
         <el-tabs v-model="activeName" class="font-16" @tab-change="getOrg">
-          <el-tab-pane label="部门" name="1"/>
-          <el-tab-pane label="乡镇" name="2" v-if="user.info.viewStage === 1"/>
+          <el-tab-pane label="部门" name="1" />
+          <el-tab-pane label="乡镇" name="2" v-if="user.info.viewStage === 1" />
         </el-tabs>
       </div>
       <div class="content hide-scrollbar">
         <div
-            v-for="(i, index) in deptList"
-            class="item white bold font-16"
-            :key="i.id"
-            :class="active === index ? 'item-select white' : ''"
-            @click="change(index)"
+          v-for="(i, index) in deptList"
+          class="item white bold font-16"
+          :key="i.id"
+          :class="active === index ? 'item-select white' : ''"
+          @click="change(index)"
         >
           {{ i.deptName }}
         </div>
@@ -46,14 +45,15 @@
 
 <script>
 import baseButton from '@/components/base-button.vue'
-import {useStore} from '@/store/user.js'
+import { useStore } from '@/store/user.js'
+import config from '@/config/website.js'
 
 export default {
   name: 'left',
-  components: {baseButton},
+  components: { baseButton },
   setup() {
     const user = useStore()
-    return {user}
+    return { user }
   },
   props: {
     hasChildren: {
@@ -63,17 +63,22 @@ export default {
   },
   data() {
     return {
+      dataType: 'project',
       activeName: '1',
       deptList: [],
       active: -1
     }
   },
   created() {
+    const tmp = localStorage.getItem('data-type')
+    if (tmp) {
+      this.dataType = tmp
+    }
     this.getOrg()
   },
   methods: {
     getOrg() {
-      this.$api.common.deptList({type: this.activeName}).then(res => {
+      this.$api.common.deptList({ type: this.activeName }).then(res => {
         if (res.code === 200) {
           this.deptList = res.data.map(e => {
             e.checked = false
@@ -106,8 +111,8 @@ export default {
     },
     download(url) {
       window.open(
-          url,
-          '_blank' // <- This is what makes it open in a new window.
+        url,
+        '_blank' // <- This is what makes it open in a new window.
       )
     }
   }

+ 1 - 1
src/views/invest/components/years.vue

@@ -163,7 +163,7 @@ export default {
         {
           icon: new URL('../../../assets/svg/invest/4.svg', import.meta.url)
             .href,
-          name: '计纳统投资',
+          name: '计纳统投资',
           value: 0,
           prop: 'total_investment_amount',
           box: '0 1px 10px 0 rgba(119, 94, 241, 0.3)',

+ 5 - 16
src/views/store/component/info3.vue

@@ -124,7 +124,7 @@
 <script>
 import api from '@/api/index.js'
 import { ElMessageBox } from 'element-plus'
-
+import subInfo from '@/views/store/component/subInfo.vue'
 export default {
   props: {
     info: {
@@ -132,6 +132,7 @@ export default {
       default: null
     }
   },
+  components: { subInfo },
   data() {
     return {
       pid: '',
@@ -195,19 +196,8 @@ export default {
             type: 'input'
           },
           {
-            label: '上传情况',
-            prop: 'isUploaded',
-            type: 'select',
-            dicData: [
-              {
-                label: '未上传',
-                value: 0
-              },
-              {
-                label: '已上传',
-                value: 1
-              }
-            ]
+            label: '上传时间',
+            prop: 'createTime'
           }
         ]
       }
@@ -288,7 +278,6 @@ export default {
      * @param row
      */
     openFile(row) {
-      console.log(this.info)
       const routeUrl = this.$router.resolve({
         path: '/home/details',
         query: {
@@ -342,7 +331,7 @@ export default {
      */
     showDetail(row) {
       this.$api.store
-        .showDetail({ fileId: row.fileId, projectId: row.projectId })
+        .showDetail({ fileId: row.folderId, projectId: row.projectId })
         .then(res => {
           if (res.code === 200) {
             if (Object.keys(res.data).length === 0) {

+ 9 - 0
src/views/store/component/subInfo.vue

@@ -0,0 +1,9 @@
+<template>
+  <div></div>
+</template>
+
+<script>
+export default {}
+</script>
+
+<style lang="scss" scoped></style>