|
|
@@ -100,27 +100,32 @@ export default {
|
|
|
this.param.content[item] = this.data[item] || ""
|
|
|
})
|
|
|
const res = await this.$api.requested(this.param)
|
|
|
- if (res.total > 0){
|
|
|
- this.list = res.data
|
|
|
- this.total = res.total
|
|
|
- this.currentPage = res.pageNumber
|
|
|
- this.list.forEach(item=>{
|
|
|
- this.isBack = false
|
|
|
- if (item.systemapp === '回收站'){
|
|
|
- this.isBack = true
|
|
|
- }
|
|
|
- })
|
|
|
- this.dialogTableVisible = true
|
|
|
+ if (res.code == 0){
|
|
|
+ this.tool.showMessage(res)
|
|
|
}else {
|
|
|
- if (this.creatShow){
|
|
|
- this.onSubmit()
|
|
|
+ if (res.total > 0){
|
|
|
+ this.list = res.data
|
|
|
+ this.total = res.total
|
|
|
+ this.currentPage = res.pageNumber
|
|
|
+ this.list.forEach(item=>{
|
|
|
+ this.isBack = false
|
|
|
+ if (item.systemapp === '回收站'){
|
|
|
+ this.isBack = true
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.dialogTableVisible = true
|
|
|
}else {
|
|
|
- this.$message({
|
|
|
- message: '无重复数据',
|
|
|
- type: 'success'
|
|
|
- });
|
|
|
+ if (this.creatShow){
|
|
|
+ this.onSubmit()
|
|
|
+ }else {
|
|
|
+ this.$message({
|
|
|
+ message: '无重复数据',
|
|
|
+ type: 'success'
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
},
|
|
|
onCheck(){
|
|
|
if (this.buttonTitle === '确定保存'){
|