Commit b134e8fe by liuguorong93

工作犬 列表优化

parent 8c4c5cd2
......@@ -5,7 +5,6 @@
class="titles"
style="width: 72px;"
>查询条件</div>
{{formData}}
<el-form
:model="formData"
ref="formDataRef"
......@@ -49,6 +48,7 @@
class="elItemClass"
>
<lazy-select-tree-dialog
flagBiaoZhi="allUnit"
:sendId="formData.trainingUnit"
:formData="formData"
:currentItem="unitInfo"
......@@ -236,7 +236,7 @@
show-overflow-tooltip
>
<template slot-scope="scope">
<span>{{ scope.row.trainingLevelId }}</span>
<span>{{ scope.row.trainingLevelIdForName }}</span>
</template>
</el-table-column>
<el-table-column
......@@ -245,7 +245,7 @@
show-overflow-tooltip
>
<template slot-scope="scope">
<span>{{ scope.row.workingDogClassificationId }}</span>
<span>{{ scope.row.wordForName }}</span>
</template>
</el-table-column>
</el-table>
......@@ -382,11 +382,32 @@ export default {
res.data.data.records.length
) {
let datas = res.data.data.records;
// console.log(datas);
// datas.forEach((item) => {
// item.jwjsxlForName = getCodeName(item.jwjsxl, this.jwjsxlOptions);
// });
datas.forEach((item) => {
// 处理工作犬等级
item.trainingLevelIdForName = getCodeName(
item.trainingLevelId,
this.gzqdjOptions
);
// 处理专业方向
item.wordForName = "";
if (item.workingDogClassificationId) {
let workArr = item.workingDogClassificationId.split("#") || [];
if (workArr?.length) {
workArr.forEach((workItem) => {
let result = getCodeName(workItem, this.zyfxOptions);
if (result) {
item.wordForName = item.wordForName + result + "、";
}
});
item.wordForName = item.wordForName.substr(
0,
item.wordForName.length - 1
);
}
}
});
this.tableData = datas;
this.total = res.data.data.total;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment