Просмотр исходного кода

统计分析首页各分析模块设置为可配置

raolu 7 лет назад
Родитель
Сommit
16a018a2f4
2 измененных файлов с 48 добавлено и 38 удалено
  1. 6 37
      app/statistics/home.html
  2. 42 1
      app/statistics/js/home.js

+ 6 - 37
app/statistics/home.html

@ -40,25 +40,9 @@
                </div>
                <div class="section-body mtb30">
                    <div class="c-row">
                        <div class="c-20 c-t-center">
                            <img src="../../images/qianyujingzhan_icon.png">
                            <div class="c-f12 c-999 mt10">签约进展</div>
                        </div>
                        <div class="c-20 c-t-center">
                            <img src="../../images/xuqianjingzhan_icon.png">
                            <div class="c-f12 c-999 mt10">续签进展</div>
                        </div>
                        <div class="c-20 c-t-center">
                            <img src="../../images/jumingfenxi_icon.png">
                            <div class="c-f12 c-999 mt10">居民分析</div>
                        </div>
                        <div class="c-20 c-t-center">
                            <img src="../../images/tuigaiqian_icon.png">
                            <div class="c-f12 c-999 mt10">退改签</div>
                        </div>
                        <div class="c-20 c-t-center">
                            <img src="../../images/lianglvfenxi_icon.png">
                            <div class="c-f12 c-999 mt10">两率分析</div>
                        <div v-for="item in signAnalysis" @click="showDetail(item.url)" class="c-20 c-t-center">
                            <img :src="item.photo">
                            <div class="c-f12 c-999 mt10">{{item.label}}</div>
                        </div>
                    </div>
                </div>
@ -71,21 +55,9 @@
                </div>
                <div class="section-body mtb30">
                    <div class="c-row">
                        <div class="c-20 c-t-center">
                            <img src="../../images/zongtifenxi_icon.png">
                            <div class="c-f12 c-999 mt10">总体分析</div>
                        </div>
                        <div class="c-20 c-t-center">
                            <img src="../../images/zixunfenxi_icon.png">
                            <div class="c-f12 c-999 mt10">咨询分析</div>
                        </div>
                        <div class="c-20 c-t-center">
                            <img src="../../images/pijianfenxi_icon.png">
                            <div class="c-f12 c-999 mt10">评价分析</div>
                        </div>
                        <div class="c-20 c-t-center">
                            <img src="../../images/changcufangfenxi_icon.png">
                            <div class="c-f12 c-999 mt10">长处方分析</div>
                        <div v-for="item in serviceAnalysis" @click="showDetail(item.url)" class="c-20 c-t-center">
                            <img :src="item.photo">
                            <div class="c-f12 c-999 mt10">{{item.label}}</div>
                        </div>
                    </div>
                </div>
@ -99,9 +71,6 @@
        <script src="../../api/http-request.js" type="text/javascript" charset="utf-8"></script>
        <script src="../../api/statistics-api.js" type="text/javascript" charset="utf-8"></script>
        <script src="../../component/common/event-bus.js"></script>
        <script src="../../component/common/vuedals.js" type="text/javascript" charset="utf-8"></script>
        <script src="../../component/statistics/team-info.js" type="text/javascript" charset="utf-8"></script>
        <script src="../../component/statistics/area-data-panel.js" type="text/javascript" charset="utf-8"></script>
        <script src="js/common.js" type="text/javascript" charset="utf-8"></script>
        <script src="js/home.js" type="text/javascript" charset="utf-8"></script>
    </body>

+ 42 - 1
app/statistics/js/home.js

@ -4,11 +4,52 @@ new Vue({
        roles: [{"high":"0","code":"3502050100","level":"4","name":"海沧区嵩屿街道社区卫生服务中心","isManage":"1","authOperate":"0","areas":"3502050100"},
            {"high":"1","code":"350200","level":"2","name":"厦门市卫生与计划生育委员会","isManage":"1","authOperate":"0","areas":"350200"}],
        selectedRole: "",
        isopen: true
        isopen: true,
        signAnalysis: [{
            photo: '../../images/qianyujingzhan_icon.png',
            label: '签约进展',
            url: ''
        },{
            photo: '../../images/xuqianjingzhan_icon.png',
            label: '续签进展',
            url: ''
        },{
            photo: '../../images/jumingfenxi_icon.png',
            label: '居民分析',
            url: 'resident-analysis.html'
        },{
            photo: '../../images/tuigaiqian_icon.png',
            label: '退改签',
            url: ''
        },{
            photo: '../../images/lianglvfenxi_icon.png',
            label: '两率分析',
            url: ''
        }],
        serviceAnalysis: [{
            photo: '../../images/zongtifenxi_icon.png',
            label: '总体分析',
            url: ''
        },{
            photo: '../../images/zixunfenxi_icon.png',
            label: '咨询分析',
            url: ''
        },{
            photo: '../../images/pijianfenxi_icon.png',
            label: '评价分析',
            url: ''
        },{
            photo: '../../images/changcufangfenxi_icon.png',
            label: '长处方分析',
            url: ''
        }]
    },
    methods: {
        open: function(){
            EventBus.$emit('open-click', {});
        },
        showDetail: function(url){
            window.location.href = url;
        }
    },
    mounted: function(){