diff --git a/WebRoot/view/tb/zbdc/xxjszb_jchj_list.html b/WebRoot/view/tb/zbdc/xxjszb_jchj_list.html index 0adf69c9..89b4d538 100644 --- a/WebRoot/view/tb/zbdc/xxjszb_jchj_list.html +++ b/WebRoot/view/tb/zbdc/xxjszb_jchj_list.html @@ -54,6 +54,25 @@ border: 1px solid rgba(144, 147, 153, .2); white-space: nowrap; } + + .woo-tool-text-delimiter { + width: 1px; + height: 12px; + background: #EEEEEE; + display: inline-block; + margin: 0 6px 0 4px; + } + + .woo-theme-color { + color: #2d8cf0 !important; + } + + .woo-tool-span { + margin: 0 3px; + position: relative; + top: -1px; + cursor: pointer; + } @@ -70,7 +89,19 @@
- + + + + @@ -89,7 +120,7 @@ table.render({ elem: '#myTable', - url: '/QingLong/zbdc/getXxzbdcList?dcb_id=1', + url: '/QingLong/zbdc/getXxzbdcList?dcb_id=1', height: 'full-70', cols: [ [ @@ -98,16 +129,16 @@ { title: '主要设备', field: 'lb_sb_name', align: 'center', width: "160", rowspan: 2 }, { title: '品牌', field: 'pinpai', align: 'center', width: "110", rowspan: 2 }, { title: '型号', field: 'xinghao', align: 'center', width: "110", rowspan: 2 }, - { title: '现状', align: 'center', colspan: 3 }, + { title: '现状', align: 'center', colspan: 3 }, { title: '工作状态', align: 'center', colspan: 6 }, { title: '网络带宽(MB)', field: 'wangluodaikuan', align: 'center', width: "135", rowspan: 2 }, { title: '网络服务供应商', field: 'wangluofuwushang', align: 'center', width: "135", rowspan: 2 }, - { title: '操作',fixed: 'right', align: 'center', width: "110", rowspan: 2 } + { title: '操作', fixed: 'right', align: 'center', width: "110", rowspan: 2, toolbar: '#table-bar' } ], [ { title: '具体装备情况', field: 'jtzbqk', align: 'center', width: "115", rowspan: 2 }, { title: '台数', field: 'taishu', align: 'center', width: "60", rowspan: 2 }, - { title: '启用日期', field: 'qiyongriqi', align: 'center', width: "110", rowspan: 2 }, + { title: '启用日期', align: 'center', width: "110", rowspan: 2, templet: '{{= d.qiyongriqi }}' }, { title: '正常使用(台)', field: 'zhengchang', align: 'center', width: "110", rowspan: 2 }, { title: '待修(台)', field: 'daixiu', align: 'center', width: "90", rowspan: 2 }, { title: '在修(台)', field: 'zaixiu', align: 'center', width: "90", rowspan: 2 }, @@ -142,6 +173,21 @@ return false; }); + table.on('tool(myTable)', function (obj) { + if (obj.event === 'remove') { + window.remove(obj); + } else if (obj.event === 'edit') { + layer.open({ + type: 2, + title: '编辑', + shade: 0.1, + area: ['930px', '512px'], + content: './xxjszb_jchj_update.html?id=' + obj.data.id + }); + } + + }); + diff --git a/WebRoot/view/tb/zbdc/xxjszb_jchj_update.html b/WebRoot/view/tb/zbdc/xxjszb_jchj_update.html index 617b6c51..a55b7d81 100644 --- a/WebRoot/view/tb/zbdc/xxjszb_jchj_update.html +++ b/WebRoot/view/tb/zbdc/xxjszb_jchj_update.html @@ -130,7 +130,7 @@