龚焕茏
2024-05-11 e96d330e1424f3b3c32d1fdbc54bbbb333c39038
feat:人员状态增加正常选项
1个文件已修改
7 ■■■■■ 已修改文件
src/views/user/student/list.vue 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/user/student/list.vue
@@ -35,9 +35,9 @@
          <el-tag style="margin: 5px;" v-for="(item,index) in row.tagNames" :key="index">{{ item }}</el-tag>
        </template>
      </el-table-column>
      <el-table-column label="人员状态" prop="condition">
      <el-table-column label="人员状态" prop="condition" align="center" width="100px">
        <template slot-scope="{row}">
          <el-tag type="warning" v-if="row.condition">{{ row.condition }}</el-tag>
          <el-tag :type="row.condition == '正常' || row.condition == null  ? 'success' : 'warning'">{{ row.condition ? row.condition : '正常' }}</el-tag>
        </template>
      </el-table-column>
      <el-table-column prop="conditionDetail" label="具体情况" show-overflow-tooltip="true"/>
@@ -71,8 +71,9 @@
                @pagination="search"/>
    <!-- 状态弹窗 -->
    <el-dialog :visible.sync="statusVisible" append-to-body :close-on-click-modal="false" :show-close="false" center width="300px">
    <el-dialog :visible.sync="statusVisible" append-to-body :close-on-click-modal="false" :show-close="false" center width="400px">
      <el-radio-group v-model="user.condition">
        <el-radio label="正常">正常</el-radio>
        <el-radio label="病假">病假</el-radio>
        <el-radio label="出差">出差</el-radio>
        <el-radio label="其他">其他</el-radio>