ZBLOG

self.fileName = new SmallTextItem({title: "file name", type: "file"}).setAccept(".xls,.xlsx").setRequired(true); self.importType = new SmallSelectItem({title: lang('import type'), type: 'primary'}).setValuesMap({0: '常规停拨', 1: '基于产品停拨'}); self.upda...

根据你提供的代码,如果你要注释掉importTypeupdateType这两个布局,以及methods中的相关函数,可以按照以下步骤进行操作:

  1. 将下面这段代码注释掉或删除:
self.importType = new SmallSelectItem({title: lang('import type'), type: 'primary'}).setValuesMap({0: '常规停拨', 1: '基于产品停拨'});
self.updateType = new SmallSelectItem({title: lang('update type'), type: 'primary'}).setValuesMap({'LONGER': '以生效更长时间更新', 'PARAMETER': '以导入数据更新'});

// ...

self.form.setItems({
  fileName: self.fileName,
  importType: self.importType,
  updateType: self.updateType
});
  1. 在页面布局中将下面这行代码注释掉或删除:
self.content.addMember(self.templetExport);
  1. 在方法中将以下函数定义和调用部分注释掉或删除:
ggNamespace.functions.stopDia1UoloadFileHandlerfunction(init) {
   // ...
}
self.retainUploadButton.addClickHandler(function() {
   // ...
});
self.templetExport.addClickHandler(function() {
   // ...
});

完成以上步骤后,相应的布局和方法部分将不再显示在页面上,并且不会影响其他功能。请注意备份好原始代码,以防需要还原。


内容由零声教学AI助手提供,问题来源于学员提问

本站部分文章来源于网络,版权归原作者所有,如有侵权请联系站长删除。
转载请注明出处:https://sdn.0voice.com/?id=4254

分享:
扫描分享到社交APP
上一篇
下一篇
发表列表
游客 游客
此处应有掌声~
评论列表

还没有评论,快来说点什么吧~

联系我们

在线咨询: 点击这里给我发消息

微信号:3007537140

上班时间: 10:30-22:30

关注我们
x

注册

已经有帐号?