|
@@ -200,7 +200,9 @@ public class TextdictInfoController extends BladeController {
|
|
|
Element table = doc.select("table").first();
|
|
|
Elements trs = table.select("tr");
|
|
|
Element element = trs.get(textdictInfo.getTrIndex()).select("td").get(textdictInfo.getTdIndex());
|
|
|
-
|
|
|
+ if (element.html().indexOf("el-tooltip") >= 0) {
|
|
|
+ element = element.children().get(0);
|
|
|
+ }
|
|
|
String trindex = element.children().get(0).attr("trindex");
|
|
|
String tdindex = element.children().get(0).attr("tdindex");
|
|
|
String x1 = element.children().get(0).attr("x1");
|
|
@@ -210,7 +212,6 @@ public class TextdictInfoController extends BladeController {
|
|
|
String placeholder = element.children().get(0).attr("placeholder").replaceAll("[^(\u4E00-\u9FA5_)]", "");
|
|
|
String keyname = element.children().get(0).attr("keyname");
|
|
|
String weighing = element.children().get(0).attr("weighing");
|
|
|
- System.out.println(y2);
|
|
|
String parm = trindex + "," + tdindex + "," + x1 + "," + x2 + "," + y1 + "," + y2 + ",$event";
|
|
|
String oncklickText = "'" + placeholder + "'," + trindex + "," + tdindex;
|
|
|
|
|
@@ -292,7 +293,6 @@ public class TextdictInfoController extends BladeController {
|
|
|
}
|
|
|
|
|
|
//
|
|
|
-
|
|
|
return R.success("操作成功");
|
|
|
}
|
|
|
|
|
@@ -308,10 +308,8 @@ public class TextdictInfoController extends BladeController {
|
|
|
Long tableId = dataInfo.getLong("tabId");
|
|
|
// 删除
|
|
|
textdictInfoService.getBaseMapper().delete(Wrappers.<TextdictInfo>query().lambda()
|
|
|
- .eq(TextdictInfo::getTabId, tableId));
|
|
|
- if(jsonArray==null || jsonArray.size()==0 ){
|
|
|
- return R.fail("保存列表无任何数据");
|
|
|
- }
|
|
|
+ .eq(TextdictInfo::getTabId, tableId).in(TextdictInfo::getType,2,6));
|
|
|
+
|
|
|
|
|
|
WbsTreePrivate wbsTreePrivate = wbsTreePrivateMapper.getByPKeyId(tableId);
|
|
|
// 读取html页面信息
|
|
@@ -325,10 +323,10 @@ public class TextdictInfoController extends BladeController {
|
|
|
Element table = doc.select("table").first();
|
|
|
Elements trs = table.select("tr");
|
|
|
|
|
|
- Elements onlyInfo = doc.select("el-input[readonly]");
|
|
|
+ Elements onlyInfo = doc.select("[:readonly]");
|
|
|
if(onlyInfo!=null && onlyInfo.size()>=1){
|
|
|
for(Element element :onlyInfo ){
|
|
|
- element.removeAttr("readonly");
|
|
|
+ element.removeAttr(":readonly");
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -339,6 +337,9 @@ public class TextdictInfoController extends BladeController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ if(jsonArray==null || jsonArray.size()==0 ){
|
|
|
+ return R.success("操作成功");
|
|
|
+ }
|
|
|
List<TextdictInfo> textdictInfos = new ArrayList<>();
|
|
|
|
|
|
for (int i = 0; i < jsonArray.size(); i++) {
|
|
@@ -361,10 +362,13 @@ public class TextdictInfoController extends BladeController {
|
|
|
textdictInfoService.saveOrUpdate(textdictInfo);
|
|
|
element.removeAttr("dqId");
|
|
|
element.attr("dqId", textdictInfo.getId() + "");
|
|
|
- if(!jsonObject.getInteger("type").equals("6")){
|
|
|
- element.children().get(0).attr(":readonly","true");
|
|
|
+ if(jsonObject.getInteger("type")==2){ //个人签字 不能用户输入
|
|
|
+ if (element.html().indexOf("el-tooltip") >= 0) {
|
|
|
+ element.children().get(0).children().get(0).attr(":readonly","true");
|
|
|
+ }else{
|
|
|
+ element.children().get(0).attr(":readonly","true");
|
|
|
+ }
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
|
|
|
// 写入 excel
|