feat:project页面重构

This commit is contained in:
zhangyu
2021-04-13 10:03:49 +08:00
parent 01aaf721ba
commit 281d7ee98c
14 changed files with 363 additions and 243 deletions

View File

@@ -68,7 +68,7 @@ export default {
if (valid) {
this.prevent_opt.save = true
if (this.editProject.id) {
this.$put('project', this.editProject).then(response => {
this.$put('monitor/project', this.editProject).then(response => {
if (response.code === 200) {
this.$message({ duration: 1000, type: 'success', message: this.$t('tip.saveSuccess') })
this.$store.commit('projectListChange')
@@ -80,7 +80,7 @@ export default {
this.prevent_opt.save = false
})
} else {
this.$post('project', this.editProject).then(response => {
this.$post('monitor/project', this.editProject).then(response => {
if (response.code === 200) {
this.$message({ duration: 1000, type: 'success', message: this.$t('tip.saveSuccess') })
this.$store.commit('projectListChange')
@@ -104,7 +104,7 @@ export default {
cancelButtonText: this.$t('tip.no'),
type: 'warning'
}).then(() => {
this.$delete('project?ids=' + this.editProject.id).then(response => {
this.$delete('monitor/project?ids=' + this.editProject.id).then(response => {
if (response.code === 200) {
this.$message({ duration: 1000, type: 'success', message: this.$t('tip.deleteSuccess') })
this.$store.commit('projectListChange')