|
@@ -16,6 +16,7 @@
|
|
|
*/
|
|
|
package org.springblade.manager.controller;
|
|
|
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
|
import com.baomidou.mybatisplus.core.conditions.Wrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
|
@@ -260,8 +261,9 @@ public class ExcelTabController extends BladeController {
|
|
|
@GetMapping("/getWbsTypeList")
|
|
|
@ApiOperationSupport(order = 10)
|
|
|
@ApiOperation(value = "清表编辑 wbs 下拉框选择", notes = "传入excelTab")
|
|
|
- public R getWbsTypeList() {
|
|
|
- List<ExcelTabWbsTypeVO> wbsTypeList= excelTabService.getWbsTypeList();
|
|
|
+ @ApiImplicitParams(value = {@ApiImplicitParam(name = "wbstype", value = "wbstype", required = true)})
|
|
|
+ public R getWbsTypeList(Integer wbstype) {
|
|
|
+ List<ExcelTabWbsTypeVO> wbsTypeList= excelTabService.getWbsTypeList(wbstype);
|
|
|
return R.data(wbsTypeList);
|
|
|
}
|
|
|
|
|
@@ -447,7 +449,7 @@ public class ExcelTabController extends BladeController {
|
|
|
dataInfo.put("y2",data.attr("y2"));
|
|
|
dataInfo.put("xytype",data.attr("xytype"));
|
|
|
zikey.add(dataInfo);
|
|
|
- }else if(data.html().indexOf("el-input")>=0){
|
|
|
+ }else if(data.html().indexOf("el-input")>=0 ||data.html().indexOf("el-date-picker")>=0){
|
|
|
List arrayList = new ArrayList<>();
|
|
|
List left = new ArrayList<>();
|
|
|
List top = new ArrayList<>();
|
|
@@ -500,7 +502,8 @@ public class ExcelTabController extends BladeController {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- data.children().get(0).attr("placeholder",textDataInfo).attr("v-model","formData."+textDataType+"_"+i+j);
|
|
|
+ String attrInfo = textDataType+"_"+i+j;
|
|
|
+ data.children().get(0).attr("placeholder",textDataInfo).attr("v-model","formData."+attrInfo).attr("keyName",attrInfo);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -738,10 +741,10 @@ public class ExcelTabController extends BladeController {
|
|
|
data.attr("y1",y1+"");
|
|
|
data.attr("y2",y2+"");
|
|
|
data.attr("xytype",xy_type+"");
|
|
|
- String parm = i+","+j+","+x1+","+x2+","+y1+","+y2;
|
|
|
+ String parm = i+","+j+","+x1+","+x2+","+y1+","+y2+",$event";
|
|
|
// 设置文本信息
|
|
|
if(textInfo.indexOf("年")>=0 && textInfo.indexOf("月")>=0&& textInfo.indexOf("日")>=0){
|
|
|
- data.empty().append("<el-date-picker style='width:100%;height:100%' trIndex="+i+" tdIndex="+j+" x1="+x1+" x2="+x2+" y1="+y1+" y2="+y2+" type='date' format='yyyy 年 MM 月 dd 日' placeholder='请选择时间'> </el-date-picker>");
|
|
|
+ data.empty().append("<el-date-picker style='width:100%;height:100%' trIndex="+i+" tdIndex="+j+" x1="+x1+" x2="+x2+" y1="+y1+" y2="+y2+" type='date' format='YYYY年MM月DD日' placeholder='请选择时间'> </el-date-picker>");
|
|
|
}
|
|
|
|
|
|
if(textInfo.isEmpty() || textInfo.equals("/") || textInfo.equals("-")){
|
|
@@ -781,4 +784,20 @@ public class ExcelTabController extends BladeController {
|
|
|
inputStream.close();
|
|
|
System.out.println("完成");
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ *保存用户填报数据接口
|
|
|
+ */
|
|
|
+ @PostMapping("/save_buss_data")
|
|
|
+ @ApiOperationSupport(order = 13)
|
|
|
+ @ApiOperation(value = "填报页面数据保存", notes = "填报页面数据保存")
|
|
|
+ public R<String> savaDataInfo1(@Valid @RequestBody JSONObject dataInfo, BladeUser bladeUser) {
|
|
|
+ System.out.println("123456");
|
|
|
+
|
|
|
+ return R.success("1");
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}
|