| | |
| | | <template> |
| | | <el-card shadow="never" class="aui-card--fill"> |
| | | <div class="mod-sysPictureBase-sysPictureBase}"> |
| | | <div class="mod-sysPictureBase-sysPictureBase fa-card-a"> |
| | | <zt-table-wraper query-url="/sysPictureBase/page" delete-url="/sysPictureBase/" |
| | | :paging='false' |
| | | v-slot="{ table }"> |
| | | <el-form :inline="true" :model="dataForm" @keyup.enter.native="table.query()"> |
| | | <el-form-item> |
| | |
| | | |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <zt-dict v-model="dataForm.systemMark" dict="product" placeholder="请选择系统标识" clearable></zt-dict> |
| | | <zt-dict v-model="dataForm.productType" dict="product" placeholder="请选择产品类型" clearable></zt-dict> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <zt-button type="query" @click="table.query()"/> |
| | |
| | | <zt-button type="delete" @click="table.deleteHandle()"/> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-table v-loading="table.dataLoading" :data="table.dataList" height="100px" v-adaptive="{bottomOffset:70}" |
| | | border @selection-change="table.selectionChangeHandle"> |
| | | <el-table v-loading="table.dataLoading" :data="table.dataList" height="100px" v-adaptive="{bottomOffset:30}" |
| | | @selection-change="table.selectionChangeHandle"> |
| | | <el-table-column type="selection" width="40" align="center"/> |
| | | <el-table-column prop="sortNo" label="排序"/> |
| | | <el-table-column prop="name" label="图片名称"/> |
| | | <zt-table-column-dict prop="isDefault" label="是否默认" dict="is_or_not"/> |
| | | <el-table-column label="图片" align="center"> |
| | | <template v-slot="{ row }"> |
| | | <el-image v-if="row.id" :src="url+row.id" style="height: 50px;width: 50px"></el-image> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="contentType" label="检索关键字"/> |
| | | <zt-table-column-dict prop="systemMark" label="系统标识" dict="product"/> |
| | | <zt-table-column-dict prop="productType" label="产品类型" dict="product"/> |
| | | <zt-table-column-handle :table="table" |
| | | delete-perm="sysPictureBase::delete"/> |
| | | </el-table> |
| | |
| | | <add-or-update @refreshDataList="table.query"/> |
| | | </zt-table-wraper> |
| | | </div> |
| | | </el-card> |
| | | </template> |
| | | |
| | | <script> |
| | |
| | | url: `${window.SITE_CONFIG['apiURL']}/sysPictureBase/getProductImg?token=${Cookies.get('token')}&id=`, |
| | | dataForm: { |
| | | contentType: '', |
| | | systemMark: '', |
| | | sortNo: '' |
| | | productType: '', |
| | | }, |
| | | } |
| | | }, |