中扬CRM客户关系管理系统
LSH
2023-07-31 096ffe7665837c03bb30835bfb16a14f5aaa647e
#售前规划申请单上传文件完善
2个文件已修改
12 ■■■■ 已修改文件
src/main/java/com/zy/crm/manager/controller/PlanController.java 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/js/plan/plan.js 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/crm/manager/controller/PlanController.java
@@ -213,7 +213,6 @@
    @RequestMapping(value = "/plan/insert/file/auth")
//    @ManagerAuth
    public R insertFile(@RequestParam("planId") String planId,@RequestParam MultipartFile file){
        planId="上传文件-20";
        String[] split = planId.split("-");
        int id = Integer.parseInt(split[1]);
        System.out.println("---开始---");
src/main/webapp/static/js/plan/plan.js
@@ -208,9 +208,8 @@
        ,auto: false
        ,bindAction: '#testListAction'
        ,choose: function(obj){
            console.log(obj)
            console.log(this.data)
            console.log($('.layui-layer-title').text())
            // 赋值
            this.data.planId=$('.layui-layer-title').text()
            var that = this;
            var files = this.files = obj.pushFile(); //将每次选择的文件追加到文件队列
            //读取本地文件
@@ -240,9 +239,6 @@
                that.elemList.append(tr);
                element.render('progress'); //渲染新加的进度条组件
            });
        }
        ,data : {
            planId : $('.layui-layer-title').text()
        }
        ,done: function(res, index, upload){ //成功的回调
            var that = this;
@@ -560,9 +556,6 @@
                            targetTable.innerHTML = '';
                            // 将获取到的文件列表添加到文件队列中进行显示
                            response.data.forEach(function(file,index) {
                                console.log('Failed to get file list data.');
                                console.log(file);
                                // 创建tr元素
                                var tr = document.createElement("tr");
                                tr.id = "upload-"+index;