比例调整

This commit is contained in:
BabyBoy 2025-09-10 15:40:27 +08:00
parent 427b88befd
commit d52fbdb371
2 changed files with 9 additions and 6 deletions

View File

@ -46,7 +46,7 @@
<!-- <el-table-column label="粉丝数量" prop="fansCounts" align="center" width="100" /> --> <!-- <el-table-column label="粉丝数量" prop="fansCounts" align="center" width="100" /> -->
<el-table-column label="评论者头像" align="center" width="200"> <el-table-column label="评论者头像" align="center" width="200">
<template #default="{ row }"> <template #default="{ row }">
<img alt="评论者头像" style="max-width: 50%; max-height: 50%" :src="row.commentUserFace" /> <el-image alt="评论者头像" style="max-width: 50%; max-height: 50%" :src="row.commentUserFace" />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="视频" align="center" width="200"> <el-table-column label="视频" align="center" width="200">
@ -102,7 +102,7 @@
</el-table-column> </el-table-column>
<el-table-column label="评论者头像" align="center" width="200"> <el-table-column label="评论者头像" align="center" width="200">
<template #default="{ row }"> <template #default="{ row }">
<img alt="评论者头像" style="max-width: 20%; max-height: 20%" :src="row.replyUserFace" /> <el-image alt="评论者头像" style="max-width: 20%; max-height: 20%" :src="row.replyUserFace" />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" fixed="right" align="center" class-name="small-padding fixed-width"> <el-table-column label="操作" fixed="right" align="center" class-name="small-padding fixed-width">

View File

@ -100,9 +100,9 @@
<el-button type="primary" plain icon="Plus" @click="addform" style="margin-bottom: 10px">新增</el-button> <el-button type="primary" plain icon="Plus" @click="addform" style="margin-bottom: 10px">新增</el-button>
<el-row :gutter="20" v-for="(item, index) in templateDetailList" :key="index"> <el-row :gutter="20" v-for="(item, index) in templateDetailList" :key="index">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="类:" :prop="'templateDetailList[' + index + '].rateName'"> <el-form-item label="类:" :prop="'templateDetailList[' + index + '].rateName'">
<el-select v-model="item.rateName" placeholder="请选择" clearable> <el-select v-model="item.rateName" placeholder="请选择" clearable>
<el-option v-for="item in enterpriseList" :key="item.value" :label="item.label" :value="item.value" /> <el-option v-for="item in enterpriseList" :key="item.id" :label="item.name" :value="item.id" />
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -159,6 +159,7 @@ import { listDivide, addTenant, addsection, getsections, putsections, deletesect
import { TenantForm, TenantQuery, TenantVO } from '@/api/system/types'; import { TenantForm, TenantQuery, TenantVO } from '@/api/system/types';
import { getDictionaryByKey } from '@/utils/dict'; import { getDictionaryByKey } from '@/utils/dict';
import { selectTenantPackage } from '@/api/system/tenantPackage'; import { selectTenantPackage } from '@/api/system/tenantPackage';
import { listPmsProductCategory } from '@/api/pms/productCategory';
import { useUserStore } from '@/store/modules/user'; import { useUserStore } from '@/store/modules/user';
// import { TenantForm, TenantQuery, TenantVO, TenantModal, enterpriseType } from '@/api/system/tenant/types'; // import { TenantForm, TenantQuery, TenantVO, TenantModal, enterpriseType } from '@/api/system/tenant/types';
import { TenantPkgVO } from '@/api/system/tenantPackage/types'; import { TenantPkgVO } from '@/api/system/tenantPackage/types';
@ -204,6 +205,7 @@ const deleteList = (index: any, id: any) => {
deletesection(id); deletesection(id);
} }
}; };
// //
const constdfrom = ref([]); const constdfrom = ref([]);
const conadd = () => { const conadd = () => {
@ -322,8 +324,9 @@ const clearfun = () => {
}; };
const enterpriseList = ref([]); // const enterpriseList = ref([]); //
const getByKey = async () => { const getByKey = async () => {
const value1 = await getDictionaryByKey('rate_name'); listPmsProductCategory({ id: null }).then((response) => {
enterpriseList.value = value1; enterpriseList.value = response.data;
});
}; };
const initFormData: TenantForm = { const initFormData: TenantForm = {
id: null, id: null,