[update]
This commit is contained in:
@@ -111,11 +111,11 @@ export default {
|
||||
.then( (res) =>{
|
||||
console.log(res,'res')
|
||||
if (res.data.success) {
|
||||
_this.$message.success(res.data.message)
|
||||
_this.$message.success(_this.$t('OperationSuccessful'))
|
||||
this.$emit('areaVisibsynchronous', false)
|
||||
this.$emit('GetgetTableList')
|
||||
}else{
|
||||
_this.$message.warning(res.data.message)
|
||||
_this.$message.warning(_this.$t('operationFailed'))
|
||||
}
|
||||
})
|
||||
.catch( (error) =>{
|
||||
|
||||
@@ -477,6 +477,9 @@
|
||||
this.dataSource = res.result
|
||||
this.total = res.result.total
|
||||
this.selectedRowKeys = []
|
||||
this.selectedRowrowValue = []
|
||||
this.$emit('value', this.selectedRowKeys)
|
||||
this.$emit('rowValue', this.selectedRowrowValue)
|
||||
this.loading = false
|
||||
} else {
|
||||
this.loading = false
|
||||
@@ -486,10 +489,12 @@
|
||||
onChange(page, pageSize) {
|
||||
},
|
||||
onSelectChange(value, rowValue) {
|
||||
this.selectedRowKeys = []
|
||||
this.selectedRowrowValue = []
|
||||
this.selectedRowKeys = value
|
||||
this.selectedRowrowValue = rowValue
|
||||
this.$emit('value', value)
|
||||
this.$emit('rowValue', rowValue)
|
||||
this.$emit('value', this.selectedRowKeys)
|
||||
this.$emit('rowValue', this.selectedRowrowValue)
|
||||
},
|
||||
OperationClick(ol, item) {
|
||||
// this.$emit(ol.ClickEvent, item)
|
||||
|
||||
@@ -286,7 +286,7 @@
|
||||
this.$message.warning(_this.$t('pleaseSelectData'))
|
||||
}else if(this.selectedRowKeys.length > 1){
|
||||
this.$message.warning(_this.$t('OnlyOneSelected'))
|
||||
} else if(this.selectedRowKeysvalArray[0].state === '已完成'){
|
||||
} else if(this.selectedRowKeysvalArray[0].state === '已完成'|| this.selectedRowKeysvalArray[0].state ==='Finished'){
|
||||
getAction(_this.url.changeExtension, { id: this.selectedRowKeys[0] }).then((res) => {
|
||||
if (res.success) {
|
||||
_this.$message.success(_this.$t('OperationSuccessful'))
|
||||
|
||||
Reference in New Issue
Block a user