/*pmFWCFu5nhKkBzYmrkBaka23LzwyeVw+yP0Qu3SWeVg=*/ import { getMultiLang, } from 'nc-lightapp-front'; export default function ({ createUIDom, meta: { setMeta }, button: { setButtons, createOprationButton, setButtonDisabled,}, }) { const that = this createUIDom({}, function({ template, button }) { getMultiLang({moduleId: 7010, domainName: 'ssctp', currentLocale: 'zh-CN', callback: multiLang => { // 列表参照过滤 template.ssctp_eventlistener_list.items.forEach((item, idx, items) => { if (item.attrcode === 'pk_transtype') { item.queryCondition = () => ({ GridRefActionExt: 'nccloud.web.ssctp.sscbd.ref.sqlbuilder.TranstypeForDRRefBuilder', }) } }) // 批量新增参照过滤 template.ssctp_eventlistener_form.items.forEach((item, idx, items) => { if (item.attrcode === 'pk_transtype') { item.queryCondition = () => ({ GridRefActionExt: 'nccloud.web.ssctp.sscbd.ref.sqlbuilder.TranstypeForDRRefBuilder', }) } }) // // 添加操作列 // template.ssctp_eventlistener_list.items.push({ // label: multiLang['701010DOOROAD-013'], // attrcode: "opr", // itemtype: "customer", // visible: true, // width: "100px", // fixed: "right", // render: (node, values, idx) => { // return createOprationButton(['Param'], { // area: 'list_btnArea', // onButtonClick: (props, key) => { // that.showParamModal(values, idx) // } // }); // } // }) setMeta(template); setButtons(button); that.setState({multiLang}) that.changePageStatu('browse') setButtonDisabled({Delete: true}) that.listQry() }}) }); } /*pmFWCFu5nhKkBzYmrkBaka23LzwyeVw+yP0Qu3SWeVg=*/