update col show
This commit is contained in:
parent
09befa7c9c
commit
10d54372c9
@ -92,9 +92,11 @@ public class CustomerServiceSupport
|
|||||||
final String strYears = model.getYears();
|
final String strYears = model.getYears();
|
||||||
final String strYtdSales = model.getYtdSales();
|
final String strYtdSales = model.getYtdSales();
|
||||||
|
|
||||||
|
String[] years = null;
|
||||||
if (StringUtils.isNotBlank(strYears) &&
|
if (StringUtils.isNotBlank(strYears) &&
|
||||||
StringUtils.isNotBlank(strYtdSales)) {
|
StringUtils.isNotBlank(strYtdSales)) {
|
||||||
final String[] years = strYears.split("\\s*,\\s*");
|
years = strYears.split("\\s*,\\s*");
|
||||||
|
|
||||||
final String[] sales = strYtdSales.split("\\s*,\\s*");
|
final String[] sales = strYtdSales.split("\\s*,\\s*");
|
||||||
ytdSales = new ArrayList<>(years.length);
|
ytdSales = new ArrayList<>(years.length);
|
||||||
int i = 0;
|
int i = 0;
|
||||||
@ -105,6 +107,8 @@ public class CustomerServiceSupport
|
|||||||
ytdSales.add(ytdSale);
|
ytdSales.add(ytdSale);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
viewModel.setAttr("years", years != null ? years : new String[0]);
|
||||||
viewModel.setAttr("ytdSales", ytdSales != null ?
|
viewModel.setAttr("ytdSales", ytdSales != null ?
|
||||||
ytdSales : Collections.emptyList());
|
ytdSales : Collections.emptyList());
|
||||||
List<ViewModel<CustomerIssue>> recentIssues = customerIssueService.listViewModels(
|
List<ViewModel<CustomerIssue>> recentIssues = customerIssueService.listViewModels(
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
# Server
|
# Server
|
||||||
server.port=8088
|
server.port=80
|
||||||
|
|
||||||
# MySQL
|
# MySQL
|
||||||
|
|
||||||
datasource.host=127.0.0.1
|
datasource.host=127.0.0.1
|
||||||
datasource.port=43306
|
datasource.port=3306
|
||||||
datasource.database-name=ambition_crm
|
datasource.database-name=ambition_crm
|
||||||
datasource.username=root
|
datasource.username=root
|
||||||
datasource.password=696@2^~)oZ@^#*Q
|
datasource.password=696@2^~)oZ@^#*Q
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<Configuration status="WARN">
|
<Configuration status="WARN">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="log.level">DEBUG</Property>
|
<Property name="log.level">INFO</Property>
|
||||||
<Property name="log.dir">.logs</Property>
|
<Property name="log.dir">/data/program/logs/${project.artifactId}</Property>
|
||||||
<Property name="pattern">%-d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%t][%c{1}] %m%n</Property>
|
<Property name="pattern">%-d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%t][%c{1}] %m%n</Property>
|
||||||
</Properties>
|
</Properties>
|
||||||
<Appenders>
|
<Appenders>
|
||||||
<Console name="Console" target="SYSTEM_OUT">
|
<Console name="Console" target="SYSTEM_OUT">
|
||||||
<PatternLayout pattern="%highlight{%-d{yyyy-MM-dd HH:mm:ss,SSS}}{FATAL=magenta, ERROR=magenta, WARN=magenta, INFO=magenta, DEBUG=magenta, TRACE=magenta} %highlight{%-5p}{FATAL=red blink, ERROR=red, WARN=yellow bold, INFO=black, DEBUG=green bold, TRACE=blue} [%t][%highlight{%c{1.}}{FATAL=cyan, ERROR=cyan, WARN=cyan, INFO=cyan, DEBUG=cyan, TRACE=cyan}] %m%n"/>
|
<PatternLayout pattern="${pattern}" />
|
||||||
</Console>
|
</Console>
|
||||||
<RollingFile name="File"
|
<RollingFile name="File"
|
||||||
fileName="${log.dir}/${project.artifactId}.log"
|
fileName="${log.dir}/${project.artifactId}.log"
|
||||||
@ -32,7 +32,6 @@
|
|||||||
</Logger>
|
</Logger>
|
||||||
<Root level="${log.level}" additivity="false">
|
<Root level="${log.level}" additivity="false">
|
||||||
<AppenderRef ref="File" level="${log.level}" />
|
<AppenderRef ref="File" level="${log.level}" />
|
||||||
<AppenderRef ref="Console" level="${log.level}" />
|
|
||||||
</Root>
|
</Root>
|
||||||
</Loggers>
|
</Loggers>
|
||||||
</Configuration>
|
</Configuration>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# EChat-ota
|
# Ambition CRM
|
||||||
|
|
||||||
This README outlines the details of collaborating on this Ember application.
|
This README outlines the details of collaborating on this Ember application.
|
||||||
A short introduction of this app could easily go here.
|
A short introduction of this app could easily go here.
|
||||||
|
@ -43,7 +43,7 @@ export default BaseComponent.extend({
|
|||||||
me.set('isUpdating', false);
|
me.set('isUpdating', false);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
me.dialog.confirm('确认要更新吗?', () => {
|
me.dialog.confirm('Are you sure to update?', () => {
|
||||||
service.update(model, true);
|
service.update(model, true);
|
||||||
me.set('isUpdating', false);
|
me.set('isUpdating', false);
|
||||||
},
|
},
|
||||||
|
@ -44,7 +44,7 @@ export default BaseComponent.extend({
|
|||||||
save() {
|
save() {
|
||||||
let me = this;
|
let me = this;
|
||||||
if (!me.validate()) {
|
if (!me.validate()) {
|
||||||
me.dialog.confirm('确认要提交吗?', () => {
|
me.dialog.confirm('Are you sure to submit?', () => {
|
||||||
me.postData().then((m) => {
|
me.postData().then((m) => {
|
||||||
Ember.Logger.info('Post Model Result: ', m);
|
Ember.Logger.info('Post Model Result: ', m);
|
||||||
// write back
|
// write back
|
||||||
@ -82,7 +82,7 @@ export default BaseComponent.extend({
|
|||||||
alertMessage() {
|
alertMessage() {
|
||||||
let me = this;
|
let me = this;
|
||||||
me.message.alert(me.get('successMsg') ||
|
me.message.alert(me.get('successMsg') ||
|
||||||
(me.isCreate() ? '创建成功' : '更新成功'));
|
(me.isCreate() ? 'Created successfully' : 'Updated successfully'));
|
||||||
},
|
},
|
||||||
getModel() {
|
getModel() {
|
||||||
return this.get('route.controller.model');
|
return this.get('route.controller.model');
|
||||||
|
@ -3,6 +3,7 @@ import Ember from 'ember';
|
|||||||
export default Ember.Component.extend({
|
export default Ember.Component.extend({
|
||||||
elementId: 'main-container',
|
elementId: 'main-container',
|
||||||
classNames: ['main-container'],
|
classNames: ['main-container'],
|
||||||
|
sidebarCollapsed: false,
|
||||||
didInsertElement() {
|
didInsertElement() {
|
||||||
let me = this;
|
let me = this;
|
||||||
// Ember.$('body').removeClass().addClass('login-layout blur-login');
|
// Ember.$('body').removeClass().addClass('login-layout blur-login');
|
||||||
|
@ -7,9 +7,12 @@ export default BaseComponent.extend({
|
|||||||
role: 'button',
|
role: 'button',
|
||||||
rel: 'tooltip',
|
rel: 'tooltip',
|
||||||
href: 'javascript:;',
|
href: 'javascript:;',
|
||||||
|
enabledText: 'Enable',
|
||||||
|
disabledText: 'Disable',
|
||||||
enabled: Ember.computed.alias('model.enabled'),
|
enabled: Ember.computed.alias('model.enabled'),
|
||||||
title: Ember.computed('enabled', function() {
|
title: Ember.computed('enabled', function() {
|
||||||
return this.get('enabled') ? '禁用' : '启用';
|
let me = this;
|
||||||
|
return this.get('enabled') ? me.get('disabledText') : me.get('enabledText');
|
||||||
}),
|
}),
|
||||||
iconSizeClass: 'bigger-120',
|
iconSizeClass: 'bigger-120',
|
||||||
didReceiveAttrs() {
|
didReceiveAttrs() {
|
||||||
@ -27,7 +30,7 @@ export default BaseComponent.extend({
|
|||||||
},
|
},
|
||||||
click() {
|
click() {
|
||||||
let me = this;
|
let me = this;
|
||||||
me.dialog.confirm('确认要' + me.get('title') + '状态么?', () => {
|
me.dialog.confirm('Are you sure to ' + me.get('title') + ' row?', () => {
|
||||||
let model = me.get('model');
|
let model = me.get('model');
|
||||||
Ember.set(model, 'enabled', !me.get('enabled'));
|
Ember.set(model, 'enabled', !me.get('enabled'));
|
||||||
let params = me.get('params');
|
let params = me.get('params');
|
||||||
|
@ -28,7 +28,7 @@ export default BaseComponent.extend({
|
|||||||
me.ajax.doPost(false, 'auth/logout', () => {
|
me.ajax.doPost(false, 'auth/logout', () => {
|
||||||
me.set('user', null);
|
me.set('user', null);
|
||||||
Ember.$.sessionStorage.set('user', null);
|
Ember.$.sessionStorage.set('user', null);
|
||||||
me.get('message').alert('注销成功');
|
me.get('message').alert('Sign out successfully');
|
||||||
me.get('router').transitionTo('login');
|
me.get('router').transitionTo('login');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -36,7 +36,7 @@ export default Ember.Mixin.create({
|
|||||||
Object.keys(m).forEach((prop) => {
|
Object.keys(m).forEach((prop) => {
|
||||||
Ember.set(model, prop, m[prop]);
|
Ember.set(model, prop, m[prop]);
|
||||||
});
|
});
|
||||||
me.get('message').alert('更新成功');
|
me.get('message').alert('Updated successfully');
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
return p;
|
return p;
|
||||||
|
@ -30,7 +30,9 @@ Router.map(function() {
|
|||||||
this.route('edit', {path: '/:id/edit'}, function() {
|
this.route('edit', {path: '/:id/edit'}, function() {
|
||||||
this.route('customer-status-select', {path: '/customer-status-select/:page'});
|
this.route('customer-status-select', {path: '/customer-status-select/:page'});
|
||||||
});
|
});
|
||||||
this.route('show', {path: '/:id/show'});
|
this.route('show', {path: '/:id/show'}, function() {
|
||||||
|
this.route('customer-status-select', {path: '/customer-status-select/:page'});
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
this.route('customer-ytd-sale', function() {
|
this.route('customer-ytd-sale', function() {
|
||||||
|
@ -4,7 +4,7 @@ import BaseListRoute from './../base-list';
|
|||||||
const cols = ['showId',
|
const cols = ['showId',
|
||||||
'showName',
|
'showName',
|
||||||
'showDateAdded',
|
'showDateAdded',
|
||||||
'showYear',
|
'showYears',
|
||||||
'showYtdSale',
|
'showYtdSale',
|
||||||
'showCountryCode',
|
'showCountryCode',
|
||||||
'showState',
|
'showState',
|
||||||
@ -39,16 +39,16 @@ const config = {
|
|||||||
me.set('lock', false);
|
me.set('lock', false);
|
||||||
me.set('countOfShowing', cols.filter(col => {
|
me.set('countOfShowing', cols.filter(col => {
|
||||||
return me[col];
|
return me[col];
|
||||||
}).length);
|
}).length + 1);
|
||||||
}))
|
}))
|
||||||
};
|
};
|
||||||
|
|
||||||
cols.forEach((col) => {
|
cols.forEach((col) => {
|
||||||
config[col] = !['showYear', 'showCountryCode', 'showState', 'showCity'].includes(col);
|
config[col] = !['showCountryCode', 'showState', 'showCity'].includes(col);
|
||||||
});
|
});
|
||||||
config.countOfShowing = cols.filter(col => {
|
config.countOfShowing = cols.filter(col => {
|
||||||
return config[col];
|
return config[col];
|
||||||
}).length;
|
}).length + 1;
|
||||||
|
|
||||||
const TableOptions = Ember.Object.extend(config);
|
const TableOptions = Ember.Object.extend(config);
|
||||||
|
|
||||||
|
@ -3,8 +3,13 @@ import BaseEditRoute from '../base-edit';
|
|||||||
|
|
||||||
export default BaseEditRoute.extend({
|
export default BaseEditRoute.extend({
|
||||||
afterModel(model) {
|
afterModel(model) {
|
||||||
this.set('breadcrumbs',
|
let me = this;
|
||||||
|
me.set('breadcrumbs',
|
||||||
[{route: 'customer.list', params: 1, text: 'Customers'},
|
[{route: 'customer.list', params: 1, text: 'Customers'},
|
||||||
{text: 'Show Customer [' + model.id + ']'}]);
|
{text: 'Show Customer [' + model.id + ']'}]);
|
||||||
|
Ember.addObserver(model, 'status', function() {
|
||||||
|
Ember.Logger.info('Model Status Changed: ', model);
|
||||||
|
me.get('service').update(model, true);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -15,7 +15,7 @@ export default Ember.Route.extend({
|
|||||||
Ember.Logger.debug(`User ${user} Loggedin`);
|
Ember.Logger.debug(`User ${user} Loggedin`);
|
||||||
Ember.$.sessionStorage.set('user', user);
|
Ember.$.sessionStorage.set('user', user);
|
||||||
me.set('ajax.user', user);
|
me.set('ajax.user', user);
|
||||||
me.message.alert('登录成功');
|
me.message.alert('Sign in successfully');
|
||||||
// Log the user in, then reattempt previous transition if it exists.
|
// Log the user in, then reattempt previous transition if it exists.
|
||||||
let prevTransition = me.get('prevTransition');
|
let prevTransition = me.get('prevTransition');
|
||||||
if (prevTransition) {
|
if (prevTransition) {
|
||||||
|
@ -9,7 +9,7 @@ export default Ember.Service.extend({
|
|||||||
message: msg,
|
message: msg,
|
||||||
buttons: {
|
buttons: {
|
||||||
danger: {
|
danger: {
|
||||||
label: '关闭',
|
label: 'Close',
|
||||||
className: 'btn-danger',
|
className: 'btn-danger',
|
||||||
callback: fnClose || Ember.$.noop
|
callback: fnClose || Ember.$.noop
|
||||||
}
|
}
|
||||||
@ -21,12 +21,12 @@ export default Ember.Service.extend({
|
|||||||
message: msg,
|
message: msg,
|
||||||
buttons: {
|
buttons: {
|
||||||
success: {
|
success: {
|
||||||
label: '确定',
|
label: 'OK',
|
||||||
className: 'btn-success',
|
className: 'btn-success',
|
||||||
callback: fnYes
|
callback: fnYes
|
||||||
},
|
},
|
||||||
danger: {
|
danger: {
|
||||||
label: '取消',
|
label: 'Cancel',
|
||||||
className: 'btn-danger',
|
className: 'btn-danger',
|
||||||
callback: fnNo || Ember.$.noop
|
callback: fnNo || Ember.$.noop
|
||||||
}
|
}
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
{{outlet}}
|
{{outlet}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{top-navbar}}
|
{{top-navbar}}
|
||||||
{{#main-container}}
|
{{#main-container sidebarCollapsed=true}}
|
||||||
{{outlet}}
|
{{outlet}}
|
||||||
{{/main-container}}
|
{{/main-container}}
|
||||||
{{/if}}
|
{{/if}}
|
@ -19,7 +19,7 @@
|
|||||||
rel="tooltip"
|
rel="tooltip"
|
||||||
title=selectText}}
|
title=selectText}}
|
||||||
<i class="ace-icon {{if isFaBtnIcon 'fa' 'glyphicon'}} {{btnIcon}} bigger-110"></i>
|
<i class="ace-icon {{if isFaBtnIcon 'fa' 'glyphicon'}} {{btnIcon}} bigger-110"></i>
|
||||||
选择
|
Select
|
||||||
{{/link-to}}
|
{{/link-to}}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<!-- #section:basics/sidebar -->
|
<!-- #section:basics/sidebar -->
|
||||||
<div id="sidebar" class="sidebar responsive">
|
<div id="sidebar" class="sidebar responsive {{if sidebarCollapsed 'menu-min'}}">
|
||||||
<div class="sidebar-shortcuts" id="sidebar-shortcuts">
|
<div class="sidebar-shortcuts" id="sidebar-shortcuts">
|
||||||
|
|
||||||
{{#if ajax.user.admin}}
|
{{#if ajax.user.admin}}
|
||||||
@ -35,7 +35,7 @@
|
|||||||
<li class="">
|
<li class="">
|
||||||
{{#link-to 'user.list' 1}}
|
{{#link-to 'user.list' 1}}
|
||||||
<i class="menu-icon fa fa-user blue"></i>
|
<i class="menu-icon fa fa-user blue"></i>
|
||||||
<span class="menu-text"> User </span>
|
<span class="menu-text"> Users </span>
|
||||||
{{/link-to}}
|
{{/link-to}}
|
||||||
</li>
|
</li>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
@ -43,7 +43,7 @@
|
|||||||
<li class="">
|
<li class="">
|
||||||
{{#link-to 'customer.list' 1}}
|
{{#link-to 'customer.list' 1}}
|
||||||
<i class="menu-icon fa fa-address-book-o blue"></i>
|
<i class="menu-icon fa fa-address-book-o blue"></i>
|
||||||
<span class="menu-text"> Customer </span>
|
<span class="menu-text"> Customers </span>
|
||||||
{{/link-to}}
|
{{/link-to}}
|
||||||
</li>
|
</li>
|
||||||
{{#if ajax.user.admin}}
|
{{#if ajax.user.admin}}
|
||||||
|
@ -6,10 +6,11 @@
|
|||||||
<div class="modal-footer no-margin-top">
|
<div class="modal-footer no-margin-top">
|
||||||
<button type="button" class="btn btn-sm btn-secondary" data-dismiss="modal">
|
<button type="button" class="btn btn-sm btn-secondary" data-dismiss="modal">
|
||||||
<i class="ace-icon fa fa-times"></i>
|
<i class="ace-icon fa fa-times"></i>
|
||||||
取消
|
Cancel
|
||||||
</button>
|
</button>
|
||||||
<button type="button" class="btn btn-sm btn-primary" {{action (if submit submit (route-action 'submit'))}}>
|
<button type="button" class="btn btn-sm btn-primary" {{action (if submit submit (route-action 'submit'))}}>
|
||||||
<i class="ace-icon fa fa-check"></i>
|
<i class="ace-icon fa fa-check"></i>
|
||||||
确定</button>
|
OK
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
{{/modal-frame}}
|
{{/modal-frame}}
|
||||||
|
@ -309,14 +309,14 @@
|
|||||||
<li>
|
<li>
|
||||||
{{#link-to 'user.update-password'}}
|
{{#link-to 'user.update-password'}}
|
||||||
<i class="ace-icon fa fa-cog"></i>
|
<i class="ace-icon fa fa-cog"></i>
|
||||||
修改密码
|
Change Password
|
||||||
{{/link-to}}
|
{{/link-to}}
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
{{#link-to 'user.profile'}}
|
{{#link-to 'user.profile'}}
|
||||||
<i class="ace-icon fa fa-user"></i>
|
<i class="ace-icon fa fa-user"></i>
|
||||||
个人信息
|
Profile
|
||||||
{{/link-to}}
|
{{/link-to}}
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
@ -325,7 +325,7 @@
|
|||||||
<li>
|
<li>
|
||||||
<a href="#" {{action 'logout'}}>
|
<a href="#" {{action 'logout'}}>
|
||||||
<i class="ace-icon fa fa-power-off"></i>
|
<i class="ace-icon fa fa-power-off"></i>
|
||||||
注销登录
|
Sign Out
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
<div class="widget-body">
|
<div class="widget-body">
|
||||||
<!-- #section:custom/scrollbar -->
|
<!-- #section:custom/scrollbar -->
|
||||||
<div class="widget-main no-padding">
|
<div class="widget-main no-padding">
|
||||||
<table class="table table-striped table-bordered table-hover dataTable">
|
<table class="table table-striped table-bordered table-hover dataTable" style="border: 1px solid #ddd;">
|
||||||
<thead class="thin-border-bottom">
|
<thead class="thin-border-bottom">
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th>
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
{{#form-content}}
|
{{#form-content}}
|
||||||
{{form-input name='id' label='客户编号' readonly='readonly'}}
|
{{form-input name='id' label='Customer ID' readonly='readonly'}}
|
||||||
{{form-input name='name' label='客户名称' readonly='readonly'}}
|
{{form-input name='name' label='Name' readonly='readonly'}}
|
||||||
{{form-input name='countryCode' label='国家编号' readonly='readonly'}}
|
{{form-input name='countryCode' label='Country Code' readonly='readonly'}}
|
||||||
{{form-input name='state' label='省份' readonly='readonly'}}
|
{{form-input name='state' label='State' readonly='readonly'}}
|
||||||
{{form-input name='city' label='城市' readonly='readonly'}}
|
{{form-input name='city' label='City' readonly='readonly'}}
|
||||||
{{form-input name='ms' label='MS' readonly='readonly'}}
|
{{form-input name='ms' label='MS' readonly='readonly'}}
|
||||||
{{form-input name='region' label='地区' readonly='readonly'}}
|
{{form-input name='region' label='Region' readonly='readonly'}}
|
||||||
{{form-input name='salesperson' label='销售' readonly='readonly'}}
|
{{form-input name='salesperson' label='Salesperson' readonly='readonly'}}
|
||||||
{{form-input type='hidden' name='enabled'}}
|
{{form-input type='hidden' name='enabled'}}
|
||||||
|
|
||||||
{{form-input-modal-select
|
{{form-input-modal-select
|
||||||
@ -14,7 +14,7 @@
|
|||||||
idField='status'
|
idField='status'
|
||||||
nameField='statusText'
|
nameField='statusText'
|
||||||
btnIcon='fa-file-image-o'
|
btnIcon='fa-file-image-o'
|
||||||
label='客户状态'}}
|
label='Status'}}
|
||||||
<hr />
|
<hr />
|
||||||
{{form-footer-buttons type='update'}}
|
{{form-footer-buttons type='update'}}
|
||||||
{{/form-content}}
|
{{/form-content}}
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
<div class="widget-body">
|
<div class="widget-body">
|
||||||
<!-- #section:custom/scrollbar -->
|
<!-- #section:custom/scrollbar -->
|
||||||
<div class="widget-main no-padding">
|
<div class="widget-main no-padding">
|
||||||
<table class="table table-striped table-bordered table-hover dataTable">
|
<table class="table table-striped table-bordered table-hover dataTable" style="border: 1px solid #ddd;">
|
||||||
<thead class="thin-border-bottom">
|
<thead class="thin-border-bottom">
|
||||||
<tr>
|
<tr>
|
||||||
{{#if tableOptions.showId}}
|
{{#if tableOptions.showId}}
|
||||||
@ -38,7 +38,7 @@
|
|||||||
{{#if tableOptions.showDateAdded}}
|
{{#if tableOptions.showDateAdded}}
|
||||||
<th>Added</th>
|
<th>Added</th>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if tableOptions.showYear}}
|
{{#if tableOptions.showYears}}
|
||||||
<th>Years</th>
|
<th>Years</th>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if tableOptions.showYtdSale}}
|
{{#if tableOptions.showYtdSale}}
|
||||||
@ -101,27 +101,33 @@
|
|||||||
{{date-cell value=it.dateAdded format='D/M/YYYY'}}
|
{{date-cell value=it.dateAdded format='D/M/YYYY'}}
|
||||||
</td>
|
</td>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if tableOptions.showYear}}
|
{{#if tableOptions.showYears}}
|
||||||
<td>
|
<td>
|
||||||
{{it.years}}
|
{{#if (eq it.years.length 1)}}
|
||||||
|
{{it.years.firstObject}}
|
||||||
|
{{else if (gt it.years.length 1)}}
|
||||||
|
{{it.years.firstObject}}-{{it.years.lastObject}}
|
||||||
|
{{/if}}
|
||||||
</td>
|
</td>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if tableOptions.showYtdSale}}
|
{{#if tableOptions.showYtdSale}}
|
||||||
<td>
|
<td>
|
||||||
{{#if it.sumYtdSales}}
|
<div>
|
||||||
{{#if it.expand}}
|
{{#if it.sumYtdSales}}
|
||||||
<a style="cursor: pointer;" {{action (route-action 'collapseYtdSales' it)}}>
|
{{#if it.expand}}
|
||||||
<span class="ui-icon ace-icon fa fa-minus center bigger-110 blue">
|
<a style="cursor: pointer;" {{action (route-action 'collapseYtdSales' it)}}>
|
||||||
</span>
|
<span class="ui-icon ace-icon fa fa-minus center bigger-110 blue">
|
||||||
</a>
|
</span>
|
||||||
{{else}}
|
</a>
|
||||||
<a style="cursor: pointer;" {{action (route-action 'expandYtdSales' it)}}>
|
{{else}}
|
||||||
<span class="ui-icon ace-icon fa fa-plus center bigger-110 blue">
|
<a style="cursor: pointer;" {{action (route-action 'expandYtdSales' it)}}>
|
||||||
</span>
|
<span class="ui-icon ace-icon fa fa-plus center bigger-110 blue">
|
||||||
</a>
|
</span>
|
||||||
|
</a>
|
||||||
|
{{/if}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/if}}
|
|
||||||
{{number-us it.sumYtdSales}}
|
{{number-us it.sumYtdSales}}
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if tableOptions.showCountryCode}}
|
{{#if tableOptions.showCountryCode}}
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
{{ace-checkbox label='ID' value=model.tableOptions.showId}}
|
{{ace-checkbox label='ID' value=model.tableOptions.showId}}
|
||||||
{{ace-checkbox label='Name' value=model.tableOptions.showName}}
|
{{ace-checkbox label='Name' value=model.tableOptions.showName}}
|
||||||
|
{{ace-checkbox label='Years' value=model.tableOptions.showYears}}
|
||||||
{{ace-checkbox label='Date Added' value=model.tableOptions.showDateAdded}}
|
{{ace-checkbox label='Date Added' value=model.tableOptions.showDateAdded}}
|
||||||
{{ace-checkbox label='YTD Sales' value=model.tableOptions.showYtdSale}}
|
{{ace-checkbox label='YTD Sales' value=model.tableOptions.showYtdSale}}
|
||||||
{{ace-checkbox label='Country' value=model.tableOptions.showCountryCode}}
|
{{ace-checkbox label='Country' value=model.tableOptions.showCountryCode}}
|
||||||
|
@ -8,7 +8,12 @@
|
|||||||
{{form-input type='show' name='region' label='Region'}}
|
{{form-input type='show' name='region' label='Region'}}
|
||||||
{{form-input type='show' name='salesperson' label='Salesperson'}}
|
{{form-input type='show' name='salesperson' label='Salesperson'}}
|
||||||
|
|
||||||
{{form-input type='show' name='statusText' label='Status'}}
|
{{form-input-modal-select
|
||||||
|
listRoute='customer.show.customer-status-select'
|
||||||
|
idField='status'
|
||||||
|
nameField='statusText'
|
||||||
|
btnIcon='fa-file-image-o'
|
||||||
|
label='Status'}}
|
||||||
|
|
||||||
{{!form-input-enabled}}
|
{{!form-input-enabled}}
|
||||||
{{!form-input name='note' label='备注'}}
|
{{!form-input name='note' label='备注'}}
|
||||||
@ -16,7 +21,7 @@
|
|||||||
<div class="widget-box transparent">
|
<div class="widget-box transparent">
|
||||||
<div class="widget-header widget-header-small">
|
<div class="widget-header widget-header-small">
|
||||||
<div class="widget-toolbar action-buttons">
|
<div class="widget-toolbar action-buttons">
|
||||||
{{#link-to 'customer-issue.create' model.id title='新建'}}
|
{{#link-to 'customer-issue.create' model.id title='Create'}}
|
||||||
<i class="ace-icon fa fa-file-text-o blue"></i>
|
<i class="ace-icon fa fa-file-text-o blue"></i>
|
||||||
{{/link-to}}
|
{{/link-to}}
|
||||||
</div>
|
</div>
|
||||||
@ -66,8 +71,5 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{/form-input}}
|
{{/form-input}}
|
||||||
|
|
||||||
{{!--<hr />--}}
|
|
||||||
{{!form-footer-buttons type='update'}}
|
|
||||||
{{/form-content}}
|
{{/form-content}}
|
||||||
{{outlet}}
|
{{outlet}}
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
<div class="widget-body">
|
<div class="widget-body">
|
||||||
<!-- #section:custom/scrollbar -->
|
<!-- #section:custom/scrollbar -->
|
||||||
<div class="widget-main no-padding">
|
<div class="widget-main no-padding">
|
||||||
<table class="table table-striped table-bordered table-hover dataTable">
|
<table class="table table-striped table-bordered table-hover dataTable" style="border: 1px solid #ddd;">
|
||||||
<thead class="thin-border-bottom">
|
<thead class="thin-border-bottom">
|
||||||
<tr>
|
<tr>
|
||||||
{{sortable-th name='employeeId' text='Employee ID'}}
|
{{sortable-th name='employeeId' text='Employee ID'}}
|
||||||
@ -64,7 +64,7 @@
|
|||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<div class="hidden-sm hidden-xs btn-group">
|
<div class="hidden-sm hidden-xs btn-group">
|
||||||
{{status-toggle-button model=it}}
|
{{status-toggle-button model=it enabledText='active' disabledText='block'}}
|
||||||
{{#link-to 'user.edit' it.id class='btn btn-xs btn-info' title='Edit User'}}
|
{{#link-to 'user.edit' it.id class='btn btn-xs btn-info' title='Edit User'}}
|
||||||
<i class="ace-icon fa fa-pencil bigger-120"></i>
|
<i class="ace-icon fa fa-pencil bigger-120"></i>
|
||||||
{{/link-to}}
|
{{/link-to}}
|
||||||
@ -78,7 +78,7 @@
|
|||||||
|
|
||||||
<ul class="dropdown-menu dropdown-only-icon dropdown-yellow dropdown-menu-right dropdown-caret dropdown-close">
|
<ul class="dropdown-menu dropdown-only-icon dropdown-yellow dropdown-menu-right dropdown-caret dropdown-close">
|
||||||
<li>
|
<li>
|
||||||
{{status-toggle-button model=it iconOnly=true}}
|
{{status-toggle-button model=it iconOnly=true enabledText='active' disabledText='block'}}
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
|
@ -15,6 +15,7 @@ get_real_path() {
|
|||||||
eval "$2"="'$f'"
|
eval "$2"="'$f'"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
currDir=$(pwd)
|
||||||
get_real_path "$0" prg_path
|
get_real_path "$0" prg_path
|
||||||
echo "Script Path [$prg_path]"
|
echo "Script Path [$prg_path]"
|
||||||
|
|
||||||
@ -26,4 +27,6 @@ popd > /dev/null
|
|||||||
# ember build
|
# ember build
|
||||||
targetPath="$PROJECT_HOME/server/crm/src/main/resources/static"
|
targetPath="$PROJECT_HOME/server/crm/src/main/resources/static"
|
||||||
rm -rf "$targetPath"
|
rm -rf "$targetPath"
|
||||||
|
cd "$PROJECT_HOME/web"
|
||||||
ember b -prod -o "$targetPath"
|
ember b -prod -o "$targetPath"
|
||||||
|
cd "$currDir"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user