Ver Fonte

教职工信息

zhuth há 6 anos atrás
pai
commit
533f39ccff

+ 16 - 0
frontend/pc-web/app/model/basic/staff/StaffDetail.js

@@ -0,0 +1,16 @@
+/**
+ * 教职员工
+ */
+Ext.define('school.model.basic.staff.StaffDetail', {
+    extend: 'school.model.Base',
+    fields: [{
+        name: 'clazz_id', // id
+        type: 'int'
+    }, {
+        name: 'clazz_name', // 名称
+        type: 'string'
+    }, {
+        name: 'kemu', // 所属年级
+        type: 'string'
+    }],
+});

+ 143 - 0
frontend/pc-web/app/view/basic/staff/StaffDetail.js

@@ -0,0 +1,143 @@
+Ext.define('school.view.basic.staff.StaffDetail', {
+    extend: 'school.view.core.form.FormPanel',
+    xtype: 'basic-staff-staffdetail',
+
+    // controller: 'sale-b2b-purchasedetail',
+    // viewModel: 'sale-b2b-purchasedetail',
+
+    //字段属性
+    _title: '教职工信息',
+    _idField: 'teacher_id',
+    _codeField: 'teacher_number',
+    _statusField: null,
+    _statusCodeField: null,
+    _auditmanField: null,
+    _auditdateField: null,
+    // _readUrl: 'http://10.1.80.35:8560/api/sale/saledown/read',
+    _readUrl: '/api/sale/saledown/read',
+    // _saveUrl: 'http://10.1.80.35:8560/api/sale/saledown/update',
+    _saveUrl: '/api/sale/saledown/update',
+    // _toSaleUrl: 'http://10.1.80.35:8560/api/sale/saledown/toSale',
+    _toSaleUrl: '/api/sale/saledown/toSale',
+    initId: 0,
+
+    codeInHeader: true,
+
+    initComponent: function () {
+        Ext.apply(this, {
+            defaultItems: [{
+                xtype: 'textfield',
+                name: 'teacher_number',
+                fieldLabel: '工号'
+            }, {
+                xtype: 'textfield',
+                name: 'teacher_name',
+                fieldLabel: '姓名'
+            }, {
+                xtype: "textfield",
+                name: "teacher_phone",
+                fieldLabel: "性别"
+            }, {
+                xtype: 'textfield',
+                name: 'teacher_phone',
+                fieldLabel: '手机号'
+            }, {
+                xtype: "textfield",
+                name: "teacher_jg",
+                fieldLabel: "籍贯"
+            }, {
+                xtype: 'datefield',
+                name: 'teacher_birth',
+                fieldLabel: '出生年月日',
+                format: 'Y-m-d'
+            }, {
+                xtype: 'textfield',
+                name: 'teacher_mz',
+                fieldLabel: '民族'
+            }, {
+                xtype: 'textfield',
+                name: 'teacher_hf',
+                fieldLabel: '婚姻状态'
+            }, {
+                xtype: 'textfield',
+                name: 'teacher_zz',
+                fieldLabel: '政治面貌'
+            }, {
+                xtype: 'textfield',
+                name: 'teacher_address',
+                fieldLabel: '现居住址'
+            }, {
+                xtype: 'textfield',
+                name: 'teacher_jjname',
+                fieldLabel: '紧急联系人'
+            }, {
+                xtype: 'textfield',
+                name: 'teacher_jjphone',
+                fieldLabel: '紧急联系人电话'
+            }, {
+                xtype: 'textfield',
+                name: 'teacher_jjgx',
+                fieldLabel: '紧急联系人关系'
+            }, {
+                xtype: 'textfield',
+                name: 'teacher_xl',
+                fieldLabel: '学历'
+            }, {
+                xtype: 'textfield',
+                name: 'teacher_by',
+                fieldLabel: '毕业学校'
+            }, {
+                xtype: 'textfield',
+                name: 'teacher_zy',
+                fieldLabel: '专业'
+            }, {
+                xtype: 'textfield',
+                name: 'teacher_phone',
+                fieldLabel: '手机号码'
+            }, {
+                xtype: 'textfield',
+                name: 'teacher_email',
+                fieldLabel: '邮箱'
+            }, {
+                xtype: 'textfield',
+                name: 'teacher_app',
+                fieldLabel: '是否开通APP'
+            }, {
+                xtype: 'textfield',
+                name: 'teacher_wechat',
+                fieldLabel: '绑定微信号'
+            }, {
+                xtype: 'textfield',
+                name: 'teacher_type',
+                fieldLabel: '账号类型'
+            }, {
+                xtype: 'textfield',
+                name: 'teacher_gwlx',
+                fieldLabel: '岗位类型'
+            }, {
+                name: "detailGridField",
+                xtype: "detailGridField",
+                detnoColumn: 'sd_detno',
+                storeModel: 'school.model.basic.staff.StaffDetail',
+                deleteDetailUrl: '/api/sale/sale/deleteDetail',
+                allowEmpty: true,
+                showCount: false,
+                columns: [{
+                    text: '任课班级',
+                    dataIndex: 'clazz_id',
+                    hidden: true
+                }, {
+                    text: '任课班级',
+                    dataIndex: 'clazz_name',
+                    editor: {
+                        xtype: 'textfield'
+                    }
+                }, {
+                    text: '科目',
+                    dataIndex: 'kemu'
+                }]
+            }],
+        });
+        this.callParent();
+    },
+});

