Commit 3c985027 by zhangzhen

委外执行加工表页面细节优化

parent 9ec270dd
...@@ -143,7 +143,14 @@ $(function () { ...@@ -143,7 +143,14 @@ $(function () {
onSuccess: (res) => { onSuccess: (res) => {
if(res.extAttr.result && res.extAttr.result.length){ if(res.extAttr.result && res.extAttr.result.length){
that.list = []; that.list = [];
let list = res.extAttr.result.map(item =>{ let list = res.extAttr.result.map(item => {
return {
...item,
contractDate: item.contractDate? dayjs(item.contractDate).format('YYYY-MM-DD'):'',
outDate: item.outDate? dayjs(item.outDate).format('YYYY-MM-DD'):'',
depositDate: item.depositDate? dayjs(item.depositDate).format('YYYY-MM-DD'):''
}
}).map(item =>{
let obj = {} let obj = {}
that.columns2.forEach(val =>{ that.columns2.forEach(val =>{
obj[val.value] = { obj[val.value] = {
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
<script> <script>
var ctx = "${ctx}"; var ctx = "${ctx}";
</script> </script>
<script src="${ctx}/common/js/dayjs.min.js"></script>
<script src="${ctx}/common/js/vue-2.6.10.js"></script> <script src="${ctx}/common/js/vue-2.6.10.js"></script>
<style> <style>
table{ table{
...@@ -49,6 +50,9 @@ ...@@ -49,6 +50,9 @@
min-height: 100%; min-height: 100%;
min-width: 100%; min-width: 100%;
} }
.bg-blue{
background-color: #eff8ff;
}
</style> </style>
<EF:EFPage title="委外执行加工表"> <EF:EFPage title="委外执行加工表">
<EF:EFRegion id="inqu" title="查询条件"> <EF:EFRegion id="inqu" title="查询条件">
...@@ -92,7 +96,7 @@ ...@@ -92,7 +96,7 @@
</thead> </thead>
<tbody> <tbody>
<tr v-for="(valObj,i) in list" :key="i"> <tr v-for="(valObj,i) in list" :key="i">
<td v-for="(item,k) in columns2" :key="k" v-if="valObj[item.value].show" :rowspan="valObj[item.value].rowspan"> <td v-for="(item,k) in columns2" :key="k" v-if="valObj[item.value].show" :rowspan="valObj[item.value].rowspan" :class="i/2%1?'bg-blue':''">
<span>{{valObj[item.value].value}}</span> <span>{{valObj[item.value].value}}</span>
</td> </td>
</tr> </tr>
......
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