applyRulesDialog.vue 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <template>
  2. <el-dialog
  3. title="提示"
  4. :visible.sync="dialogVisible"
  5. width="60%"
  6. @close="handleClose"
  7. id="applyRules"
  8. >
  9. <span>对应规则有冲突,请处理</span>
  10. <el-tabs v-model="activeName" @tab-click="handleClick">
  11. <el-tab-pane label="人工填写过表号功能号" name="first"></el-tab-pane>
  12. <el-tab-pane label="多个标识对应同一个信息点" name="second"></el-tab-pane>
  13. </el-tabs>
  14. <el-table :data="tableData" style="width: 100%;max-height:400px;" height="calc(100% - 160px)">
  15. <el-table-column type="expand" class-name="bgf5">
  16. <template slot-scope="props">
  17. <el-row>
  18. <el-col :span="8">
  19. <p>{{props.row.desc}}</p>
  20. <p>{{props.row.desc}}</p>
  21. <p>{{props.row.desc}}</p>
  22. </el-col>
  23. <el-col :span="8">
  24. <p>{{props.row.desc}}</p>
  25. <p>{{props.row.desc}}</p>
  26. <p>{{props.row.desc}}</p>
  27. </el-col>
  28. <el-col :span="8">
  29. <p>{{props.row.desc}}</p>
  30. <p>{{props.row.desc}}</p>
  31. <p>{{props.row.desc}}</p>
  32. </el-col>
  33. </el-row>
  34. </template>
  35. </el-table-column>
  36. <el-table-column label="设备实例本地名(本地编码)" prop="name" class-name="bgf5" align="center"></el-table-column>
  37. <el-table-column label="信息点" prop="name" align="center"></el-table-column>
  38. <el-table-column label="原值" prop="desc" align="center">
  39. <template slot-scope="scope">
  40. <el-radio v-model="scope.row.checked" label="old">备选项</el-radio>
  41. </template>
  42. </el-table-column>
  43. <el-table-column label="新值" prop="desc" align="center">
  44. <template slot-scope="scope">
  45. <el-radio v-model="scope.row.checked" label="new">备选项</el-radio>
  46. </template>
  47. </el-table-column>
  48. </el-table>
  49. <span slot="footer" class="dialog-footer">
  50. <el-button size="small">取消</el-button>
  51. <el-button size="small" type="primary">使用选择的表号功能号</el-button>
  52. </span>
  53. </el-dialog>
  54. </template>
  55. <script>
  56. export default {
  57. data() {
  58. return {
  59. dialogVisible: false, //弹窗显示与隐藏
  60. tableData: [
  61. {
  62. id: "12987122",
  63. name: "好滋好味鸡蛋仔",
  64. category: "江浙小吃、小吃零食",
  65. desc: "荷兰优质淡奶,奶香浓而不腻",
  66. address: "上海市普陀区真北路",
  67. shop: "王小虎夫妻店",
  68. shopId: "10333"
  69. },
  70. {
  71. id: "12987123",
  72. name: "好滋好味鸡蛋仔",
  73. category: "江浙小吃、小吃零食",
  74. desc: "荷兰优质淡奶,奶香浓而不腻",
  75. address: "上海市普陀区真北路",
  76. shop: "王小虎夫妻店",
  77. shopId: "10333"
  78. },
  79. {
  80. id: "12987125",
  81. name: "好滋好味鸡蛋仔",
  82. category: "江浙小吃、小吃零食",
  83. desc: "荷兰优质淡奶,奶香浓而不腻",
  84. address: "上海市普陀区真北路",
  85. shop: "王小虎夫妻店",
  86. shopId: "10333"
  87. },
  88. {
  89. id: "12987126",
  90. name: "好滋好味鸡蛋仔",
  91. category: "江浙小吃、小吃零食",
  92. desc: "荷兰优质淡奶,奶香浓而不腻",
  93. address: "上海市普陀区真北路",
  94. shop: "王小虎夫妻店",
  95. shopId: "10333"
  96. },
  97. {
  98. id: "12987127",
  99. name: "好滋好味鸡蛋仔",
  100. category: "江浙小吃、小吃零食",
  101. desc: "荷兰优质淡奶,奶香浓而不腻",
  102. address: "上海市普陀区真北路",
  103. shop: "王小虎夫妻店",
  104. shopId: "10333"
  105. },
  106. {
  107. id: "12987128",
  108. name: "好滋好味鸡蛋仔",
  109. category: "江浙小吃、小吃零食",
  110. desc: "荷兰优质淡奶,奶香浓而不腻",
  111. address: "上海市普陀区真北路",
  112. shop: "王小虎夫妻店",
  113. shopId: "10333"
  114. },
  115. {
  116. id: "12987129",
  117. name: "好滋好味鸡蛋仔",
  118. category: "江浙小吃、小吃零食",
  119. desc: "荷兰优质淡奶,奶香浓而不腻",
  120. address: "上海市普陀区真北路",
  121. shop: "王小虎夫妻店",
  122. shopId: "10333"
  123. }
  124. ],
  125. activeName: "first" //当前所在tab页
  126. };
  127. },
  128. methods: {
  129. showDialog() {
  130. // this.tableData = data;
  131. this.dialogVisible = true;
  132. },
  133. handleClick() {},
  134. handleClose(done) {},
  135. handleDelete(i, t) {}
  136. },
  137. mounted() {},
  138. created() {}
  139. };
  140. </script>
  141. <style lang="scss" scoped>
  142. #applyRules {
  143. /deep/ td.bgf5 {
  144. background-color: #f5f7fa;
  145. }
  146. td p {
  147. text-align: center;
  148. }
  149. }
  150. </style>