+ 24 - 7
frontend/pc-web/app/view/basic/staff/StaffList.js

@@ -5,7 +5,7 @@ Ext.define('school.view.basic.staff.StaffList', {
     extend: 'school.view.core.base.BasePanel',
     xtype: 'basic-staff-stafflist',
 
-    // dataUrl: '/api/sale/saledown/list',
+    dataUrl: '/api/basic/staff/list',
     initComponent: function() {
         var me = this;
         Ext.apply(this, {
@@ -41,10 +41,27 @@ Ext.define('school.view.basic.staff.StaffList', {
                 totalProperty: 'data.total',
                 actionColumn: [],
                 selModel: {
-                    type: 'cellmodel'
+                    checkOnly:true,
+                    type:'checkboxmodel',
+                    mode : "MULTI" ,
+                    ignoreRightMouseSelection : false
                 },
-                data: [{
-
+                hiddenTools: false,
+                toolBtns: [{
+                    xtype: 'button',
+                    text: '一键开通'
+                }, {
+                    xtype: 'button',
+                    text: '下载模板'
+                }, {
+                    xtype: 'button',
+                    text: '批量导入'
+                }, {
+                    xtype: 'button',
+                    text: '删除'
+                }, {
+                    xtype: 'button',
+                    text: '新增'
                 }],
                 columns : [{
                     text: '工号',
@@ -71,9 +88,9 @@ Ext.define('school.view.basic.staff.StaffList', {
                 }],
                 listeners: {
                     itemclick: function(view, record, item, index, e, eOpts) {
-                        // saas.util.BaseUtil.openTab('sale-b2b-purchasedetail', '客户采购单', 'sale-b2b-purchasedetail'+record.id, {
-                        //     initId: record.get('id')
-                        // }); 
+                        school.util.BaseUtil.openTab('basic-staff-staffdetail', '教职工信息', 'basic-staff-staffdetail'+record.get('id'), {
+                            initId: record.get('id')
+                        }); 
                     }
                 }
             },

+ 12 - 0
frontend/pc-web/app/view/core/base/GridPanel.js

@@ -12,12 +12,19 @@ Ext.define('school.view.core.base.GridPanel', {
     }],
 
     cls:'core-base-gridpanel',
+
+    selModel: {
+        type: 'cellmodel'
+    },
     
     dataUrl: '',
     dbSearchFields: [],
     condition:'',
     rootProperty: 'data.list',
     totalProperty: 'data.total',
+    hiddenTools: true,
+    toolBtns: [],
+
 
     flexColumn: [{
         flex: 1,
@@ -79,6 +86,11 @@ Ext.define('school.view.core.base.GridPanel', {
 
             Ext.apply(me, {
                 dockedItems:[{
+                    xtype:'toolbar',
+                    dock:'top',
+                    hidden: me.hiddenTools,
+                    items: Ext.Array.merge(['->'], me.toolBtns)
+                }, {
                     xtype: 'pagingtoolbar',
                     dock: 'bottom',
                     cls:'x-basepanel-pagingtoolbar',