forked from HANYANG/HANYANG_MES
docs: 현장작업자 팝업 주석 추가
` simpleTable 클래스 내에 ajax통신 부분 변수 추가 및 주석 추가`
This commit is contained in:
parent
6b6f4a7745
commit
234cf697f2
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue