为行政区划树以及业务分组树添加通道增加提示以及添加业务分组支持选择行政区划

pull/1719/head
648540858 2024-12-10 22:45:08 +08:00
parent ad07fa5eb7
commit 8495cd0f23
2 changed files with 22 additions and 18 deletions

View File

@ -64,6 +64,10 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<div style="display: grid; grid-template-columns: 1fr 1fr">
<div style="text-align: left; line-height: 32px">
<i class="el-icon-info"></i>未找到通道可在国标设备/通道中选择编辑按钮 选择{{dataType === 'civilCode'?'行政区划':'父节点编码'}}
</div>
<el-pagination <el-pagination
style="text-align: right" style="text-align: right"
@size-change="handleSizeChange" @size-change="handleSizeChange"
@ -74,6 +78,8 @@
layout="total, sizes, prev, pager, next" layout="total, sizes, prev, pager, next"
:total="total"> :total="total">
</el-pagination> </el-pagination>
</div>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>

View File

@ -22,7 +22,7 @@
</el-form-item> </el-form-item>
<el-form-item label="行政区划" prop="name"> <el-form-item label="行政区划" prop="name">
<el-input v-model="group.civilCode" > <el-input v-model="group.civilCode" >
<el-button slot="append" @click="buildCivilCode(group.civilCode)"></el-button> <el-button slot="append" @click="buildCivilCode(group.civilCode)"></el-button>
</el-input> </el-input>
</el-form-item> </el-form-item>
@ -37,17 +37,17 @@
</div> </div>
</el-dialog> </el-dialog>
<channelCode ref="channelCode"></channelCode> <channelCode ref="channelCode"></channelCode>
<regionCode ref="regionCode"></regionCode> <chooseCivilCode ref="chooseCivilCode"></chooseCivilCode>
</div> </div>
</template> </template>
<script> <script>
import channelCode from "./channelCode.vue"; import channelCode from "./channelCode.vue";
import regionCode from "./regionCode.vue"; import ChooseCivilCode from "./chooseCivilCode.vue";
export default { export default {
name: "groupEdit", name: "groupEdit",
components: {channelCode, regionCode}, components: {ChooseCivilCode, channelCode},
computed: {}, computed: {},
props: [], props: [],
created() {}, created() {},
@ -116,11 +116,9 @@ export default {
}, deviceId, 5 , lockContent); }, deviceId, 5 , lockContent);
}, },
buildCivilCode: function (deviceId){ buildCivilCode: function (deviceId){
this.$refs.regionCode.openDialog(code=>{ this.$refs.chooseCivilCode.openDialog(code=>{
console.log("2222")
console.log(code)
this.group.civilCode = code; this.group.civilCode = code;
}, deviceId) });
}, },
close: function () { close: function () {
this.showDialog = false; this.showDialog = false;