叶松
2023-11-30 bbe5e8baf16c153e3f6324850fd3d7d08115ef80
预埋件理论耗量注释掉
已修改1个文件
25 ■■■■■ 文件已修改
web/src/views/ProjectManage/AmountManage.vue 25 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
web/src/views/ProjectManage/AmountManage.vue
@@ -2,9 +2,9 @@
  <div class="main">
    <div class="main_tabs">
      <el-tabs v-model="activeName" @tab-click="handleClick">
            <el-tab-pane label="预埋件理论耗量" name="first">
            <!-- <el-tab-pane label="预埋件理论耗量" name="first">
                <fitt-consump ref="Fitts"></fitt-consump> 
            </el-tab-pane>
            </el-tab-pane> -->
            <el-tab-pane label="钢筋笼理论耗量" name="second">
                <rebar-consump ref="Rebars"></rebar-consump>
            </el-tab-pane>
@@ -16,37 +16,40 @@
  </div>
</template>
<script>
import FittConsump from './components/FittConsump.vue'//预埋件理论耗量
// import FittConsump from './components/FittConsump.vue'//预埋件理论耗量
import RebarConsump from './components/RebarConsump.vue'//钢筋笼理论耗量
import RawConsump from './components/RawConsump.vue'//混凝土方量及混凝土原材料
export default {
    components:{
        FittConsump,
        // FittConsump,
        RebarConsump,
        RawConsump
    },
    data(){
        return{
            activeName:'first'
            activeName:'second'
        }
    },
    mounted(){
        this.$refs.Fitts.searchButtonInfo(true);
        this.$refs.Rebars.searchButtonInfo(true);
        this.$refs.Rebars.getInits();
    },
    methods:{
        //切换界面
        handleClick(tab){
            switch(tab.name){
                case 'second':
                    this.$refs.Rebars.getInits();
                    this.$refs.Rebars.getAllProjectData();
                    break;
                // case 'second':
                //     this.$refs.Rebars.getInits();
                //     this.$refs.Rebars.getAllProjectData();
                //     break;
                case 'third':
                    this.$refs.Raws.getAllProjects();
                    this.$refs.Raws.searchButtonInfo(true);
                    break;
                default:
                    this.$refs.Fitts.searchButtonInfo(true);
                    // this.$refs.Fitts.searchButtonInfo(true);
                    this.$refs.Rebars.getInits();
                    this.$refs.Rebars.getAllProjectData();
            }
        },
    }