Browse Source

调整主计划表格宽度

pull/106/head
xuxiaoming 3 years ago
parent
commit
178e0c5a4b
1 changed files with 15 additions and 1 deletions
  1. +15
    -1
      src/views/productionPlanning/customerForecastDemandReview/demandPlanning/articleDemand/index.vue

+ 15
- 1
src/views/productionPlanning/customerForecastDemandReview/demandPlanning/articleDemand/index.vue View File

@ -95,7 +95,7 @@
:label="showTitle(item,index)"
:prop="item"
show-overflow-tooltip
width="100px">
:width="calcWidth(index)">
<template #default="scope">
<el-input v-if="scope.row['Label'] == editField && scope.row['key'] == editKey && index > 8 "
v-model="scope.row[item]"
@ -202,6 +202,20 @@ export default {
"editButtonClass",
"publicButtonClass"
]),
calcWidth(){
return function(index) {
let width = "100px"
switch (index) {
case 0:
width = "150px"
break;
case 2:
width = "350px"
break;
}
return width
}
},
showTitle() {
return function(item, index) {
if (item == "Label") {


Loading…
Cancel
Save