調整 _graphManagement.html
This commit is contained in:
		
							parent
							
								
									59cefd5c9a
								
							
						
					
					
						commit
						525b79cd44
					
				@ -128,7 +128,7 @@
 | 
				
			|||||||
                    </div>
 | 
					                    </div>
 | 
				
			||||||
                </div>
 | 
					                </div>
 | 
				
			||||||
                <div class="modal-footer">
 | 
					                <div class="modal-footer">
 | 
				
			||||||
                    <button type="submit" class="btn btn-primary" id="accManSendBtn">儲存</button>
 | 
					                    <button type="button" class="btn btn-primary" id="accManSendBtn">儲存</button>
 | 
				
			||||||
                    <button type="button" class="btn btn-danger" id="close" data-dismiss="modal">取消</button>
 | 
					                    <button type="button" class="btn btn-danger" id="close" data-dismiss="modal">取消</button>
 | 
				
			||||||
                </div>
 | 
					                </div>
 | 
				
			||||||
            </form>
 | 
					            </form>
 | 
				
			||||||
@ -183,7 +183,7 @@
 | 
				
			|||||||
                    </div>
 | 
					                    </div>
 | 
				
			||||||
                </div>
 | 
					                </div>
 | 
				
			||||||
                <div class="modal-footer">
 | 
					                <div class="modal-footer">
 | 
				
			||||||
                    <button type="submit" class="btn btn-primary" id="accManSendBtn">儲存</button>
 | 
					                    <button type="submit" class="btn btn-primary" id="editManSendBtn">儲存</button>
 | 
				
			||||||
                    <button type="button" class="btn btn-danger" id="close" data-dismiss="modal">取消</button>
 | 
					                    <button type="button" class="btn btn-danger" id="close" data-dismiss="modal">取消</button>
 | 
				
			||||||
                </div>
 | 
					                </div>
 | 
				
			||||||
            </form>
 | 
					            </form>
 | 
				
			||||||
@ -245,8 +245,9 @@
 | 
				
			|||||||
    onEvent('click', '#accManSendBtn', function () {
 | 
					    onEvent('click', '#accManSendBtn', function () {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        let url = baseApiUrl + "/GraphManage/SaveGraMan";
 | 
					        let url = baseApiUrl + "/GraphManage/SaveGraMan";
 | 
				
			||||||
 | 
					        var myCode = (+new Date());
 | 
				
			||||||
        let fd = new FormData();
 | 
					        let fd = new FormData();
 | 
				
			||||||
 | 
					        fd.append("code", myCode);
 | 
				
			||||||
        fd.append("main_system_tag", $("#upSelMain").val());
 | 
					        fd.append("main_system_tag", $("#upSelMain").val());
 | 
				
			||||||
        fd.append("sub_system_tag", $("#upSelSub").val());
 | 
					        fd.append("sub_system_tag", $("#upSelSub").val());
 | 
				
			||||||
        fd.append("name", $("#upPicName").val());
 | 
					        fd.append("name", $("#upPicName").val());
 | 
				
			||||||
@ -266,9 +267,8 @@
 | 
				
			|||||||
            beforeSend: function (xhr) { xhr.setRequestHeader('Authorization', "Bearer " + localStorage.getItem("JWT-Authorization")) },
 | 
					            beforeSend: function (xhr) { xhr.setRequestHeader('Authorization', "Bearer " + localStorage.getItem("JWT-Authorization")) },
 | 
				
			||||||
            success: function (res) {
 | 
					            success: function (res) {
 | 
				
			||||||
                if (!res || res.code != "0000" || !res.data) {
 | 
					                if (!res || res.code != "0000" || !res.data) {
 | 
				
			||||||
 | 
					 | 
				
			||||||
                } else {
 | 
					                } else {
 | 
				
			||||||
                    console.log("ERROR: POST fd");
 | 
					                    // console.log("ERROR: ", res.data, res.code);
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user