2024.7.10 新元素官网
This commit is contained in:
parent
6977fa5c50
commit
2b84036f44
|
@ -4,7 +4,7 @@
|
||||||
<el-form-item label="图片所属分类" prop="imgCat">
|
<el-form-item label="图片所属分类" prop="imgCat">
|
||||||
<el-select v-model="queryParams.imgCat" placeholder="请选择图片所属分类" clearable>
|
<el-select v-model="queryParams.imgCat" placeholder="请选择图片所属分类" clearable>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="dict in dict.type.article_cat"
|
v-for="dict in dict.type.img_type"
|
||||||
:key="dict.value"
|
:key="dict.value"
|
||||||
:label="dict.label"
|
:label="dict.label"
|
||||||
:value="dict.value"
|
:value="dict.value"
|
||||||
|
@ -65,10 +65,10 @@
|
||||||
|
|
||||||
<el-table v-loading="loading" :data="imgList" @selection-change="handleSelectionChange">
|
<el-table v-loading="loading" :data="imgList" @selection-change="handleSelectionChange">
|
||||||
<el-table-column type="selection" width="55" align="center" />
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
<el-table-column label="官网图片管理" align="center" prop="id" />
|
<!-- <el-table-column label="官网图片管理" align="center" prop="id" />-->
|
||||||
<el-table-column label="图片类型" align="center" prop="imgType">
|
<el-table-column label="图片类型" align="center" prop="imgType">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<dict-tag :options="dict.type.img_type" :value="scope.row.imgType"/>
|
<dict-tag :options="dict.type.img_type" :value="scope.row.imgCat"/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="图片地址" align="center" prop="imgUrl" width="100">
|
<el-table-column label="图片地址" align="center" prop="imgUrl" width="100">
|
||||||
|
@ -76,11 +76,11 @@
|
||||||
<image-preview :src="scope.row.imgUrl" :width="50" :height="50"/>
|
<image-preview :src="scope.row.imgUrl" :width="50" :height="50"/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="图片所属分类" align="center" prop="imgCat">
|
<!-- <el-table-column label="图片所属分类" align="center" prop="imgCat">-->
|
||||||
<template slot-scope="scope">
|
<!-- <template slot-scope="scope">-->
|
||||||
<dict-tag :options="dict.type.article_cat" :value="scope.row.imgCat"/>
|
<!-- <dict-tag :options="dict.type.article_cat" :value="scope.row.imgCat"/>-->
|
||||||
</template>
|
<!-- </template>-->
|
||||||
</el-table-column>
|
<!-- </el-table-column>-->
|
||||||
<el-table-column label="备注" align="center" prop="remark" />
|
<el-table-column label="备注" align="center" prop="remark" />
|
||||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
|
@ -113,8 +113,8 @@
|
||||||
<!-- 添加或修改图片管理对话框 -->
|
<!-- 添加或修改图片管理对话框 -->
|
||||||
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
||||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||||
<el-form-item label="图片类型" prop="imgType">
|
<el-form-item label="图片类型" prop="imgCat">
|
||||||
<el-select v-model="form.imgType" placeholder="请选择图片类型">
|
<el-select v-model="form.imgCat" placeholder="请选择图片类型">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="dict in dict.type.img_type"
|
v-for="dict in dict.type.img_type"
|
||||||
:key="dict.value"
|
:key="dict.value"
|
||||||
|
@ -126,16 +126,16 @@
|
||||||
<el-form-item label="图片地址" prop="imgUrl">
|
<el-form-item label="图片地址" prop="imgUrl">
|
||||||
<image-upload v-model="form.imgUrl"/>
|
<image-upload v-model="form.imgUrl"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="图片所属分类" prop="imgCat">
|
<!-- <el-form-item label="图片所属分类" prop="imgCat">-->
|
||||||
<el-select v-model="form.imgCat" placeholder="请选择图片所属分类">
|
<!-- <el-select v-model="form.imgCat" placeholder="请选择图片所属分类">-->
|
||||||
<el-option
|
<!-- <el-option-->
|
||||||
v-for="dict in dict.type.article_cat"
|
<!-- v-for="dict in dict.type.article_cat"-->
|
||||||
:key="dict.value"
|
<!-- :key="dict.value"-->
|
||||||
:label="dict.label"
|
<!-- :label="dict.label"-->
|
||||||
:value="parseInt(dict.value)"
|
<!-- :value="parseInt(dict.value)"-->
|
||||||
></el-option>
|
<!-- ></el-option>-->
|
||||||
</el-select>
|
<!-- </el-select>-->
|
||||||
</el-form-item>
|
<!-- </el-form-item>-->
|
||||||
<el-form-item label="备注" prop="remark">
|
<el-form-item label="备注" prop="remark">
|
||||||
<el-input v-model="form.remark" placeholder="请输入备注" />
|
<el-input v-model="form.remark" placeholder="请输入备注" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
Loading…
Reference in New Issue