flx:优化

This commit is contained in:
Rain_ 2025-10-24 17:15:19 +08:00
parent 7fd9929e0e
commit f384d1c351
3 changed files with 29 additions and 5 deletions

View File

@ -57,12 +57,16 @@
<el-table-column :width="$fontSize(120)" prop="implementationVerificationResult" label="实施验证结果" align="center"></el-table-column>
<el-table-column :width="$fontSize(120)" prop="firstExampleFile" label="附件" align="center">
<template slot-scope="scope">
<div class="download" @click="downloadFn(item)" v-for="item in scope.row.firstExampleFile" :key="item.uid">{{ item.name }}</div>
<el-tooltip v-for="item in scope.row.firstExampleFile" :key="item.uid" effect="dark" :content="item.name" placement="top">
<div class="download" @click="downloadFn(item)">{{ item.name }}</div>
</el-tooltip>
</template>
</el-table-column>
<el-table-column :width="$fontSize(120)" prop="firstExampleVideo" label="视频或动画" align="center">
<template slot-scope="scope">
<div class="download" @click="downloadFn(item)" v-for="item in scope.row.firstExampleVideo" :key="item.uid">{{ item.name }}</div>
<el-tooltip v-for="item in scope.row.firstExampleVideo" :key="item.uid" effect="dark" :content="item.name" placement="top">
<div class="download" @click="downloadFn(item)">{{ item.name }}</div>
</el-tooltip>
</template>
</el-table-column>
<el-table-column fixed="right" :width="$fontSize(160)" :label="$t('message.personnelPosition.beaconManage.table.operation')" align="center">
@ -1072,6 +1076,9 @@ export default {
.download {
color: #1684fc;
cursor: pointer;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.backText {
padding: 8px 0;

View File

@ -252,7 +252,15 @@
></el-cascader>
</el-form-item>
<el-form-item label="姓名" prop="workerInfoId">
<el-select filterable v-model="cardForm.workerInfoId" :placeholder="$t('message.personnelPosition.please_select')" filterable>
<el-select-v2
:options="workerListOptions"
value-key="id"
label-key="label"
v-model="cardForm.workerInfoId"
:placeholder="$t('message.personnelPosition.please_select')"
filterable
></el-select-v2>
<!-- <el-select filterable v-model="cardForm.workerInfoId" :placeholder="$t('message.personnelPosition.please_select')">
<el-option
:label="item.workerName + '-' + item.enterpriseName"
:value="item.id"
@ -260,7 +268,7 @@
:key="index"
>
</el-option>
</el-select>
</el-select> -->
</el-form-item>
<el-form-item label="单位名称" prop="enterpriseName">
<el-input disabled v-model="cardForm.enterpriseName" :placeholder="$t('message.personnelPosition.please_enter')"></el-input>
@ -1297,7 +1305,12 @@ export default {
};
getWorkerInfoList(data).then(res => {
if (res.code == 200) {
this.workerListOptions = res.result.records;
this.workerListOptions = res.result.records.map(item => {
return {
...item,
label: item.workerName + '-' + item.enterpriseName,
}
});
console.log('获取施工人员下拉', this.workerListOptions);
} else {
this.$message.error(res.message);

View File

@ -1167,6 +1167,10 @@ export default {
};
</script>
<style lang="less" scoped>
.tables {
min-height: 63vh;
max-height: 63vh;
}
.container_main {
height: calc(100% - 54px);
}