zhongrj
2024-03-16 7788c9491fef2b57dfedfea3f8da04537d766030
从业人员样式修改
1 files modified
50 ■■■■■ changed files
src/views/place/practitioner.vue 50 ●●●●● patch | view | raw | blame | history
src/views/place/practitioner.vue
@@ -4,26 +4,21 @@
      :permission="permissionList" @row-save="rowSave" :before-open="beforeOpen" @search-change="searchChange"
      @search-reset="searchReset" @selection-change="selectionChange" @current-change="currentChange"
      @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad">
      <template slot-scope="{row}" slot="location">
        <span v-text="showLocation(row.location)"></span>
      <template slot-scope="{row, size}" slot="age">
        <el-tag :size="size">{{
      row.age
    }}</el-tag>
      </template>
      <template slot-scope="{row}" slot="lng">
        <span v-text="decimalProcessing(row.lng)"></span>
      </template>
      <template slot-scope="{row}" slot="lat">
        <span v-text="decimalProcessing(row.lat)"></span>
      </template>
      <template slot-scope="{row, size}" slot="confirmFlag">
        <el-tag :size="size" :type="showConfirmFlag(row.confirmFlag).type">{{
      showConfirmFlag(row.confirmFlag).text
      <template slot-scope="{row, size}" slot="gender">
        <el-tag :size="size" :type="showGender(row.gender).type">{{
      showGender(row.gender).text
    }}</el-tag>
      </template>
      <template slot-scope="{row, size}" slot="resignationFlag">
        <el-tag :size="size" :type="showResignationFlag(row.resignationFlag).type">{{ showResignationFlag(row.resignationFlag).text
        <el-tag :size="size" :type="showResignationFlag(row.resignationFlag).type">{{
      showResignationFlag(row.resignationFlag).text
          }}</el-tag>
      </template>
@@ -149,6 +144,7 @@
          label: "性别",
          prop: "gender",
          width: 80,
          align:"center",
          type: "select",
          dicData: [
            {
@@ -193,6 +189,7 @@
          width: 80,
          label: "年龄",
          prop: "age",
          align:"center"
        },
        {
          minWidth: 160,
@@ -374,15 +371,26 @@
      }
    },
    showLocation() {
    showGender() {
      return (data) => {
        if (data != null && data.indexOf(',') != -1) {
          data = data.split(',')
          return data[2]
        } else {
          return data || ''
        let tags = {
          text: '',
          type: ''
        }
        if (data == 1) {
          tags = {
            text: '男',
            type: 'primary'
          }
        } else if (data == 2) {
          tags = {
            text: '女',
            type: 'primary'
          }
        }
        return tags
      }
    },