代码调整
This commit is contained in:
parent
fd87d9b27f
commit
ca677c232e
@ -158,7 +158,7 @@ export default {
|
|||||||
directionLabelList: ConstConfig.ConstSelect.directionLabelList,
|
directionLabelList: ConstConfig.ConstSelect.directionLabelList,
|
||||||
ioDirectionList: ConstConfig.ConstSelect.ioDirectionList,
|
ioDirectionList: ConstConfig.ConstSelect.ioDirectionList,
|
||||||
addModel:{
|
addModel:{
|
||||||
id:'',
|
id:'',
|
||||||
code: '',
|
code: '',
|
||||||
name:'',
|
name:'',
|
||||||
stationCode: '',
|
stationCode: '',
|
||||||
@ -266,8 +266,8 @@ export default {
|
|||||||
that.$refs.form.validate((valid) => {
|
that.$refs.form.validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
const newModel = deepAssign({}, that.addModel);
|
const newModel = deepAssign({}, that.addModel);
|
||||||
if (that.isModify) {
|
if (!that.isModify) {
|
||||||
delete newModel.code;
|
delete newModel.id;
|
||||||
}
|
}
|
||||||
// newModel.code = setUID('Route');
|
// newModel.code = setUID('Route');
|
||||||
that.loading = true;
|
that.loading = true;
|
||||||
@ -292,7 +292,7 @@ export default {
|
|||||||
this.$refs.form.resetFields();
|
this.$refs.form.resetFields();
|
||||||
this.isModify = false;
|
this.isModify = false;
|
||||||
this.addModel = {
|
this.addModel = {
|
||||||
id:'',
|
id:'',
|
||||||
code: '',
|
code: '',
|
||||||
name:'',
|
name:'',
|
||||||
stationCode: '',
|
stationCode: '',
|
||||||
|
Loading…
Reference in New Issue
Block a user