Browse Source

2025.02.07 文档收集UI优化

java8
yuejiayang 11 months ago
parent
commit
064e4e7a05
  1. 38
      src/views/modules/eam/eamProjectInfoForUploads.vue

38
src/views/modules/eam/eamProjectInfoForUploads.vue

@ -177,6 +177,7 @@
@row-click="projectAllDocumentClickRow" @row-click="projectAllDocumentClickRow"
:row-style="rowStyle" :row-style="rowStyle"
:row-class-name="tableRowClassName" :row-class-name="tableRowClassName"
:cell-style="getCellStyle"
v-loading="dataListLoading"> v-loading="dataListLoading">
<el-table-column <el-table-column
v-for="(item,index) in columnProjectAllDocumentList" :key="index" v-for="(item,index) in columnProjectAllDocumentList" :key="index"
@ -189,9 +190,16 @@
:min-width="item.columnWidth" :min-width="item.columnWidth"
:label="item.columnLabel"> :label="item.columnLabel">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="!item.columnHidden">{{scope.row[item.columnProp]}}</span>
<div v-if="item.columnProp === 'partType'">
<span style="color: black">
{{ scope.row[item.columnProp] }}
</span>
</div>
<div v-else>
<span v-if="!item.columnHidden"> {{scope.row[item.columnProp]}}</span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
style="width: 100px; height: 80px"/></span> style="width: 100px; height: 80px"/></span>
</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -722,6 +730,24 @@ export default {
fixed: '', fixed: '',
columnWidth: 100, columnWidth: 100,
}, },
{
userId: this.$store.state.user.name,
functionId: 401006,
serialNumber: '401006Table1PartType',
tableId: "401006Table1",
tableName: "项目信息待上传文件表",
columnProp: 'partType',
headerAlign: "center",
align: "left",
columnLabel: '料号状态' ,
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 100,
},
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 401006, functionId: 401006,
@ -2392,6 +2418,16 @@ export default {
} }
}, },
getCellStyle({ row, column, rowIndex, columnIndex }) {
// "partType"
if (column.property === 'partType') {
return {
backgroundColor: row.partType === 'Active' ? 'rgb(141, 255, 115)' : 'rgb(188, 204, 194)',
};
}
return {};
},
// //
async getTableUserColumn(tableId, columnId) { async getTableUserColumn(tableId, columnId) {
let queryTableUser = { let queryTableUser = {

Loading…
Cancel
Save