1.将家庭小医生和收藏荣誉模块的的类别改为选择的形式
2.荣誉证书页面的选择式类别暂时无法搜索和新增
| | |
| | | data: data |
| | | }) |
| | | } |
| | | //拿到类别 |
| | | export function getCategory() |
| | | { |
| | | return request({ |
| | | url: '/zDict/byId', |
| | | method: 'get', |
| | | params: {'id':21} |
| | | }) |
| | | } |
| | |
| | | </el-cow> |
| | | <el-cow > |
| | | <el-form-item label="类别" prop="type" label-width="40px" style="background: #FAD1E0;border-radius: 7px 7px 7px 7px;opacity: 1;"> |
| | | <el-input v-model="formData.type" placeholder="请输入类别" clearable :style="{width: '100%'}" :disabled="dsb"> |
| | | </el-input> |
| | | <el-select v-model="formData.type" placeholder="请选择类别" clearable :style="{width: '100%'}" > |
| | | <el-option v-for="(item, index) in typeOptions" :key="index" :label="item.label" :value="item.value" |
| | | ></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-cow> |
| | | <el-cow > |
| | |
| | | }], |
| | | |
| | | }, |
| | | typeOptions: [], |
| | | typeOptions: [ |
| | | { |
| | | value: '邮票', |
| | | label: '邮票' |
| | | }, { |
| | | value: '日本军刀', |
| | | label: '日本军刀' |
| | | }, { |
| | | value: '茅台酒', |
| | | label: '茅台酒' |
| | | }, { |
| | | value: '红木', |
| | | label: '红木' |
| | | }, { |
| | | value: '纪念品', |
| | | label: '纪念品' |
| | | }, { |
| | | value: '瓷器', |
| | | label: '瓷器' |
| | | }, { |
| | | value: '书籍', |
| | | label: '书籍' |
| | | } |
| | | ], |
| | | } |
| | | }, |
| | | computed: {}, |
| | |
| | | range-separator="-" |
| | | start-placeholder="开始日期" |
| | | end-placeholder="结束日期" |
| | | @keyup.enter.native="handleQuery" |
| | | ></el-date-picker> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="类别" prop="type" > |
| | | <el-input |
| | | <el-form-item label="类别" prop="type"> |
| | | <el-select |
| | | v-model="queryParams.type" |
| | | placeholder="请输入类别" |
| | | placeholder="所有类别" |
| | | clearable |
| | | style="width: 240px" |
| | | @keyup.enter.native="handleQuery"> |
| | | <i slot="prefix" class="el-input__icon el-icon-search"></i> |
| | | </el-input> |
| | | @keyup.enter.native="handleQuery" |
| | | > |
| | | <el-option |
| | | v-for="item in typeOptions" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <!-- <el-form-item label="类别" prop="type">--> |
| | | <!-- <el-select--> |
| | | <!-- v-model="queryParams.type"--> |
| | | <!-- placeholder="所有类别"--> |
| | | <!-- clearable--> |
| | | <!-- style="width: 240px"--> |
| | | <!-- @keyup.enter.native="handleQuery"--> |
| | | <!-- >--> |
| | | <!-- <el-option--> |
| | | <!-- v-for="dict in typeOptions"--> |
| | | <!-- :key="dict.value"--> |
| | | <!-- :label="dict.label"--> |
| | | <!-- :value="dict.value"--> |
| | | |
| | | <!-- />--> |
| | | <!-- </el-select>--> |
| | | <!-- </el-form-item>--> |
| | | <el-cntainer> |
| | | <el-col :span="9" > |
| | | <el-form-item> |
| | |
| | | <el-table-column label="获得时间" prop="happenTime" sortable width="100" align="center"> |
| | | <template slot-scope="scope">{{scope.row.happenTime? scope.row.happenTime: '————'}}</template> |
| | | </el-table-column> |
| | | <el-form-item label="类别" prop="type" width="120"> |
| | | <el-select v-model="formDat.type" placeholder="请选择类别" clearable :style="{width: '100%'}" > |
| | | <el-option v-for="(item, index) in typeOptions" :key="index" :label="item.label" :value="item.value" |
| | | ></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-table-column label="类别" prop="type" sortable width="120" align="center"> |
| | | <template slot-scope="scope">{{ getSrc(scope.row.type) }}</template> |
| | | <!-- <template slot-scope="scope">{{scope.row.type? scope.row.type: '————'}}</template>--> |
| | | </el-table-column> |
| | | <el-table-column label="名称" prop="name" sortable :show-overflow-tooltip="true" width="120" align="center" > |
| | | <template slot-scope="scope">{{scope.row.name? scope.row.name: '————'}}</template> |
| | | </el-table-column> |
| | |
| | | <el-input v-model="formDat.happenTime" placeholder="请输入获得时间" clearable :style="{width: '100%'}" ></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="类别" prop="type"> |
| | | <el-input v-model="formDat.type" placeholder="请输入类别" clearable :style="{width: '100%'}" > |
| | | </el-input> |
| | | <el-select v-model="formDat.type" placeholder="请选择类别" clearable :style="{width: '100%'}" > |
| | | <el-option v-for="(item, index) in typeOptions" :key="index" :label="item.label" :value="item.value" |
| | | ></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="名称" prop="name"> |
| | | <el-input v-model="formDat.name" placeholder="请输入名称" clearable :style="{width: '100%'}" > |
| | |
| | | }, |
| | | typeOptions: [ |
| | | { |
| | | value: '选项1', |
| | | value: '邮票', |
| | | label: '邮票' |
| | | }, { |
| | | value: '选项2', |
| | | value: '日本军刀', |
| | | label: '日本军刀' |
| | | }, { |
| | | value: '选项3', |
| | | value: '茅台酒', |
| | | label: '茅台酒' |
| | | }, { |
| | | value: '选项4', |
| | | value: '红木', |
| | | label: '红木' |
| | | }, { |
| | | value: '选项5', |
| | | value: '纪念品', |
| | | label: '纪念品' |
| | | }, { |
| | | value: '瓷器', |
| | | label: '瓷器' |
| | | }, { |
| | | value: '书籍', |
| | | label: '书籍' |
| | | } |
| | | ], |
| | | }; |
| | |
| | | }) |
| | | }) |
| | | }, |
| | | |
| | | //类别选择 |
| | | getSrc(type) { |
| | | if (type === '邮票') { |
| | | return '邮票' |
| | | }else if(type === '日本军刀'){ |
| | | return '日本军刀' |
| | | }else if(type === '茅台酒'){ |
| | | return '茅台酒' |
| | | }else if(type === '红木'){ |
| | | return '红木' |
| | | }else if(type === '纪念品'){ |
| | | return '纪念品' |
| | | }else if(type === '瓷器'){ |
| | | return '瓷器' |
| | | }else if(type === '书籍'){ |
| | | return '书籍' |
| | | } else { |
| | | return '其它' |
| | | } |
| | | }, |
| | | handleRemove(file) { |
| | | alert(323) |
| | | }, |
| | |
| | | <el-row> |
| | | <el-cow :span="8"> |
| | | <el-form-item label="类型" prop="type" label-width="50px" style="background: #FAD1E0;border-radius: 7px 7px 7px 7px;opacity: 1;"> |
| | | <el-input v-model="formData.type" placeholder="请输入类型" clearable :style="{width: '100%'}" :disabled="dsb"> |
| | | </el-input> |
| | | <el-select v-model="formData.type" placeholder="请选择类别" clearable :style="{width: '100%'}" > |
| | | <el-option v-for="(item, index) in typeOptions" :key="index" :label="item.label" :value="item.value" |
| | | ></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-cow> |
| | | <el-cow :span="8"> |
| | |
| | | }], |
| | | |
| | | }, |
| | | typeOptions: [], |
| | | typeOptions: [{ |
| | | value:'神经科', |
| | | label:'神经科' |
| | | },{ |
| | | value:'牙科', |
| | | label:'牙科' |
| | | },{ |
| | | value:'内科', |
| | | label:'内科' |
| | | }], |
| | | } |
| | | }, |
| | | computed: {}, |
| | |
| | | --> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="类型" prop="type" > |
| | | <el-input |
| | | <el-form-item label="类别" prop="type"> |
| | | <el-select |
| | | v-model="queryParams.type" |
| | | placeholder="请输入类型" |
| | | placeholder="所有类别" |
| | | clearable |
| | | style="width: 240px" |
| | | @keyup.enter.native="handleQuery"> |
| | | <i slot="prefix" class="el-input__icon el-icon-search"></i> |
| | | </el-input> |
| | | |
| | | @keyup.enter.native="handleQuery" |
| | | > |
| | | <el-option |
| | | v-for="item in typeOptions" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="症状" prop="symptom"> |
| | |
| | | <el-table-column type="selection" :reserve-selection="true" width="25" align="center" /> |
| | | <el-table-column fixed label="序号" sortable type="index" align="center" :index="(queryParams.pageNum-1)*queryParams.pageSize+1" width="60"/> |
| | | <el-table-column label="类型" prop="type" sortable width="80" align="center"> |
| | | |
| | | <template slot-scope="scope">{{scope.row.type? scope.row.type: '————'}}</template> |
| | | <template slot-scope="scope">{{ getSrc(scope.row.type) }}</template> |
| | | <!-- <template slot-scope="scope">{{scope.row.type? scope.row.type: '————'}}</template>--> |
| | | </el-table-column> |
| | | <el-table-column label="症状" prop="symptom" sortable :show-overflow-tooltip="true" width="120" align="center" > |
| | | <template slot-scope="scope">{{scope.row.symptom? scope.row.symptom: '————'}}</template> |
| | |
| | | <el-form ref="elForm" :model="formDat" :rules="rules" size="medium" label-width="100px"> |
| | | |
| | | <el-form-item label="类型" prop="type"> |
| | | <el-input v-model="formDat.type" placeholder="请输入类型" clearable :style="{width: '100%'}" > |
| | | </el-input> |
| | | <el-select v-model="formDat.type" placeholder="请选择类别" clearable :style="{width: '100%'}" > |
| | | <el-option v-for="(item, index) in typeOptions" :key="index" :label="item.label" :value="item.value" |
| | | ></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="症状" prop="symptom"> |
| | |
| | | trigger: 'blur' |
| | | }], |
| | | }, |
| | | typeOptions: [], |
| | | typeOptions: [{ |
| | | value:'神经科', |
| | | label:'神经科' |
| | | },{ |
| | | value:'牙科', |
| | | label:'牙科' |
| | | },{ |
| | | value:'内科', |
| | | label:'内科' |
| | | }], |
| | | }; |
| | | }, |
| | | created() { |
| | | this.getList(); |
| | | // this.getCateInfor() |
| | | this.getCateInfor() |
| | | // for (let i = 0; i < this.contactList.length; i++) { |
| | | // this.formDat[i] = this.contactList[i]; |
| | | // } |
| | |
| | | ); |
| | | }, |
| | | /** 查询类别信息 */ |
| | | // getCateInfor() |
| | | // { |
| | | // let _this = this |
| | | // getCategory().then(response=>{ |
| | | // |
| | | // response.data.itemValues.replace("{","").replace("}","").split(",").map(elem=>{ |
| | | // _this.typeOptions.push({"label":elem.split(":")[0], "value":elem.split(":")[0]}) |
| | | // }) |
| | | // }) |
| | | // }, |
| | | getCateInfor() |
| | | { |
| | | let _this = this |
| | | getCategory().then(response=>{ |
| | | |
| | | response.data.itemValues.replace("{","").replace("}","").split(",").map(elem=>{ |
| | | _this.typeOptions.push({"label":elem.split(":")[0], "value":elem.split(":")[0]}) |
| | | }) |
| | | }) |
| | | }, |
| | | //类别选择 |
| | | getSrc(type) { |
| | | if (type === '神经科'){ |
| | | return '神经科' |
| | | }else if(type === '牙科'){ |
| | | return '牙科' |
| | | }else if(type === '内科'){ |
| | | return '内科' |
| | | }else { |
| | | return '其它' |
| | | } |
| | | }, |
| | | handleRemove(file) { |
| | | alert(323) |
| | | }, |
| | |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="身份" prop="identity" > |
| | | <el-input |
| | | <el-select |
| | | v-model="queryParams.identity" |
| | | placeholder="请输入身份" |
| | | placeholder="请选择身份" |
| | | clearable |
| | | style="width: 240px" |
| | | @keyup.enter.native="handleQuery"> |
| | | <i slot="prefix" class="el-input__icon el-icon-search"></i> |
| | | </el-input> |
| | | @keyup.enter.native="handleQuery" |
| | | > |
| | | <el-option |
| | | v-for="item in typeOptions" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | /> |
| | | </el-select> |
| | | |
| | | </el-form-item> |
| | | |
| | |
| | | </el-form-item> |
| | | </el-form> |
| | | <div> |
| | | <div style="width: 149px; |
| | | height: 24px; |
| | | font-size: 18px; |
| | | font-family: Microsoft YaHei-Regular, Microsoft YaHei; |
| | | font-weight: 400; |
| | | color: #000000; |
| | | line-height: 21px; |
| | | ">张氏一览表</div> |
| | | <!-- <div style="width: 149px;--> |
| | | <!-- height: 24px;--> |
| | | <!-- font-size: 18px;--> |
| | | <!-- font-family: Microsoft YaHei-Regular, Microsoft YaHei;--> |
| | | <!-- font-weight: 400;--> |
| | | <!-- color: #000000;--> |
| | | <!-- line-height: 21px;--> |
| | | <!-- ">张氏一览表</div>--> |
| | | |
| | | <el-row :gutter="10" class="mb8"> |
| | | <!-- <el-col :span="1.5">--> |
| | |
| | | <template slot-scope="scope"> |
| | | <span>第{{scope.row.identity}}代</span> |
| | | </template> |
| | | <!-- <template slot-scope="scope">{{ getSrc(scope.row.identity) }}</template>--> |
| | | </el-table-column> |
| | | <el-table-column label="姓名" prop="nickName" sortable :show-overflow-tooltip="true" width="100" align="center"/> |
| | | <el-table-column label="性别" prop="sex" sortable width="100" align="center" > |
| | |
| | | }], |
| | | |
| | | }, |
| | | typeOptions: [], |
| | | typeOptions: [{ |
| | | value:'1', |
| | | label:'第1代' |
| | | },{ |
| | | value:'2', |
| | | label:'第2代' |
| | | },{ |
| | | value:'3', |
| | | label:'第3代' |
| | | },{ |
| | | value:'4', |
| | | label:'第4代' |
| | | }], |
| | | }; |
| | | }, |
| | | created() { |
| | | this.getList(); |
| | | // this.getCateInfor() |
| | | this.getCateInfor() |
| | | // for (let i = 0; i < this.contactList.length; i++) { |
| | | // this.formDat[i] = this.contactList[i]; |
| | | // } |
| | |
| | | ); |
| | | }, |
| | | /** 查询类别信息 */ |
| | | // getCateInfor() |
| | | // { |
| | | // let _this = this |
| | | // getCategory().then(response=>{ |
| | | // |
| | | // response.data.itemValues.replace("{","").replace("}","").split(",").map(elem=>{ |
| | | // _this.typeOptions.push({"label":elem.split(":")[0], "value":elem.split(":")[0]}) |
| | | // }) |
| | | // }) |
| | | // }, |
| | | getCateInfor() |
| | | { |
| | | let _this = this |
| | | getCategory().then(response=>{ |
| | | |
| | | response.data.itemValues.replace("{","").replace("}","").split(",").map(elem=>{ |
| | | _this.typeOptions.push({"label":elem.split(":")[0], "value":elem.split(":")[0]}) |
| | | }) |
| | | }) |
| | | }, |
| | | //身份选择 |
| | | getSrc(identity) { |
| | | if (identity === '1'){ |
| | | return '第1代' |
| | | }else if(identity === '2'){ |
| | | return '第2代' |
| | | }else if(identity === '3'){ |
| | | return '第3代' |
| | | }else if(identity === '4'){ |
| | | return '第4代' |
| | | }else { |
| | | return '其它' |
| | | } |
| | | }, |
| | | |
| | | handleRemove(file) { |
| | | alert(323) |
| | |
| | | } |
| | | , |
| | | mounted() { |
| | | const id = this.$route.params && this.$route.params.id; |
| | | const id = this.$route.params && this.$route.params.id; |
| | | this.getList(id); |
| | | }, |
| | | methods:{ |
| | |
| | | </tablemax> |
| | | </div>--> |
| | | |
| | | |
| | | <!-- v-model="queryParams.id" |
| | | |
| | | v-model:phone="queryParams.phone" |
| | |
| | | </el-input> |
| | | </el-form-item> |
| | | <el-form-item label="类别" prop="type" > |
| | | <el-input |
| | | <!-- <el-input--> |
| | | <!-- v-model="queryParams.type"--> |
| | | <!-- placeholder="请输入类别"--> |
| | | <!-- clearable--> |
| | | <!-- style="width: 240px"--> |
| | | <!-- @keyup.enter.native="handleQuery">--> |
| | | <!-- <i slot="prefix" class="el-input__icon el-icon-search"></i>--> |
| | | <!-- </el-input>--> |
| | | <el-select |
| | | v-model="queryParams.type" |
| | | placeholder="请输入类别" |
| | | placeholder="所有类别" |
| | | clearable |
| | | style="width: 240px" |
| | | @keyup.enter.native="handleQuery"> |
| | | <i slot="prefix" class="el-input__icon el-icon-search"></i> |
| | | </el-input> |
| | | @keyup.enter.native="handleQuery" |
| | | > |
| | | <el-option |
| | | v-for="dict in typeOptions" |
| | | :key="dict.value" |
| | | :label="dict.label" |
| | | :value="dict.value" |
| | | /> |
| | | </el-select> |
| | | |
| | | </el-form-item> |
| | | |
| | | |
| | | <el-form-item label="级别" prop="grade"> |
| | | <el-input |
| | |
| | | <template slot-scope="scope">{{scope.row.createTime? scope.row.createTime: '————'}}</template> |
| | | </el-table-column> |
| | | <el-table-column label="类别" prop="type" sortable :show-overflow-tooltip="true" width="120" align="center" > |
| | | <template slot-scope="scope">{{scope.row.type? scope.row.type: '————'}}</template> |
| | | <!-- <template slot-scope="scope">{{scope.row.type? scope.row.type: '————'}}</template>--> |
| | | <template slot-scope="scope">{{ getSrc(scope.row.type) }}</template> |
| | | </el-table-column> |
| | | <el-table-column label="名称" prop="name" sortable :show-overflow-tooltip="true" width="120" align="center" > |
| | | <template slot-scope="scope">{{scope.row.name? scope.row.name: '————'}}</template> |
| | |
| | | </el-input> |
| | | </el-form-item> |
| | | <el-form-item label="类别" prop="type"> |
| | | <el-input v-model="formDat.type" placeholder="请输入类别" clearable :style="{width: '100%'}" > |
| | | </el-input> |
| | | <!-- <el-input v-model="formDat.type" placeholder="请输入类别" clearable :style="{width: '100%'}" >--> |
| | | <!-- </el-input>--> |
| | | <el-select v-model="formDat.type" placeholder="请选择类别" clearable :style="{width: '100%'}" > |
| | | <el-option v-for="(item, index) in typeOptions" :key="index" :label="item.label" :value="item.value" |
| | | ></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="名称" prop="name"> |
| | | <el-input v-model="formDat.name" placeholder="请输入名称" clearable :style="{width: '100%'}" ></el-input> |
| | |
| | | |
| | | |
| | | //导入接口函数 |
| | | import {listHonor,enload, addHonor,updateHonor, delHonor,uploadPic} from "@/api/honor/index"; |
| | | import {listHonor,enload, addHonor,updateHonor, delHonor,uploadPic,getCategory} from "@/api/honor/index"; |
| | | |
| | | import { Notification, MessageBox, Message, Loading } from 'element-ui' |
| | | export default { |
| | |
| | | trigger: 'blur' |
| | | }], |
| | | }, |
| | | selected:'', |
| | | typeOptions: [], |
| | | }; |
| | | }, |
| | | created() { |
| | | this.getList(); |
| | | // this.getCateInfor() |
| | | this.getCateInfor() |
| | | // for (let i = 0; i < this.contactList.length; i++) { |
| | | // this.formDat[i] = this.contactList[i]; |
| | | // } |
| | |
| | | ); |
| | | }, |
| | | /** 查询类别信息 */ |
| | | // getCateInfor() |
| | | // { |
| | | // let _this = this |
| | | // getCategory().then(response=>{ |
| | | // |
| | | // response.data.itemValues.replace("{","").replace("}","").split(",").map(elem=>{ |
| | | // _this.typeOptions.push({"label":elem.split(":")[0], "value":elem.split(":")[0]}) |
| | | // }) |
| | | // }) |
| | | // }, |
| | | getCateInfor() |
| | | { |
| | | let _this = this |
| | | getCategory().then(response=>{ |
| | | |
| | | response.data.itemValues.replace("{","").replace("}","").split(",").map(elem=>{ |
| | | _this.typeOptions.push({"label":elem.split(":")[0], "value":elem.split(":")[0]}) |
| | | }) |
| | | }) |
| | | }, |
| | | //类别选择 |
| | | getSrc(type) { |
| | | if (type === '出生证'){ |
| | | return '出生证' |
| | | }else if(type === '牙科'){ |
| | | return '牙科' |
| | | }else if(type === '内科'){ |
| | | return '内科' |
| | | }else { |
| | | return '其它' |
| | | } |
| | | }, |
| | | |
| | | handleRemove(file) { |
| | | alert(323) |