liling 2 сар өмнө
parent
commit
cacb38ce04

+ 8 - 2
src/views/calc/calcxiansha/index.vue

@@ -1,8 +1,10 @@
 <template>
   <div style="padding:10px" @click.stop="void(0)">
       <div class="" style="text-align: center;top:2%;width: 100%;letter-spacing: 5px;color: #cdd2fb;font-size: 18px;">
-          <span style="position: relative;">
-              <el-button style="margin-left:10px" @click="impquery">刷新</el-button>
+          <span style="position: relative;display: flex;justify-content: center;">
+              <span style="line-height: 32px;color: #999;font-size: 14px;">预期天数:</span>
+              <span><el-input type="number" v-model="prevDay"/></span>
+              <el-button style="margin-left:10px" @click="impquery">查询</el-button>
               <el-button style="margin-left:10px" @click="impdata">导出</el-button>
           </span>                
       </div>
@@ -170,12 +172,16 @@
                   }
                   datalist.value = res.data.list;
                   let tmp = [];
+                  let alllist = [];
                   for(let key in res.data.list){
                     let ds=key.split('/');
                     tmp.push({"f1":ds[0],"f2":ds[1],"f3":ds[2]});
+                    alllist.push(...res.data.list[key])
                   }
                   xsDlist.value = tmp;
                   calcDataList.value = res.data.calc;
+                  detailValue.value = '全部';
+                  detailDataList.value = alllist;
               }).catch(res=>{
                   ElMessage({
                       message:"数据获取失败!",