| | |
| | | }) |
| | | } |
| | | |
| | | //类别数据 |
| | | export function listType(query) { |
| | | return request({ |
| | | url: '/zfCollection/type', |
| | | method: 'get', |
| | | params: query |
| | | }) |
| | | } |
| | | |
| | | // 根据id查询收藏和荣誉 |
| | | export function getCollection(id) { |
| | | return request({ |
| | |
| | | params: query |
| | | }) |
| | | } |
| | | //类别数据 |
| | | export function listType(query) { |
| | | return request({ |
| | | url: '/zfDoctor/type', |
| | | method: 'get', |
| | | params: query |
| | | }) |
| | | } |
| | | |
| | | // 根据id查询记录 |
| | | export function getDoctor(id) { |
| | |
| | | params: query |
| | | }) |
| | | } |
| | | //名称数据 |
| | | export function listType(query) { |
| | | return request({ |
| | | url: '/zHonor/type', |
| | | method: 'get', |
| | | params: query |
| | | }) |
| | | } |
| | | // 根据id查询记录 |
| | | export function getHonor(query) { |
| | | return request({ |
| | |
| | | </el-input> |
| | | |
| | | </el-form-item> |
| | | <!-- <el-form-item label="获得时间" prop="happenTime" label-width="78px" style="background: #FAD1E0;border-radius: 7px 7px 7px 7px;opacity: 1;">--> |
| | | <!-- <el-date-picker v-model='formData.happenTime' type='date' placeholder='请选择日期'></el-date-picker>--> |
| | | <!-- </el-form-item>--> |
| | | |
| | | </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-select v-model="formData.type" placeholder="请选择类别" clearable :style="{width: '100%'}" > |
| | | <el-select v-model="formData.type" placeholder="请选择类别" clearable :style="{width: '100%'}" :disabled="dsb"> |
| | | <el-option v-for="(item, index) in typeOptions" :key="index" :label="item.label" :value="item.value" |
| | | ></el-option> |
| | | </el-select> |
| | | <el-input v-model="newOption" v-if="showInput" placeholder="若未在上述选项中找到对应类别,请在此输入新的类别" @change="addNewOption"></el-input> |
| | | </el-form-item> |
| | | </el-cow> |
| | | <el-cow > |
| | |
| | | > |
| | | <span class="el-upload-list__item-actions" > |
| | | <span |
| | | v-if="isShow" |
| | | |
| | | class="el-upload-list__item-preview" |
| | | @click="handlePictureCardPreview(file)" |
| | | > |
| | | <i class="el-icon-zoom-in"></i> |
| | | </span> |
| | | <span |
| | | v-if="isShow" |
| | | |
| | | class="el-upload-list__item-delete" |
| | | @click="handleDownload(file.url)" |
| | | > |
| | |
| | | fit="cover" |
| | | > |
| | | <span class="el-upload-list__item-actions"> |
| | | <span v-if="isShow" |
| | | <span |
| | | class="el-upload-list__item-preview" |
| | | @click="handleFileCardPreview(file)" |
| | | > |
| | | <i class="el-icon-zoom-in"></i> |
| | | </span> |
| | | <span |
| | | v-if="isShow" |
| | | |
| | | class="el-upload-list__item-delete" |
| | | @click="handleDownload(file.url)" |
| | | > |
| | |
| | | import {blobValidate} from "@/utils/ruoyi"; |
| | | import errorCode from "@/utils/errorCode"; |
| | | import {Message} from "element-ui"; |
| | | import {getCollection, updateCollection,download,uploadPic} from "@/api/collection/index"; |
| | | import {getCollection, updateCollection,download,uploadPic,listType} from "@/api/collection/index"; |
| | | |
| | | |
| | | export default { |
| | | components: {}, |
| | |
| | | return { |
| | | cdi:"收藏与荣誉详细信息", |
| | | udi:"收藏与荣誉信息详情", |
| | | fot:[".jpg",".jif"], |
| | | fot:['.bmp','.jpg','.jpeg','.png','.tif','.gif','.pcx','.tga','.exif','.fpx', |
| | | '.svg','.psd','.cdr','.pcd','.dxf','.ufo','.eps','.ai','.aw','.WMF','.webp','.apng'], |
| | | fileList:[ |
| | | ], |
| | | fileListOther:[ |
| | |
| | | isShow:true, |
| | | // 收藏与荣誉表格数据 |
| | | collectionList: [], |
| | | |
| | | typeList:[], |
| | | formData: { |
| | | //收藏与荣誉记录 |
| | | id:undefined, |
| | |
| | | }], |
| | | |
| | | }, |
| | | typeOptions: [ |
| | | { |
| | | value: '邮票', |
| | | label: '邮票' |
| | | }, { |
| | | value: '日本军刀', |
| | | label: '日本军刀' |
| | | }, { |
| | | value: '茅台酒', |
| | | label: '茅台酒' |
| | | }, { |
| | | value: '红木', |
| | | label: '红木' |
| | | }, { |
| | | value: '纪念品', |
| | | label: '纪念品' |
| | | }, { |
| | | value: '瓷器', |
| | | label: '瓷器' |
| | | }, { |
| | | value: '书籍', |
| | | label: '书籍' |
| | | } |
| | | ], |
| | | typeOptions: [], |
| | | newOption: undefined, |
| | | showInput: false |
| | | } |
| | | }, |
| | | computed: {}, |
| | |
| | | jd = this.$route.query.detail |
| | | this.btn= jd |
| | | this.dsb = !jd |
| | | this.showInput=true |
| | | document.title = "修改收藏与荣誉详细信息"; |
| | | this.$route.meta.title = "修改收藏与荣誉详细信息";//列表的名称 |
| | | } |
| | |
| | | } |
| | | this.loading = false; |
| | | }); |
| | | listType(this.queryParams).then(response => { |
| | | this.typeList = response.data; |
| | | this.total = response.data.total; |
| | | // console.log( this.typeList ) |
| | | // 在回调函数中调用 getTypeOptions() |
| | | this.getTypeOptions(); |
| | | this.loading = false; |
| | | } |
| | | ); |
| | | // this.getCateInfor() |
| | | |
| | | } |
| | |
| | | // }) |
| | | // }) |
| | | // }, |
| | | //类别 |
| | | addNewOption() { |
| | | const newOption = this.newOption.trim(); |
| | | if (newOption && !this.typeOptions.includes(newOption)) { |
| | | this.typeOptions.push(newOption); |
| | | this.$set(this.formData, 'type', newOption); // 更新formDat.type的值为新的选项 |
| | | } |
| | | }, |
| | | getTypeOptions() { |
| | | const filteredOptions = this.typeList.filter(item => typeof item === 'string' && item !== ''); |
| | | // 创建一个空对象用于存储唯一的字符串选项 |
| | | const uniqueOptions = {}; |
| | | // 构建下拉选项列表 |
| | | this.typeOptions = filteredOptions.reduce((options, option) => { |
| | | if (!uniqueOptions[option]) { |
| | | uniqueOptions[option] = true; |
| | | options.push({ |
| | | label: option, |
| | | value: option |
| | | }); |
| | | } |
| | | return options; |
| | | }, []); |
| | | |
| | | }, |
| | | submitForm() { |
| | | let ul = this.fileList.map(function (elem){ |
| | | return elem.url.replace(process.env.VUE_APP_BASE_TRUE_API,"") |
| | |
| | | </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="item in typeOptions" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | |
| | | /> |
| | | <el-select v-model="queryParams.type" placeholder="所有类别" clearable |
| | | style="width: 240px" @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-cntainer> |
| | | <el-col :span="9" > |
| | | <el-form-item> |
| | |
| | | <template slot-scope="scope">{{scope.row.happenTime? scope.row.happenTime: '————'}}</template> |
| | | </el-table-column> |
| | | <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>--> |
| | | <!-- <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-option v-for="(item, index) in typeOptions" :key="index" :label="item.label" :value="item.value" |
| | | ></el-option> |
| | | </el-select> |
| | | <el-input v-model="newOption" v-if="showInput" placeholder="若未在上述选项中找到对应类别,请在此输入新的类别" @change="addNewOption"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="名称" prop="name"> |
| | | <el-input v-model="formDat.name" placeholder="请输入名称" clearable :style="{width: '100%'}" > |
| | |
| | | |
| | | |
| | | //导入接口函数 |
| | | import {listCollection, getCollection, addCollection,updateCollection, delCollection,uploadPic,downloadModel} from "@/api/collection/index"; |
| | | import {listCollection,listType, getCollection, addCollection,updateCollection, delCollection,uploadPic,downloadModel} from "@/api/collection/index"; |
| | | import {enload} from "@/api/doctor"; |
| | | import {Message} from "element-ui"; |
| | | |
| | |
| | | total: 0, |
| | | // 收藏与荣誉表格数据 |
| | | collectionList: [], |
| | | typeList:[], |
| | | // 弹出层标题 |
| | | title: "", |
| | | // 是否显示弹出层 |
| | |
| | | // 日期范围 |
| | | dateRange: [], |
| | | // 数据范围选项 |
| | | fot:[".jpg",".jif"], |
| | | fileList:[ |
| | | ], |
| | | fileListOther:[ |
| | | |
| | | ], |
| | | fot:['.bmp','.jpg','.jpeg','.png','.tif','.gif','.pcx','.tga','.exif','.fpx', |
| | | '.svg','.psd','.cdr','.pcd','.dxf','.ufo','.eps','.ai','.aw','.WMF','.webp','.apng'], |
| | | fileList:[], |
| | | fileListOther:[], |
| | | dsb:true, |
| | | btn:false, |
| | | fit:['fill'], |
| | |
| | | trigger: 'blur' |
| | | }], |
| | | }, |
| | | typeOptions: [ |
| | | { |
| | | value: '邮票', |
| | | label: '邮票' |
| | | }, { |
| | | value: '日本军刀', |
| | | label: '日本军刀' |
| | | }, { |
| | | value: '茅台酒', |
| | | label: '茅台酒' |
| | | }, { |
| | | value: '红木', |
| | | label: '红木' |
| | | }, { |
| | | value: '纪念品', |
| | | label: '纪念品' |
| | | }, { |
| | | value: '瓷器', |
| | | label: '瓷器' |
| | | }, { |
| | | value: '书籍', |
| | | label: '书籍' |
| | | } |
| | | ], |
| | | typeOptions: [], |
| | | newOption: undefined, |
| | | showInput: true |
| | | }; |
| | | }, |
| | | created() { |
| | | this.getList(); |
| | | this.getCateInfor() |
| | | this.getTypeOptions(); |
| | | // this.getCateInfor() |
| | | // for (let i = 0; i < this.contactList.length; i++) { |
| | | // this.formDat[i] = this.contactList[i]; |
| | | // } |
| | |
| | | return "statistics-warning-row"; |
| | | } |
| | | }, |
| | | //类别 |
| | | addNewOption() { |
| | | const newOption = this.newOption.trim(); |
| | | if (newOption && !this.typeOptions.includes(newOption)) { |
| | | this.typeOptions.push(newOption); |
| | | this.$set(this.formDat, 'type', newOption); // 更新formDat.type的值为新的选项 |
| | | } |
| | | }, |
| | | /** 查询记录列表 */ |
| | | getList() { |
| | | this.loading = true; |
| | |
| | | // alert(123) |
| | | // console.log(response.data) |
| | | this.collectionList = response.data.data; |
| | | |
| | | this.total = response.data.total; |
| | | this.loading = false; |
| | | } |
| | | ); |
| | | listType(this.queryParams).then(response => { |
| | | this.typeList = response.data; |
| | | this.total = response.data.total; |
| | | // console.log( this.typeList ) |
| | | // 在回调函数中调用 getTypeOptions() |
| | | this.getTypeOptions(); |
| | | this.loading = false; |
| | | } |
| | | ); |
| | | }, |
| | | /** 查询类别信息 */ |
| | | getCateInfor() |
| | | { |
| | | let _this = this |
| | | getCategory().then(response=>{ |
| | | getTypeOptions() { |
| | | const filteredOptions = this.typeList.filter(item => typeof item === 'string' && item !== ''); |
| | | // 创建一个空对象用于存储唯一的字符串选项 |
| | | const uniqueOptions = {}; |
| | | // 构建下拉选项列表 |
| | | this.typeOptions = filteredOptions.reduce((options, option) => { |
| | | if (!uniqueOptions[option]) { |
| | | uniqueOptions[option] = true; |
| | | options.push({ |
| | | label: option, |
| | | value: option |
| | | }); |
| | | } |
| | | return options; |
| | | }, []); |
| | | |
| | | 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 === '邮票') { |
| | |
| | | <el-container> |
| | | <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-select v-model="formData.type" placeholder="请选择类别" clearable :style="{width: '100%'}" > |
| | | <el-form-item label="类别" prop="type" label-width="55px" style="background: #FAD1E0;border-radius: 7px 7px 7px 7px;opacity: 1;"> |
| | | <el-select v-model="formData.type" placeholder="请选择类别" clearable :style="{width: '100%'}" :disabled="dsb"> |
| | | <el-option v-for="(item, index) in typeOptions" :key="index" :label="item.label" :value="item.value" |
| | | ></el-option> |
| | | </el-select> |
| | | <el-input v-model="newOption" v-if="showInput" placeholder="若未在上述选项中找到对应类别,请在此输入新的类别" @change="addNewOption"></el-input> |
| | | </el-form-item> |
| | | </el-cow> |
| | | <el-cow :span="8"> |
| | |
| | | import {blobValidate} from "@/utils/ruoyi"; |
| | | import errorCode from "@/utils/errorCode"; |
| | | import {Message} from "element-ui"; |
| | | import { getDoctor, updateDoctor,download,uploadPic} from "@/api/doctor/index"; |
| | | import {getDoctor, updateDoctor, download, uploadPic, listType} from "@/api/doctor/index"; |
| | | |
| | | export default { |
| | | components: {}, |
| | |
| | | return { |
| | | cdi:"就医记录详细信息", |
| | | udi:"就医记录信息详情", |
| | | fot:[".jpg",".jif","png"], |
| | | fileList:[ |
| | | ], |
| | | fileListOther:[ |
| | | |
| | | ], |
| | | fot:['.bmp','.jpg','.jpeg','.png','.tif','.gif','.pcx','.tga','.exif','.fpx', |
| | | '.svg','.psd','.cdr','.pcd','.dxf','.ufo','.eps','.ai','.aw','.WMF','.webp','.apng'], |
| | | fileList:[], |
| | | fileListOther:[], |
| | | dsb:true, |
| | | btn:false, |
| | | isShow:true, |
| | | // 就医记录表格数据 |
| | | doctorList: [], |
| | | |
| | | typeList:[], |
| | | formData: { |
| | | //就医记录 |
| | | id:undefined, |
| | |
| | | rules: { |
| | | type: [{ |
| | | required: true, |
| | | message: '请输入类型', |
| | | message: '请输入类别', |
| | | trigger: 'blur' |
| | | }], |
| | | symptom: [{ |
| | |
| | | }], |
| | | |
| | | }, |
| | | typeOptions: [{ |
| | | value:'神经科', |
| | | label:'神经科' |
| | | },{ |
| | | value:'牙科', |
| | | label:'牙科' |
| | | },{ |
| | | value:'内科', |
| | | label:'内科' |
| | | }], |
| | | typeOptions: [], |
| | | newOption: undefined, |
| | | showInput: false |
| | | } |
| | | }, |
| | | computed: {}, |
| | |
| | | this.btn= jd |
| | | this.dsb = !jd |
| | | this.isShow=true |
| | | this.showInput=true |
| | | document.title = "修改就医记录详细信息"; |
| | | this.$route.meta.title = "修改就医记录详细信息";//列表的名称 |
| | | } |
| | |
| | | } |
| | | this.loading = false; |
| | | }); |
| | | this.getCateInfor() |
| | | listType(this.queryParams).then(response => { |
| | | this.typeList = response.data; |
| | | this.total = response.data.total; |
| | | // console.log( this.typeList ) |
| | | // 在回调函数中调用 getTypeOptions() |
| | | this.getTypeOptions(); |
| | | this.loading = false; |
| | | } |
| | | ); |
| | | // this.getCateInfor() |
| | | |
| | | } |
| | | }, |
| | |
| | | // }) |
| | | // }) |
| | | // }, |
| | | //类别 |
| | | addNewOption() { |
| | | const newOption = this.newOption.trim(); |
| | | if (newOption && !this.typeOptions.includes(newOption)) { |
| | | this.typeOptions.push(newOption); |
| | | this.$set(this.formData, 'type', newOption); // 更新formDat.type的值为新的选项 |
| | | } |
| | | }, |
| | | getTypeOptions() { |
| | | const filteredOptions = this.typeList.filter(item => typeof item === 'string' && item !== ''); |
| | | // 创建一个空对象用于存储唯一的字符串选项 |
| | | const uniqueOptions = {}; |
| | | // 构建下拉选项列表 |
| | | this.typeOptions = filteredOptions.reduce((options, option) => { |
| | | if (!uniqueOptions[option]) { |
| | | uniqueOptions[option] = true; |
| | | options.push({ |
| | | label: option, |
| | | value: option |
| | | }); |
| | | } |
| | | return options; |
| | | }, []); |
| | | |
| | | }, |
| | | submitForm() { |
| | | let ul = this.fileList.map(function (elem){ |
| | | return elem.url.replace(process.env.VUE_APP_BASE_TRUE_API,"") |
| | |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="类别" prop="type"> |
| | | <!-- <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="所有类别" |
| | | clearable |
| | | style="width: 240px" |
| | | @keyup.enter.native="handleQuery" |
| | | > |
| | | <el-option |
| | | v-for="item in typeOptions" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | /> |
| | | <el-select v-model="queryParams.type" placeholder="所有类别" clearable |
| | | style="width: 240px" @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-table v-loading="loading" :data="doctorList" :row-key="getRowId" ref="multipleTable" @selection-change="handleSelectionChange" :row-class-name="tableRowClassName" style="background: #FFEFF2; border-radius: 14px 14px 14px 14px;"> |
| | | <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"> |
| | | <el-table-column label="类别" prop="type" sortable width="80" 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-dialog :title="title" :visible.sync="open" width="800px" append-to-body> |
| | | <el-form ref="elForm" :model="formDat" :rules="rules" size="medium" label-width="100px"> |
| | | |
| | | <el-form-item label="类型" prop="type"> |
| | | <el-form-item label="类别" prop="type"> |
| | | <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> |
| | |
| | | |
| | | |
| | | //导入接口函数 |
| | | import {listDoctor,enload,getDoctor, addDoctor,updateDoctor, delDoctor,uploadPic} from "@/api/doctor/index"; |
| | | import {listDoctor,enload,getDoctor, addDoctor,updateDoctor, delDoctor,uploadPic,listType} from "@/api/doctor/index"; |
| | | |
| | | import { Notification, MessageBox, Message, Loading } from 'element-ui' |
| | | export default { |
| | |
| | | total: 0, |
| | | // 小医生表格数据 |
| | | doctorList: [], |
| | | typeList:[], |
| | | // 弹出层标题 |
| | | title: "", |
| | | // 是否显示弹出层 |
| | |
| | | // 日期范围 |
| | | dateRange: [], |
| | | // 数据范围选项 |
| | | fot:[".jpg",".jif"], |
| | | fot:['.bmp','.jpg','.jpeg','.png','.tif','.gif','.pcx','.tga','.exif','.fpx', |
| | | '.svg','.psd','.cdr','.pcd','.dxf','.ufo','.eps','.ai','.aw','.WMF','.webp','.apng'], |
| | | fileList:[], |
| | | fileListOther:[], |
| | | dsb:true, |
| | |
| | | |
| | | type: [{ |
| | | // required: true, |
| | | message: '请输入类型', |
| | | message: '请输入类别', |
| | | trigger: 'blur' |
| | | }], |
| | | symptom: [{ |
| | |
| | | trigger: 'blur' |
| | | }], |
| | | }, |
| | | typeOptions: [{ |
| | | value:'神经科', |
| | | label:'神经科' |
| | | },{ |
| | | value:'牙科', |
| | | label:'牙科' |
| | | },{ |
| | | value:'内科', |
| | | label:'内科' |
| | | }], |
| | | typeOptions: [], |
| | | newOption: undefined, |
| | | showInput: true |
| | | }; |
| | | }, |
| | | created() { |
| | | this.getList(); |
| | | this.getCateInfor() |
| | | // this.getCateInfor(); |
| | | this.getTypeOptions(); |
| | | // for (let i = 0; i < this.contactList.length; i++) { |
| | | // this.formDat[i] = this.contactList[i]; |
| | | // } |
| | |
| | | this.$set(this.formDat, 'type', newOption); // 更新formDat.type的值为新的选项 |
| | | } |
| | | }, |
| | | |
| | | /** 查询记录列表 */ |
| | | getList() { |
| | | this.loading = true; |
| | |
| | | // alert(123) |
| | | // console.log(response.data) |
| | | this.doctorList = response.data.data; |
| | | |
| | | this.total = response.data.total; |
| | | this.loading = false; |
| | | } |
| | | ); |
| | | listType(this.queryParams).then(response => { |
| | | this.typeList = response.data; |
| | | this.total = response.data.total; |
| | | // console.log( this.typeList ) |
| | | // 在回调函数中调用 getTypeOptions() |
| | | this.getTypeOptions(); |
| | | this.loading = false; |
| | | } |
| | | ); |
| | | }, |
| | | getTypeOptions() { |
| | | const filteredOptions = this.typeList.filter(item => typeof item === 'string' && item !== ''); |
| | | // 创建一个空对象用于存储唯一的字符串选项 |
| | | const uniqueOptions = {}; |
| | | // 构建下拉选项列表 |
| | | this.typeOptions = filteredOptions.reduce((options, option) => { |
| | | if (!uniqueOptions[option]) { |
| | | uniqueOptions[option] = true; |
| | | options.push({ |
| | | label: option, |
| | | value: option |
| | | }); |
| | | } |
| | | return options; |
| | | }, []); |
| | | |
| | | }, |
| | | /** 查询类别信息 */ |
| | | // getCateInfor() |
| | |
| | | > |
| | | <span class="el-upload-list__item-actions"> |
| | | <span |
| | | v-if="isShow" |
| | | |
| | | class="el-upload-list__item-preview" |
| | | @click="handlePictureCardPreview(file)" |
| | | > |
| | | <i class="el-icon-zoom-in"></i> |
| | | </span> |
| | | <span |
| | | v-if="isShow" |
| | | |
| | | class="el-upload-list__item-delete" |
| | | @click="handleDownload(file.url)" |
| | | > |
| | |
| | | > |
| | | <span class="el-upload-list__item-actions"> |
| | | <span |
| | | v-if="isShow" |
| | | |
| | | class="el-upload-list__item-preview" |
| | | @click="handleFileCardPreview(file)" |
| | | > |
| | | <i class="el-icon-zoom-in"></i> |
| | | </span> |
| | | <span |
| | | v-if="isShow" |
| | | |
| | | class="el-upload-list__item-delete" |
| | | @click="handleDownload(file.url)" |
| | | > |
| | |
| | | <!-- </el-form-item>--> |
| | | <!-- </el-cow>--> |
| | | <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-select v-model="formData.type" placeholder="请选择类别" clearable style="width: 300px"> |
| | | <el-option v-for="dict in typeOption" :key="dict.value" |
| | | :label="dict.label" :value="dict.value"/> |
| | | <el-form-item label="类别" prop="type" label-width="50px" style="background: #FAD1E0;border-radius: 7px 7px 7px 7px;opacity: 1;" :disabled="dsb"> |
| | | <template v-if="!isEditing" > |
| | | <el-input v-if="formData.type===0" placeholder="证件"></el-input> |
| | | <el-input v-if="formData.type===1" placeholder="荣誉"></el-input> |
| | | <el-input v-if="formData.type===2" placeholder="资质"></el-input> |
| | | </template> |
| | | <template v-else> |
| | | <el-select v-model="types" placeholder="请选择类别" clearable :style="{width: '100%'}" > |
| | | <el-option label="证件" value='0'></el-option> |
| | | <el-option label="荣誉" value='1'></el-option> |
| | | <el-option label="资质" value='2'></el-option> |
| | | </el-select> |
| | | </template> |
| | | </el-form-item> |
| | | </el-cow> |
| | | <el-cow :span="8"> |
| | | <el-form-item label="名称" prop="name" label-width="50px" style="background: #FAD1E0;border-radius: 7px 7px 7px 7px;opacity: 1;"> |
| | | <el-select v-model="formData.name" placeholder="请选择类别" clearable style="width: 300px"> |
| | | <el-option v-for="dict in typeOptions" :key="dict.value" |
| | | :label="dict.label" :value="dict.value"/> |
| | | <el-select v-model="formData.name" placeholder="请选择名称" clearable :style="{width: '100%'}" :disabled="dsb"> |
| | | <el-option v-for="(item, index) in typeOptions" :key="index" :label="item.label" :value="item.value" |
| | | ></el-option> |
| | | </el-select> |
| | | <!-- <template v-if="dsb" >--> |
| | | <!-- <el-input v-if="formData.name==0" placeholder="未婚"></el-input>--> |
| | | <!-- <el-input v-if="formData.name==1" placeholder="已婚"></el-input>--> |
| | | <!-- <el-input v-if="formData.name==2" placeholder="学生证"></el-input>--> |
| | | <!-- </template>--> |
| | | <!-- <template v-else>--> |
| | | <!-- <el-select v-model="formData.name" placeholder="请选择类别" clearable style="width: 300px" :disabled="dsb">--> |
| | | <!-- <el-option v-for="dict in typeOptions" :key="dict.value"--> |
| | | <!-- :label="dict.label" :value="dict.value"/>--> |
| | | <!-- </el-select>--> |
| | | <!-- </template>--> |
| | | <el-input v-model="newOption" v-if="showInput" placeholder="若未在上述选项中找到对应名称,请在此输入新的名称" @change="addNewOption"></el-input> |
| | | |
| | | </el-form-item> |
| | | </el-cow> |
| | | <el-cow :span="8"> |
| | |
| | | > |
| | | <span class="el-upload-list__item-actions"> |
| | | <span |
| | | v-if="isShow" |
| | | |
| | | class="el-upload-list__item-preview" |
| | | @click="handlePictureCardPreview(file)" |
| | | > |
| | | <i class="el-icon-zoom-in"></i> |
| | | </span> |
| | | <span |
| | | v-if="isShow" |
| | | |
| | | class="el-upload-list__item-delete" |
| | | @click="handleDownload(file.url)" |
| | | > |
| | |
| | | > |
| | | <span class="el-upload-list__item-actions"> |
| | | <span |
| | | v-if="isShow" |
| | | |
| | | class="el-upload-list__item-preview" |
| | | @click="handleFileCardPreview(file)" |
| | | > |
| | | <i class="el-icon-zoom-in"></i> |
| | | </span> |
| | | <span |
| | | v-if="isShow" |
| | | |
| | | class="el-upload-list__item-delete" |
| | | @click="handleDownload(file.url)" |
| | | > |
| | |
| | | import errorCode from "@/utils/errorCode"; |
| | | import {Message} from "element-ui"; |
| | | import { download,uploadPic} from "@/api/doctor/index"; |
| | | import {updateHonor,getHonor,getCategory} from "@/api/honor/index"; |
| | | import {updateHonor,getHonor,getCategory, listType} from "@/api/honor/index"; |
| | | |
| | | export default { |
| | | components: {}, |
| | |
| | | return { |
| | | cdi:"荣誉证书详细信息", |
| | | udi:"荣誉证书信息详情", |
| | | fot:[".jpg",".jif","png"], |
| | | fileList:[ |
| | | ], |
| | | fileListOther:[ |
| | | |
| | | ], |
| | | fot:['.bmp','.jpg','.jpeg','.png','.tif','.gif','.pcx','.tga','.exif','.fpx', |
| | | '.svg','.psd','.cdr','.pcd','.dxf','.ufo','.eps','.ai','.aw','.WMF','.webp','.apng'], |
| | | fileList:[], |
| | | fileListOther:[], |
| | | dsb:true, |
| | | btn:false, |
| | | isShow:true, |
| | | isEditing: false, |
| | | // 荣誉表格数据 |
| | | honorList: [], |
| | | |
| | | typeList:[], |
| | | formData: { |
| | | //荣誉证书记录 |
| | | id:undefined, |
| | |
| | | }], |
| | | }, |
| | | typeOptions: [], |
| | | newOption: undefined, |
| | | showInput: false, |
| | | typeOption:[ |
| | | {value:'1',label:'荣誉'}, |
| | | {value:'0',label:'证件'}, |
| | | {value:'2',label:'资质'},] |
| | | {value:'1',label:'荣誉'}, |
| | | {value:'2',label:'资质'},], |
| | | types:undefined |
| | | } |
| | | }, |
| | | computed: {}, |
| | |
| | | created() { |
| | | const id = this.$route.params && this.$route.params.id; |
| | | let jd; |
| | | if(this.formData.type == 0) |
| | | this.types = '证件' |
| | | else if(this.formData.type== 1) |
| | | this.types = '荣誉' |
| | | else |
| | | this.types = '资质' |
| | | if(this.$route.query.detail!=undefined) |
| | | { |
| | | jd = this.$route.query.detail |
| | | this.btn= jd |
| | | this.dsb = !jd |
| | | this.isShow=true |
| | | this.showInput=true |
| | | this.isEditing=true |
| | | document.title = "修改荣誉证书详细信息"; |
| | | this.$route.meta.title = "修改荣誉证书详细信息";//列表的名称 |
| | | } |
| | |
| | | } |
| | | this.loading = false; |
| | | }); |
| | | |
| | | listType(this.queryParams).then(response => { |
| | | this.typeList = response.data; |
| | | this.total = response.data.total; |
| | | // console.log( this.typeList ) |
| | | // 在回调函数中调用 getTypeOptions() |
| | | this.getTypeOptions(); |
| | | this.loading = false; |
| | | } |
| | | ); |
| | | this.fetchData() |
| | | this.getCateInfor() |
| | | // this.getCateInfor() |
| | | |
| | | } |
| | | |
| | |
| | | console.error('Error:', error); // 处理错误 |
| | | }); |
| | | }, |
| | | //类别 |
| | | addNewOption() { |
| | | const newOption = this.newOption.trim(); |
| | | if (newOption && !this.typeOptions.includes(newOption)) { |
| | | this.typeOptions.push(newOption); |
| | | this.$set(this.formData, 'type', newOption); // 更新formDat.type的值为新的选项 |
| | | } |
| | | }, |
| | | getTypeOptions() { |
| | | const filteredOptions = this.typeList.filter(item => typeof item === 'string' && item !== ''); |
| | | // 创建一个空对象用于存储唯一的字符串选项 |
| | | const uniqueOptions = {}; |
| | | // 构建下拉选项列表 |
| | | this.typeOptions = filteredOptions.reduce((options, option) => { |
| | | if (!uniqueOptions[option]) { |
| | | uniqueOptions[option] = true; |
| | | options.push({ |
| | | label: option, |
| | | value: option |
| | | }); |
| | | } |
| | | return options; |
| | | }, []); |
| | | |
| | | }, |
| | | //类别选择 |
| | | getSrc(type) { |
| | | if (type === 1){ |
| | | return '出生证' |
| | | getSrc1(type){ |
| | | if(type===0){ |
| | | return '证件' |
| | | }else if(type===1){ |
| | | return '荣誉' |
| | | }else if(type === 2){ |
| | | return '学生证' |
| | | }else if(type === 3){ |
| | | return '毕业证' |
| | | }else if(type === 4){ |
| | | return '结婚证' |
| | | }else if(type === 5){ |
| | | return '户口簿' |
| | | }else if(type === 6){ |
| | | return '独生子女证' |
| | | }else if(type === 7){ |
| | | return '高级职称' |
| | | }else if(type === 8){ |
| | | return '护照' |
| | | }else if(type === 9){ |
| | | return '通行证' |
| | | }else { |
| | | return '其它' |
| | | return '资质' |
| | | } |
| | | }, |
| | | /** 查询类别信息 */ |
| | |
| | | }) |
| | | }, |
| | | submitForm() { |
| | | if(this.types=='0') |
| | | this.formData.type = 0 |
| | | else if(this.types == '1') |
| | | this.formData.type = 1 |
| | | else if(this.types == '2') |
| | | this.formData.type = 2 |
| | | |
| | | let ul = this.fileList.map(function (elem){ |
| | | return elem.url.replace(process.env.VUE_APP_BASE_TRUE_API,"") |
| | | }).join(",") |
| | |
| | | --> |
| | | </el-form-item> |
| | | <el-form-item label="名称" prop="name"> |
| | | <!-- <el-input--> |
| | | <!-- v-model="queryParams.name"--> |
| | | <!-- 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.name" |
| | | placeholder="所有类别" |
| | | clearable |
| | | style="width: 240px" |
| | | @keyup.enter.native="handleQuery" |
| | | > |
| | | <el-option |
| | | v-for="dic in typeOptions" |
| | | :key="dic.value" |
| | | :label="dic.label" |
| | | :value="dic.value" |
| | | /> |
| | | |
| | | <el-select v-model="queryParams.name" placeholder="所有名称" clearable |
| | | style="width: 240px" @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-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>--> |
| | | <template slot-scope="scope"> |
| | | <!-- <template slot-scope="scope">--> |
| | | <!-- <template v-if="formDat.name===1">{{ getSrc(scope.row.name) }}</template>--> |
| | | <template v-if="scope.row.name == 1">出生证</template> |
| | | <template v-else-if="scope.row.name == 2">学生证</template> |
| | | <template v-else-if="scope.row.name == 3">毕业证</template> |
| | | <template v-else-if="scope.row.name == 4">结婚证</template> |
| | | <template v-else-if="scope.row.name == 5">户口簿</template> |
| | | <template v-else-if="scope.row.name == 6">独生子女证</template> |
| | | <template v-else-if="scope.row.name == 7">高级职称</template> |
| | | <template v-else-if="scope.row.name == 8">护照</template> |
| | | <template v-else-if="scope.row.name == 9">通行证</template> |
| | | <template v-else>{{ scope.row.name }}</template> |
| | | </template> |
| | | <!-- <template v-if="scope.row.name == 1">出生证</template>--> |
| | | <!-- <template v-else-if="scope.row.name == 2">学生证</template>--> |
| | | <!-- <template v-else-if="scope.row.name == 3">毕业证</template>--> |
| | | <!-- <template v-else-if="scope.row.name == 4">结婚证</template>--> |
| | | <!-- <template v-else-if="scope.row.name == 5">户口簿</template>--> |
| | | <!-- <template v-else-if="scope.row.name == 6">独生子女证</template>--> |
| | | <!-- <template v-else-if="scope.row.name == 7">高级职称</template>--> |
| | | <!-- <template v-else-if="scope.row.name == 8">护照</template>--> |
| | | <!-- <template v-else-if="scope.row.name == 9">通行证</template>--> |
| | | <!-- <template v-else>{{ scope.row.name }}</template>--> |
| | | <!-- </template>--> |
| | | <template slot-scope="scope">{{scope.row.name? scope.row.name: '————'}}</template> |
| | | </el-table-column> |
| | | <el-table-column label="证号/专业" prop="idNo" sortable width="170" align="center" > |
| | | <template slot-scope="scope">{{scope.row.idNo? scope.row.idNo: '————'}}</template> |
| | |
| | | <!-- <el-date-picker v-model='formDat.happenTime' type='date' placeholder='选择日期'></el-date-picker>--> |
| | | <!-- </el-form-item>--> |
| | | <el-form-item label="类别" prop="type"> |
| | | <el-select v-model="formDat.type" placeholder="请选择名称" clearable :style="{width: '100%'}" > |
| | | <el-select v-model="formDat.type" placeholder="请选择类别" clearable :style="{width: '100%'}" > |
| | | <el-option v-for="(item, index) in typeOption" :key="index" :label="item.label" :value="item.value" |
| | | ></el-option> |
| | | </el-select> |
| | |
| | | <el-option v-for="(item, index) in typeOptions" :key="index" :label="item.label" :value="item.value" |
| | | ></el-option> |
| | | </el-select> |
| | | <el-input v-model="newOption" v-if="showInput" placeholder="若未在上述选项中找到对应名称,请在此输入新的名称" @change="addNewOption"></el-input> |
| | | |
| | | </el-form-item> |
| | | <el-form-item label="证件号/专业" prop="idNo"> |
| | | <el-input v-model="formDat.idNo" placeholder="请输入证件号/专业" clearable :style="{width: '100%'}" > |
| | |
| | | |
| | | |
| | | //导入接口函数 |
| | | import {listHonor,enload, addHonor,updateHonor, delHonor,uploadPic,getCategory} from "@/api/honor/index"; |
| | | import {listHonor,listType,enload, addHonor,updateHonor, delHonor,uploadPic,getCategory} from "@/api/honor/index"; |
| | | |
| | | import { Notification, MessageBox, Message, Loading } from 'element-ui' |
| | | export default { |
| | |
| | | total: 0, |
| | | // 荣誉表格数据 |
| | | honorList: [], |
| | | typeList:[], |
| | | // 弹出层标题 |
| | | title: "", |
| | | // 是否显示弹出层 |
| | |
| | | // 日期范围 |
| | | dateRange: [], |
| | | // 数据范围选项 |
| | | fot:[".jpg",".jif"], |
| | | fileList:[ |
| | | ], |
| | | fileListOther:[ |
| | | |
| | | ], |
| | | fot:['.bmp','.jpg','.jpeg','.png','.tif','.gif','.pcx','.tga','.exif','.fpx', |
| | | '.svg','.psd','.cdr','.pcd','.dxf','.ufo','.eps','.ai','.aw','.WMF','.webp','.apng'], |
| | | fileList:[], |
| | | fileListOther:[], |
| | | dsb:true, |
| | | btn:false, |
| | | fit:['fill'], |
| | |
| | | trigger: 'blur' |
| | | }], |
| | | name: [{ |
| | | required: true, |
| | | // required: true, |
| | | message: '请输入名称', |
| | | trigger: 'blur' |
| | | }], |
| | |
| | | }, |
| | | selected:'', |
| | | typeOptions: [], |
| | | newOption: undefined, |
| | | showInput: true, |
| | | typeOption:[ |
| | | {value:'1',label:'荣誉'}, |
| | | {value:'0',label:'证件'}, |
| | | {value:'1',label:'荣誉'}, |
| | | {value:'2',label:'资质'},] |
| | | |
| | | }; |
| | | }, |
| | | created() { |
| | | this.getList(); |
| | | this.getCateInfor() |
| | | this.getTypeOptions(); |
| | | // for (let i = 0; i < this.contactList.length; i++) { |
| | | // this.formDat[i] = this.contactList[i]; |
| | | // } |
| | |
| | | return "statistics-warning-row"; |
| | | } |
| | | }, |
| | | //名称 |
| | | addNewOption() { |
| | | const newOption = this.newOption.trim(); |
| | | if (newOption && !this.typeOptions.includes(newOption)) { |
| | | this.typeOptions.push(newOption); |
| | | this.$set(this.formDat, 'type', newOption); // 更新formDat.type的值为新的选项 |
| | | } |
| | | }, |
| | | /** 查询记录列表 */ |
| | | getList() { |
| | | this.loading = true; |
| | |
| | | this.loading = false; |
| | | } |
| | | ); |
| | | listType(this.queryParams).then(response => { |
| | | this.typeList = response.data; |
| | | this.total = response.data.total; |
| | | // console.log( this.typeList ) |
| | | // 在回调函数中调用 getTypeOptions() |
| | | this.getTypeOptions(); |
| | | this.loading = false; |
| | | } |
| | | ); |
| | | }, |
| | | getTypeOptions() { |
| | | const filteredOptions = this.typeList.filter(item => typeof item === 'string' && item !== ''); |
| | | |
| | | const uniqueOptions = {}; |
| | | |
| | | this.typeOptions = filteredOptions.reduce((options, option) => { |
| | | if (!uniqueOptions[option]) { |
| | | uniqueOptions[option] = true; |
| | | options.push({ |
| | | label: option, |
| | | value: option |
| | | }); |
| | | } |
| | | return options; |
| | | }, []); |
| | | |
| | | }, |
| | | /** 查询类别信息 */ |
| | | getCateInfor() |
| | |
| | | /** 提交按钮(数据权限) */ |
| | | submitDataScope: function() { |
| | | |
| | | |
| | | let ul = this.fileList.map(function (elem){ |
| | | return elem.url.replace(process.env.VUE_APP_BASE_TRUE_API,"") |
| | | }).join(",") |
| | |
| | | > |
| | | <span class="el-upload-list__item-actions"> |
| | | <span |
| | | v-if="isShow" |
| | | |
| | | class="el-upload-list__item-preview" |
| | | @click="handlePictureCardPreview(file)" |
| | | > |
| | | <i class="el-icon-zoom-in"></i> |
| | | </span> |
| | | <span |
| | | v-if="isShow" |
| | | |
| | | class="el-upload-list__item-delete" |
| | | @click="handleDownload(file.url)" |
| | | > |
| | |
| | | > |
| | | <span class="el-upload-list__item-actions"> |
| | | <span |
| | | v-if="isShow" |
| | | |
| | | class="el-upload-list__item-preview" |
| | | @click="handleFileCardPreview(file)" |
| | | > |
| | | <i class="el-icon-zoom-in"></i> |
| | | </span> |
| | | <span |
| | | v-if="isShow" |
| | | |
| | | class="el-upload-list__item-delete" |
| | | @click="handleDownload(file.url)" |
| | | > |
| | |
| | | > |
| | | <span class="el-upload-list__item-actions" > |
| | | <span |
| | | v-if="isShow" |
| | | |
| | | class="el-upload-list__item-preview" |
| | | @click="handlePictureCardPreview(file)" |
| | | > |
| | | <i class="el-icon-zoom-in"></i> |
| | | </span> |
| | | <span |
| | | v-if="isShow" |
| | | |
| | | class="el-upload-list__item-delete" |
| | | @click="handleDownload(file.url)" |
| | | > |
| | |
| | | fit="cover" |
| | | > |
| | | <span class="el-upload-list__item-actions"> |
| | | <span v-if="isShow" |
| | | <span |
| | | class="el-upload-list__item-preview" |
| | | @click="handleFileCardPreview(file)" |
| | | > |
| | | <i class="el-icon-zoom-in"></i> |
| | | </span> |
| | | <span |
| | | v-if="isShow" |
| | | |
| | | class="el-upload-list__item-delete" |
| | | @click="handleDownload(file.url)" |
| | | > |
| | |
| | | else{ |
| | | document.title = "个人财产详细信息"; |
| | | this.$route.meta.title = "个人财产详细信息";//列表的名称 |
| | | this.isShow=true |
| | | this.isShow=false |
| | | } |
| | | |
| | | let _this = this |
| | |
| | | // 日期范围 |
| | | dateRange: [], |
| | | // 数据范围选项 |
| | | fot:['.bmp','.jpg','.png','.tif','.gif','.pcx','.tga','.exif','.fpx', |
| | | fot:['.bmp','.jpg','.jpeg','.png','.tif','.gif','.pcx','.tga','.exif','.fpx', |
| | | '.svg','.psd','.cdr','.pcd','.dxf','.ufo','.eps','.ai','.aw','.WMF','.webp','.apng'], |
| | | fileList:[ |
| | | ], |
| | | fileListOther:[ |
| | | |
| | | ], |
| | | fileList:[], |
| | | fileListOther:[], |
| | | dsb:true, |
| | | btn:false, |
| | | fit:['fill'], |
| | |
| | | </el-cow> |
| | | <el-cow > |
| | | <el-form-item label="是否依旧有效" prop="isEffective" label-width="100px" style="background: #FAD1E0;border-radius: 7px 7px 7px 7px;opacity: 1;"> |
| | | <el-select v-model="formData.isEffective" placeholder="请选择是否依旧有效" clearable :style="{width: '100%'}" > |
| | | <el-select v-model="formData.isEffective" placeholder="请选择是否依旧有效" clearable :style="{width: '100%'}" :disabled="dsb"> |
| | | <el-option v-for="(item, index) in typeOptions" :key="index" :label="item.label" :value="item.value" |
| | | ></el-option> |
| | | </el-select> |
| | |
| | | > |
| | | <span class="el-upload-list__item-actions" > |
| | | <span |
| | | v-if="isShow" |
| | | |
| | | class="el-upload-list__item-preview" |
| | | @click="handlePictureCardPreview(file)" |
| | | > |
| | | <i class="el-icon-zoom-in"></i> |
| | | </span> |
| | | <span |
| | | v-if="isShow" |
| | | |
| | | class="el-upload-list__item-delete" |
| | | @click="handleDownload(file.url)" |
| | | > |
| | |
| | | fit="cover" |
| | | > |
| | | <span class="el-upload-list__item-actions"> |
| | | <span v-if="isShow" |
| | | <span |
| | | class="el-upload-list__item-preview" |
| | | @click="handleFileCardPreview(file)" |
| | | > |
| | | <i class="el-icon-zoom-in"></i> |
| | | </span> |
| | | <span |
| | | v-if="isShow" |
| | | |
| | | class="el-upload-list__item-delete" |
| | | @click="handleDownload(file.url)" |
| | | > |
| | |
| | | else{ |
| | | document.title = "百年心愿详细信息"; |
| | | this.$route.meta.title = "百年心愿详细信息";//列表的名称 |
| | | this.isShow=true |
| | | this.isShow=false |
| | | } |
| | | |
| | | let _this = this |