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();