| | |
| | | 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-button type="primary" icon="el-icon-search" size="mini" style=" width: 65px; height: 32px;background: #FFDDE3; |
| | | border-radius: 6px 6px 6px 6px;opacity:1; " @click="handleQuery">搜索</el-button> |
| | | <el-button icon="el-icon-refresh" size="mini" style=" width: 65px; height: 32px;background: #FFDDE3; |
| | | border-radius: 6px 6px 6px 6px;opacity:1; " @click="resetQuery">重置</el-button> |
| | | |
| | | <el-button size="mini" @click="handleQuery" style=" width: 67px;height: 27px;background: #FFDDE3; |
| | | border-radius: 7px 7px 7px 7px;opacity: 1; " >搜索</el-button> |
| | | <el-button size="mini" @click="resetQuery" style=" width: 67px;height: 27px;background: #FFDDE3; |
| | | border-radius: 7px 7px 7px 7px;opacity: 1; ">重置</el-button> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-cntainer> |
| | |
| | | |
| | | </el-form> |
| | | <div> |
| | | <div style="width: 100px; |
| | | height: 24px; |
| | | font-size: 18px; |
| | | font-family: Microsoft YaHei-Regular, Microsoft YaHei; |
| | | font-weight: 400; |
| | | color: #000000; |
| | | line-height: 21px; |
| | | ">收藏和荣誉</div> |
| | | <!-- <div style="width: 100px;--> |
| | | <!-- 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"> |
| | |
| | | <el-button size="mini" type="primary" |
| | | plain |
| | | icon="el-icon-plus" >导入</el-button> |
| | | |
| | | </el-upload> |
| | | </el-col> |
| | | <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> |
| | |
| | | </div> |
| | | <el-table v-loading="loading" :data="collectionList" :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 label="序号" sortable type="index" :index="(queryParams.pageNum-1)*queryParams.pageSize+1" width="60"/> |
| | | <el-table-column fixed label="序号" sortable type="index" :index="(queryParams.pageNum-1)*queryParams.pageSize+1" width="60"/> |
| | | <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"> |
| | | <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="name" sortable :show-overflow-tooltip="true" width="90" align="center" > |
| | | <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-table-column label="来源" prop="source" sortable width="90" align="center" > |
| | | <el-table-column label="来源" prop="source" sortable width="120" align="center" > |
| | | <template slot-scope="scope">{{scope.row.source? scope.row.source: '————'}}</template> |
| | | </el-table-column> |
| | | |
| | | <el-table-column label="拥有者" prop="owner" sortable width="110" align="center"> |
| | | |
| | | <template slot-scope="scope">{{scope.row.owner? scope.row.owner: '————'}}</template> |
| | | </el-table-column> |
| | | <el-table-column label="价值" prop="price" sortable width="90" align="center"> |
| | | <el-table-column label="价值" prop="price" sortable width="120" align="center"> |
| | | <template slot-scope="scope">{{scope.row.price? scope.row.price: '————'}}</template> |
| | | </el-table-column> |
| | | <el-table-column label="存放位置" prop="location" sortable width="130" align="center"> |
| | | <el-table-column label="存放位置" prop="location" sortable width="160" align="center"> |
| | | <template slot-scope="scope">{{scope.row.location? scope.row.location: '————'}}</template> |
| | | </el-table-column> |
| | | <el-table-column label="备注" prop="remark" sortable width="90" align="center"> |
| | | <template slot-scope="scope">{{scope.row.remark? scope.row.remark: '————'}}</template> |
| | | </el-table-column> |
| | | <el-table-column label="电子文件" prop="url" width="180" > |
| | | <el-table-column label="电子文件" prop="url" width="180" align="center"> |
| | | |
| | | <template slot-scope="scope" > |
| | | <img |
| | | class="el-upload-list__item-thumbnail" |
| | |
| | | > |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | |
| | | <el-table-column label="操作" align="center" class-name="small-padding fixed-width" > |
| | | <template slot-scope="scope" v-if="scope.row.roleId !== 1"> |
| | | <el-button |
| | |
| | | <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) |
| | | }, |