scorpio 3 年 前
コミット
3cd733928e
3 ファイル変更3 行追加245 行削除
  1. 2 5
      src/components/basic-form/sub.vue
  2. 0 1
      src/page/login.vue
  3. 1 239
      src/views/home/component/proinfo.vue

+ 2 - 5
src/components/basic-form/sub.vue

@@ -217,10 +217,8 @@ export default {
             val.dict = res
           })
         } else if (val.type === 'select') {
-          console.log(val)
           this.getDic(val).then(res => {
             val.dict = res
-            console.log(val.dict)
           })
         }
       },
@@ -259,7 +257,6 @@ export default {
         const tmp = await this.$api.common.basicFormRequest(item.expand.dict)
         result = tmp.data.map(sub => {
           const result = {}
-          console.log(item.expand)
           result.label = sub[item.expand.prop.label]
           result.value = sub[item.expand.prop.value]
           return result
@@ -271,8 +268,8 @@ export default {
       const haveChildren = Array.isArray(item.children) && item.children.length > 0
       return {
         key: item.label,
-        value: item[expand.prop.value],
-        label: item[expand.prop.label],
+        value: item[expand.props.value],
+        label: item[expand.props.label],
         children: haveChildren ? item.children.map(i => this.mapTree(i, expand)) : []
       }
     },

+ 0 - 1
src/page/login.vue

@@ -166,7 +166,6 @@ export default {
   created () {
     this.permission.cleanPermission()
     this.dev = window.location.href.toString().indexOf('dev') > -1 || window.location.href.toString().indexOf('localhost')
-    console.log(window.location.href.toString())
     removeToken()
     this.init()
   },

+ 1 - 239
src/views/home/component/proinfo.vue

@@ -106,245 +106,7 @@ export default {
       option: {
         detail: true,
         labelWidth: '200px',
-        column: [
-          {
-            prop: 'name',
-            id: 1,
-            label: '名称',
-            type: 'input',
-            span: '24'
-          },
-          {
-            children: [
-              {
-                prop: 'totalAmount',
-                id: 21,
-                label: '总投资(万元)',
-                type: 'number',
-                parentId: 2,
-                span: '24'
-              },
-              {
-                label: '地区',
-                type: 'area',
-                prop: 'area',
-                expand: {
-                  dict: '/blade-system/region/lazy-list',
-                  prop: {
-                    label: 'name',
-                    value: 'id'
-                  }
-                },
-                id: 22,
-                parentId: 2,
-                span: '24'
-              }
-            ],
-            id: 2,
-            type: 'row'
-          },
-          {
-            children: [
-              {
-                prop: 'capital',
-                id: 41,
-                label: '不含专项债的资本金',
-                type: 'number',
-                parentId: 4,
-                span: '24'
-              },
-              {
-                prop: 'dictName',
-                params: 'dictKey',
-                id: 42,
-                label: '项目领域',
-                type: 'select',
-                parentId: 4,
-                span: '24',
-                expand: {
-                  dict: '/blade-system/dict-biz/dictionary?code=pc-debt-type',
-                  prop: {
-                    label: 'dictValue',
-                    value: 'dictKey'
-                  }
-                }
-              }
-            ],
-            id: 4,
-            type: 'row'
-          },
-          {
-            children: [
-              {
-                label: '其他债务融资(万元)',
-                type: 'number',
-                prop: 'portfolioFinancing',
-                expand: '',
-                id: 61,
-                parentId: 6,
-                span: '24'
-              },
-              {
-                prop: 'buildDate',
-                id: 62,
-                label: '建设期',
-                type: 'daterange',
-                parentId: 6,
-                span: '24'
-              }
-            ],
-            id: 6,
-            type: 'row'
-          },
-          {
-            children: [
-              {
-                label: '专项债做资本金(万元)',
-                type: 'number',
-                prop: 'debtsAsCapital',
-                expand: '',
-                id: 71,
-                parentId: 7,
-                span: '24'
-              },
-              {
-                prop: 'operationDate',
-                id: 72,
-                label: '运营期',
-                type: 'daterange',
-                parentId: 7,
-                span: '24'
-              }
-            ],
-            id: 7,
-            type: 'row'
-          },
-          {
-            children: [
-              {
-                label: '预期收益(万元)',
-                type: 'number',
-                prop: 'expectedReturn',
-                expand: '',
-                id: 81,
-                parentId: 8
-
-              },
-              {
-                prop: 'cost',
-                id: 82,
-                label: '成本',
-                type: 'number',
-                parentId: 8
-              }
-            ],
-            id: 8,
-            type: 'row'
-          },
-          {
-            children: [
-              {
-                prop: 'costIncomePercent',
-                id: 121,
-                label: '成本/收入',
-                type: 'number',
-                parentId: 12
-              },
-              {
-                prop: 'coverageMultiple',
-                id: 131,
-                label: '覆盖倍数',
-                type: 'number',
-                parentId: 13
-              }
-            ],
-            id: 11,
-            type: 'row'
-          },
-          {
-            children: [
-              {
-                prop: 'projectSubject',
-                id: 112,
-                label: '主管部门',
-                type: 'input',
-                parentId: 11
-
-              },
-              {
-                prop: 'implementingAgency',
-                id: 52,
-                label: '项目业主',
-                type: 'input',
-                parentId: 5
-
-              }
-            ],
-            id: 5,
-            type: 'row'
-          },
-          {
-            children: [
-              {
-                prop: 'accountingFirm',
-                id: 122,
-                label: '会计所',
-                type: 'input',
-                parentId: 12
-
-              },
-              {
-                prop: 'lawFirm',
-                id: 132,
-                label: '律所',
-                type: 'input',
-                parentId: 13
-
-              }
-            ],
-            id: 12,
-            type: 'row'
-          },
-          {
-            children: [
-              {
-                prop: 'issueCumulative',
-                id: 51,
-                label: '申请专项债总额(累计发行)',
-                type: 'number',
-                parentId: 5
-
-              }
-            ],
-            id: 11,
-            type: 'row'
-          },
-          {
-            prop: 'introduction',
-            id: 10,
-            label: '建设内容',
-            type: 'textarea',
-            rows: 4,
-            span: '24'
-          },
-          {
-            prop: 'sourceIncome',
-            id: 9,
-            label: '收入来源',
-            type: 'textarea',
-            rows: 3,
-            span: '24'
-          },
-          {
-            prop: 'portfolioFinancingDescription',
-            id: 111,
-            label: '其他债务融资来源',
-            type: 'textarea',
-            parentId: 11,
-            rows: 4,
-            span: '24'
-          }
-        ]
+        column: []
       },
       issueInfo: {
         issueDate: '',