| | |
| | | type: 'warning' |
| | | }).then(() => { |
| | | const oid = this.selectRow.map(obj => obj.oid).join(","); |
| | | changeStatus({oid: oid, btmname: this.result, lcStatus: 'Released'}).then(res => { |
| | | changeStatus({oid: oid, btmname: this.selectRow[0].btmname, lcStatus: 'Released'}).then(res => { |
| | | if (res.data.code == 200) { |
| | | this.$message.success('发布成功') |
| | | this.onLoad() |
| | |
| | | if (this.selectRow.length === 1 && item.lcstatus === "Disabled" && showMessage) { |
| | | this.$message.warning('选择的数据中状态无需再执行当前操作'); |
| | | showMessage = false; |
| | | } else if (this.selectRow.length >= 1 && !hasEditing && showMessage) { |
| | | } else if (this.selectRow.length > 1 && !hasEditing && showMessage) { |
| | | this.$message.warning('您选择的数据全部为【发布状态】才可以发起流程'); |
| | | showMessage = false; |
| | | } else if (this.selectRow.length > 1 && hasEditing && showMessage) { |
| | | } else if (this.selectRow.length >= 1 && hasEditing && showMessage) { |
| | | processTS({templateId: this.templateOid, buttonTypeKey: 'PUBLIC'}).then(res => { |
| | | if (res.data.records != [] && res.data.data.records.length != 0) { |
| | | this.userName = localStorage.getItem("username"); |
| | |
| | | type: 'warning' |
| | | }).then(() => { |
| | | const oid = this.selectRow.map(obj => obj.oid).join(","); |
| | | changeStatus({oid: oid, btmname: this.result, lcStatus: 'Disabled'}).then(res => { |
| | | changeStatus({oid: oid, btmname: this.selectRow[0].btmname, lcStatus: 'Disabled'}).then(res => { |
| | | if (res.data.code == 200) { |
| | | this.$message.success('停用成功') |
| | | this.onLoad() |
| | |
| | | } |
| | | } |
| | | }); |
| | | } else { |
| | | } else if(this.selectRow.length == 1 && !hasEditing && showMessage ) { |
| | | this.$message.warning('您选择的数据为【发布状态】才可以发起流程') |
| | | } |
| | | }); |
| | |
| | | type: 'warning' |
| | | }).then(() => { |
| | | const oid = this.selectRow.map(obj => obj.oid).join(","); |
| | | changeStatus({oid: oid, btmname: this.result, lcStatus: 'Released'}).then(res => { |
| | | changeStatus({oid: oid, btmname: this.selectRow[0].btmname, lcStatus: 'Released'}).then(res => { |
| | | if (res.data.code == 200) { |
| | | this.$message.success('启用成功') |
| | | this.onLoad() |
| | |
| | | type: 'warning' |
| | | }).then(() => { |
| | | const oid = this.selectRow.map(obj => obj.oid).join(","); |
| | | changeStatus({oid: oid, btmname: this.result, lcStatus: 'TakeBack'}).then(res => { |
| | | changeStatus({oid: oid, btmname: this.selectRow[0].btmname, lcStatus: 'TakeBack'}).then(res => { |
| | | if (res.data.code == 200) { |
| | | this.$message.success('回收成功') |
| | | this.onLoad() |
| | |
| | | //多选 |
| | | handleSelectionChange(list) { |
| | | this.selectRow = list; |
| | | console.log(this.selectRow) |
| | | this.parameter.ids = []; |
| | | list.forEach((item) => { |
| | | this.parameter.ids.push(item.oid); |