- 注册时间
- 2021-8-23
- 最后登录
- 2022-4-2
- 阅读权限
- 10
- 积分
- 121
- 精华
- 0
- 帖子
- 22
|
本帖最后由 gaofq 于 2021-11-4 18:21 编辑
- <div id="CustomerService" style="width:1224px;height:200px;" class="mini-datagrid" showPager="false" url="../Customer/GetCustomerServiceListByID">
- <div property="columns">
- <div type="indexcolumn"></div>
- <div name="action" width="120" headerAlign="center" align="center" renderer="onActionRenderer" cellStyle="padding:0;">操作</div>
- <div type="comboboxcolumn" field="EmployeeID" width="130" allowSort="true" align="center" headerAlign="center">
- 姓名
- <input property="editor" class="mini-combobox" style="width:100%;" url="/CommonEnum/GetAEmployeeList" allowInput="true" onvaluechanged="onNameChanged" />
- </div>
- <div type="comboboxcolumn" field="DeptID" width="150" allowSort="true" align="center" headerAlign="center">
- 部门
- <input property="editor" class="mini-treeselect" url="../CommonEnum/MiniuiLandrayDeptALL" allowInput="true" style="width:100%;" />
- </div>
- <div type="checkboxcolumn" field="IsPending" trueValue="true" falseValue="false" width="60" headerAlign="center">档案受理</div>
- <div type="checkboxcolumn" field="IsWarn" trueValue="true" falseValue="false" width="60" headerAlign="center">预警管理</div>
- <div type="checkboxcolumn" field="IsDormancy" trueValue="true" falseValue="false" width="60" headerAlign="center">休眠客户</div>
- <div type="checkboxcolumn" field="IsContract" trueValue="true" falseValue="false" width="60" headerAlign="center">合同管理</div>
- <div type="checkboxcolumn" field="IsOutboundDocumentary" trueValue="true" falseValue="false" width="60" headerAlign="center">出港跟单</div>
- <div type="checkboxcolumn" field="IsCityDocumentary" trueValue="true" falseValue="false" width="80" headerAlign="center">进港市内跟单</div>
- <div type="checkboxcolumn" field="IsTransferDocumentary" trueValue="true" falseValue="false" width="60" headerAlign="center">中转跟单</div>
- <div type="checkboxcolumn" field="IsVisit" trueValue="true" falseValue="false" width="60" headerAlign="center">上门拜访</div>
- <div type="checkboxcolumn" field="IsCallBack" trueValue="true" falseValue="false" width="60" headerAlign="center">客户回访</div>
- </div>
- </div>
复制代码- //选择姓名后加载部门
- function onNameChanged(e) {
- debugger;
- var id = e.value;
- var grid = e.sender;
- var record = e.record;
- getCellEditor(column, row)
- //grid.updateRow(record, { DeptID: "16cfa261728def8ad8851b8432cb41e3" });
- //$.ajax({
- // type: 'post',
- // url: "../Customer/GetLandrayPersonDeptIDByEmployeeID",
- // data: { ID: id },
- // success: function (result) {
- // //mini.alert(result);
- // grid.updateRow(record, { DeptID: result });
- // },
- // error: function (jqXHR, textStatus, errorThrown) {
- // alert(jqXHR.responseText);
- // }
- //});
- }
复制代码
如何实现姓名列的onvaluechanged改变时,刷新右边的部门? |
|