临时提交

pull/1642/head
648540858 2024-08-05 18:02:19 +08:00
parent ce0f0c4ac8
commit 9bbc3c44e0
1 changed files with 15 additions and 1 deletions

View File

@ -13,7 +13,9 @@
<div id="shared" style="margin-top: 1rem;margin-right: 100px;">
<el-form ref="form" :rules="rules" :model="group" label-width="140px" >
<el-form-item label="节点编号" prop="id" >
<el-input v-model="group.deviceId" clearable></el-input>
<el-input v-model="group.deviceId" placeholder="请输入编码">
<el-button slot="append" @click="buildDeviceIdCode(group.deviceId)"></el-button>
</el-input>
</el-form-item>
<el-form-item label="节点名称" prop="name">
<el-input v-model="group.name" clearable></el-input>
@ -29,13 +31,16 @@
</el-form>
</div>
</el-dialog>
<channelCode ref="channelCode"></channelCode>
</div>
</template>
<script>
import channelCode from "./channelCode.vue";
export default {
name: "groupEdit",
components: {channelCode},
computed: {},
props: [],
created() {},
@ -82,6 +87,15 @@ export default {
});
});
},
buildDeviceIdCode: function (deviceId){
this.$refs.channelCode.openDialog(code=>{
console.log(this.form)
console.log("code===> " + code)
this.group.deviceId = code;
console.log("code22===> " + code)
}, deviceId);
},
close: function () {
this.showDialog = false;
console.log(this.group)