到账通知发布增加按钮事件
This commit is contained in:
parent
39275aa650
commit
c390d9e536
|
@ -1,5 +1,5 @@
|
|||
/*q2LCmxM8POvl78IL0LiydhjYzVY6fUqoBOcsVwfRngY=*/
|
||||
import { ajax, base, toast, cacheTools, print, cardCache } from 'nc-lightapp-front';
|
||||
import { ajax, base, toast, cacheTools, print, cardCache, promptBox } from 'nc-lightapp-front';
|
||||
import { tableId, searchId, pagecode, formId_org, table_orgs, formId_01, formId_02, formId_03, formId_04, formId_05, formId_06, formId_07, formId_08,formId_09 } from '../constants';
|
||||
import { busiOperate } from './busiOperate';
|
||||
import { refresh,combineToastAndRefesh } from './refresh';
|
||||
|
@ -33,6 +33,53 @@ export default function buttonClick(props, id) {
|
|||
url = '/nccloud/cmp/informer/informerrecgenerate.do';
|
||||
busiOperate(this, props, url, this.props.MutiInit.getIntl("36070AISC") && this.props.MutiInit.getIntl("36070AISC").get('36070AISC-000008'), "head");/* 国际化处理: 恢复生单,成功!*/
|
||||
break;
|
||||
case 'newdztzts':
|
||||
url = '/nccloud/cmp/informer/myBtnClickAction.do';
|
||||
// busiOperate(this, props, url, this.props.MutiInit.getIntl("36070AISC") && this.props.MutiInit.getIntl("36070AISC").get('36070AISC-000008'), "head");/* 国际化处理: 不生成,成功!*/
|
||||
let selectedData = props.table.getCheckedRows(tableId);
|
||||
let indexMap = new Map();
|
||||
let pks = [];
|
||||
selectedData.forEach((vale) => {
|
||||
let pk;
|
||||
pk = vale.data.values.pk_informer.value;
|
||||
pks.push(pk);
|
||||
indexMap.set(pk, vale.index);
|
||||
});
|
||||
let sendData = {
|
||||
pks: pks
|
||||
};
|
||||
|
||||
promptBox({
|
||||
color: "info",//类型为提示
|
||||
title: '提示',
|
||||
content: '是否进行推送',
|
||||
beSureBtnClick: () => {
|
||||
//点击确定后进入的方法
|
||||
ajax({
|
||||
url: '/nccloud/cmp/informer/myBtnClickAction.do',
|
||||
data: sendData,
|
||||
success: (res) => {
|
||||
let {success, data} = res;
|
||||
if (success) {
|
||||
if (data) {
|
||||
toast({
|
||||
duration: 'infinity',
|
||||
color: 'success',
|
||||
title: '推送返回'/*' 全部失败!'*/,
|
||||
content: res.data.message,
|
||||
groupOperation: true,
|
||||
TextArr: [props.MutiInit.getIntl("36070AISC") && props.MutiInit.getIntl("36070AISC").get('36070AISC-000075')/*'展开'*/, props.MutiInit.getIntl("36070AISC") && props.MutiInit.getIntl("36070AISC").get('36070AISC-000076')/*'收起'*/, props.MutiInit.getIntl("36070AISC") && props.MutiInit.getIntl("36070AISC").get('36070AISC-000077')/*'关闭'*/],
|
||||
groupOperationMsg: res.data.message
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
}
|
||||
});
|
||||
break;
|
||||
// 【list_head】【更多操作】不生成
|
||||
case 'NopublishBtn':
|
||||
url = '/nccloud/cmp/informer/informerungenerate.do';
|
||||
|
|
|
@ -5,7 +5,7 @@ export default function buttonDisable(props, moudleId, values, index, falg) {
|
|||
let generateflag = selectedData[0].data.values.generateflag.value;
|
||||
if (generateflag == 'hasgenerate') {//已生成
|
||||
props.button.setButtonDisabled([
|
||||
'Nopublish', 'Subpublish', 'Cancelpublish', 'Recgenerate',
|
||||
'newdztzts', 'Nopublish', 'Subpublish', 'Cancelpublish', 'Recgenerate',
|
||||
'Compublish', 'Generate','refund','GenerateBtn'
|
||||
], true);
|
||||
props.button.setButtonDisabled([
|
||||
|
|
Loading…
Reference in New Issue