|
@@ -7,7 +7,9 @@
|
|
|
<el-upload class='upload-demo' action='string' :http-request='uploadAndSubmit' :show-file-list='false' v-if="step==-1">
|
|
|
<el-button size="mini">{{hasGraph?'替换平面图图片':'上传平面图图片'}}</el-button>
|
|
|
</el-upload>
|
|
|
- <el-button v-if='step>-1' style='float:right;' size='mini' type='primary' @click="nextStep">{{step==0?'下一步':step==1?'保存':''}}</el-button>
|
|
|
+ <el-button style='float:right;' size='mini' type='primary' v-if="step==0" @click="nextStep">下一步</el-button>
|
|
|
+ <el-button style='float:right;' size='mini' type='primary' v-if="step==1" @click="nextStep">保存</el-button>
|
|
|
+ <el-button style='float:right;' size='mini' v-if="step==1" @click="lastStep">上一步</el-button>
|
|
|
</template>
|
|
|
<template v-else>
|
|
|
<el-button v-if='!isEdit' size='mini' @click='changeGraphy'>{{hasGraph?'关联模型文件':'替换模型文件'}}</el-button>
|
|
@@ -251,8 +253,8 @@ export default {
|
|
|
Properties: {
|
|
|
X: this.baseImgItem.x,
|
|
|
Y: this.baseImgItem.y,
|
|
|
- line: this.scaleItem.line,
|
|
|
- Scale: this.scaleItem
|
|
|
+ line: JSON.parse(JSON.stringify(this.scaleItem.line)),
|
|
|
+ Scale: this.scaleItem.text
|
|
|
}
|
|
|
}],
|
|
|
Projection: ['FloorMap', 'Properties'],
|
|
@@ -260,6 +262,8 @@ export default {
|
|
|
manageUpdateFloor(Param, (res) => {
|
|
|
this.$message.success('更新成功')
|
|
|
this.step = -1;
|
|
|
+ this.baseImgItem.globalAlpha = 1
|
|
|
+ this.removeLast()
|
|
|
})
|
|
|
},
|
|
|
// 根据modelid初始化
|
|
@@ -270,6 +274,13 @@ export default {
|
|
|
this.$refs.drawFloor.initGraphy(id, 1)
|
|
|
}
|
|
|
},
|
|
|
+ // 上一步
|
|
|
+ lastStep() {
|
|
|
+ this.step = 0;
|
|
|
+ this.scaleItem.show()
|
|
|
+ this.baseImgItem.globalAlpha = 1
|
|
|
+ this.removeLast()
|
|
|
+ },
|
|
|
// 下一步||保存
|
|
|
nextStep() {
|
|
|
this.baseImgItem = this.$refs.drawFloor.drawMainScene.imgList[0]
|