我的审核-增加批量审核按钮功能。编译路径: "./src/sscrp/public/common/components/job-style/*/index.js","./src/ssctp/sscuser/sscapprove/*/index.js"
This commit is contained in:
parent
e1fdede3ea
commit
0fb3c5254f
|
@ -106,7 +106,7 @@ export default function jobButtonEvent() {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
let factor = this.currentRowData.module.value;
|
let factor = this.currentRowData.module.value;
|
||||||
|
// console.log('param = ', param);
|
||||||
let result = await this.requestApi.taskApproveAction(param, factor);
|
let result = await this.requestApi.taskApproveAction(param, factor);
|
||||||
//还原预算预警参数 ,该参数会在61行处被设置
|
//还原预算预警参数 ,该参数会在61行处被设置
|
||||||
this.ntbCheck = false;
|
this.ntbCheck = false;
|
||||||
|
@ -117,7 +117,8 @@ export default function jobButtonEvent() {
|
||||||
promptBox({
|
promptBox({
|
||||||
color: 'warning', // 提示类别默认"success", "success"/"info"/"warning"/"danger",非必输
|
color: 'warning', // 提示类别默认"success", "success"/"info"/"warning"/"danger",非必输
|
||||||
title: this.state.multiLang['job-approve-tsxx'],//"提示信息"
|
title: this.state.multiLang['job-approve-tsxx'],//"提示信息"
|
||||||
content: <div dangerouslySetInnerHTML={{ __html: this.state.multiLang['job-approve-wxts'] + result.data['bugetAlarm'] }}></div>,
|
content: <div
|
||||||
|
dangerouslySetInnerHTML={{__html: this.state.multiLang['job-approve-wxts'] + result.data['bugetAlarm']}}></div>,
|
||||||
// content: this.state.multiLang['job-approve-wxts'] + result.data['bugetAlarm'], // + this.state.multiLang['job-approve-sfjx'],
|
// content: this.state.multiLang['job-approve-wxts'] + result.data['bugetAlarm'], // + this.state.multiLang['job-approve-sfjx'],
|
||||||
noFooter: false, // 是否显示底部按钮(确定、取消),默认显示(false),非必输
|
noFooter: false, // 是否显示底部按钮(确定、取消),默认显示(false),非必输
|
||||||
noCancelBtn: false, // 是否显示取消按钮,,默认显示(false),非必输
|
noCancelBtn: false, // 是否显示取消按钮,,默认显示(false),非必输
|
||||||
|
@ -160,13 +161,20 @@ export default function jobButtonEvent() {
|
||||||
'BatchApprove': async () => {
|
'BatchApprove': async () => {
|
||||||
let checkedRows = this.props.table.getCheckedRows(this.state.activeTabKey)
|
let checkedRows = this.props.table.getCheckedRows(this.state.activeTabKey)
|
||||||
let rows = checkedRows.map(row => ({values: row.data.values}))
|
let rows = checkedRows.map(row => ({values: row.data.values}))
|
||||||
console.log("选择的行数据",rows)
|
// console.log("选择的行数据",rows)
|
||||||
if (!this.rows || Object.keys(this.rows).length == 0) {
|
|
||||||
|
if (!rows || Object.keys(rows).length == 0) {
|
||||||
toast({color: 'danger', content: '请先选择行后重试'});
|
toast({color: 'danger', content: '请先选择行后重试'});
|
||||||
} else {
|
} else {
|
||||||
let flagCount = 0;
|
let flagCount = 0;
|
||||||
for (let i = 0; i < rows.length; i++) {
|
for (let i = 0; i < rows.length; i++) {
|
||||||
let grid = rows[i];
|
let grid = {
|
||||||
|
todo: {
|
||||||
|
"areaType": "table",
|
||||||
|
"rows": [rows[i]]
|
||||||
|
}
|
||||||
|
|
||||||
|
};
|
||||||
let param = {
|
let param = {
|
||||||
...grid,
|
...grid,
|
||||||
userjson: JSON.stringify({
|
userjson: JSON.stringify({
|
||||||
|
@ -178,8 +186,9 @@ export default function jobButtonEvent() {
|
||||||
...this.getSidebarSendData()
|
...this.getSidebarSendData()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
let factor = this.currentRowData.module.value;
|
// console.log('param = ', param);
|
||||||
|
// debugger
|
||||||
|
let factor = rows[i].values.module.value || '';
|
||||||
let result = await this.requestApi.taskApproveAction(param, factor);
|
let result = await this.requestApi.taskApproveAction(param, factor);
|
||||||
|
|
||||||
if (result.success) {
|
if (result.success) {
|
||||||
|
@ -213,7 +222,8 @@ export default function jobButtonEvent() {
|
||||||
promptBox({
|
promptBox({
|
||||||
color: 'warning', // 提示类别默认"success", "success"/"info"/"warning"/"danger",非必输
|
color: 'warning', // 提示类别默认"success", "success"/"info"/"warning"/"danger",非必输
|
||||||
title: this.state.multiLang['job-approve-tsxx'],//"提示信息"
|
title: this.state.multiLang['job-approve-tsxx'],//"提示信息"
|
||||||
content: <div dangerouslySetInnerHTML={{ __html: this.state.multiLang['job-approve-wxts'] + result.data['bugetAlarm'] }}></div>,
|
content: <div
|
||||||
|
dangerouslySetInnerHTML={{__html: this.state.multiLang['job-approve-wxts'] + result.data['bugetAlarm']}}></div>,
|
||||||
// content: this.state.multiLang['job-approve-wxts'] + result.data['bugetAlarm'], // + this.state.multiLang['job-approve-sfjx'],
|
// content: this.state.multiLang['job-approve-wxts'] + result.data['bugetAlarm'], // + this.state.multiLang['job-approve-sfjx'],
|
||||||
noFooter: false, // 是否显示底部按钮(确定、取消),默认显示(false),非必输
|
noFooter: false, // 是否显示底部按钮(确定、取消),默认显示(false),非必输
|
||||||
noCancelBtn: false, // 是否显示取消按钮,,默认显示(false),非必输
|
noCancelBtn: false, // 是否显示取消按钮,,默认显示(false),非必输
|
||||||
|
|
Loading…
Reference in New Issue