jdc_dkh_jxicustomer
Version:
JDC_dkh_jxicustomer ==== 产品经理:田宇,弥磊 设计:罗婷 交互:张钊
40 lines (38 loc) • 1.27 kB
JavaScript
define(function(require, exports, module) {
require('//misc.360buyimg.com/virtuals/popui/2.1.6/js/dialog/dialog');
let TPL = require('./tpl.js');
let eles = {
$editDepartment: $('#edit-department'),
$editLabel: $('#edit-label'),
}
let Info = {
init: () => {
Info.addEventListener();
},
addEventListener: () => {
eles.$editDepartment.on('click', function(opts) {
$.dialog({
title: opts.title || '修改部门',
source: TPL.department(opts),
width: 545,
height: 604,
containerCls: 'dialog suite',
onReady: function(dialog) {
}
})
})
eles.$editLabel.on('click', function(opts) {
$.dialog({
title: opts.title || '修改标签',
source: TPL.label(opts),
width: 545,
height: 604,
containerCls: 'dialog suite',
onReady: function(dialog) {
}
})
})
}
}
Info.init();
})