diff --git a/src/views/auditPages/assetsManagement/assetsAuth.vue b/src/views/auditPages/assetsManagement/assetsAuth.vue index 1be40e3..b4def81 100644 --- a/src/views/auditPages/assetsManagement/assetsAuth.vue +++ b/src/views/auditPages/assetsManagement/assetsAuth.vue @@ -2865,12 +2865,21 @@ export default { this.xjgywxt.remark = this.radio; } this.loading = true; - assetUnitData('post',this.ruleForm).then(res=>{ - console.log(res,"res"); - this.loading = false; - this.$modal.msgSuccess("新增成功"); - this.$router.go(-1); - }) + if(this.$route.query.pageType == 'change') { + assetUnitData('put',this.ruleForm).then(res=>{ + console.log(res,"res"); + this.loading = false; + this.$modal.msgSuccess("修改成功"); + this.$router.go(-1); + }) + } else { + assetUnitData('post',this.ruleForm).then(res=>{ + console.log(res,"res"); + this.loading = false; + this.$modal.msgSuccess("新增成功"); + this.$router.go(-1); + }) + } }, }, } diff --git a/src/views/auditPages/assetsManagement/index.vue b/src/views/auditPages/assetsManagement/index.vue index 4007d84..dafea29 100644 --- a/src/views/auditPages/assetsManagement/index.vue +++ b/src/views/auditPages/assetsManagement/index.vue @@ -112,7 +112,7 @@ --> - +