|
@@ -69,19 +69,19 @@ $(document).ready(function () {
|
|
|
})
|
|
|
|
|
|
// 添加审批流程按钮逻辑
|
|
|
- $('.book-list').on('click', '.acc-btn', function () {
|
|
|
- const idx = $(this).attr('data-groupid')
|
|
|
- const type = $(this).attr('data-type')
|
|
|
+ $('.book-list').on('click', 'dt', function () {
|
|
|
+ const idx = $(this).find('.acc-btn').attr('data-groupid')
|
|
|
+ const type = $(this).find('.acc-btn').attr('data-type')
|
|
|
if (type === 'hide') {
|
|
|
- $(this).parent().parent().find(`div[data-toggleid="${idx}"]`).show(() => {
|
|
|
- $(this).children().removeClass('fa-plus-square').addClass('fa-minus-square-o')
|
|
|
- $(this).attr('data-type', 'show')
|
|
|
+ $(this).parent().find(`div[data-toggleid="${idx}"]`).show(() => {
|
|
|
+ $(this).children().find('i').removeClass('fa-plus-square').addClass('fa-minus-square-o')
|
|
|
+ $(this).find('.acc-btn').attr('data-type', 'show')
|
|
|
|
|
|
})
|
|
|
} else {
|
|
|
- $(this).parent().parent().find(`div[data-toggleid="${idx}"]`).hide(() => {
|
|
|
- $(this).children().removeClass('fa-minus-square-o').addClass('fa-plus-square')
|
|
|
- $(this).attr('data-type', 'hide')
|
|
|
+ $(this).parent().find(`div[data-toggleid="${idx}"]`).hide(() => {
|
|
|
+ $(this).children().find('i').removeClass('fa-minus-square-o').addClass('fa-plus-square')
|
|
|
+ $(this).find('.acc-btn').attr('data-type', 'hide')
|
|
|
})
|
|
|
}
|
|
|
return false
|