|
|
@ -98,8 +98,8 @@ export default defineComponent({
|
|
|
|
this.proxy.$post("/referenceGroup/list", {}).then(res => {
|
|
|
|
this.proxy.$post("/referenceGroup/list", {}).then(res => {
|
|
|
|
this.groupData = res.data.records;
|
|
|
|
this.groupData = res.data.records;
|
|
|
|
}).catch(() => {});
|
|
|
|
}).catch(() => {});
|
|
|
|
if(this.$route.params.id) {
|
|
|
|
if(this.$route.query.id) {
|
|
|
|
this.proxy.$post("/reference/detail", {id: this.$route.params.id}).then(res => {
|
|
|
|
this.proxy.$post("/reference/detail", {id: this.$route.query.id}).then(res => {
|
|
|
|
this.form.groupId = res.data.groupId;
|
|
|
|
this.form.groupId = res.data.groupId;
|
|
|
|
this.form.type = res.data.type;
|
|
|
|
this.form.type = res.data.type;
|
|
|
|
this.form.title = res.data.title;
|
|
|
|
this.form.title = res.data.title;
|
|
|
@ -112,8 +112,8 @@ export default defineComponent({
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
confirm() {
|
|
|
|
confirm() {
|
|
|
|
if(this.$route.params.id) {
|
|
|
|
if(this.$route.query.id) {
|
|
|
|
let obj = Object.assign(this.form, {id: this.$route.params.id})
|
|
|
|
let obj = Object.assign(this.form, {id: this.$route.query.id})
|
|
|
|
this.proxy.$post("/reference/upd", obj).then(res => {
|
|
|
|
this.proxy.$post("/reference/upd", obj).then(res => {
|
|
|
|
this.$message.success(res.data)
|
|
|
|
this.$message.success(res.data)
|
|
|
|
this.$router.go(-1);
|
|
|
|
this.$router.go(-1);
|
|
|
|