请选择 进入手机版 | 继续访问电脑版
 找回密码
 立即注册

QQ登录

只需一步,快速开始

xiaolong

金牌服务用户

95

主题

373

帖子

1012

积分

金牌服务用户

积分
1012
xiaolong
金牌服务用户   /  发表于:2020-9-4 16:42  /   查看:2422  /  回复:3
demo上传在附件

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x

3 个回复

倒序浏览
Derrick.Jiao讲师达人认证 悬赏达人认证 SpreadJS 开发认证
论坛元老   /  发表于:2020-9-4 17:09:11
沙发
您好,wijmo的问题给您转移到wijmo专区了。

您的问题正在处理中,预计周一给您答复。
回复 使用道具 举报
KevinChen讲师达人认证 悬赏达人认证 SpreadJS 开发认证
论坛元老   /  发表于:2020-9-7 11:53:12
板凳
您好,看了您的Demo,发现在代码中有一些问题,在执行恢复动作的record方法中,箭头函数中引用了this,这里会报异常,但由于框架的拦截,不会抛出来。我改动了一下,目前基本上没发现有问题的地方(搜索框回显Demo里没实现,不过也很容易实现)

关键代码我截下来:

  1.                                 } else {
  2.                                         var that = this;
  3.                                         this.$http.post('sysUsers/querydatacondition', {
  4.                                                 userid: sessionStorage.getItem("userid"),
  5.                                                 model: 'Data Warehouse_DW MDM Console_Target_Target Table',
  6.                                                 drop_down_box: '', //下拉框
  7.                                         }).then(res => {
  8.                                                 if(res.data.length != 0 && res.data[0]['m' + index + '_condition']) {
  9.                                                         that.filterField = JSON.parse(res.data[0]['m' + index + '_condition']).Serch; //搜索框回显
  10.                                                         that.note = JSON.parse(res.data[0]['m' + index + '_condition']).note;
  11.                                                         setTimeout(() => {
  12.                                                                 let groupings = JSON.parse(res.data[0]['m' + index + '_condition']).grouping; //分组回显
  13.                                                                 that.view.groupDescriptions.clear();
  14.                                                                 that.view.sortDescriptions.clear();
  15.                                                                 groupings.forEach(item => {
  16.                                                                         that.view.groupDescriptions.push(new wijmo.PropertyGroupDescription(item))
  17.                                                                 })
  18.                                                                 let sort = JSON.parse(res.data[0]['m' + index + '_condition']).Sort; //排序回显
  19.                                                                 if(sort != '') {
  20.                                                                         that.view.sortDescriptions.push(new wijmo.SortDescription(sort.name, sort.Y ? sort.Y : false));
  21.                                                                 }
  22.                                                                 that.filterData1.filterDefinition = JSON.parse(res.data[0]['m' + index + '_condition']).filterDown;
  23.                                                         }, 600)
  24.                                                 } else that.$message('No related state has been stored');
  25.                                         })
  26.                                 }
  27.                         },
复制代码

回复 使用道具 举报
KevinChen讲师达人认证 悬赏达人认证 SpreadJS 开发认证
论坛元老   /  发表于:2020-9-7 11:54:34
地板
完整文件见附件。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部