fix:作品类型分页功能修改、作品列表弹窗介绍字段改用文本域编辑
This commit is contained in:
parent
b66c17b045
commit
e707ccb6c9
@ -59,7 +59,7 @@
|
||||
<el-row>
|
||||
<el-col>
|
||||
<el-form-item :label-width="labelWidth" label="介绍" prop="works_intro">
|
||||
<RichText v-model='formData.works_intro' :min-height='196'></RichText>
|
||||
<el-input rows="5" v-model='formData.works_intro' type="textarea" placeholder='请输入作品介绍'></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
@ -59,7 +59,7 @@
|
||||
<el-row>
|
||||
<el-col>
|
||||
<el-form-item :label-width="labelWidth" label="介绍" prop="works_intro">
|
||||
<RichText v-model='formData.works_intro' :min-height='196'></RichText>
|
||||
<el-input rows="5" v-model='formData.works_intro' type="textarea" placeholder='请输入作品介绍'></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
@ -59,7 +59,7 @@
|
||||
<el-row>
|
||||
<el-col>
|
||||
<el-form-item :label-width="labelWidth" label="介绍" prop="works_intro">
|
||||
<RichText v-model='formData.works_intro' :min-height='196'></RichText>
|
||||
<el-input rows="5" v-model='formData.works_intro' type="textarea" placeholder='请输入作品介绍'></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
@ -66,11 +66,8 @@
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<!-- 分页 -->
|
||||
<div class="pagination">
|
||||
<el-pagination v-model:current-page="page" v-model:page-size="limit" :page-sizes="pageSizesData" background
|
||||
layout="prev, pager,next, jumper,total,sizes" :total="pageCount" @size-change="handleSizeChange"
|
||||
@current-change="handleCurrentChange" />
|
||||
</div>
|
||||
|
||||
<pagination :total="pageCount" v-model:page="params.page" v-model:limit="params.limit" @pagination="getList()" />
|
||||
|
||||
<!-- 添加作品类型 -->
|
||||
<AddWorksTypeDialog v-model="addWorksTypeDialogVisible" :done="() => getList()"></AddWorksTypeDialog>
|
||||
@ -174,21 +171,12 @@ const handleExcelSuccess = (value) => {
|
||||
getList()
|
||||
};
|
||||
|
||||
//分页处理
|
||||
const pageSizesData = [10, 20, 30, 40, 50, 100];
|
||||
const pageCount = ref(0)
|
||||
const page = ref(1)
|
||||
const limit = ref(10)
|
||||
//每页展示数量事件
|
||||
const handleSizeChange = () => getList()
|
||||
//页数点击事件
|
||||
const handleCurrentChange = () => getList()
|
||||
|
||||
// 查询参数
|
||||
const params = reactive({
|
||||
works_type_name: "",
|
||||
page: page,
|
||||
limit: limit,
|
||||
page: 1,
|
||||
limit: 10,
|
||||
});
|
||||
|
||||
//表格数据获取及拖拽处理
|
||||
@ -200,7 +188,7 @@ function getList() {
|
||||
getWorksTypeList(params).then((res) => {
|
||||
if (res.code == 0) {
|
||||
dataList.value = res.data
|
||||
pageCount.value= res.count
|
||||
pageCount.value = res.count
|
||||
setTimeout(() => {
|
||||
[...document.getElementsByClassName('el-table__row')].map(item => { item.classList.add('row1') });
|
||||
[...document.getElementsByClassName('el-table__row--level-1')].map(item => { item.classList.remove('row1') })
|
||||
|
Loading…
Reference in New Issue
Block a user