123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- <!-- 家庭病床css文件位置位于/component/common/jtbc.css -->
- <div id="app" class="jtbc">
- <div class="copd-filter-group ui-col-1 bgc-fff" style="min-width: 900px">
- <div class="searchDiv pb20 pr20">
- <label class="c-333 c-f14">
- <el-radio v-model="yearType" label="1">按活动年度:</el-radio>
- <el-select v-model="chooseYear" class="formWidth wd160">
- <el-option v-for="(item , index) in years" :key="index" :label="item" :value="item"></el-option>
- </el-select>
- </label>
- </div>
- <div class="searchDiv pb20 pr20">
- <label class="c-333 c-f14" style="display: flex; align-items: center">
- <el-radio v-model="yearType" label="2">创建时间:</el-radio>
- <el-date-picker
- v-model="chooseTime"
- type="daterange"
- range-separator="至"
- start-placeholder="开始日期"
- end-placeholder="结束日期"
- value-format="yyyy-MM-dd"></el-date-picker>
- </label>
- </div>
- <div class="searchDiv pb20 pr20">
- <label class="c-333 c-f14">居民姓名:</label>
- <el-input v-model="form.patientName" placeholder="请输入居民姓名进行搜索"></el-input>
- </div>
- <div class="searchDiv pb20 pr20">
- <label class="c-333 c-f14">手机号码:</label>
- <el-input v-model="form.mobile" placeholder="请输入居民手机号码进行搜索"></el-input>
- </div>
- <div class="searchDiv pb20 pr20">
- <label class="c-333 c-f14">签约医生:</label>
- <el-input v-model="form.doctorName" placeholder="请输入签约医生姓名进行搜索"></el-input>
- </div>
- <div class="searchDiv pb20 pr20">
- <label class="c-333 c-f14">活动名称:</label>
- <el-input v-model="form.title" placeholder="请输入活动名称进行搜索"></el-input>
- </div>
- <div class="searchDiv pb20 pr20">
- <label class="c-333 c-f14">活动一级类别:</label>
- <el-select v-model="form.firstClassify" @change="form.secondClassify = ''">
- <el-option label="全部" value=""></el-option>
- <el-option label="健康运动类" value="健康运动类"></el-option>
- <el-option label="健康教育类" value="健康教育类"></el-option>
- <el-option label="促进业务类" value="促进业务类"></el-option>
- </el-select>
- </div>
- <div class="searchDiv pb20 pr20">
- <label class="c-333 c-f14">活动二级类别:</label>
- <el-select v-model="form.secondClassify">
- <el-option :label="item.label" :value="item.value" v-for="item in getSecondClassifyList(form.firstClassify)" :key="item.value"></el-option>
- </el-select>
- </div>
- <div class="searchDiv pb20 pr20">
- <label class="c-333 c-f14">数据范围:</label>
- <el-select class="formWidth" v-model="form.range" placeholder="请选择" @change="resetArea">
- <el-option v-for="(option, index) in rangeOptions" :label="option.label" :value="option.value" :key="option.value"></el-option>
- </el-select>
- </div>
- <div class="searchDiv pb20 pr20">
- <label class="c-333 c-f14">地区:</label>
- <el-select class="formWidth" v-model="form.area" placeholder="请选择" @change="getHospital">
- <el-option v-for="(option, index) in areaOptions" :label="option.label" :value="option.value" :key="option.value"></el-option>
- </el-select>
- </div>
- <div class="searchDiv pb20 pr20" v-if="form.range == 'hospital'||form.range == 'team'">
- <label class="c-333 c-f14">社区:</label>
- <el-select class="formWidth" v-model="form.hospital" placeholder="请选择" @change="getTeam">
- <el-option v-for="(option, index) in hospitalOptions" :label="option.name" :value="option.code" :key="option.code"></el-option>
- </el-select>
- </div>
- <div class="searchDiv pb20 pr20" v-if="form.range == 'team'">
- <label class="c-333 c-f14">团队:</label>
- <el-select class="formWidth" v-model="form.team" placeholder="请选择">
- <el-option v-for="(option, index) in teamOptions" :label="option.name" :value="option.id" :key="option.id"></el-option>
- </el-select>
- </div>
- <div class="searchDiv pb20">
- <el-button type="primary" size="mini" @click="searchFn">查询</el-button>
- <el-button type="ff9526" size="mini" @click="exportTable" :disabled="exportLoading">导出</el-button>
- <span class="eliminate" @click="eliminateClick">清除筛选条件</span>
- </div>
- </div>
- <el-table :data="tableData" style="width: 100%" v-loading="loading">
- <el-table-column type="index" label="序号" width="80"></el-table-column>
- <el-table-column v-for="item in tableHeader" :key="item.id" :label="item.label" :min-width="item.width || 140">
- <template slot-scope="scope">
- <span>{{scope.row[item.prop]}}</span>
- </template>
- </el-table-column>
- </el-table>
- <el-pagination
- @current-change="handleCurrentChange"
- @size-change="handleSizeChange"
- :current-page.sync="page"
- :page-size="size"
- :page-sizes="[10, 20, 50]"
- layout="total, sizes, prev, pager, next, jumper"
- :total="total"
- class="pagination"></el-pagination>
- </div>
|