From 234cf697f21deca1a2234635390a0c33f30a7dd7 Mon Sep 17 00:00:00 2001 From: sychoi Date: Mon, 29 Apr 2024 10:39:12 +0900 Subject: [PATCH] =?UTF-8?q?docs:=20=ED=98=84=EC=9E=A5=EC=9E=91=EC=97=85?= =?UTF-8?q?=EC=9E=90=20=ED=8C=9D=EC=97=85=20=EC=A3=BC=EC=84=9D=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ` simpleTable 클래스 내에 ajax통신 부분 변수 추가 및 주석 추가` --- .../site/sts_order_prod/reg_prod_result.js | 21 +++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/home_dir/www/ksvc/site/sts_order_prod/reg_prod_result.js b/home_dir/www/ksvc/site/sts_order_prod/reg_prod_result.js index f773316..4eb673f 100644 --- a/home_dir/www/ksvc/site/sts_order_prod/reg_prod_result.js +++ b/home_dir/www/ksvc/site/sts_order_prod/reg_prod_result.js @@ -1,15 +1,22 @@ class SimpleTable { - constructor(fields){ + constructor(fields, getmode, putmode){ this.field = fields; this.ajaxUrl = './reg_prod_result.ajax.php'; + this.getmode = getmode?getmode:''; + this.putmode = putmode?putmode:''; this.container = document.querySelector(".detail-contents"); - console.log(this.container) this.table = this.container?.querySelector(".hy-table"); } - getMainList(){} + getMainList(){ + // ajax_json({ + + // }) + } addRow(){} - putData(){} + putData(){ + // ajax_json({}) + } init(){ const commonFieldData = { headerSort: false, @@ -216,9 +223,11 @@ class FieldPop { callTable(com){ this.$nextTick(()=>{ - console.log(com) + // 여기서 mode 명 동적으로 정의할것 (com을 사용) + const getmode = ''; + const putmode = ''; - const table = new SimpleTable(this.tableField[com]); + const table = new SimpleTable(this.tableField[com], getmode, putmode); table.init();