Browse Source

修复问题

haojianlong 4 years ago
parent
commit
5bd6a3803d

+ 5 - 4
src/views/ledger/report/index.vue

@@ -108,7 +108,7 @@
           竖井<i>{{ `(${shaftCount ? shaftCount : '0'})` }}</i></span>
         <div class="data-show" v-loading="isLoading" v-if="shaft.length">
           <div class="show-content" v-for="(item,index) in shaft" :key="index">
-            <datafan :id="'origin-datafan' + index" :renderData="item" v-if="!item.needCountT"></datafan>
+            <datafan :id="'origin-datafan' + index" :renderData="item" v-if="item.needCountT==undefined"></datafan>
             <data-origin :id="'origin-shaft' + index" :renderData="item" v-else></data-origin>
           </div>
         </div>
@@ -320,14 +320,14 @@ export default {
     },
     getShaftFunType() {// 获取数据功能类型
       getCenoteType(this.param, res => {
-        this.ShaftFunType = res.Content;
+        this.ShaftFunType = res.content;
         this.getShaftCount();
       })
     },
     shaftFunTypeTranstion(item) {// 竖井功能类型转换
       this.ShaftFunType.forEach((it, index) => {
-        if (item.Name === it.Id) {
-          item.Name = it.Name;
+        if (item.name === it.id) {
+          item.name = it.name;
         }
       })
     },
@@ -765,6 +765,7 @@ export default {
           needCountT: this.shaftCount - res1.count,
           text: text
         })
+        console.log(this.shaft,'88888888888');
       })
     }
   },

+ 4 - 1
src/views/ledger/spacelist/spaceadd/index.vue

@@ -22,7 +22,7 @@
       </div>
     </div>
     <el-row class="center">
-      <el-button type="primary" size="medium" @click.prevent.once="handleCreateTableData" class="create_button">创建业务空间</el-button>
+      <el-button type="primary" size="medium" @click="handleCreateTableData" :disabled="createDisable" class="create_button">创建业务空间</el-button>
     </el-row>
 
     <!--二维码弹窗 -->
@@ -108,6 +108,7 @@ export default {
       imgsArr: [], //临时保存的图片key数组
       showType: this.$route.query.showType,
       buildFloorData: [],
+      createDisable: false
     };
   },
   computed: {
@@ -160,6 +161,7 @@ export default {
     },
     // 创建业务空间数据
     async handleCreateTableData() {
+      this.createDisable = true;
       let newData = this.tableData.filter(item => {
         let keys = Object.keys(item);
         keys.map(key => {
@@ -201,6 +203,7 @@ export default {
         content: newData
       }
       zoneCreate(param, res => {
+        this.createDisable = false;
         this.$message.success('创建成功')
         session.remove("spaceAddData")
         this.$router.push({

+ 1 - 1
src/views/model/report/index.vue

@@ -251,7 +251,7 @@ export default {
         this.tableList.forEach(item => {
           this.modelFloor.forEach(it => {
             if (item.Code === it.FolderId) {
-              if (!item.DataCheckResult) {
+              if (!it.DataCheckResult) {
                 item.flag = false;
               }
             }