style:调整列宽度

This commit is contained in:
lwj
2025-12-18 13:55:58 +08:00
parent 99760c9940
commit 19618e3b90

View File

@@ -71,7 +71,9 @@
</el-row> </el-row>
</div> </div>
<div style="margin-right:30px;"> <div style="margin-right:30px;">
<el-table style="margin:10px 32px 10px 22px;" :data="pageData" border stripe> <!-- ai播放器相关 -->
<el-table style="margin:10px 32px 10px 22px;" :data="pageData" border stripe @selection-change="handleSelectionChange">
<el-table-column v-if="aiPermission" type="selection" width="55"></el-table-column>
<el-table-column label="序号" type="index" width="50"></el-table-column> <el-table-column label="序号" type="index" width="50"></el-table-column>
<el-table-column v-if="forChoose" label="选择" width="80"> <el-table-column v-if="forChoose" label="选择" width="80">
<template slot-scope="scope" v-if="scope.row.published"> <template slot-scope="scope" v-if="scope.row.published">
@@ -107,7 +109,7 @@
{{ courseType(scope.row.type)}} {{ courseType(scope.row.type)}}
</template> </template>
</el-table-column> --> </el-table-column> -->
<el-table-column label="状态" prop="status" width="120px"> <el-table-column label="状态" prop="status" width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<!-- 1未提交 2.已提交 = 未审核 5 已审核 --> <!-- 1未提交 2.已提交 = 未审核 5 已审核 -->
<span v-if="scope.row.status == 1">未提交</span> <span v-if="scope.row.status == 1">未提交</span>
@@ -116,25 +118,25 @@
<span v-if="scope.row.status == 3">审核未通过</span> <span v-if="scope.row.status == 3">审核未通过</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="是否发布" width="130px"> <el-table-column label="是否发布" width="80">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.published == true ? '已发布' : '未发布' }} {{ scope.row.published == true ? '已发布' : '未发布' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="创建人" prop="sysCreateBy"></el-table-column> <el-table-column label="创建人" prop="sysCreateBy"></el-table-column>
<el-table-column label="创建时间" prop="sysCreateTime" width="230px" show-overflow-tooltip></el-table-column> <el-table-column label="创建时间" prop="sysCreateTime" width="150" show-overflow-tooltip></el-table-column>
<el-table-column label="是否停用" width="130px"> <el-table-column label="是否停用" width="80">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.enabled == true ? '启用' : '停用' }} {{ scope.row.enabled == true ? '启用' : '停用' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="是否置顶" width="130px"> <el-table-column label="是否置顶" width="80">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.isTop == true ? '置顶' : '未置顶' }} {{ scope.row.isTop == true ? '置顶' : '未置顶' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="审核人" prop="auditUser"></el-table-column> <el-table-column label="审核人" prop="auditUser" width="80"></el-table-column>
<el-table-column label="审核时间" prop="auditTime" show-overflow-tooltip></el-table-column> <el-table-column label="审核时间" prop="auditTime" width="150" show-overflow-tooltip></el-table-column>
<el-table-column label="操作" width="180px" fixed="right"> <el-table-column label="操作" width="180px" fixed="right">
<template slot-scope="scope" class="btn-gl"> <template slot-scope="scope" class="btn-gl">
<!-- 20240621 修改scope.row.isPermission = fasle 时不展示操作按钮--> <!-- 20240621 修改scope.row.isPermission = fasle 时不展示操作按钮-->
@@ -301,7 +303,7 @@ import auditCourse2 from '@/components/Course/auditCourse2.vue';
import adminPage from '@/components/Administration/adminPage.vue'; import adminPage from '@/components/Administration/adminPage.vue';
import apiResowner from '../../api/modules/resowner.js'; import apiResowner from '../../api/modules/resowner.js';
import apiType from '../../api/modules/type.js' import apiType from '../../api/modules/type.js'
import {courseType} from '../../utils/tools.js'; import {courseType, deepCopy} from '../../utils/tools.js';
import apiCourse from '../../api/modules/course.js'; import apiCourse from '../../api/modules/course.js';
// import {resOwnerIndexName,sysTypeIndexName} from '@/utils/type.js'; // import {resOwnerIndexName,sysTypeIndexName} from '@/utils/type.js';
import { mapGetters,mapActions } from 'vuex'; import { mapGetters,mapActions } from 'vuex';
@@ -309,8 +311,9 @@ import apiUserbasic from "@/api/boe/userbasic.js"
export default { export default {
name: 'manageCourse', name: 'manageCourse',
components: {courseForm, manager, auditCourse1, auditCourse2,adminPage}, components: {courseForm, manager, auditCourse1, auditCourse2,adminPage},
// ai播放器相关
computed: { computed: {
...mapGetters(['resOwnerMap','sysTypeMap','userInfo']), ...mapGetters(['resOwnerMap','sysTypeMap','userInfo', 'selectAllLang']),
}, },
data() { data() {
return { return {
@@ -428,6 +431,7 @@ export default {
}, },
methods: { methods: {
getAudiences(){ getAudiences(){
apiUserbasic.getInAudienceIds().then(res=>{ apiUserbasic.getInAudienceIds().then(res=>{
if (res.status == 200) { if (res.status == 200) {
@@ -451,6 +455,7 @@ export default {
inputOn() { inputOn() {
this.$forceUpdate(); this.$forceUpdate();
}, },
// 置顶 // 置顶
setTop(row) { setTop(row) {
let params = { let params = {