| | |
| | | }, |
| | | } |
| | | |
| | | this.tablebuttonClick = [ |
| | | { |
| | | // name: "新增", // type: "primary", // icon: "el-icon-edit", |
| | | isbuttonshow: me.isedit, |
| | | code: "add", isselected: false, classname: "", |
| | | onclick: function(obj) { |
| | | me.selectDetailPopup(false) |
| | | } |
| | | }, |
| | | // { |
| | | // // name: "删除", // type: "primary", // icon: "el-icon-edit", |
| | | // isbuttonshow: me.isedit, type: "danger", |
| | | // code: "delete", isselected: true, classname: "", |
| | | // disabled: function(selectRowList) { |
| | | // var bo_ = true; |
| | | // if (selectRowList[0] && selectRowList[0].state_code == "Input") { |
| | | // bo_ = false; |
| | | // } |
| | | // return bo_ |
| | | // }, |
| | | // onclick: function(obj) { |
| | | // me.delData() |
| | | // } |
| | | // }, |
| | | ] |
| | | if (me.isedit) { |
| | | this.tablebuttonClick = [ |
| | | { |
| | | // name: "新增", // type: "primary", // icon: "el-icon-edit", |
| | | isbuttonshow: me.isedit, |
| | | code: "add", isselected: false, classname: "", |
| | | onclick: function(obj) { |
| | | me.selectDetailPopup(false) |
| | | } |
| | | }, |
| | | // { |
| | | // // name: "删除", // type: "primary", // icon: "el-icon-edit", |
| | | // isbuttonshow: me.isedit, type: "danger", |
| | | // code: "delete", isselected: true, classname: "", |
| | | // disabled: function(selectRowList) { |
| | | // var bo_ = true; |
| | | // if (selectRowList[0] && selectRowList[0].state_code == "Input") { |
| | | // bo_ = false; |
| | | // } |
| | | // return bo_ |
| | | // }, |
| | | // onclick: function(obj) { |
| | | // me.delData() |
| | | // } |
| | | // }, |
| | | ] |
| | | } |
| | | |
| | | }, |
| | | |
| | |
| | | dataname: this.table_dataname, |
| | | filter: filter_, |
| | | orderby: "dataNo", |
| | | page: { |
| | | pageno: this.pagenum, |
| | | pagesize: this.pagesize |
| | | }, |
| | | // page: { |
| | | // pageno: this.pagenum, |
| | | // pagesize: this.pagesize |
| | | // }, |
| | | attachMeta: false |
| | | } |
| | | |
| | |
| | | if (result && result.data && result.data.entityset) { |
| | | var data_ = result.data.entityset; |
| | | me.tableData = data_; |
| | | me.total = result.data.page ? result.data.page.recordcount : 0; |
| | | // me.total = result.data.page ? result.data.page.recordcount : 0; |
| | | } |
| | | else { |
| | | me.total = 0; |
| | |
| | | :pagesize="pagesize" |
| | | :pagenum="pagenum" |
| | | :total="total" |
| | | :table-height="dheight - 147 - 64 - (isedit ? 28 : 0)" |
| | | :table-height="dheight - 147 - (isedit ? 28 : 0)" |
| | | :is-highlight-row="true" |
| | | :isdraggableorder="false" |
| | | :isbasicfilterfields="false" |
| | | :isshow-shoppingcart="false" |
| | | :isbasicfilterfields="false" |
| | | :isfilterfield="false" |
| | | :istablebuttons="false" |
| | | :is-pagination="false" |
| | | |
| | | :table-buttons-click="tablebuttonClick" |
| | | |