|
@@ -67,7 +67,7 @@ export default {
|
|
|
created() {
|
|
created() {
|
|
|
if (this.$route.query.id) {
|
|
if (this.$route.query.id) {
|
|
|
this.$http
|
|
this.$http
|
|
|
- .get('setMeal/get/' + this.$route.query.id)
|
|
|
|
|
|
|
+ .get('/package/get/' + this.$route.query.id)
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
this.formData = res;
|
|
this.formData = res;
|
|
|
if (res.tag !== '') {
|
|
if (res.tag !== '') {
|
|
@@ -131,7 +131,7 @@ export default {
|
|
|
data.tag = this.dynamicTags.join(',');
|
|
data.tag = this.dynamicTags.join(',');
|
|
|
this.saving = true;
|
|
this.saving = true;
|
|
|
this.$http
|
|
this.$http
|
|
|
- .post('/setMeal/save', data, { body: 'json' })
|
|
|
|
|
|
|
+ .post('/package/save', data, { body: 'json' })
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
this.saving = false;
|
|
this.saving = false;
|
|
|
this.$message.success('成功');
|
|
this.$message.success('成功');
|
|
@@ -146,7 +146,7 @@ export default {
|
|
|
onDelete() {
|
|
onDelete() {
|
|
|
this.$alert('删除将无法恢复,确认要删除么?', '警告', { type: 'error' })
|
|
this.$alert('删除将无法恢复,确认要删除么?', '警告', { type: 'error' })
|
|
|
.then(() => {
|
|
.then(() => {
|
|
|
- return this.$http.post(`/setMeal/del/${this.formData.id}`);
|
|
|
|
|
|
|
+ return this.$http.post(`/package/del/${this.formData.id}`);
|
|
|
})
|
|
})
|
|
|
.then(() => {
|
|
.then(() => {
|
|
|
this.$message.success('删除成功');
|
|
this.$message.success('删除成功');
|