Ver Fonte

fix 项目迁移

scorpio há 3 anos atrás
pai
commit
246fab41be

+ 2 - 2
src/views/home/component/current.vue

@@ -8,9 +8,9 @@
         </div>
       </div>
       <div class="flex flex-center flex-child-average flex-justify-end" style="margin-right: 50px">
-        <base-button v-if='permissions.permissions.home_folder_authorize' class="mr-5" icon="User" title="授权"
+        <base-button v-if='permissions && permissions.permissions.home_folder_authorize' class="mr-5" icon="User" title="授权"
                      type="0" @click='showClick'/>
-        <base-button v-if="permissions.permissions.floder_detail_add && isAccess === '2'" icon="Plus" title="添加文件夹"
+        <base-button v-if="permissions && permissions.permissions.floder_detail_add && isAccess === '2'" icon="Plus" title="添加文件夹"
                      class="mr-5"
                      type="0" @click="addShow = true"/>
         <base-button v-if="isAccess === '2'" icon="Upload" title="上传文件" @click="show = true"/>

+ 10 - 5
src/views/home/component/dash.vue

@@ -185,18 +185,23 @@ export default {
           {
             label: '项目总投资(万元)',
             prop: 'totalAmount',
-            width: 180,
+            width: 120,
             type: 'number',
             precision: 2,
             formatter: (val, value, label) => {
               return val.totalAmount.toLocaleString()
             }
           },
+          {
+            label: '所属机构',
+            prop: 'implementingAgency',
+            width: 240
+          },
           {
             label: '项目类型',
             prop: 'projectTypeName',
             type: 'select',
-            width: 240,
+            width: 180,
             dicUrl: '/api/blade-system/dict-biz/dictionary?code=project-tags',
             props: {
               label: 'dictValue',
@@ -206,13 +211,13 @@ export default {
           {
             label: '项目领域',
             prop: 'dictName',
-            width: 240
+            width: 200
           },
           {
             label: '发债时间',
             prop: 'issueDate',
             type: 'month',
-            width: 240,
+            width: 100,
             format: 'YYYY-MM',
             valueFormat: 'YYYY-MM'
           },
@@ -220,7 +225,7 @@ export default {
             label: '更新时间',
             prop: 'updateTime',
             type: 'month',
-            width: 240,
+            width: 100,
             format: 'YYYY-MM-DD',
             valueFormat: 'YYYY-MM-DD'
           }]

+ 2 - 2
vite.config.js

@@ -35,8 +35,8 @@ export default defineConfig({
       '/api': {
         // 正式环境地址
         // target: 'https://dev.wutongresearch.club/api',
-        // target: 'https://prod.wutongshucloud.com/api',
-        target: 'http://192.168.31.181:8110',
+        target: 'https://prod.wutongshucloud.com/api',
+        // target: 'http://192.168.31.181:8110',
         changeOrigin: true,
         rewrite: (path) => path.replace(/^\/api/, '')
       }