浏览代码

新增字段

liangweifeng 6 年之前
父节点
当前提交
b2f6b796ff

+ 8 - 2
page/bigDataOut/css/zidian.css

@ -21,8 +21,8 @@ html {
#close {
    position: absolute;
    right: 50px;
    font-size: 20px;
    right: 40px;
    font-size: 17px;
    top: 18px;
    cursor: pointer;
}
@ -102,4 +102,10 @@ aside {
    position: absolute;
    right:40px;
    cursor: pointer;
}
.changge{
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('../images/icon-JIANYANZHUANYEFENLEI-dianji.png'); background-repeat: no-repeat
}

+ 137 - 0
page/bigDataOut/html/yaopinzidian.html

@ -0,0 +1,137 @@
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="../../../css/element.css">
    <link rel="stylesheet" href="../css/zidian.css">
</head>
<body>
    <div id="app">
        <nav class="header">
            <span id="text">查看字典</span>
            <span id="close" @click="clickClose">X</span>
        </nav>
        <el-container style="height: 100%;">
            <el-aside style="width: 200px; ">
                <el-menu active-text-color="#2eaafa" :default-openeds="['1']">
                    <el-menu-item class="ellipsis" title="检验专业代码" index="1-0" @click="daimaClick">
                        药品编码</el-menu-item>
                    <el-menu-item class="ellipsis" title="检验专业分类" index="1-1" @click="fenleiClick">
                        急救药品代码</el-menu-item>
            </el-aside>      
            <el-main style="height: 100%;overflow: hidden;">
                <div class="flex">
                    <span id="searchtext"> 字典项:</span>
                    <el-input placeholder="请输入代码或者名称" id="typeSearch" v-model="searchKey">
                    </el-input>
                    <i class="el-icon-search" @click='searchClick'></i>
                </div>
                <el-table :data="tableData" border style="width: 100%" >
                    <el-table-column type="index" label="序号" width='60'>
                    </el-table-column>
                    <el-table-column prop="code" label="值域编码">
                    </el-table-column>
                    <el-table-column prop="value" label="值域名称">
                    </el-table-column>
                </el-table>
                <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage"
                    :page-sizes="pageSizeArr" :page-size="pageSize" layout="total,sizes,prev, pager, next, jumper"
                    :total="total">
                </el-pagination>
            </el-main>
        </el-container>
    </div>
    <script>
        window.noUse = true
    </script>
    <script src="../../../js/post.js"></script>
    <script src="../../../js/api/bigDataOut-api.js"></script>
    <script>
        new Vue({
            el: "#app",
            data: function () {
                return {
                    currentPage: 1, //初始页
                    pageSize: 10,    //    每页的数据 
                    pageSizeArr: [2,5,10],
                    searchKey: '',
                    total: 0,
                    tableData: [],
                    hidden: true,
                    code: "STD_MEDICINE",
                }
            },
            mounted: function () {
                this.getData()
            },
            methods: {
                clickClose:function(){
                    top.layer.close(top.layer.getFrameIndex(window.name))
                },
                daimaClick: function () {
                    this.code = 'STD_MEDICINE',
                        this.initData()
                },
                fenleiClick: function () {
                    this.code = 'CV08.50.301',
                        this.initData()
                },
                handleCurrentChange: function (val) {
                    this.currentPage = val;
                    this.getData()
                },
                handleSizeChange: function (val) {
                    this.pageSize = val;
                    this.initData()
                },
                initData: function () { //初始化
                    this.currentPage = 1;
                    this.getData()
                },
                searchClick: function () {
                    this.initData()
                },
                getData: function () {
                    var vm = this;
                    var params = {
                        code: this.code,
                        size: this.pageSize,
                        page: this.currentPage
                    }
                    if (this.searchKey) {
                        params.filters ="code?"+this.searchKey+" g1;value?"+this.searchKey+" g1"
                    }
                    GlobalEventBus.$emit('setLoading', {
                        loading: true
                    }); //等待效果
                    bigDataOutApi.lastDictItem(params).then(function (res) {
                        console.log(res)
                        GlobalEventBus.$emit('setLoading');
                        vm.tableData = res.detailModelList;
                        vm.total = res.totalCount;
                    }).catch(function (err) {
                        console.log(err)
                        GlobalEventBus.$emit('setLoading');
                    })
                },
            }
        })
    </script>
</body>
</html>

+ 2 - 2
page/bigDataOut/html/zidian.html

@ -15,13 +15,13 @@
    <div id="app">
        <nav class="header">
            <span id="text">查看字典</span>
            <span id="close" @click="clickClose">x</span>
            <span id="close" @click="clickClose">X</span>
        </nav>
        <el-container style="height: 100%;">
            <el-aside style="width: 200px; ">
                <el-menu active-text-color="#2eaafa" :default-openeds="['1']">
                    <el-menu-item class="ellipsis" title="检验专业代码" index="1-0" @click="daimaClick">
                        检验专业代码</el-menu-item>
                      检验专业代码</el-menu-item>
                    <el-menu-item class="ellipsis" title="检验专业分类" index="1-1" @click="fenleiClick">
                        检验专业分类</el-menu-item>
            </el-aside>      

+ 3 - 1
page/bigDataOut/js/handleChangeViewD.js

@ -31,6 +31,8 @@
                        <span v-else>住院</span>\
                    </template>\
                    </el-table-column>\
        <el-table-column prop="HDSD00_04_023" label="药品名称">\
        </el-table-column>\
        <el-table-column prop="HDSD00_04_021" label="规格">\
        </el-table-column>\
        <el-table-column prop="HDSD00_04_027" label="用法" >\
@ -210,7 +212,7 @@
            })
        },
        handleZidian: function () {
            var url = httpRequest.server + '/bigScreenShow/page/bigDataOut/html/zidian.html?'
            var url = httpRequest.server + '/bigScreenShow/page/bigDataOut/html/yaopinzidian.html?'
            console.log(url)
            var width = 1000 + 'px';
            var height = 600 + 'px';