地图绘制代码调整

This commit is contained in:
joylink_cuiweidong 2020-07-28 10:34:02 +08:00
parent 07d9049744
commit fb099da4df
14 changed files with 51 additions and 84 deletions

View File

@ -2,6 +2,7 @@
<el-tabs v-model="activeName" class="card">
<el-tab-pane class="view-control" :label="$t('map.property')" name="first" :lazy="lazy">
<operate-property
ref="dataForm"
:form="dataForm"
:edit-model="editModel"
:rules="rules"
@ -206,6 +207,9 @@ export default {
},
updateMapModel(data) {
this.$emit('updateMapModel', data);
},
deleteObj() {
this.$refs.dataform.deleteObj();
}
}
};

View File

@ -2,6 +2,7 @@
<el-tabs v-model="activeName" class="card">
<el-tab-pane class="view-control" :label="$t('map.property')" name="first" :lazy="lazy">
<operate-property
ref="dataform"
:form="form"
:edit-model="editModel"
:rules="rules"
@ -189,6 +190,9 @@ export default {
},
updateMapModel(data) {
this.$emit('updateMapModel', data);
},
deleteObj() {
this.$refs.dataform.deleteObj();
}
}
};

View File

@ -527,6 +527,9 @@ export default {
},
updateMapModel(data) {
this.$emit('updateMapModel', data);
},
deleteObj() {
this.$refs.dataform.deleteObj();
}
}
};

View File

@ -2,6 +2,7 @@
<el-tabs v-model="activeName" class="card">
<el-tab-pane class="view-control" :label="$t('map.property')" name="first" :lazy="lazy">
<operate-property
ref="dataForm"
:form="form"
:edit-model="editModel"
:rules="rules"
@ -197,6 +198,9 @@ export default {
},
updateMapModel(data) {
this.$emit('updateMapModel', data);
},
deleteObj() {
this.$refs.dataform.deleteObj();
}
}
};

View File

@ -2,6 +2,7 @@
<el-tabs v-model="activeName" class="card">
<el-tab-pane class="view-control" :label="$t('map.property')" name="first" :lazy="lazy">
<operate-property
ref="dataForm"
:form="form"
:edit-model="editModel"
:rules="editRules"
@ -189,6 +190,9 @@ export default {
},
updateMapModel(data) {
this.$emit('updateMapModel', data);
},
deleteObj() {
this.$refs.dataform.deleteObj();
}
}
};

View File

@ -2,6 +2,7 @@
<el-tabs v-model="activeName" class="card">
<el-tab-pane class="view-control" :label="$t('map.property')" name="first" :lazy="lazy">
<operate-property
ref="dataForm"
:form="form"
:edit-model="editModel"
:rules="rules"
@ -178,6 +179,9 @@ export default {
},
updateMapModel(data) {
this.$emit('updateMapModel', data);
},
deleteObj() {
this.$refs.dataform.deleteObj();
}
}
};

View File

@ -2,6 +2,7 @@
<el-tabs v-model="activeName" class="card">
<el-tab-pane class="view-control" :label="$t('map.property')" name="first" :lazy="lazy">
<operate-property
ref="dataForm"
:form="form"
:edit-model="editModel"
:rules="rules"
@ -205,6 +206,9 @@ export default {
},
updateMapModel(data) {
this.$emit('updateMapModel', data);
},
deleteObj() {
this.$refs.dataform.deleteObj();
}
}
};

View File

@ -2,6 +2,7 @@
<el-tabs v-model="activeName" class="card">
<el-tab-pane class="view-control" :label="$t('map.property')" name="first" :lazy="lazy">
<operate-property
ref="dataForm"
:form="form"
:edit-model="editModel"
:rules="rules"
@ -175,6 +176,9 @@ export default {
},
updateMapModel(data) {
this.$emit('updateMapModel', data);
},
deleteObj() {
this.$refs.dataform.deleteObj();
}
}
};

View File

@ -2,6 +2,7 @@
<el-tabs v-model="activeName" class="card">
<el-tab-pane class="view-control" :label="$t('map.property')" name="first" :lazy="lazy">
<operate-property
ref="dataForm"
:form="form"
:edit-model="editModel"
:rules="rules"
@ -195,6 +196,9 @@ export default {
},
updateMapModel(data) {
this.$emit('updateMapModel', data);
},
deleteObj() {
this.$refs.dataform.deleteObj();
}
}
};

