Bläddra i källkod

多余文件删除

morphone1995 4 år sedan
förälder
incheckning
3dc819886a

+ 0 - 482
src/components/cdssManage/ChronicDiseaseAdd.vue

@@ -1,482 +0,0 @@
-<template>
-  <div>
-    <crumbs
-      :title="minTitle"
-      class="topBack"
-      :param="$route.params"
-      linkTo="ChronicDiseaseStructureList"
-    ></crumbs>
-    <div class="ChronicDiseaseAddWrap" @click="close">
-      <div class="ChronicDisease">
-        <p class="ChronicDiseaseTop" v-if="!editData.isEdit">
-          <span>选择量表术语:</span>
-          <input
-            type="text"
-            v-model="region"
-            @click.stop
-          >
-          <i @click.stop="searchTagList">搜索</i>
-          <ul v-if="showLis">
-            <li v-for="item in AdscriptionsType" :key="item.conceptId" @click="selectLis(item.conceptId,item.name)">{{item.name}}</li>
-          </ul>
-        </p>
-        <p class="ChronicDiseaseBtm">
-          <span>已选择量表术语:</span>
-          <i>{{selectName}}</i>
-        </p>
-      </div>
-      <div class="ChronicDiseaseDetail">
-        <div class="ChronicDiseaseLeft">
-          <h4>操作栏:</h4>
-          <div class="parts" v-for="(item,idx) in parts" :class="selectLeftPart.id == item.id?'selectDom':null" :key="item.id" @click="selectPart(item,1)">
-            {{item.name}}
-          </div>
-        </div>
-        <div class="bottomPartMid fl">
-          <p><span
-              class="el-icon-arrow-right"
-              @click="toRightPool"
-            ></span></p>
-          <p><span
-              class="el-icon-arrow-left"
-              @click="toLeftPool"
-            ></span></p>
-        </div>
-        <div class="ChronicDiseaseRight">
-          <h4>内容池:</h4>
-          <div class="contentWrap">
-            <div class="contentDetail clearfix" v-for="(item,idx) in contentPool" :class="selectRightPart.order == item.order?'selectDom':null" :key="item.order" @click="selectPart(item,2)">
-              <span>{{item.name}}:</span>
-              <div class="contentDetails">
-                <quillEditor v-model="item.content" :options="editorOption" v-if="item.val == 0" class="ql-editor"></quillEditor>
-              </div>
-            </div>
-          </div>
-        </div>
-        <div class="bottomPartMid upAndDown">
-          <p><span
-              class="el-icon-arrow-up"
-              @click="movePool(1)"
-            ></span></p>
-          <p><span
-              class="el-icon-arrow-down"
-              @click="movePool(2)"
-            ></span></p>
-        </div>
-        <div class="btn">
-          <el-button
-            type="primary"
-            :disabled = 'saveDisable'
-            @click="submitForm"
-          >确 定</el-button>
-        </div>
-      </div>
-    </div>
-  </div>
-</template>
-<script>
-import api from '@api/cdss.js';
-import 'quill/dist/quill.core.css'
-import 'quill/dist/quill.snow.css'
-import 'quill/dist/quill.bubble.css'
-import {quillEditor, Quill} from 'vue-quill-editor'
-import {container, ImageExtend, QuillWatch} from 'quill-image-extend-module';
-Quill.register('modules/ImageExtend', ImageExtend);
-/**
- * 归属type
- * 1:主诉模板 2:现病史模板 3:现病史空模板 4 : 其他史模板 5:嵌套模板 6:慢病模板
- */
-export default {
-  data() {
-    return {
-      editorOption: {
-        modules: {
-          toolbar: {
-            container: container
-          }
-        }
-      },
-      region: '',    //量表标签
-      selectName:'',
-      selectId:'',
-      AdscriptionsType: [],
-      editData: {},
-      minTitle:'量表维护-添加量表结构',
-      showLis:false,
-      parts:[],
-      selectLeftPart:{},//左侧选中
-      selectRightPart:{},//右侧选中
-      contentPool:[], //内容池
-      saveDisable: false  //保存按钮禁止点击
-    }
-  },
-  beforeMount:function(){
-    let tmpPart = localStorage.getItem('DiseaseManage')
-    this.parts = JSON.parse(tmpPart)
-  },
-  mounted() {
-    let tmpEditData = this.$route.params
-    if (tmpEditData.isEdit) {      //修改
-      this.editData = tmpEditData
-      this.minTitle='量表维护-修改量表结构'
-      this.selectName = tmpEditData.row.name
-      this.selectId = tmpEditData.row.conceptId
-      let tmpScale = tmpEditData.data
-      for(let i = 0;i < tmpScale.length;i++){
-        tmpScale[i].val = tmpScale[i].type
-        tmpScale[i].order = tmpScale[i].orderNo
-        tmpScale[i].name = tmpScale[i].type == 0?'文本模块':'推送模块'
-      }
-      this.contentPool = tmpScale
-    }
-    this.$emit('changeVal', this.form, false)
-  },
-  methods: {
-    toRightPool() {
-      let tmpLeft = JSON.parse(JSON.stringify(this.selectLeftPart))
-      let tmpPool = JSON.parse(JSON.stringify(this.contentPool))
-      if(JSON.stringify(tmpLeft) == '{}'){
-        return
-      }
-      if(tmpLeft.val == 1){
-        for(let i = 0;i < tmpPool.length;i++){
-          if(tmpPool[i].val == 1){
-            // this.$message({
-            //   message: '推送模块只能添加一次',
-            //   type: 'warning'
-            // });
-            return
-          }
-        }
-      }
-      tmpPool.push(tmpLeft)
-      this.selectLeftPart = {}
-      for(let i = 0;i < tmpPool.length;i++){
-        tmpPool[i].order = i+1
-      }
-      this.contentPool = tmpPool
-    },
-    toLeftPool() {
-      let tmpRight = JSON.parse(JSON.stringify(this.selectRightPart))
-      let tmpPool = JSON.parse(JSON.stringify(this.contentPool))
-      if(JSON.stringify(tmpRight) == '{}'){
-        return
-      }
-      tmpPool = tmpPool.filter((item)=>item.order != tmpRight.order)
-      for(let i = 0;i < tmpPool.length;i++){
-        tmpPool[i].order = i+1
-      }
-      this.contentPool = tmpPool
-      this.selectRightPart = {}
-    },
-    movePool(dir) {
-      let tmpRight = JSON.parse(JSON.stringify(this.selectRightPart))
-      let tmpPool = JSON.parse(JSON.stringify(this.contentPool))
-      if((dir == 1 && tmpRight.order == 1) || (dir == 2 && tmpRight.order == tmpPool.length)){
-        return
-      }
-      if(JSON.stringify(tmpRight) == '{}'){
-        return
-      }
-      tmpPool = tmpPool.filter((item)=>item.order != tmpRight.order)
-      if(dir == 1){
-        tmpPool.splice(tmpRight.order-2,0,tmpRight)
-        for(let i = 0;i < tmpPool.length;i++){
-          tmpPool[i].order = i+1
-        }
-      }else if(dir == 2){
-        tmpPool.splice(tmpRight.order,0,tmpRight)
-        for(let i = 0;i < tmpPool.length;i++){
-          tmpPool[i].order = i+1
-        }
-      }
-      this.selectRightPart = tmpRight
-      this.contentPool = tmpPool
-    },
-    selectPart(part,dir){
-      if(dir == 1){
-        if(this.selectLeftPart.val == part.val){
-          this.selectLeftPart = {}
-        }else{
-          this.selectLeftPart = part
-        }
-      }else if(dir == 2){
-        if(this.selectRightPart.order == part.order){
-          this.selectRightPart = {}
-        }else{
-          this.selectRightPart = part
-        }
-      }
-    },
-    close(){
-      this.showLis = false
-    },
-    selectLis(id,name){
-      this.selectName = name
-      this.selectId = id
-    },
-    searchTagList() {
-      if(this.region.trim() == ''){
-        return
-      }
-      api.searchKnowledgeLis({name: this.region}).then((res) => {
-        if (res.data.code === '0') {
-          let result = res.data.data
-          this.AdscriptionsType = result
-          this.showLis = this.AdscriptionsType.length > 0
-          if(result.length == 0){
-            this.$message({
-              message: '暂无搜索结果',
-              type: 'warning'
-            });
-          }
-        }
-      })
-    },
-    getParams(){
-      let tmpParams = []
-      let tmpPool = JSON.parse(JSON.stringify(this.contentPool))
-      for(let i = 0;i < tmpPool.length;i++){
-        if(tmpPool[i].val == 0 && !tmpPool[i].content){
-
-        }else{
-          let tmpObj = {
-            "content": "",
-            "orderNo": '',
-            "type": ''
-          }
-          tmpObj.content = tmpPool[i].content || ''
-          tmpObj.orderNo = tmpPool[i].order
-          tmpObj.type = tmpPool[i].val
-          tmpParams.push(tmpObj)
-        }
-      }
-      return {
-        "content": tmpParams,
-        "conceptId": this.selectId
-      }
-    },
-    submitForm() {
-      if(this.selectName == ''){
-        this.$message({
-          message: '请选择量表标签',
-          type: 'warning'
-        });
-        return
-      }
-      let param = this.getParams();
-      if(param.content.length == 0){
-        this.$message({
-          message: '请添加内容池内容',
-          type: 'warning'
-        });
-        return
-      }
-      this.showConfirmDialog('是否保存该量表结构?', () => {
-        this.saveDisable = true  //提交保存按钮不可点击,返回结果时才可点击,防止频繁发送请求
-        api.insertOrUpdate(param).then((res) => {
-          if (res.data.code === '0') {
-            this.warning(res.data.msg || '保存成功', 'success');
-            setTimeout(() => {
-              this.$router.push({
-                name:'ChronicDiseaseStructureList',
-                params: Object.assign({}, this.$route.params, {currentPage: 1})
-              })
-            }, 1000);
-          }
-          this.saveDisable = false
-        })
-
-      })
-    },
-    showConfirmDialog(msg, resolve) {
-      this.$alert(msg, '提示', {
-        confirmButtonText: '确定',
-        type: 'warning'
-      }).then(() => {
-        resolve();
-      }).catch(() => {});
-    },
-    warning(msg, type,time) {
-      this.$message({
-        showClose: true,
-        message: msg,
-        type: type || 'warning',
-        duration:time || '3000'
-      })
-    },
-  },
-  components:{
-    quillEditor
-  }
-}
-</script>
-<style lang="less">
-.contentDetails{
-  .quill-editor .ql-toolbar.ql-snow .ql-formats  .ql-image,
-  .quill-editor .ql-toolbar.ql-snow .ql-formats  .ql-video,
-  .quill-editor .ql-toolbar.ql-snow .ql-formats  .ql-link{
-    display: none;
-  }
-}
-</style>
-
-<style lang="less" scoped>
-@import "../../less/common.less";
-.topBack {
-  top: 0;
-}
-.btn {
-  text-align: right;
-  margin-top: 20px;
-}
-.ChronicDiseaseAddWrap {
-  margin: 20px;
-  box-sizing: border-box;
-  background-color: #fff;
-  color: #606266;
-  .ChronicDisease {
-    border-bottom: 1px solid #c0c4cc;
-    padding: 20px;
-    margin-top: 60px;
-    span {
-      width: 160px;
-      display: inline-block;
-    }
-    .ChronicDiseaseTop {
-      input {
-        width: 221px;
-        height: 34px;
-        line-height: 34px;
-        padding-left: 7px;
-        padding-right: 56px;
-        box-sizing: border-box;
-      }
-      i {
-        display: inline-block;
-        width: 56px;
-        height: 34px;
-        line-height: 32px;
-        border-left: 1px solid @icssBorder;
-        position: relative;
-        left: -57px;
-        vertical-align: middle;
-        text-align: center;
-        cursor: pointer;
-      }
-      ul {
-        width: 219px;
-        margin-left: 160px;
-        border: 1px solid @icssBorder;
-        background: #fff;
-        max-height: 200px;
-        overflow-y: auto;
-        height: auto;
-        position: absolute;
-        z-index: 9999;
-        li {
-          border: 1px solid #fff;
-          padding-left: 7px;
-          height: 27px;
-          line-height: 27px;
-          overflow: hidden;
-          white-space: nowrap;
-          text-overflow: ellipsis;
-        }
-        li:hover {
-          background: #f5f7fa;
-        }
-      }
-    }
-    .ChronicDiseaseBtm {
-      margin: 25px 0 10px 0;
-    }
-  }
-  .ChronicDiseaseDetail {
-    padding: 20px;
-    overflow: hidden;
-    position: relative;
-    h4 {
-      margin-bottom: 10px;
-    }
-    .bottomPartMid {
-      width: 80px;
-      margin-top: 60px;
-      p {
-        width: 100%;
-        text-align: center;
-        span {
-          cursor: pointer;
-          display: inline-block;
-          width: 30px;
-          height: 40px;
-          line-height: 40px;
-          margin: 0 auto;
-          border: 1px solid @icssBorder;
-          margin-bottom: 15px;
-          font-size: 18px;
-        }
-      }
-    }
-    .upAndDown {
-      position: absolute;
-      right: 0;
-      top: 0;
-    }
-    .ChronicDiseaseLeft {
-      float: left;
-      .parts {
-        height: 40px;
-        line-height: 40px;
-        width: 160px;
-        text-align: center;
-        font-size: 14px;
-        margin: 20px 0;
-        background-color: #EFEFEF;
-        border: 1px solid @icssBorder;
-        color: #333;
-        cursor: pointer;
-      }
-    }
-  }
-  .ChronicDiseaseRight {
-    padding-right: 50px;
-    .contentWrap {
-      color: #333;
-      min-width: 400px;
-      min-height: 500px;
-      max-height: 600px;
-      border: 1px solid @icssBorder;
-      background: #fff;
-      overflow-y: auto;
-      .contentDetail {
-        border: 1px solid #fff;
-        padding: 5px;
-        padding-left: 80px;
-        box-sizing: border-box;
-        margin: 5px;
-        position: relative;
-        span {
-          width: 80px;
-          display: inline-block;
-          position: absolute;
-          top: 12px;
-          left: 0px;
-          text-align: right;
-        }
-        .contentDetails {
-          float: left;
-          min-height: 40px;
-          width: 100%;
-          box-sizing: border-box;
-          background-color: #EFEFEF;
-        }
-      }
-    }
-  }
-  .selectDom {
-    border: 1px solid @adminBase !important;
-  }
-}
-</style>
-

