Commit 883aca87 by liuyang

2024-09-10 文档附件获取文件类型优化

parent c24be753
...@@ -15,7 +15,7 @@ $(function () { ...@@ -15,7 +15,7 @@ $(function () {
var operType = $("#inqu_status-0-operType").val(); var operType = $("#inqu_status-0-operType").val();
var ndocId = $("#inqu_status-0-ndocId").val(); var ndocId = $("#inqu_status-0-ndocId").val();
var typeIndex = e.response.docName.lastIndexOf("."); var typeIndex = e.response.docName.lastIndexOf(".");
var type = typeIndex == -1 ? "" : e.response.docName.substring(typeIndex); var type = typeIndex == -1 ? e.response.docType : e.response.docName.substring(typeIndex);
var data = { var data = {
docId: docId, docId: docId,
docName: e.response.docName, docName: e.response.docName,
......
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