[update] 修改bug81746

This commit is contained in:
lideqin
2024-02-04 14:22:11 +08:00
parent 8079b34161
commit 0c704ad97a
4 changed files with 76 additions and 19 deletions
@@ -215,7 +215,6 @@ import {
getEnterpriseStandardTableHeader,
getEnterpriseStandardSearchForm,
shiftStandard,
initChange,
collectStandard,
cancelCollectStandard,
shareStandard,
@@ -575,24 +574,16 @@ export default {
},
// 发起更改
handleInitChange () {
// 没有选择列表数据,需要提示“选中至少一条列表数据”
if (!this.selectedRowKeys || this.selectedRowKeys.length === 0) {
this.$message.warning(this.$t('selectLeastOne'))
// 没有选择列表数据,需要提示“请选择一条列表数据”
if (!this.selectedRowKeys || this.selectedRowKeys.length !== 1) {
this.$message.warning(this.$t('selectOne'))
return
}
this.loading = true
const params = {
ids: this.selectedRowKeys.join(',')
}
initChange(params).then(res => {
if (res.success) {
this.$message.success(res.message)
this.modalFormOk()
} else {
this.$message.warn(res.message)
this.$router.push({
path: '/workCenter/enterpriseStandardChange/enterpriseStandardChangeFlow',
query: {
enStandardId: this.selectedRowKeys[0]
}
}).finally(() => {
this.loading = false
})
},
// 临时权限设置