diff --git a/WebRoot/view/ywgl/rywh/tree_audit.html b/WebRoot/view/ywgl/rywh/tree_audit.html new file mode 100644 index 00000000..1a480c43 --- /dev/null +++ b/WebRoot/view/ywgl/rywh/tree_audit.html @@ -0,0 +1,154 @@ + + + + + + + + + + + + +
+
+
+
+ +
+
+ +
+
+
+ + + + + + + + + + \ No newline at end of file diff --git a/WebRoot/view/ywgl/rywh/turn_audit_list.html b/WebRoot/view/ywgl/rywh/turn_audit_list.html index 755a7a3e..0fdecde5 100644 --- a/WebRoot/view/ywgl/rywh/turn_audit_list.html +++ b/WebRoot/view/ywgl/rywh/turn_audit_list.html @@ -61,34 +61,13 @@ + @@ -105,7 +84,7 @@ function tableRender() { table.render({ elem: '#data-table', - url: '/QingLong/teacherYd/getTeacherTransferEchoList', + url: '/QingLong/teacherYd/getTeacherTransferEchoList', height: 'full-135', page: { limit: 15 @@ -115,12 +94,12 @@ }, cols: [[ { title: '序号', align: 'center', width: "5%", type: 'numbers' }, - { title: '姓名', field: 'person_name', align: 'center' }, - { title: '转出学校', field: 'source_bureau_name', align: 'center', width: "15%" }, - { title: '调转说明', field: 'apply_message', align: 'center', width: "15%" }, - { title: '操作', toolbar: '#table-bar', align: 'center', width: "30%" } + { title: '姓名', field: 'person_name', align: 'center', width: "15%" }, + { title: '转出学校', field: 'source_bureau_name', align: 'center', width: "25%" }, + { title: '调转说明', field: 'apply_message', align: 'center' }, + { title: '操作', toolbar: '#table-bar', align: 'center', width: "10%" } ]], - skin: 'line', + skin: 'line', defaultToolbar: [{ title: '刷新', layEvent: 'refresh', @@ -131,76 +110,52 @@ table.on('tool(data-table)', function (obj) { - if (obj.event === 'remove') { - window.remove(obj); - } else if (obj.event === 'edit') { - window.edit(obj); - } else if (obj.event === 'orgMgmt') { - window.orgMgmt(obj); - } else if (obj.event === 'personMgmt') { - window.personMgmt(obj); - } else if (obj.event === 'classMgmt') { - window.classMgmt(obj); - } else if (obj.event === 'studentMgmt') { - window.studentMgmt(obj); - } else if (obj.event === 'parentMgmt') { - window.parentMgmt(obj); + if (obj.event === 'pass') { + window.pass(obj); + } else if (obj.event === 'nopass') { + window.nopass(obj); } }); - table.on('toolbar(data-table)', function (obj) { - if (obj.event === 'refresh') { - window.refresh(); - } - }); - - window.edit = function (obj) { + window.pass = function (obj) { + var loginPersonInfo = getPersonLoginInfo($); + var bureauId = loginPersonInfo.bureau_id; layer.open({ type: 2, - title: '编辑', + title: '选择调转部门', shade: 0.1, - area: ['650px', editH], - content: './update.html?org_id=' + obj.data.org_id + '&level_id=' + levelId + '&area_id=' + areaId + area: ['300px', '400px'], + content: './tree_audit.html?id=' + obj.data.id + '&bureau_id=' + bureauId }); } - window.remove = function (obj) { - layer.confirm('确定要删除该学校吗?', { - icon: 3, - title: '提示' - }, function (index) { - layer.close(index); - let loading = layer.load(); - $.ajax({ - url: "/QingLong/organization/deleteBureauById", - data: { bureau_id: obj.data.org_id }, - type: 'post', - success: function (result) { - layer.close(loading); - if (result.success) { - layer.msg('成功删除!', { - icon: 1, - time: 1000 - }, function () { - table.reload('data-table'); - }); - } else { - layer.msg(result.message, { - icon: 2, - time: 1000 - }); - } - }, - error: function (xhr, status, error) { - layer.close(loading); - console.log('请求出错:' + error + ',' + status); + window.nopass = function (obj) { + $.ajax({ + url: "/QingLong/teacherYd/checkTeacherTransfer", + data: { + "id": obj.data.id, + "status_id": 3 + }, + type: 'post', + success: function (result) { + if (result.success) { + layer.msg("已拒绝!", { + icon: 1, + time: 1300 + }, function () { + table.reload("data-table"); + + }); + } else { + layer.msg(result.message, { + icon: 2, + time: 2000 + }); } - }) + } }); - } - - + } window.refresh = function (param) { table.reload('data-table');