|
@@ -2,16 +2,26 @@
|
|
|
<div class='equipment-attr'>
|
|
|
<p>编辑信息点</p>
|
|
|
<div class='row'>
|
|
|
- <div class='row-tit'>名称</div>
|
|
|
+ <div class='row-tit'>信息点名称</div>
|
|
|
<a-input v-model='infoData.Name' style='width: 180px' @change='changeInfoName' />
|
|
|
</div>
|
|
|
+ <div class='row'>
|
|
|
+ <div class='row-tit'>信息点Code</div>
|
|
|
+ <a-input v-model='infoData.Code' style='width: 180px' @change='changeInfoCode' />
|
|
|
+ </div>
|
|
|
<!-- 工程信息化对象列表 -->
|
|
|
<div class='row'>
|
|
|
<div class='row-tit'>工程信息化对象列表</div>
|
|
|
</div>
|
|
|
- <!-- <div class='row' v-for='(item,index) in AttachObjectIds' :key='index'>
|
|
|
- <a-input class='input' v-model='AttachObjectIds[index]' type='small' @change='changeAttachObjectIds(index)' />
|
|
|
- </div> -->
|
|
|
+ <div class='row' v-for='(item,index) in infoData.AttachObjectIds' :key='index'>
|
|
|
+ <a-input class='input' v-model='infoData.AttachObjectIds[index]' type='small' @change='changeInfoAttachObjectIds(index)' />
|
|
|
+ </div>
|
|
|
+ <!-- 添加工程信息化对象列表 -->
|
|
|
+ <div class='row'>
|
|
|
+ <span>操作工程信息化对象</span>
|
|
|
+ <a-button @click='handleAttach(1)' size='small' type='primary'>添加</a-button>
|
|
|
+ <a-button @click='handleAttach(-1)' size='small' v-show='AttachObjectIds.length' type='danger'>删除</a-button>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
@@ -50,10 +60,10 @@ export default {
|
|
|
handleAttach(flag) {
|
|
|
switch (flag) {
|
|
|
case -1:
|
|
|
- bus.$emit('deleteAttachObjectIds')
|
|
|
+ // bus.$emit('deleteAttachObjectIds')
|
|
|
break
|
|
|
default:
|
|
|
- bus.$emit('addAttachObjectIds')
|
|
|
+ // bus.$emit('addAttachObjectIds')
|
|
|
break
|
|
|
}
|
|
|
this.init()
|
|
@@ -70,6 +80,7 @@ export default {
|
|
|
this.init()
|
|
|
},
|
|
|
init() {
|
|
|
+ window.vm = this
|
|
|
// 设置信息点名称
|
|
|
this.infoData = this.focusItemList.itemList[0].toData()
|
|
|
console.log(this.infoData)
|
|
@@ -79,6 +90,10 @@ export default {
|
|
|
changeInfoName() {
|
|
|
bus.$emit('changeInfoItemName', this.infoData.Name)
|
|
|
},
|
|
|
+ changeInfoCode() {
|
|
|
+ bus.$emit('changeInfoItemCode', this.infoData.Code)
|
|
|
+ },
|
|
|
+ changeInfoAttachObjectIds(index) {},
|
|
|
},
|
|
|
}
|
|
|
</script>
|