Tcsm
2023-04-24 3b27872f10a6618af42fd86ff5c4602894fab589
ruoyi-ui/src/views/doctor/index.vue
@@ -94,6 +94,16 @@
          <i slot="prefix" class="el-input__icon el-icon-search"></i>
        </el-input>
      </el-form-item>
      <el-form-item label="功效" prop="effect">
        <el-input
          v-model="queryParams.effect"
          placeholder="请输入功效"
          clearable
          style="width: 240px"
          @keyup.enter.native="handleQuery">
          <i slot="prefix" class="el-input__icon el-icon-search"></i>
        </el-input>
      </el-form-item>
      <el-form-item label="适用人" prop="suitable">
        <el-input
          v-model="queryParams.suitable"
@@ -153,7 +163,7 @@
        <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
      </el-row>
    </div>
    <el-table v-loading="loading" :data="doctorList" @selection-change="handleSelectionChange">
    <el-table v-loading="loading" :data="doctorList" @selection-change="handleSelectionChange" :row-class-name="tableRowClassName" style="background: #FFEFF2;  border-radius: 14px 14px 14px 14px;">
      <el-table-column type="selection" width="25"  align="center" />
      <el-table-column label="序号" prop="id" sortable width="80" />
      <el-table-column label="类型" prop="type" sortable width="80">
@@ -323,7 +333,7 @@
      <h4 class="form-header"> </h4>
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click="submitDataScope">确 定</el-button>
        <el-button type="primary" @click="submitDataScope">保 存</el-button>
        <el-button @click="cancelData">取 消</el-button>
      </div>
    </el-dialog>
@@ -417,6 +427,7 @@
        symptom:undefined,
        cmedical:undefined,
        suitable:undefined,
        effect:undefined,
      },
      // searchVal:"",
@@ -489,6 +500,14 @@
      this.reset();
    },
    //隔行变色
    tableRowClassName({ row, rowIndex }) {
      if (rowIndex % 2 == 0) {
        return "statistics-warning-row1";
      } else {
        return "statistics-warning-row";
      }
    },
    /** 查询记录列表 */
    getList() {
      this.loading = true;
@@ -671,3 +690,16 @@
  }
};
</script>
<style>
.el-table__row.statistics-warning-row {
  background: #E0EEFE;
}
.el-table__row.statistics-warning-row1 {
  background: #FFEFF2;
}
</style>