|
@@ -51,6 +51,7 @@ export default {
|
|
|
showMore: false,
|
|
showMore: false,
|
|
|
formData: {},
|
|
formData: {},
|
|
|
rules: {},
|
|
rules: {},
|
|
|
|
|
+ arrid: '',
|
|
|
timeRange: '',
|
|
timeRange: '',
|
|
|
optionProps: {
|
|
optionProps: {
|
|
|
value: 'id',
|
|
value: 'id',
|
|
@@ -78,6 +79,7 @@ export default {
|
|
|
this.$emit('close');
|
|
this.$emit('close');
|
|
|
},
|
|
},
|
|
|
init(id) {
|
|
init(id) {
|
|
|
|
|
+ this.arrid = id;
|
|
|
if (id) {
|
|
if (id) {
|
|
|
this.$http
|
|
this.$http
|
|
|
.get('arrange/get/' + id)
|
|
.get('arrange/get/' + id)
|
|
@@ -101,7 +103,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
submit() {
|
|
submit() {
|
|
|
let data = { ...this.formData };
|
|
let data = { ...this.formData };
|
|
|
-
|
|
|
|
|
|
|
+ data.id = this.arrid;
|
|
|
this.saving = true;
|
|
this.saving = true;
|
|
|
this.$http
|
|
this.$http
|
|
|
.post('/arrange/save', data, { body: 'json' })
|
|
.post('/arrange/save', data, { body: 'json' })
|