1
0
Fork 0

docs: 현장작업자 팝업 주석 추가

` simpleTable 클래스 내에 ajax통신 부분 변수 추가 및 주석 추가`
This commit is contained in:
sychoi 2024-04-29 10:39:12 +09:00
parent 6b6f4a7745
commit 234cf697f2
1 changed files with 15 additions and 6 deletions

View File

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