代码调整

This commit is contained in:
joylink_cuiweidong 2022-08-26 17:37:42 +08:00
parent fd87d9b27f
commit ca677c232e

View File

@ -158,7 +158,7 @@ export default {
directionLabelList: ConstConfig.ConstSelect.directionLabelList,
ioDirectionList: ConstConfig.ConstSelect.ioDirectionList,
addModel:{
id:'',
id:'',
code: '',
name:'',
stationCode: '',
@ -266,8 +266,8 @@ export default {
that.$refs.form.validate((valid) => {
if (valid) {
const newModel = deepAssign({}, that.addModel);
if (that.isModify) {
delete newModel.code;
if (!that.isModify) {
delete newModel.id;
}
// newModel.code = setUID('Route');
that.loading = true;
@ -292,7 +292,7 @@ export default {
this.$refs.form.resetFields();
this.isModify = false;
this.addModel = {
id:'',
id:'',
code: '',
name:'',
stationCode: '',