Browse Source

检查督导样式修改

liangjiahao 3 năm trước cách đây
mục cha
commit
f1cb013749

+ 16 - 0
src/api/medicalhealth/diagnose.js

@@ -50,4 +50,20 @@ export function exportDiagnose(query) {
     method: 'get',
     params: query
   })
+}
+// 查询部门 
+export function getDept(query) {
+  return request({
+    url: '/grassrootsregistration/common/getDept',
+    method: 'get',
+    params: query
+  })
+}
+// 查找主持人/人员
+export function getZhuChiRen(data) {
+  return request({
+    url: '/grassrootsregistration/common/getZhuChiRen',
+    method: 'get',
+    params: { deptId: data }
+  })
 }

+ 36 - 1
src/views/bdglregular/regularinfo/index.vue

@@ -167,11 +167,13 @@
           v-model="queryParams.caoZuoType"
           @change="caoZuoTypefun"
         >
-          <el-radio-button label="0">减分</el-radio-button>
+          
           <el-radio-button label="1">加分</el-radio-button>
+          <el-radio-button label="0">减分</el-radio-button>
         </el-radio-group>
       </el-col>
     </el-row>
+    <hr/>
     <el-row :gutter="10" class="mb8">
       <el-col :span="1.5">
         <el-button
@@ -1046,4 +1048,37 @@ export default {
 ::v-deep .el-dialog__footer {
   margin-right: 5px;
 }
+.isSubmit {
+   margin-left: 42% !important;  
+}
+.el-radio-button {
+width: 122px !important;
+height: 30px !important;
+line-height: 30px !important;
+border: none !important;
+}
+::v-deep .el-radio-button__inner{
+  width: 120px !important;
+height: 30px !important;
+  line-height: 8px !important;
+  background: rgb(10, 67, 224);
+  border: none;
+  color: #fff;
+}
+::v-deep .el-radio-button:first-child .el-radio-button__inner{
+  border-left: none !important;
+}
+::v-deep .el-radio-button__orig-radio:checked + .el-radio-button__inner {
+    color: #FFFFFF;
+    background-color: #034b81 !important;
+    border-color: #034b81 !important;
+    -webkit-box-shadow: -1px 0 0 0 #034b81 !important;
+    box-shadow: -1px 0 0 0 #034b81 !important;
+}
+/* 将水平线设为红色: */
+hr {
+ border: none;
+ height: 1px;
+ background-color: rgba(204, 204, 204, 0.5);
+}
 </style>

+ 38 - 4
src/views/bdglregular/specialinfo/index.vue

@@ -125,12 +125,13 @@
         <el-radio-group
           v-model="queryParams.caoZuoType"
           @change="caoZuoTypefun"
-        >
+        ><el-radio-button label="1">加分</el-radio-button>
           <el-radio-button label="0">减分</el-radio-button>
-          <el-radio-button label="1">加分</el-radio-button>
+          
         </el-radio-group>
       </el-col>
     </el-row>
+    <hr/>
     <el-row :gutter="10" class="mb8">
       <el-col :span="1.5">
         <el-button
@@ -193,10 +194,10 @@
           v-hasPermi="['bdglregular:specialinfo:export']"
         >导出</el-button>
       </el-col>-->
-      <right-toolbar
+      <!-- <right-toolbar
         :showSearch.sync="showSearch"
         @queryTable="getList"
-      ></right-toolbar>
+      ></right-toolbar> -->
     </el-row>
 
     <el-table
@@ -936,4 +937,37 @@ export default {
 ::v-deep .el-dialog__footer {
   margin-right: 5px;
 }
+.isSubmit {
+   margin-left: 42% !important;  
+}
+.el-radio-button {
+width: 122px !important;
+height: 30px !important;
+line-height: 30px !important;
+border: none !important;
+}
+::v-deep .el-radio-button__inner{
+  width: 120px !important;
+height: 30px !important;
+  line-height: 8px !important;
+  background: rgb(10, 67, 224);
+  border: none;
+  color: #fff;
+}
+::v-deep .el-radio-button:first-child .el-radio-button__inner{
+  border-left: none !important;
+}
+::v-deep .el-radio-button__orig-radio:checked + .el-radio-button__inner {
+    color: #FFFFFF;
+    background-color: #034b81 !important;
+    border-color: #034b81 !important;
+    -webkit-box-shadow: -1px 0 0 0 #034b81 !important;
+    box-shadow: -1px 0 0 0 #034b81 !important;
+}
+/* 将水平线设为红色: */
+hr {
+ border: none;
+ height: 1px;
+ background-color: rgba(204, 204, 204, 0.5);
+}
 </style>

+ 67 - 40
src/views/grassrootsregistration/bdglweekwork/index.vue

@@ -7,6 +7,22 @@
       v-show="showSearch"
       label-width="68px"
     >
+      <!-- <el-form-item prop="unitId">
+        <el-select
+          v-model="queryParams.unitId"
+          placeholder="请选择单位"
+          @change="host"
+        >
+          <el-option
+            v-for="(item, i) in deptOptionss"
+            :key="i"
+            :label="item.deptName"
+            :value="item.deptId"
+            class="input_xiala"
+          >
+          </el-option>
+        </el-select>
+      </el-form-item> -->
       <el-form-item label="" prop="time">
         <el-date-picker
           clearable
@@ -287,26 +303,6 @@
             label-width="80px"
             :inline="true"
           >
-            <el-form-item label="" prop="week">
-              <el-input
-                v-model="item.week"
-                placeholder="星期"
-                class="input_xiala"
-                readonly
-              >
-                {{ item.time }}
-              </el-input>
-              <!-- <el-select v-model="item.week">
-                <el-option
-                  v-for="item in week"
-                  :key="item.value"
-                  :label="item.label"
-                  :value="item.label"
-                >
-                </el-option>
-              </el-select> -->
-            </el-form-item>
-
             <el-form-item label="" prop="daytime">
               <el-date-picker
                 v-model="item.time"
@@ -314,10 +310,21 @@
                 value-format="yyyy-MM-dd"
                 placeholder="选择时间"
                 @change="change_time"
-                :firstDayOfWeek="btn"
               >
               </el-date-picker>
             </el-form-item>
+            <el-form-item label="" prop="week">
+              <el-select v-model="item.week" placeholder="星期">
+                <el-option
+                  v-for="item in week"
+                  :key="item.value"
+                  :label="item.label"
+                  :value="item.label"
+                  class="input_xiala"
+                >
+                </el-option>
+              </el-select>
+            </el-form-item>
             <el-form-item label="" prop="day">
               <el-select v-model="item.dateline" placeholder="早晨">
                 <el-option
@@ -332,6 +339,7 @@
             </el-form-item>
 
             <el-time-select
+             class="b1"
               placeholder="起始时间"
               v-model="item.startTime"
               :picker-options="{
@@ -342,6 +350,7 @@
             >
             </el-time-select>
             <el-time-select
+            class="b1"
               placeholder="结束时间"
               v-model="item.endTime"
               :picker-options="{
@@ -464,7 +473,6 @@ import {
   getZhuChiRen,
   getDept,
   getShouBu,
-  getDate,
 } from "@/api/grassrootsregistration/bdglmeeting";
 export default {
   name: "Bdglweekwork",
@@ -527,7 +535,37 @@ export default {
       //工作等级时间(开始-结束)
       startTime: "",
       endTime: "",
-
+      //星期选择
+      week: [
+        {
+          value: "选项1",
+          label: "星期一",
+        },
+        {
+          value: "选项2",
+          label: "星期二",
+        },
+        {
+          value: "选项3",
+          label: "星期三",
+        },
+        {
+          value: "选项4",
+          label: "星期四",
+        },
+        {
+          value: "选项5",
+          label: "星期五",
+        },
+        {
+          value: "选项6",
+          label: "星期六",
+        },
+        {
+          value: "选项7",
+          label: "星期日",
+        },
+      ],
       //早中晚选中
       day: [
         {
@@ -571,7 +609,6 @@ export default {
       code: 0,
       // 单位的保存
       names: "",
-      num: 0,
     };
   },
   created() {
@@ -580,9 +617,6 @@ export default {
     this.getDept();
   },
   methods: {
-    btn(value) {
-      console.log(value);
-    },
     //增加工作登记表单
     tianJia() {
       this.tomList.push({
@@ -596,31 +630,21 @@ export default {
         address: null,
         contents: null,
       });
-      this.num++;
     },
     //点击删除工作登记
     jtDelete(i) {
       this.tomList.splice(i, 1);
-      this.num--;
     },
     // 搜索时间触发
     tiem() {
       this.getList();
     },
 
-    // 点击日期获取时间
     change_time(date) {
-      var i = this.num;
-      var dangqian = this.getNowWeek(date);
-      // this.tomList[this.num].week = this.getNowWeek(date);
-      // this.xingQi = this.getNowWeek(date);
-      // this.tomList.forEach((item) => {
-      //   console.log(item);
-      //   // item[i].week = dangqian;
-      // });
-      this.tomList[i].week = dangqian;
+      console.log(`data${date}`);
       console.log(this.getNowWeek(date));
     },
+
     // 搜索单位触发
     host() {
       this.getList();
@@ -851,7 +875,6 @@ export default {
             });
           } else {
             this.form.bdglWeekworkRegisterList = this.tomList;
-            this.form.week = this.xingQi;
             if (this.code != 200) {
               if (this.form.unitId) {
                 addBdglweekwork(this.form).then((response) => {
@@ -1101,4 +1124,8 @@ export default {
 ::v-deep ::-webkit-input-placeholder {
   color: #bdbdbd4f !important;
 }
+::v-deep .el-picker-panel .el-scrollbar .time-select-item {
+  color: #fff !important;
+}
+
 </style>

+ 177 - 35
src/views/medicalhealth/diagnose/index.vue

@@ -16,7 +16,7 @@
           @keyup.enter.native="handleQuery"
         />
       </el-form-item>
-      <el-form-item label="人员" prop="peopleId">
+      <!-- <el-form-item label="人员" prop="peopleId">
         <el-input
           v-model="queryParams.peopleId"
           placeholder="请输入人员"
@@ -73,7 +73,7 @@
           size="small"
           @keyup.enter.native="handleQuery"
         />
-      </el-form-item>
+      </el-form-item> -->
       <el-form-item label="登记时间" prop="createtime">
         <el-input
           v-model="queryParams.createtime"
@@ -83,7 +83,7 @@
           @keyup.enter.native="handleQuery"
         />
       </el-form-item>
-      <el-form-item label="更新时间" prop="updatetime">
+      <!-- <el-form-item label="更新时间" prop="updatetime">
         <el-input
           v-model="queryParams.updatetime"
           placeholder="请输入更新时间"
@@ -91,18 +91,12 @@
           size="small"
           @keyup.enter.native="handleQuery"
         />
-      </el-form-item>
+      </el-form-item> -->
       <el-form-item>
-        <el-button
-          type="primary"
-          icon="el-icon-search"
-          size="mini"
-          @click="handleQuery"
+        <el-button type="primary" size="btn" @click="handleQuery"
           >搜索</el-button
         >
-        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
-          >重置</el-button
-        >
+        <el-button size="btr" @click="resetQuery">重置</el-button>
       </el-form-item>
     </el-form>
 
@@ -154,21 +148,21 @@
           >导出</el-button
         >
       </el-col>
-      <right-toolbar
+      <!-- <right-toolbar
         :showSearch.sync="showSearch"
         @queryTable="getList"
-      ></right-toolbar>
+      ></right-toolbar> -->
     </el-row>
 
     <el-table
       v-loading="loading"
       :data="diagnoseList"
       @selection-change="handleSelectionChange"
+      :header-cell-style="{ background: '#003C69', color: 'white' }"
     >
       <el-table-column type="selection" width="55" align="center" />
-      <el-table-column label="病情" align="center" prop="id" />
       <el-table-column label="单位" align="center" prop="unitId" />
-      <el-table-column label="人员" align="center" prop="peopleId" />
+      <el-table-column label="人员" align="center" prop="peopleName" />
       <el-table-column label="地点" align="center" prop="address" />
       <el-table-column
         label="外诊日期"
@@ -181,7 +175,7 @@
         </template>
       </el-table-column>
       <el-table-column label="时长" align="center" prop="duration" />
-      <el-table-column
+       <el-table-column
         label="返回日期"
         align="center"
         prop="endTime"
@@ -194,6 +188,7 @@
       <el-table-column label="登记人" align="center" prop="adminId" />
       <el-table-column label="登记时间" align="center" prop="createtime" />
       <el-table-column label="更新时间" align="center" prop="updatetime" />
+      <!-- <el-table-column label="病情" align="center" prop="id" /> -->
       <el-table-column label="病情" align="center" prop="illness" />
       <el-table-column
         label="操作"
@@ -202,17 +197,15 @@
       >
         <template slot-scope="scope">
           <el-button
-            size="mini"
+            size="btu"
             type="text"
-            icon="el-icon-edit"
             @click="handleUpdate(scope.row)"
             v-hasPermi="['medicalhealth:diagnose:edit']"
             >修改</el-button
           >
           <el-button
-            size="mini"
+            size="btd"
             type="text"
-            icon="el-icon-delete"
             @click="handleDelete(scope.row)"
             v-hasPermi="['medicalhealth:diagnose:remove']"
             >删除</el-button
@@ -230,17 +223,48 @@
     />
 
     <!-- 添加或修改外诊管理对话框 -->
-    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
-      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
+    <el-dialog
+      :title="title"
+      :visible.sync="open"
+      width="620px"
+      append-to-body
+      :close-on-click-modal="false"
+    >
+      <div class="jiben">基本信息</div>
+      <el-form
+        ref="form"
+        :model="form"
+        :rules="rules"
+        label-width="80px"
+        :inline="true"
+      >
         <el-form-item label="单位" prop="unitId">
-          <el-input v-model="form.unitId" placeholder="请输入单位" />
+           <treeselect
+            v-model="form.unitId"
+            placeholder="请输入单位"
+            :options="deptOptions"
+            @select="shuxing"
+          />
         </el-form-item>
         <el-form-item label="人员" prop="peopleId">
-          <el-input v-model="form.peopleId" placeholder="请输入人员" />
+          <el-select v-model="form.peopleId" placeholder="请输入人员">
+            <el-option
+              class="input_xiala"
+              v-for="(item, i) in renYuan"
+              :key="i"
+              :value="item.id"
+              :label="item.name"
+               @click.native="xingMing(item.name)"
+            >
+            </el-option>
+          </el-select>
         </el-form-item>
         <el-form-item label="地点" prop="address">
           <el-input v-model="form.address" placeholder="请输入地点" />
         </el-form-item>
+        <el-form-item label="时长" prop="duration">
+          <el-input v-model="form.duration" placeholder="请输入时长" />
+        </el-form-item>
         <el-form-item label="外诊日期" prop="startTime">
           <el-date-picker
             clearable
@@ -252,9 +276,6 @@
           >
           </el-date-picker>
         </el-form-item>
-        <el-form-item label="时长" prop="duration">
-          <el-input v-model="form.duration" placeholder="请输入时长" />
-        </el-form-item>
         <el-form-item label="返回日期" prop="endTime">
           <el-date-picker
             clearable
@@ -266,10 +287,33 @@
           >
           </el-date-picker>
         </el-form-item>
-        <el-form-item label="登记人" prop="adminId">
-          <el-input v-model="form.adminId" placeholder="请输入登记人" />
+        <el-form-item label="登记时间" prop="createtime">
+          <el-date-picker
+            clearable
+            size="small"
+            v-model="form.createtime"
+            type="date"
+            value-format="yyyy-MM-dd"
+            placeholder="选择登记时间"
+          >
+          </el-date-picker>
+        </el-form-item>
+        <el-form-item label="更新时间" prop="updatetime">
+          <el-date-picker
+            clearable
+            size="small"
+            v-model="form.updatetime"
+            type="date"
+            value-format="yyyy-MM-dd"
+            placeholder="选择更新时间"
+          >
+          </el-date-picker>
         </el-form-item>
-        <el-form-item label="病情" prop="illness">
+        <!-- <el-form-item label="登记人" prop="adminId">
+          <el-input v-model="form.adminId" placeholder="请输入登记人" />
+        </el-form-item> -->
+        <div class="jiben">病情</div>
+        <el-form-item label="" prop="illness">
           <el-input
             v-model="form.illness"
             type="textarea"
@@ -293,10 +337,17 @@ import {
   addDiagnose,
   updateDiagnose,
   exportDiagnose,
+  getDept,
+  getZhuChiRen,
 } from "@/api/medicalhealth/diagnose";
-
+// 导入树形结构
+import Treeselect from "@riophae/vue-treeselect";
+import "@riophae/vue-treeselect/dist/vue-treeselect.css";
 export default {
   name: "Diagnose",
+  components: {
+    Treeselect,
+  },
   data() {
     return {
       // 遮罩层
@@ -338,12 +389,22 @@ export default {
       form: {},
       // 表单校验
       rules: {},
+      // 树形单位
+      deptOptions: [],
+      // 人员列表
+      renYuan: [],
     };
   },
   created() {
     this.getList();
   },
   methods: {
+    /** 查询部门下拉树结构 */
+    getTreeselect() {
+      getDept().then((response) => {
+        this.deptOptions = response.data;
+      });
+    },
     /** 查询外诊管理列表 */
     getList() {
       this.loading = true;
@@ -393,6 +454,7 @@ export default {
     },
     /** 新增按钮操作 */
     handleAdd() {
+      this.getTreeselect();
       this.reset();
       this.open = true;
       this.title = "添加外诊管理";
@@ -400,26 +462,46 @@ export default {
     /** 修改按钮操作 */
     handleUpdate(row) {
       this.reset();
+      this.getTreeselect();
       const id = row.id || this.ids;
       getDiagnose(id).then((response) => {
         this.form = response.data;
+        this.getRenYuan(this.form.unitId)
         this.open = true;
         this.title = "修改外诊管理";
       });
     },
+    //点击单位触发
+    shuxing(data){
+      console.log(data);
+      this.form.unitId = data.id;
+      this.form.unitName=data.label
+      this.getRenYuan(this.form.unitId);
+    },
+    // 获取人员
+    getRenYuan(id) {
+      console.log(id);
+      getZhuChiRen(id).then((res) => {
+        this.renYuan = res.data;
+      });
+    },
+     // 点击人员触发
+    xingMing(name) {
+      this.form.peopleName = name;
+    },
     /** 提交按钮 */
     submitForm() {
       this.$refs["form"].validate((valid) => {
         if (valid) {
           if (this.form.id != null) {
             updateDiagnose(this.form).then((response) => {
-              this.msgSuccess("修改成功");
+              this.$modal.msgSuccess("修改成功");
               this.open = false;
               this.getList();
             });
           } else {
             addDiagnose(this.form).then((response) => {
-              this.msgSuccess("新增成功");
+              this.$modal.msgSuccess("新增成功");
               this.open = false;
               this.getList();
             });
@@ -440,7 +522,7 @@ export default {
         })
         .then(() => {
           this.getList();
-          this.msgSuccess("删除成功");
+          this.$modal.msgSuccess("删除成功");
         })
         .catch(() => {});
     },
@@ -465,3 +547,63 @@ export default {
   },
 };
 </script>
+<style scoped>
+/* 对话框背景颜色 */
+::v-deep .el-dialog {
+  background: #004d86 !important;
+}
+::v-deep .el-textarea__inner {
+  width: 576px;
+  height: 104px;
+  margin: auto;
+}
+::v-deep .el-dialog__header {
+  border-bottom: 1px solid #718a9d;
+}
+::v-deep .el-dialog__title {
+  color: #fff;
+  font: 18px;
+}
+::v-deep .el-input__inner {
+  /* width: 200px !important;
+  height: 36px; */
+  background: transparent;
+  color: #fff;
+  border: 1px solid white !important;
+}
+/*调整表单间距 */
+::v-deep .el-form-item__content {
+  width: 200px;
+}
+/* ::v-deep .el-dialog__body {
+  margin-left: 70px !important;
+} */
+/* 单位框背景颜色 */
+::v-deep .vue-treeselect__control {
+  background: #004d86 !important;
+}
+/* 单位下拉菜单选中字体颜色 */
+::v-deep .vue-treeselect__single-value {
+  color: #fff !important;
+}
+/* 时间选择 */
+::v-deep .el-input--small .el-input__inner {
+  width: 200px;
+  height: 36px;
+  line-height: 36px;
+}
+/* 基本信息背景 */
+.jiben {
+  width: 576px;
+  height: 32px;
+  background-image: url(../../../images/小标题底.png);
+  background-size: 100%;
+  margin-bottom: 25px;
+  color: #fff;
+  padding-left: 16px;
+  line-height: 32px;
+}
+::v-deep .el-dialog__footer {
+  margin-right: 6px;
+}
+</style>

+ 22 - 20
src/views/medicalhealth/examine/index.vue

@@ -7,7 +7,7 @@
       v-show="showSearch"
       label-width="68px"
     >
-      <el-form-item label="单位" prop="unitId">
+      <el-form-item label="" prop="unitId">
         <el-input
           v-model="queryParams.unitId"
           placeholder="请输入单位"
@@ -16,7 +16,7 @@
           @keyup.enter.native="handleQuery"
         />
       </el-form-item>
-      <el-form-item label="姓名" prop="peopleId">
+      <el-form-item label="" prop="peopleId">
         <el-input
           v-model="queryParams.peopleId"
           placeholder="请输入姓名"
@@ -25,7 +25,7 @@
           @keyup.enter.native="handleQuery"
         />
       </el-form-item>
-      <el-form-item label="工作岗位" prop="job">
+      <el-form-item label="" prop="job">
         <el-input
           v-model="queryParams.job"
           placeholder="请输入工作岗位"
@@ -34,7 +34,7 @@
           @keyup.enter.native="handleQuery"
         />
       </el-form-item>
-      <el-form-item label="人员类别" prop="classId">
+      <el-form-item label="" prop="classId">
         <el-input
           v-model="queryParams.classId"
           placeholder="请输入人员类别"
@@ -99,10 +99,10 @@
           >导出</el-button
         >
       </el-col>
-      <right-toolbar
+      <!-- <right-toolbar
         :showSearch.sync="showSearch"
         @queryTable="getList"
-      ></right-toolbar>
+      ></right-toolbar> -->
     </el-row>
 
     <el-table
@@ -113,8 +113,8 @@
     >
       <el-table-column type="selection" width="55" align="center" />
       <el-table-column label="人员类别" align="center" prop="id" />
-      <el-table-column label="单位" align="center" prop="unitId" />
-      <el-table-column label="姓名" align="center" prop="peopleId" />
+      <el-table-column label="单位" align="center" prop="unitName" />
+      <el-table-column label="姓名" align="center" prop="peopleName" />
       <el-table-column label="工作岗位" align="center" prop="job" />
       <el-table-column label="人员类别" align="center" prop="classId" />
       <el-table-column
@@ -124,17 +124,15 @@
       >
         <template slot-scope="scope">
           <el-button
-            size="mini"
+            size="btu"
             type="text"
-            icon="el-icon-edit"
             @click="handleUpdate(scope.row)"
             v-hasPermi="['medicalhealth:examine:edit']"
             >修改</el-button
           >
           <el-button
-            size="mini"
+            size="btd"
             type="text"
-            icon="el-icon-delete"
             @click="handleDelete(scope.row)"
             v-hasPermi="['medicalhealth:examine:remove']"
             >删除</el-button
@@ -170,7 +168,7 @@
         </el-form-item>
         <el-form-item label="姓名" prop="peopleId">
           <el-select v-model="form.peopleId" placeholder="请输入姓名">
-             <el-option
+            <el-option
               class="input_xiala"
               v-for="(item, i) in renYuan"
               :key="i"
@@ -178,15 +176,15 @@
               :label="item.name"
               @click.native="xingMing(item.name)"
             >
-             </el-option>
+            </el-option>
           </el-select>
         </el-form-item>
         <el-form-item label="工作岗位" prop="job">
           <el-input v-model="form.job" placeholder="请输入工作岗位" />
         </el-form-item>
-        <!-- <el-form-item label="人员类别" prop="classId">
+        <el-form-item label="人员类别" prop="classId">
           <el-input v-model="form.classId" placeholder="请输入人员类别" />
-        </el-form-item> -->
+        </el-form-item>
       </el-form>
       <div slot="footer" class="dialog-footer">
         <el-button type="primary" @click="submitForm">确 定</el-button>
@@ -261,7 +259,8 @@ export default {
   },
   methods: {
     // 点击人员触发
-    xingMing(name){
+    xingMing(name) {
+      this.form.peopleName = name;
     },
     /** 查询部门下拉树结构 */
     getTreeselect() {
@@ -324,13 +323,16 @@ export default {
       const id = row.id || this.ids;
       getExamine(id).then((response) => {
         this.form = response.data;
+        this.getRenYuan(this.form.unitId)
         this.open = true;
         this.title = "修改人员体检信息";
       });
     },
     // 点击单位触发
     shuxing(data) {
+      console.log(data);
       this.form.unitId = data.id;
+      this.form.unitName=data.label
       this.getRenYuan(this.form.unitId);
     },
     // 获取人员
@@ -345,13 +347,13 @@ export default {
         if (valid) {
           if (this.form.id != null) {
             updateExamine(this.form).then((response) => {
-                this.$modal.msgSuccess("修改成功");
+              this.$modal.msgSuccess("修改成功");
               this.open = false;
               this.getList();
             });
           } else {
             addExamine(this.form).then((response) => {
-                this.$modal.msgSuccess("新增成功");
+              this.$modal.msgSuccess("新增成功");
               this.open = false;
               this.getList();
             });
@@ -372,7 +374,7 @@ export default {
         })
         .then(() => {
           this.getList();
-            this.$modal.msgSuccess("删除成功");
+          this.$modal.msgSuccess("删除成功");
         })
         .catch(() => {});
     },

+ 7 - 2
src/views/system/post/index.vue

@@ -113,11 +113,16 @@
       <el-table-column label="岗位名称" align="center" prop="postName" />
       <el-table-column label="岗位排序" align="center" prop="postSort" />
       <el-table-column label="状态" align="center" prop="status">
-        <template slot-scope="scope">
+        <!-- <template slot-scope="scope">
           <dict-tag
             :options="dict.type.sys_normal_disable"
             :value="scope.row.status"
-          />
+          /> -->
+           <template slot-scope="scope">
+          <span v-if="scope.row.status == '0'" style="color: #1d96ff"
+            >正常</span
+          >
+          <span v-if="scope.row.status == '1'" style="color=#FF4949">停用</span>
         </template>
       </el-table-column>
       <el-table-column