View File

@ -2,6 +2,7 @@
<el-tabs v-model="activeName" class="card">
<el-tab-pane class="view-control" :label="$t('map.property')" name="first" :lazy="lazy">
<operate-property
ref="dataForm"
:form="form"
:edit-model="editModel"
:rules="rules"
@ -246,6 +247,9 @@ export default {
models.push(model);
});
this.$emit('updateMapModel', models);
},
deleteObj() {
this.$refs.dataform.deleteObj();
}
}
};

View File

@ -1,88 +1,4 @@
<template>
<!-- <div style="height:100%;">
<div class="view-control-content">
<el-form ref="make" label-width="130px" :model="addModel" size="mini" :rules="mergeRules">
<el-form-item :label="$t('map.section')" prop="sectionCode">
<el-select v-model="addModel.sectionCode" filterable>
<el-option
v-for="item in signalSectionList"
:key="item.code"
:label="item.name + ' (' + item.code+ ')'"
:value="item.code"
/>
</el-select>
<el-button
:type="field === 'selectSingalCode' ? 'danger' : 'primary'"
size="small"
@click="hover('selectSingalCode')"
>{{ $t('map.activate') }}</el-button>
</el-form-item>
<el-form-item :label="$t('map.signalNameColon')" prop="name">
<el-input v-model="addModel.name" style="width: 178px;" />
</el-form-item>
<el-form-item :label="$t('map.leftOrRight')" prop="leftOrRight">
<el-radio-group v-model="addModel.leftOrRight">
<el-radio
v-for="item in SignalLeftOrRightList"
:key="item.value"
:label="item.value"
border
>
{{ item.label }}</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item :label="$t('map.signalDirectionTypeX')" prop="right">
<el-radio-group v-model="addModel.right">
<el-radio
v-for="item in SignalDirectionList"
:key="item.code"
:label="item.code"
border
>
{{ item.name }}
</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item :label="$t('map.positionType')" prop="positionType">
<el-radio-group v-model="addModel.positionType">
<el-radio
v-for="item in SignalPositionTypeList"
:key="item.code"
:label="item.code"
border
>
{{ item.name }}
</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item :label="$t('map.equipmentStation')" prop="stationCode">
<el-select v-model="addModel.stationCode" filterable>
<el-option
v-for="item in centralizedStationList"
:key="item.code"
:label="item.name + item.code"
:value="item.code"
/>
</el-select>
</el-form-item>
<el-form-item label="所属联锁站:">
<el-select v-model="addModel.interlockStationCode">
<el-option
v-for="item in centralizedStationList"
:key="item.code"
:label="item.name + item.code"
:value="item.code"
/>
</el-select>
</el-form-item>
</el-form>
</div>
<div class="button_box">
<el-button-group class="map-draft-group">
<el-button type="primary" size="small" @click="create">{{ $t('map.create') }}</el-button>
</el-button-group>
</div>
</div> -->
<create-operate
ref="createForm"
:create-form="createForm"

View File

@ -2,6 +2,7 @@
<el-tabs v-model="activeName" class="card">
<el-tab-pane class="view-control" :label="$t('map.property')" name="first" :lazy="lazy">
<operate-property
ref="dataForm"
:form="form"
:edit-model="editModel"
:rules="rules"
@ -500,6 +501,9 @@ export default {
}
});
return model;
},
deleteObj() {
this.$refs.dataform.deleteObj();
}
}
};

View File

@ -2,6 +2,7 @@
<el-tabs v-model="activeName" class="card">
<el-tab-pane class="view-control" :label="$t('map.property')" name="first" :lazy="lazy">
<operate-property
ref="dataForm"
:form="form"
:edit-model="editModel"
:rules="createRules"
@ -162,6 +163,9 @@ export default {
},
updateMapModel(data) {
this.$emit('updateMapModel', data);
},
deleteObj() {
this.$refs.dataform.deleteObj();
}
}

View File

@ -1,5 +1,6 @@
<template>
<operate-property
ref="dataForm"
:form="form"
:edit-model="editModel"
:rules="rules"
@ -117,6 +118,9 @@ export default {
},
updateMapModel(data) {
this.$emit('updateMapModel', data);
},
deleteObj() {
this.$refs.dataform.deleteObj();
}
}
};