/*pmFWCFu5nhKkBzYmrkBaka23LzwyeVw+yP0Qu3SWeVg=*/ import { getMultiLang, } from 'nc-lightapp-front'; export default function ({ createUIDom, meta: { setMeta }, button: { setButtons, createOprationButton, setPopContent, }, }) { const that = this createUIDom({}, function({ template, button }) { getMultiLang({moduleId: 7010, domainName: 'ssctp', currentLocale: 'zh-CN', callback: multiLang => { // 添加操作列 template.ssctp_ots_list.items.push({ label: multiLang['701010DOOROAD-013'], attrcode: "opr", itemtype: "customer", visible: true, width: "120px", fixed: "right", render: (node, values, idx) => { return createOprationButton(['Edit', 'Delete'], { area: 'list_btnArea', onButtonClick: (props, key) => { if ( key === 'Edit') { that.setRowEditable(values) } else if (key === 'Delete') { that.delRow(values, idx) } } }); } }) setMeta(template); setButtons(button); that.setState({multiLang}) setPopContent('Delete', multiLang['701010DOOROAD-014']) // 初始化查询 that.listQry() }}) }); } /*pmFWCFu5nhKkBzYmrkBaka23LzwyeVw+yP0Qu3SWeVg=*/