+ 0 - 321
src/components/cdssManage/ChronicDiseaseStructureList.vue

@@ -1,321 +0,0 @@
-<template>
-  <div>
-    <crumbs title="量表结构维护" style="min-width: 980px">
-      <el-form :inline="true" class="demo-form-inline">
-        <el-form-item label="量表名称:">
-          <el-input size="mini" v-model="filter.tagSysName" placeholder="量表名称" clearable></el-input>
-        </el-form-item>
-        <el-form-item label="状态:">
-          <el-select v-model="filter.isState" clearable placeholder="请选择" size="mini">
-            <el-option
-              v-for="item in stateSelect"
-              :key="item.id"
-              :label="item.name"
-              :value="item.id"
-            ></el-option>
-          </el-select>
-        </el-form-item>
-        <el-form-item>
-          <el-button size="mini" @click="filterDatas">确认</el-button>
-          <el-button size="mini" type="warning" @click="addIndeptTag">添加量表</el-button>
-        </el-form-item>
-      </el-form>
-    </crumbs>
-    <div class="contents">
-      <el-table :data="list" border style="width: 100%">
-        <el-table-column type="index" :index="indexMethod" label="编号" :resizable="false" width="60"></el-table-column>
-        <el-table-column :resizable="false" prop="gmtModified" label="操作时间" width="180"></el-table-column>
-        <el-table-column :resizable="false" prop="name" label="量表名称"></el-table-column>
-        <el-table-column label="状态">
-          <template slot-scope="scope">
-            <span
-              :class="scope.row.isDeleted == 'N'?'':'delete'"
-            >{{scope.row.isDeleted == 'N'?'启用中':'已删除'}}</span>
-          </template>
-        </el-table-column>
-        <el-table-column :resizable="false" prop="modifier" label="操作人"></el-table-column>
-        <el-table-column :resizable="false" label="操作">
-          <template slot-scope="scope">
-            <el-button
-              type="text"
-              size="small"
-              :disabled="scope.row.isDeleted != 'N'"
-              @click="modifyIndeptTag(scope.row)"
-            >修改</el-button>
-            <span style="margin:0 3px;">|</span>
-            <el-button
-              type="text"
-              size="small"
-              :class="scope.row.isDeleted == 'N'?'delete':'review'"
-              @click="showDelDialog(scope.row)"
-            >{{scope.row.isDeleted == 'N'?'删除':'恢复'}}</el-button>
-          </template>
-        </el-table-column>
-      </el-table>
-    </div>
-    <div class="pagination pagepage">
-      <el-pagination
-        :current-page.sync="currentPage"
-        @current-change="currentChange"
-        background
-        :page-size="pageSize"
-        :page-sizes="pageSizeArr"
-        @size-change="handleSizeChange"
-        :layout="pageLayout"
-        :total="total"
-      ></el-pagination>
-    </div>
-  </div>
-</template>
-
-<script>
-import api from '@api/cdss.js';
-import config from '@api/config.js';
-import utils from '@api/utils.js';
-
-export default {
-  name: 'TemplateMaintenance',
-  data: function() {
-    return {
-      list: [],
-      stateSelect: [
-        { id: 'N', name: '启用中' },
-        { id: 'Y', name: '已删除' }
-      ],
-
-      tagTypes: [],
-      AdscriptionsType: [],
-      AdscriptionsOwnTo: [],
-      tagTypesList: [],
-      searched: false,
-      filter: {
-        isState: '',
-        tagType: [], //标签类型
-        tagSysName: '' //标签系统名称
-      },
-      currentPage: 1,
-      pageSize: config.pageSize,
-      pageSizeArr: config.pageSizeArr,
-      pageLayout: config.pageLayout,
-      total: 0
-    };
-  },
-  created() {
-    this.getDropList().then(() => {
-      this.getDataList();
-    });
-  },
-  watch: {
-    filter: {
-      handler: function() {
-        this.searched = false;
-      },
-      deep: true
-    }
-  },
-  beforeRouteEnter(to, from, next) {
-    next(vm => {
-      //const pm = to.param;
-      Object.assign(vm, to.params);
-      vm.inCurrentPage = to.params.currentPage;
-    });
-  },
-  methods: {
-    handleSizeChange(val) {
-      this.pageSize = val;
-      this.currentPage = utils.getCurrentPage(
-        this.currentPage,
-        this.total,
-        this.pageSize
-      );
-      this.getDataList();
-    },
-    getDropList() {
-      let templateType = localStorage.getItem('icssEnumsData')
-        ? JSON.parse(localStorage.getItem('icssEnumsData')).moduleInfoTypeEnum
-        : [];
-      this.AdscriptionsType = templateType;
-      return api.getknowledgeList().then(res => {
-        if (res.data.code === '0') {
-          localStorage.setItem(
-            'DiseaseManage',
-            JSON.stringify(res.data.data[1])
-          );
-          // this.tagTypes =  res.data.data[6];
-          // for (var i = 0; i < this.tagTypes.length; i++) {
-          //   this.tagTypesList.push(this.tagTypes[i].val)
-          // }
-        }
-      });
-    },
-    getDataList(isTurnPage) {
-      const param = this.getFilterItems(isTurnPage);
-      this.searched = true;
-      const loading = this.$loading({
-        lock: true,
-        text: 'Loading',
-        spinner: 'el-icon-loading',
-        background: 'rgba(0, 0, 0, 0.7)'
-      });
-      api.scaleContentStructure(param).then(res => {
-        loading.close();
-        const list = res.data.data.records;
-        // for (var i = 0; i < list.length; i++) {
-        //   for (var j =  0; j < this.tagTypes.length; j++) {
-        //     if(list[i].tagType === this.tagTypes[j].val) {
-        //       list[i].tagTypeCn = this.tagTypes[j].name;
-        //     }
-        //   }
-        // }
-        this.list = list;
-        this.total = res.data.data.total;
-        if (this.inCurrentPage !== undefined) {
-          this.currentPage = this.inCurrentPage;
-          this.inCurrentPage = undefined;
-        }
-      });
-    },
-    filterDatas() {
-      this.currentPage = 1;
-      this.getDataList();
-    },
-    addIndeptTag() {
-      const pam = this.searched
-        ? {
-            currentPage: this.currentPage,
-            pageSize: this.pageSize,
-            filter: this.filter
-          }
-        : { currentPage: this.currentPage, pageSize: this.pageSize };
-      this.$router.push({ name: 'ChronicDiseaseAdd', params: pam });
-    },
-    modifyIndeptTag(row) {
-      api.rebuildOrUpdate({ conceptId: row.conceptId }).then(res => {
-        const { code, data, msg } = res.data;
-        if (code == '0') {
-          const pam = this.searched
-            ? {
-                currentPage: this.currentPage,
-                pageSize: this.pageSize,
-                filter: this.filter
-              }
-            : { currentPage: this.currentPage, pageSize: this.pageSize };
-          this.$router.push({
-            name: 'ChronicDiseaseAdd',
-            params: Object.assign(pam, { isEdit: true, data: data, row: row })
-          });
-        } else {
-          this.$message({
-            message: msg,
-            type: 'warning'
-          });
-        }
-      });
-    },
-    currentChange(next) {
-      this.currentPage = next;
-      this.getDataList(true);
-    },
-    getFilterItems(isTurnPage) {
-      //翻页时筛选条件没点确定则清空
-      if (isTurnPage && !this.searched) {
-        this.clearFilter();
-      }
-      const param = {
-        current: this.inCurrentPage || this.currentPage,
-        size: this.pageSize,
-        name: this.filter.tagSysName.trim(),
-        status: this.filter.isState
-      };
-      return param;
-    },
-    indexMethod(index) {
-      return (this.currentPage - 1) * this.pageSize + index + 1;
-    },
-    warning(msg, type) {
-      this.$message({
-        showClose: true,
-        message: msg,
-        type: type || 'warning'
-      });
-    },
-    showConfirmDialog(msg, resolve) {
-      this.$alert(msg, '提示', {
-        confirmButtonText: '确定',
-        type: 'warning'
-      })
-        .then(() => {
-          resolve();
-        })
-        .catch(() => {});
-    },
-    clearFilter() {
-      this.filter = {
-        isState: '',
-        tagType: [], //标签类型
-        tagSysName: '' //标签系统名称
-      };
-    },
-    showDelDialog(item) {
-      let tmpArr = [];
-      tmpArr.push(item.conceptId);
-      const param = {
-        ids: tmpArr,
-        status: item.isDeleted === 'N' ? 'Y' : 'N'
-      };
-      let waringTxt =
-        item.isDeleted === 'N'
-          ? '是否删除该标准术语?'
-          : '是否重新启用该条数据?';
-      this.showConfirmDialog(waringTxt, () => {
-        api
-          .deleteScale(param)
-          .then(res => {
-            if (res.data.code == '0') {
-              if (!this.searched) {
-                //未点确认时清空搜索条件
-                this.clearFilter();
-              }
-              if (item.isDeleted !== 'N') {
-                //恢复成功后跳转到筛选条件的首页
-                this.currentPage = 1;
-              } else {
-                if (this.filter.isState !== '' && this.list.length === 1) {
-                  //有启用状态筛选条件且当前页只有最后一条数据删除时,删除成功后跳转到前一页
-                  this.currentPage =
-                    this.currentPage === 1 ? 1 : this.currentPage - 1;
-                }
-              }
-              this.warning(res.data.msg || '操作成功', 'success');
-              this.getDataList();
-            } else {
-              if (err.code === '900010001') {
-                return false;
-              }
-              this.warning(res.data.msg);
-            }
-          })
-          .catch(error => {
-            if (error.code === '900010001') {
-              return false;
-            }
-            this.warning(error);
-          });
-      });
-    }
-  }
-};
-</script>
-
-
-<style lang="less" scoped>
-.delete {
-  color: red;
-}
-.cell .el-button.delete:active {
-  color: red !important;
-}
-.delete:hover {
-  color: red;
-}
-</style>

