Răsfoiți Sursa

fix 项目迁移

scorpio 2 ani în urmă
părinte
comite
f75c7ac7ff

+ 4 - 4
src/components/basic-form/sub.vue

@@ -73,7 +73,7 @@
       </div>
     </el-col>
     <el-col v-if='item.type ==="select" ' :style='`height:` + item.rows * 35 + `px`' class='full-width'>
-      <div class='flex item full-width'>
+      <div class='flex item full-width '>
         <el-form-item class='full-width '>
           <template v-slot:label>
             <div :style='`height:` + item.rows * 35 + `px`'
@@ -91,7 +91,7 @@
                   :value="item.value"
               />
             </el-select>
-            <input v-else disabled v-model='editData[item.prop]' />
+            <input v-else disabled class='full-height' v-model='editData[item.prop]' />
             <el-icon v-if='!disable' class="padding-right padding-top">
               <edit/>
             </el-icon>
@@ -113,7 +113,7 @@
             <el-cascader v-if='!disable' ref='area' :options="item.dict" v-model="editData[item.prop]" :disabled='disable' class="m-2"
                          :placeholder="`请选择${item.label}`" @change='change($event,item)'>
             </el-cascader>
-            <input v-else disabled v-model='editData[item.prop]' />
+            <input v-else disabled class='full-height' v-model='editData[item.prop]' />
             <el-icon v-if='!disable' class="padding-right padding-top">
               <edit/>
             </el-icon>
@@ -145,7 +145,7 @@
                 value-format='YYYY-MM-DD'
                 format='YYYY-MM-DD'
             />
-            <input v-else disabled v-model='editData[item.prop]' />
+            <input v-else class='full-height' disabled v-model='editData[item.prop]' />
             <el-icon v-if='!disable' class="padding-right padding-top">
               <edit/>
             </el-icon>

+ 6 - 2
src/views/home/component/authorize.vue

@@ -152,6 +152,10 @@ export default {
     initCode (type) {
       this.loading = true
       let list = this.folderList
+      if (this.folderId.length === 0) {
+        this.$message.error('当前目录下没有可以授权的文件')
+        return
+      }
       if (type === 2) {
         list = this.fileList
       }
@@ -173,11 +177,11 @@ export default {
       }]
 
       const folderTmp = list.map(sub => {
-        const item = { folderId: sub.fileFolderId, startTime: this.startTime, endTime: this.endTime, status: sub.check }
+        const item = { folderId: sub.hasOwnProperty('fileFolderId') ? sub.fileFolderId : sub.id, startTime: this.startTime, endTime: this.endTime, status: sub.check }
         return item
       })
       this.$api.project.initCode({
-        files: fileTmps,
+        files: type === 1 ? [] : fileTmps,
         folders: type === 2 ? folder : folder.concat(folderTmp),
         type: 1,
         projectId: this.projectId

+ 2 - 6
src/views/home/component/dash.vue

@@ -217,17 +217,13 @@ export default {
             label: '发债时间',
             prop: 'issueDate',
             type: 'month',
-            width: 120,
-            format: 'YYYY-MM',
-            valueFormat: 'YYYY-MM'
+            width: 120
           },
           {
             label: '更新时间',
             prop: 'updateTime',
             type: 'month',
-            width: 120,
-            format: 'YYYY-MM-DD',
-            valueFormat: 'YYYY-MM-DD'
+            width: 120
           }]
       },
       page: {

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

@@ -108,7 +108,219 @@ export default {
         // eslint-disable-next-line no-prototype-builtins
         if (val && val.hasOwnProperty('property')) {
           const config = JSON.parse(val.property)
-          this.option.column = config
+          this.option.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: 'selfFinance',
+                  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: 'portfolioFinancing',
+                  expand: '',
+                  id: 61,
+                  parentId: 6,
+                  span: '24'
+                },
+                {
+                  prop: 'operationDate',
+                  id: 72,
+                  label: '运营期',
+                  type: 'daterange',
+                  parentId: 7,
+                  span: '24'
+                }
+              ],
+              id: 7,
+              type: 'row'
+            },
+            {
+              children: [
+                {
+                  label: '本期发债金额(万元)',
+                  type: 'number',
+                  prop: 'debtsAsCapital',
+                  expand: '',
+                  id: 71,
+                  parentId: 7,
+                  span: '24'
+                },
+                {
+                  prop: 'cost',
+                  id: 82,
+                  label: '运营支出',
+                  type: 'number',
+                  parentId: 8
+                }
+              ],
+              id: 8,
+              type: 'row'
+            },
+            {
+              children: [
+                {
+                  label: '预期收益(万元)',
+                  type: 'number',
+                  prop: 'expectedReturn',
+                  expand: '',
+                  id: 81,
+                  parentId: 8
+                },
+                {
+                  prop: 'costIncomePercent',
+                  id: 121,
+                  label: '可偿债收益',
+                  type: 'number',
+                  parentId: 12
+                }
+              ],
+              id: 11,
+              type: 'row'
+            },
+            {
+              children: [
+                {
+                  prop: 'coverageMultiple',
+                  id: 131,
+                  label: '总债务本息保障倍数',
+                  type: 'number',
+                  parentId: 13
+                },
+                {
+                  prop: 'issueCumulative',
+                  id: 51,
+                  label: '申请专项债总额(累计发行)',
+                  type: 'number',
+                  parentId: 5
+                }
+              ],
+              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'
+            },
+            {
+              prop: 'introduction',
+              id: 10,
+              label: '建设内容',
+              type: 'textarea',
+              rows: 4,
+              span: '24'
+            },
+            {
+              prop: 'sourceIncome',
+              id: 9,
+              label: '收入来源',
+              type: 'textarea',
+              rows: 3,
+              span: '24'
+            }
+          ]
           val.buildDate = this.data.startDate + '至' + this.data.endDate
           val.operationDate = this.data.operationStartDate + '至' + this.data.operationEndDate
           val.area = this.data.province + this.data.city + this.data.district