画面新建 bug调整
This commit is contained in:
parent
0e858fb921
commit
55d4ff6e69
@ -47,7 +47,7 @@ export default {
|
||||
return {
|
||||
centerDialogVisible: false,
|
||||
skinCodeList: [],
|
||||
ruleForm: { name: '', type: '', stationCode: '', lineCode: '', deviceMap: {} },
|
||||
ruleForm: { name: '', type: '', stationCode: '', lineCode: '' },
|
||||
rules: {
|
||||
name: [{ required: true, message: '请输入画面名称', trigger: 'blur' }],
|
||||
type: [{ required: true, message: '请选择画面类型', trigger: 'change' }],
|
||||
@ -78,9 +78,9 @@ export default {
|
||||
if (valid) {
|
||||
const map = this.$store.state.map.map;
|
||||
if (map && map.pictureList && map.pictureList.length) {
|
||||
map.pictureList.push({...this.ruleForm, scaling: map.scaling || '1', origin: { x: map.origin ? map.origin.x : 0, y: map.origin ? map.origin.y : 0 }});
|
||||
map.pictureList.push({...this.ruleForm, deviceMap: {}, scaling: map.scaling || '1', origin: { x: map.origin ? map.origin.x : 0, y: map.origin ? map.origin.y : 0 }});
|
||||
} else {
|
||||
map.pictureList = [{...this.ruleForm, scaling: map.scaling || '1', origin: { x: map.origin ? map.origin.x : 0, y: map.origin ? map.origin.y : 0 }}];
|
||||
map.pictureList = [{...this.ruleForm, deviceMap: {}, scaling: map.scaling || '1', origin: { x: map.origin ? map.origin.x : 0, y: map.origin ? map.origin.y : 0 }}];
|
||||
}
|
||||
if (map && parseInt(this.$route.params.mapId)) {
|
||||
saveMap(Object.assign(map, { mapId: this.$route.params.mapId })).then(() => {
|
||||
|
@ -423,6 +423,35 @@
|
||||
</div>
|
||||
</div>
|
||||
</el-row>
|
||||
<el-row style="display: flex;">
|
||||
<div class="border-box" style="width: 10%;">计数器</div>
|
||||
<div style="width: 90%;">
|
||||
<el-row style="display: flex;justify-content: space-between;">
|
||||
<div class="border-box" style="width: 100%;">名称</div>
|
||||
<div class="border-box" style="width: 100%;">S总人工解锁</div>
|
||||
<div class="border-box" style="width: 100%;">S引导</div>
|
||||
<div class="border-box" style="width: 100%;">S总锁闭</div>
|
||||
<div class="border-box" style="width: 100%;">X总人工解锁</div>
|
||||
<div class="border-box" style="width: 100%;">X引导</div>
|
||||
<div class="border-box" style="width: 100%;">X总锁闭</div>
|
||||
<div class="border-box" style="width: 100%;">S故障</div>
|
||||
<div class="border-box" style="width: 100%;">S接车引导</div>
|
||||
<div class="border-box" style="width: 100%;">南场</div>
|
||||
</el-row>
|
||||
<el-row style="display: flex;justify-content: space-between;">
|
||||
<div class="border-box" style="width: 100%;">号码</div>
|
||||
<div class="border-box" style="width: 100%;"><el-input v-model="value" size="mini" /></div>
|
||||
<div class="border-box" style="width: 100%;"><el-input v-model="value" size="mini" /></div>
|
||||
<div class="border-box" style="width: 100%;"><el-input v-model="value" size="mini" /></div>
|
||||
<div class="border-box" style="width: 100%;"><el-input v-model="value" size="mini" /></div>
|
||||
<div class="border-box" style="width: 100%;"><el-input v-model="value" size="mini" /></div>
|
||||
<div class="border-box" style="width: 100%;"><el-input v-model="value" size="mini" /></div>
|
||||
<div class="border-box" style="width: 100%;"><el-input v-model="value" size="mini" /></div>
|
||||
<div class="border-box" style="width: 100%;"><el-input v-model="value" size="mini" /></div>
|
||||
<div class="border-box" style="width: 100%;"><el-input v-model="value" size="mini" /></div>
|
||||
</el-row>
|
||||
</div>
|
||||
</el-row>
|
||||
</el-tab-pane>-->
|
||||
</el-tabs>
|
||||
</el-dialog>
|
||||
|
Loading…
Reference in New Issue
Block a user