+ 0 - 104
src/components/cdssManage/correlation/Correlation.vue

@@ -1,104 +0,0 @@
-<template>
-  <div class="importDisWrapper clearfix">
-    <crumbs title="关联维护设置" class="topBack" style="min-width: 980px"></crumbs>
-    <div class="importDisBox">
-      <el-form ref="form" :model="form" label-width="120px">
-        <el-form-item label="术语关联:">
-          <el-switch
-            v-if="showInfo"
-            v-model="form.value"
-            active-color="#4BC4D7"
-            inactive-color="#BBBBBB"
-            @change="handleChange($event,form.value)"
-            :disabled="disabled"
-          ></el-switch>
-          <span class="showInfo">{{showInfo}}</span>
-        </el-form-item>
-      </el-form>
-    </div>
-  </div>
-</template>
-
-<script>
-import api from '@api/icss.js';
-import config from '@api/config.js';
-import utils from '@api/utils.js';
-export default {
-  data() {
-    return {
-      form: {
-        value: true
-      },
-      hospitalId: '',
-      disabled: false,
-      showInfo: ''
-    };
-  },
-  created() {
-    this.getHospital();
-  },
-  methods: {
-    // 关联
-    handleChange($event, isCorre) {
-      this.showInfo = $event ? '开' : '关';
-      this.disabled = true;
-      let params = {
-        id: this.hospitalId,
-        connect: $event ? 1 : 0 //0-不对接,1-对接
-      };
-      api
-        .saveHospitalInfoRecord(params)
-        .then(res => {
-          if (res.data.code === '0') {
-            this.$message({
-              showClose: true,
-              message: '操作成功!',
-              type: 'success'
-            });
-            setTimeout(() => {
-              this.disabled = false;
-            }, 1500);
-          }
-        })
-        .catch(err => {
-          if (err.code === '900010001') {
-            return false;
-          }
-          this.$message({
-            showClose: true,
-            message: '操作失败!',
-            type: 'error'
-          });
-          this.disabled = false;
-        });
-    },
-
-    // 获取医院信息
-    getHospital() {
-      api.getHospitalInfo().then(res => {
-        this.hospitalId = res.data.data.id;
-        this.showInfo = res.data.data.connect === 1 ? '开' : '关';
-        this.form.value = res.data.data.connect === 1 ? true : false;
-      });
-    }
-  }
-};
-</script>
-
-<style  lang="less" scoped>
-.importDisWrapper {
-  min-width: 940px;
-  color: #606266;
-  .topBack {
-    top: 0;
-  }
-  .importDisBox {
-    padding: 80px 60px 120px 60px;
-    margin: 70px 20px 0 20px;
-    background: #fff;
-  }
-  .showInfo {
-    margin-left: 10px;
-  }
-}
-</style>