@@ -30,9 +30,9 @@
?>
>
| id;?> |
- productName?> |
- name?> |
- buildName?> |
+ productName?> |
+ name?> |
+ buildName?> |
date?> |
release->statusList[$release->status]?> |
diff --git a/module/block/view/storyblock.html.php b/module/block/view/storyblock.html.php
index 260031dac6..3a1abc1765 100644
--- a/module/block/view/storyblock.html.php
+++ b/module/block/view/storyblock.html.php
@@ -40,11 +40,7 @@
estimate?> |
-
-
- story->statusList, $story->status);?>
-
- |
+ story->statusList, $story->status);?> |
diff --git a/module/common/lang/en.php b/module/common/lang/en.php
index cc4bbc17fb..029645499d 100644
--- a/module/common/lang/en.php
+++ b/module/common/lang/en.php
@@ -104,7 +104,7 @@ $lang->common->common = 'Common Module';
/* 主导航菜单。*/
$lang->menu = new stdclass();
$lang->menu->my = 'Dashboard|my|index';
-$lang->menu->product = $lang->productCommon . '|product|index';
+$lang->menu->product = $lang->productCommon . '|product|index|locate=no';
$lang->menu->project = $lang->projectCommon . '|project|index';
$lang->menu->qa = 'QA|qa|index';
$lang->menu->doc = 'Doc|doc|index';
diff --git a/module/common/lang/zh-cn.php b/module/common/lang/zh-cn.php
index 33d83a193c..2d88adf10e 100644
--- a/module/common/lang/zh-cn.php
+++ b/module/common/lang/zh-cn.php
@@ -104,7 +104,7 @@ $lang->common->common = '公有模块';
/* 主导航菜单。*/
$lang->menu = new stdclass();
$lang->menu->my = ' 我的地盘|my|index';
-$lang->menu->product = $lang->productCommon . '|product|index';
+$lang->menu->product = $lang->productCommon . '|product|index|locate=no';
$lang->menu->project = $lang->projectCommon . '|project|index';
$lang->menu->qa = '测试|qa|index';
$lang->menu->doc = '文档|doc|index';
diff --git a/module/common/lang/zh-tw.php b/module/common/lang/zh-tw.php
index 8b36dffa47..02bca87613 100644
--- a/module/common/lang/zh-tw.php
+++ b/module/common/lang/zh-tw.php
@@ -30,6 +30,7 @@ $lang->runInfo = "《Z PUBLIC LICENSE授權協議1.2》。未經許可,不得去除、隱藏或遮掩禪道軟件的任何標誌及連結。";
$lang->reset = '重填';
+$lang->cancel = '取消';
$lang->refresh = '刷新';
$lang->edit = '編輯';
$lang->delete = '刪除';
@@ -103,7 +104,7 @@ $lang->common->common = '公有模組';
/* 主導航菜單。*/
$lang->menu = new stdclass();
$lang->menu->my = ' 我的地盤|my|index';
-$lang->menu->product = $lang->productCommon . '|product|index';
+$lang->menu->product = $lang->productCommon . '|product|index|locate=no';
$lang->menu->project = $lang->projectCommon . '|project|index';
$lang->menu->qa = '測試|qa|index';
$lang->menu->doc = '文檔|doc|index';
@@ -167,7 +168,7 @@ $lang->my = new stdclass();
$lang->my->menu = new stdclass();
$lang->my->menu->index = '首頁|my|index';
-$lang->my->menu->todo = array('link' => '待辦|my|todo|', 'subModule' => 'todo');
+$lang->my->menu->calendar = array('link' => '日程|my|calendar|', 'subModule' => 'todo', 'alias' => 'todo');
$lang->my->menu->task = array('link' => '任務|my|task|', 'subModule' => 'task');
$lang->my->menu->bug = array('link' => 'Bug|my|bug|', 'subModule' => 'bug');
$lang->my->menu->testtask = array('link' => '測試|my|testtask|', 'subModule' => 'testcase,testtask', 'alias' => 'testcase');
@@ -189,7 +190,6 @@ $lang->score->menu = $lang->my->menu;
$lang->product = new stdclass();
$lang->product->menu = new stdclass();
-$lang->product->menu->list = array('link' => '%s', 'fixed' => true);
$lang->product->menu->story = array('link' => '需求|product|browse|productID=%s', 'alias' => 'batchedit', 'subModule' => 'story');
$lang->product->menu->dynamic = '動態|product|dynamic|productID=%s';
$lang->product->menu->plan = array('link' => '計劃|productplan|browse|productID=%s', 'subModule' => 'productplan');
@@ -200,9 +200,6 @@ $lang->product->menu->branch = '@branch@|branch|manage|productID=%s';
$lang->product->menu->module = '模組|tree|browse|productID=%s&view=story';
$lang->product->menu->view = array('link' => '概況|product|view|productID=%s', 'alias' => 'edit');
$lang->product->menu->project = "{$lang->projectCommon}|product|project|status=all&productID=%s";
-$lang->product->menu->create = array('link' => " 添加{$lang->productCommon}|product|create", 'float' => 'right');
-$lang->product->menu->all = array('link' => " 所有{$lang->productCommon}|product|all|productID=%s", 'float' => 'right');
-$lang->product->menu->index = array('link' => "{$lang->productCommon}主頁|product|index|locate=no", 'float' => 'right');
$lang->story = new stdclass();
$lang->productplan = new stdclass();
@@ -218,7 +215,6 @@ $lang->release->menu = $lang->product->menu;
$lang->project = new stdclass();
$lang->project->menu = new stdclass();
-$lang->project->menu->list = array('link' => '%s', 'fixed' => true);
$lang->project->menu->task = array('link' => '任務|project|task|projectID=%s', 'subModule' => 'task,tree', 'alias' => 'grouptask,importtask,burn,importbug,kanban,printkanban,tree');
$lang->project->menu->story = array('link' => '需求|project|story|projectID=%s', 'subModule' => 'story', 'alias' => 'linkstory,storykanban');
$lang->project->menu->bug = 'Bug|project|bug|projectID=%s';
@@ -229,9 +225,6 @@ $lang->project->menu->team = array('link' => '團隊|project|team|projectID=
$lang->project->menu->doc = array('link' => '文檔|doc|objectLibs|type=project&objectID=%s&from=project', 'subModule' => 'doc');
$lang->project->menu->product = $lang->productCommon . '|project|manageproducts|projectID=%s';
$lang->project->menu->view = array('link' => '概況|project|view|projectID=%s', 'alias' => 'edit,start,suspend,putoff,close');
-$lang->project->menu->create = array('link' => " 添加{$lang->projectCommon}|project|create", 'float' => 'right');
-$lang->project->menu->all = array('link' => " 所有{$lang->projectCommon}|project|all|status=undone&projectID=%s", 'float' => 'right');
-$lang->project->menu->index = array('link' => "{$lang->projectCommon}主頁|project|index|locate=no", 'float' => 'right');
$lang->task = new stdclass();
$lang->build = new stdclass();
@@ -242,38 +235,32 @@ $lang->build->menu = $lang->project->menu;
$lang->qa = new stdclass();
$lang->qa->menu = new stdclass();
-$lang->qa->menu->product = array('link' => '%s', 'fixed' => true);
$lang->qa->menu->bug = array('link' => 'Bug|bug|browse|productID=%s');
$lang->qa->menu->testcase = array('link' => '用例|testcase|browse|productID=%s');
$lang->qa->menu->testtask = array('link' => '測試單|testtask|browse|productID=%s');
$lang->qa->menu->testsuite = array('link' => '套件|testsuite|browse|productID=%s');
$lang->qa->menu->report = array('link' => '報告|testreport|browse|productID=%s');
$lang->qa->menu->caselib = array('link' => '用例庫|testsuite|library');
-$lang->qa->menu->index = array('link' => "測試主頁|qa|index|locate=no&productID=%s", 'float' => 'right');
$lang->bug = new stdclass();
$lang->bug->menu = new stdclass();
-$lang->bug->menu->product = array('link' => '%s', 'fixed' => true);
$lang->bug->menu->bug = array('link' => 'Bug|bug|browse|productID=%s', 'alias' => 'view,create,batchcreate,edit,resolve,close,activate,report,batchedit,batchactivate,confirmbug,assignto', 'subModule' => 'tree');
$lang->bug->menu->testcase = array('link' => '用例|testcase|browse|productID=%s');
$lang->bug->menu->testtask = array('link' => '測試單|testtask|browse|productID=%s');
$lang->bug->menu->testsuite = array('link' => '套件|testsuite|browse|productID=%s');
$lang->bug->menu->report = array('link' => '報告|testreport|browse|productID=%s');
$lang->bug->menu->caselib = array('link' => '用例庫|testsuite|library');
-$lang->bug->menu->index = array('link' => "測試主頁|qa|index|locate=no&productID=%s", 'float' => 'right');
$lang->testcase = new stdclass();
$lang->testcase->menu = new stdclass();
-$lang->testcase->menu->product = array('link' => '%s', 'fixed' => true);
$lang->testcase->menu->bug = array('link' => 'Bug|bug|browse|productID=%s');
$lang->testcase->menu->testcase = array('link' => '用例|testcase|browse|productID=%s', 'alias' => 'view,create,batchcreate,edit,batchedit,showimport,groupcase,importfromlib', 'subModule' => 'tree');
$lang->testcase->menu->testtask = array('link' => '測試單|testtask|browse|productID=%s', 'alias' => 'view,create,edit,linkcase,cases,start,close,batchrun,groupcase,report');
$lang->testcase->menu->testsuite = array('link' => '套件|testsuite|browse|productID=%s', 'alias' => 'view,create,edit,linkcase');
$lang->testcase->menu->report = array('link' => '報告|testreport|browse|productID=%s', 'alias' => 'view,create,edit');
$lang->testcase->menu->caselib = array('link' => '用例庫|testsuite|library');
-$lang->testcase->menu->index = array('link' => "測試主頁|qa|index|locate=no&productID=%s", 'float' => 'right');
$lang->testtask = new stdclass();
$lang->testtask->menu = $lang->testcase->menu;
@@ -284,15 +271,12 @@ $lang->testreport->menu = $lang->testcase->menu;
$lang->caselib = new stdclass();
$lang->caselib->menu = new stdclass();
-$lang->caselib->menu->lib = array('link' => '%s', 'fixed' => true);
$lang->caselib->menu->bug = array('link' => 'Bug|bug|browse|');
$lang->caselib->menu->testcase = array('link' => '用例|testcase|browse|');
$lang->caselib->menu->testtask = array('link' => '測試單|testtask|browse|');
$lang->caselib->menu->testsuite = array('link' => '套件|testsuite|browse|');
$lang->caselib->menu->report = array('link' => '報告|testreport|browse|');
$lang->caselib->menu->caselib = array('link' => '用例庫|testsuite|library', 'alias' => 'createlib,createcase,libview,edit,batchcreatecase,showimport', 'subModule' => 'tree,testcase');
-$lang->caselib->menu->create = array('link' => "創建庫|testsuite|createLib|", 'float' => 'right');
-$lang->caselib->menu->index = array('link' => "測試主頁|qa|index|locate=no&productID=%s", 'float' => 'right');
/* 文檔視圖菜單設置。*/
$lang->doc = new stdclass();
@@ -438,25 +422,6 @@ $lang->error->noData = '沒有數據';
$lang->error->editedByOther = '該記錄可能已經被改動。請刷新頁面重新編輯!';
$lang->error->tutorialData = '新手模式下不會插入數據,請退出新手模式操作';
-if(!defined('PARAM_CODE_MISSING')) define('PARAM_CODE_MISSING', 301);
-if(!defined('PARAM_TOKEN_MISSING')) define('PARAM_TOKEN_MISSING', 302);
-if(!defined('INVALID_ENTRY')) define('INVALID_ENTRY', 311);
-if(!defined('EMPTY_KEY')) define('EMPTY_KEY', 312);
-if(!defined('IP_DENIED')) define('IP_DENIED', 321);
-if(!defined('INVALID_TOKEN')) define('INVALID_TOKEN', 331);
-if(!defined('SESSION_CODE_MISSING')) define('SESSION_CODE_MISSING', 341);
-if(!defined('SESSION_VERIFY_FAILED')) define('SESSION_VERIFY_FAILED', 342);
-
-$lang->error->entry = array();
-$lang->error->entry['PARAM_CODE_MISSING'] = '缺少code參數';
-$lang->error->entry['PARAM_TOKEN_MISSING'] = '缺少token參數';
-$lang->error->entry['INVALID_ENTRY'] = '應用不存在';
-$lang->error->entry['EMPTY_KEY'] = '應用未設置密鑰';
-$lang->error->entry['IP_DENIED'] = '該IP訪問被限制訪問';
-$lang->error->entry['INVALID_TOKEN'] = '不合法的token參數';
-$lang->error->entry['SESSION_CODE_MISSING'] = '缺少session code';
-$lang->error->entry['SESSION_VERIFY_FAILED'] = 'session驗證失敗';
-
/* 分頁信息。*/
$lang->pager = new stdclass();
$lang->pager->noRecord = "暫時沒有記錄";
@@ -557,14 +522,14 @@ $lang->icons['post'] = 'edit';
$lang->icons['batchCreate'] = 'plus-sign';
$lang->icons['batchEdit'] = 'edit-sign';
$lang->icons['batchClose'] = 'off';
-$lang->icons['edit'] = 'pencil';
-$lang->icons['delete'] = 'remove';
+$lang->icons['edit'] = 'edit';
+$lang->icons['delete'] = 'trash';
$lang->icons['copy'] = 'copy';
$lang->icons['report'] = 'bar-chart';
$lang->icons['export'] = 'download-alt';
$lang->icons['report-file'] = 'file-powerpoint';
$lang->icons['import'] = 'upload-alt';
-$lang->icons['finish'] = 'ok-sign';
+$lang->icons['finish'] = 'checked';
$lang->icons['resolve'] = 'ok-sign';
$lang->icons['start'] = 'play';
$lang->icons['restart'] = 'play';
@@ -573,11 +538,11 @@ $lang->icons['runCase'] = 'play';
$lang->icons['batchRun'] = 'play-sign';
$lang->icons['assign'] = 'hand-right';
$lang->icons['assignTo'] = 'hand-right';
-$lang->icons['change'] = 'random';
+$lang->icons['change'] = 'fork';
$lang->icons['link'] = 'link';
$lang->icons['close'] = 'off';
$lang->icons['activate'] = 'magic';
-$lang->icons['review'] = 'review';
+$lang->icons['review'] = 'glasses';
$lang->icons['confirm'] = 'search';
$lang->icons['confirmBug'] = 'search';
$lang->icons['putoff'] = 'calendar';
diff --git a/module/common/view/header.html.php b/module/common/view/header.html.php
index 2568c52540..00df0c1b38 100755
--- a/module/common/view/header.html.php
+++ b/module/common/view/header.html.php
@@ -38,7 +38,7 @@ if($extHookFiles) foreach($extHookFiles as $extHookFile) include $extHookFile;
',o={type:"default",placement:"top",time:4e3,parent:"body",icon:null,close:!0,fade:!0,scale:!0},s={},r=function(e,r){t.isPlainObject(e)&&(r=e,e=r.message);var l=this;r=l.options=t.extend({},o,r),l.id=r.id||n++;var c=s[l.id];c&&c.destroy(),s[l.id]=l,l.message=(r.icon?' ':"")+e,l.$=t(a.format(r)).toggleClass("fade",r.fade).toggleClass("scale",r.scale).attr("id","messager-"+l.id),r.cssClass&&l.$.addClass(r.cssClass);var d=!1,h=l.$.find(".messager-actions"),u=function(e){var n=t(' ');"close"===e.name&&n.addClass("close"),e.html!==i&&n.html(e.html),e.icon!==i&&n.append(' '),e.text!==i&&n.append(' '+e.text+""),e.tooltip!==i&&n.attr("title",e.tooltip).tooltip(),n.data("action",e),h.append(n)};r.actions&&t.each(r.actions,function(t,e){e.name===i&&(e.name=t),"close"==e.name&&(d=!0),u(e)}),!d&&r.close&&u({name:"close",html:"×"}),l.$.on("click",".action",function(e){var i,n=t(this).data("action");r.onAction&&(i=r.onAction.call(this,n.name,n,l),i===!1)||t.isFunction(n.action)&&(i=n.action.call(this,l),i===!1)||(l.hide(),e.stopPropagation())}),l.$.on("click",function(t){if(r.onAction){var e=r.onAction.call(this,"content",null,l);e===!0&&l.hide()}});var p=l.$.find(".messager-content").html(l.message);r.contentClass&&p.addClass(r.contentClass),l.$.data("zui.messager",l),r.show&&l.message!==i&&l.show()};r.prototype.update=function(e,i){var n=this,a=n.options;n.$.removeClass("messager-"+a.type),i&&(a=t.extend(a,i)),n.$.addClass("messager-"+a.type),e&&(n.message=(a.icon?' ':"")+e,n.$.find(".messager-content").html(n.message))},r.prototype.show=function(n,a){var o=this,s=this.options;if(t.isFunction(n)){var r=a;a=n,r!==i&&(n=r)}if(o.isShow)return void o.hide(function(){o.show(n,a)});o.hiding&&(clearTimeout(o.hiding),o.hiding=null),o.update(n);var l=s.placement,c=t(s.parent),d=c.children(".messagers-holder."+l);if(d.length||(d=t(" ").attr("class","messagers-holder "+l).appendTo(c)),d.append(o.$),"center"===l){var h=t(e).height()-d.height();d.css("top",Math.max(-h,h/2))}return o.$.show().addClass("in"),s.time&&(o.hiding=setTimeout(function(){o.hide()},s.time)),o.isShow=!0,a&&a(),o},r.prototype.hide=function(t,e){t===!0&&(e=!0,t=null);var i=this;if(i.$.hasClass("in")){i.$.removeClass("in");var n=function(){var e=i.$.parent();i.$.detach(),e.children().length||e.remove(),t&&t(!0)};e?n():setTimeout(n,200)}else t&&t(!1);i.isShow=!1},r.prototype.destroy=function(){var t=this;t.hide(function(){t.$.remove(),t.$=null},!0),delete s[t.id]},r.all=s,r.DEFAULTS=o;var l=function(){t(".messager").each(function(){var e=t(this).data("zui.messager");e&&e.hide&&e.hide(!0)})},c=function(e,n){"string"==typeof n&&(n={type:n}),n=t.extend({},n),n.id===i&&l();var a=s[n.id]||new r(e,n);return a.show(),a},d=function(t){return"string"==typeof t?{placement:t}:t},h={show:c,hide:l};t.each({primary:0,success:"ok-sign",info:"info-sign",warning:"warning-sign",danger:"exclamation-sign",important:0,special:0},function(e,i){h[e]=function(n,a){return c(n,t.extend({type:e,icon:i||null},d(a)))}}),t.zui({Messager:r,showMessager:c,messager:h})}(jQuery,window,void 0),function(t,e,i,n){"use strict";function a(t){if(t=t.toLowerCase(),t&&d.test(t)){var e;if(4===t.length){var i="#";for(e=1;e<4;e+=1)i+=t.slice(e,e+1).concat(t.slice(e,e+1));t=i}var n=[];for(e=1;e<7;e+=2)n.push(y("0x"+t.slice(e,e+2)));return{r:n[0],g:n[1],b:n[2],a:1}}throw new Error("Wrong hex string! (hex: "+t+")")}function o(e){return typeof e===f&&("transparent"===e.toLowerCase()||m[e.toLowerCase()]||d.test(t.trim(e.toLowerCase())))}function s(t){function e(t){return t=t<0?t+1:t>1?t-1:t,6*t<1?r+(s-r)*t*6:2*t<1?s:3*t<2?r+(s-r)*(2/3-t)*6:r}var i=t.h,n=t.s,a=t.l,o=t.a;i=c(i)%u/u,n=l(c(n)),a=l(c(a)),o=l(c(o));var s=a<=.5?a*(n+1):a+n-a*n,r=2*a-s,d={r:e(i+1/3)*h,g:e(i)*h,b:e(i-1/3)*h,a:o};return d}function r(t,i,n){return v(n)&&(n=0),v(i)&&(i=h),e.min(e.max(t,n),i)}function l(t,e){return r(t,e)}function c(t){return"number"==typeof t?t:parseFloat(t)}var d=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/,h=255,u=360,p=100,f="string",g="object",m={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},v=function(t){return t===n},_=function(t){return!v(t)},y=function(t){return parseInt(t)},b=function(t){return y(l(c(t),h))},w=function(t,e,i,n){var o=this;if(o.r=o.g=o.b=0,o.a=1,_(n)&&(o.a=l(c(n),1)),_(t)&&_(e)&&_(i))o.r=b(t),o.g=b(e),o.b=b(i);else if(_(t)){var r=typeof t;if(r==f)t=t.toLowerCase(),"transparent"===t?o.a=0:m[t]?this.rgb(a(m[t])):o.rgb(a(t));else if("number"==r&&v(e))o.r=o.g=o.b=b(t);else if(r==g&&_(t.r))o.r=b(t.r),_(t.g)&&(o.g=b(t.g)),_(t.b)&&(o.b=b(t.b)),_(t.a)&&(o.a=l(c(t.a),1));else if(r==g&&_(t.h)){var d={h:l(c(t.h),u),s:1,l:1,a:1};_(t.s)&&(d.s=l(c(t.s),1)),_(t.l)&&(d.l=l(c(t.l),1)),_(t.a)&&(d.a=l(c(t.a),1)),o.rgb(s(d))}}};w.prototype.rgb=function(t){var e=this;if(_(t)){if(typeof t==g)_(t.r)&&(e.r=b(t.r)),_(t.g)&&(e.g=b(t.g)),_(t.b)&&(e.b=b(t.b)),_(t.a)&&(e.a=l(c(t.a),1));else{var i=y(c(t));e.r=i,e.g=i,e.b=i}return e}return{r:e.r,g:e.g,b:e.b,a:e.a}},w.prototype.hue=function(t){var e=this,i=e.toHsl();return v(t)?i.h:(i.h=l(c(t),u),e.rgb(s(i)),e)},w.prototype.darken=function(t){var e=this,i=e.toHsl();return i.l-=t/p,i.l=l(i.l,1),e.rgb(s(i)),e},w.prototype.clone=function(){var t=this;return new w(t.r,t.g,t.b,t.a)},w.prototype.lighten=function(t){return this.darken(-t)},w.prototype.fade=function(t){return this.a=l(t/p,1),this},w.prototype.spin=function(t){var e=this.toHsl(),i=(e.h+t)%u;return e.h=i<0?u+i:i,this.rgb(s(e))},w.prototype.toHsl=function(){var t,i,n=this,a=n.r/h,o=n.g/h,s=n.b/h,r=n.a,l=e.max(a,o,s),c=e.min(a,o,s),d=(l+c)/2,p=l-c;if(l===c)t=i=0;else{switch(i=d>.5?p/(2-l-c):p/(l+c),l){case a:t=(o-s)/p+(o e.luma()){var n=e;e=t,t=n}return this.a<.5?t:(i=v(i)?.43:c(i),this.luma()0?t.a<1?"rgba("+t.r+","+t.g+","+t.b+","+t.a+")":t.hexStr():"transparent"},w.isColor=o,w.names=m,w.get=function(t){return new w(t)},t.zui({Color:w})}(jQuery,Math,window,void 0),function(t){"use strict";function e(e,i){if(e===!1)return e;if(!e)return i;e===!0?e={add:!0,"delete":!0,edit:!0,sort:!0}:"string"==typeof e&&(e=e.split(","));var n;return t.isArray(e)&&(n={},t.each(e,function(e,i){t.isPlainObject(i)?n[i.action]=i:n[i]=!0}),e=n),t.isPlainObject(e)&&(n={},t.each(e,function(e,i){i?n[e]=t.extend({type:e},s[e],t.isPlainObject(i)?i:null):n[e]=!1}),e=n),i?t.extend(!0,{},i,e):e}function i(e,i,n){return i=i||e.type,t(n||e.template).addClass("tree-action").attr(t.extend({"data-type":i,title:e.title||""},e.attr)).data("action",e)}var n="zui.tree",a=0,o=function(e,i){this.name=n,this.$=t(e),this.getOptions(i),this._init()},s={sort:{template:''},add:{template:''},edit:{template:''},"delete":{template:''}};o.DEFAULTS={animate:null,initialState:"normal",toggleTemplate:''},o.prototype.add=function(e,i,n,a,o){var s,r=t(e),l=this.options;if(r.is("li")?(s=r.children("ul"),s.length||(s=t(""),r.append(s),this._initList(s,r))):s=r,s){var c=this;t.isArray(i)||(i=[i]),t.each(i,function(e,i){var n=t("").data(i).appendTo(s);void 0!==i.id&&n.attr("data-id",i.id);var a=l.itemWrapper?t(l.itemWrapper===!0?'':l.itemWrapper).appendTo(n):n;if(i.html)a.html(i.html);else if(t.isFunction(c.options.itemCreator)){var o=c.options.itemCreator(n,i);o!==!0&&o!==!1&&a.html(o)}else i.url?a.append(t("",{href:i.url}).text(i.title||i.name)):a.append(t("").text(i.title||i.name));c._initItem(n,i.idx||e,s,i),i.children&&i.children.length&&c.add(n,i.children)}),this._initList(s),n&&!s.hasClass("tree")&&c.expand(s.parent("li"),a,o)}},o.prototype.reload=function(e){var i=this;e&&(i.$.empty(),i.add(i.$,e)),i.isPreserve&&i.store.time&&i.$.find("li:not(.tree-action-item)").each(function(){var e=t(this);i[i.store[e.data("id")]?"expand":"collapse"](e,!0,!0)})},o.prototype._initList=function(n,a,o,s){var r=this;n.hasClass("tree")?(o=0,a=null):(a=(a||n.closest("li")).addClass("has-list"),a.find(".list-toggle").length||a.prepend(this.options.toggleTemplate),o=o||a.data("idx"));var l=n.attr("data-idx",o||0).children("li:not(.tree-action-item)").each(function(e){r._initItem(t(this),e+1,n)});1!==l.length||l.find("ul").length||l.addClass("tree-single-item"),s=s||(a?a.data():null);var c=e(s?s.actions:null,this.actions);if(c){if(c.add&&c.add.templateInList!==!1){var d=n.children("li.tree-action-item");d.length?d.detach().appendTo(n):t('').append(i(c.add,"add",c.add.templateInList)).appendTo(n)}c.sort&&n.sortable(t.extend({dragCssClass:"tree-drag-holder",trigger:".sort-handler",selector:"li:not(.tree-action-item)",finish:function(t){r.callEvent("action",{action:c.sort,$list:n,target:t.target,item:s})}},c.sort.options,t.isPlainObject(this.options.sortable)?this.options.sortable:null))}a&&(a.hasClass("open")||s&&s.open)&&a.addClass("open in")},o.prototype._initItem=function(n,a,o,s){if(void 0===a){var r=n.prev("li");a=r.length?r.data("idx")+1:1}if(o=o||n.closest("ul"),n.attr("data-idx",a).removeClass("tree-single-item"),!n.data("id")){var l=a;o.hasClass("tree")||(l=o.parent("li").data("id")+"-"+l),n.attr("data-id",l)}s=s||n.data();var c=e(s.actions,this.actions);if(c){var d=n.find(".tree-actions");d.length||(d=t('').appendTo(this.options.itemWrapper?n.find(".tree-item-wrapper"):n),t.each(c,function(t,e){e&&d.append(i(e,t))}))}var h=n.children("ul");h.length&&this._initList(h,n,a,s)},o.prototype._init=function(){var i=this.options,o=this;this.actions=e(i.actions),this.$.addClass("tree"),i.animate&&this.$.addClass("tree-animate"),this._initList(this.$);var s=i.initialState,r=t.zui&&t.zui.store&&t.zui.store.enable;r&&(this.selector=n+"::"+(i.name||"")+"#"+(this.$.attr("id")||a++),this.store=t.zui.store[i.name?"get":"pageGet"](this.selector,{})),"preserve"===s&&(r?this.isPreserve=!0:this.options.initialState=s="normal"),this.reload(i.data),r&&(this.isPreserve=!0),"expand"===s?this.expand():"collapse"===s&&this.collapse(),this.$.on("click",'.list-toggle,a[href="#"],.tree-toggle',function(e){var i=t(this),n=i.parent("li");o.callEvent("hit",{target:n,item:n.data()}),o.toggle(n),i.is("a")&&e.preventDefault()}).on("click",".tree-action",function(){var e=t(this),i=e.data();if(i.action&&(i=i.action),"sort"!==i.type){var n=e.closest("li:not(.tree-action-item)");o.callEvent("action",{action:i,target:this,$item:n,item:n.data()})}})},o.prototype.preserve=function(e,i,n){if(this.isPreserve)if(e)i=i||e.data("id"),n=void 0===n&&e.hasClass("open"),n?this.store[i]=n:delete this.store[i],this.store.time=(new Date).getTime(),t.zui.store[this.options.name?"set":"pageSet"](this.selector,this.store);else{var a=this;this.store={},this.$.find("li").each(function(){a.preserve(t(this))})}},o.prototype.expand=function(t,e,i){t?(t.addClass("open"),!e&&this.options.animate?setTimeout(function(){t.addClass("in")},10):t.addClass("in")):t=this.$.find("li.has-list").addClass("open in"),i||this.preserve(t),this.callEvent("expand",t,this)},o.prototype.show=function(e,i,n){var a=this;e.each(function(){var e=t(this);if(a.expand(e,i,n),e)for(var o=e.parent("ul");o&&o.length&&!o.hasClass("tree");){var s=o.parent("li");s.length?(a.expand(s,i,n),o=s.parent("ul")):o=!1}})},o.prototype.collapse=function(t,e,i){t?!e&&this.options.animate?(t.removeClass("in"),setTimeout(function(){t.removeClass("open")},300)):t.removeClass("open in"):t=this.$.find("li.has-list").removeClass("open in"),i||this.preserve(t),this.callEvent("collapse",t,this)},o.prototype.toggle=function(t){var e=t&&t.hasClass("open")||t===!1||void 0===t&&this.$.find("li.has-list.open").length;this[e?"collapse":"expand"](t)},o.prototype.getOptions=function(e){this.options=t.extend({},o.DEFAULTS,this.$.data(),e),null===this.options.animate&&this.$.hasClass("tree-animate")&&(this.options.animate=!0)},o.prototype.toData=function(e,i){t.isFunction(e)&&(i=e,e=null),e=e||this.$;var n=this;return e.children("li:not(.tree-action-item)").map(function(){var e=t(this),a=e.data();delete a["zui.droppable"];var o=e.children("ul");return o.length&&(a.children=n.toData(o)),t.isFunction(i)?i(a,e):a}).get()},o.prototype.callEvent=function(e,i){var n;return t.isFunction(this.options[e])&&(n=this.options[e](i,this)),this.$.trigger(t.Event(e+"."+this.name,i)),n},t.fn.tree=function(e,i){return this.each(function(){var a=t(this),s=a.data(n),r="object"==typeof e&&e;s||a.data(n,s=new o(this,r)),"string"==typeof e&&s[e](i)})},t.fn.tree.Constructor=o,t(function(){t('[data-ride="tree"]').tree()})}(jQuery),/*!
+a||n.data("zui.popover",a=new e(this,o)),"string"==typeof i&&a[i]()})},t.fn.popover.Constructor=e,t.fn.popover.noConflict=function(){return t.fn.popover=i,this}}(window.jQuery),+function(t){"use strict";function e(){t(a).remove(),t(o).each(function(e){var a=i(t(this));a.hasClass("open")&&(a.trigger(e=t.Event("hide."+n)),e.isDefaultPrevented()||a.removeClass("open").trigger("hidden."+n))})}function i(e){var i=e.attr("data-target");i||(i=e.attr("href"),i=i&&/#/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,""));var n;try{n=i&&t(i)}catch(a){}return n&&n.length?n:e.parent()}var n="zui.dropdown",a=".dropdown-backdrop",o="[data-toggle=dropdown]",s=function(e){t(e).on("click."+n,this.toggle)};s.prototype.toggle=function(a){var o=t(this);if(!o.is(".disabled, :disabled")){var s=i(o),r=s.hasClass("open");if(e(),!r){if("ontouchstart"in document.documentElement&&!s.closest(".navbar-nav").length&&t('').insertAfter(t(this)).on("click",e),s.trigger(a=t.Event("show."+n)),a.isDefaultPrevented())return;s.toggleClass("open").trigger("shown."+n),o.focus()}return!1}},s.prototype.keydown=function(e){if(/(38|40|27)/.test(e.keyCode)){var n=t(this);if(e.preventDefault(),e.stopPropagation(),!n.is(".disabled, :disabled")){var a=i(n),s=a.hasClass("open");if(!s||s&&27==e.keyCode)return 27==e.which&&a.find(o).focus(),n.click();var r=t("[role=menu] li:not(.divider):visible a",a);if(r.length){var l=r.index(r.filter(":focus"));38==e.keyCode&&l>0&&l--,40==e.keyCode&&l ',o={type:"default",placement:"top",time:4e3,parent:"body",icon:null,close:!0,fade:!0,scale:!0},s={},r=function(e,r){t.isPlainObject(e)&&(r=e,e=r.message);var l=this;r=l.options=t.extend({},o,r),l.id=r.id||n++;var c=s[l.id];c&&c.destroy(),s[l.id]=l,l.message=(r.icon?' ':"")+e,l.$=t(a.format(r)).toggleClass("fade",r.fade).toggleClass("scale",r.scale).attr("id","messager-"+l.id),r.cssClass&&l.$.addClass(r.cssClass);var d=!1,h=l.$.find(".messager-actions"),u=function(e){var n=t('');"close"===e.name&&n.addClass("close"),e.html!==i&&n.html(e.html),e.icon!==i&&n.append(''),e.text!==i&&n.append(''+e.text+""),e.tooltip!==i&&n.attr("title",e.tooltip).tooltip(),n.data("action",e),h.append(n)};r.actions&&t.each(r.actions,function(t,e){e.name===i&&(e.name=t),"close"==e.name&&(d=!0),u(e)}),!d&&r.close&&u({name:"close",html:"×"}),l.$.on("click",".action",function(e){var i,n=t(this).data("action");r.onAction&&(i=r.onAction.call(this,n.name,n,l),i===!1)||t.isFunction(n.action)&&(i=n.action.call(this,l),i===!1)||(l.hide(),e.stopPropagation())}),l.$.on("click",function(t){if(r.onAction){var e=r.onAction.call(this,"content",null,l);e===!0&&l.hide()}});var p=l.$.find(".messager-content").html(l.message);r.contentClass&&p.addClass(r.contentClass),l.$.data("zui.messager",l),r.show&&l.message!==i&&l.show()};r.prototype.update=function(e,i){var n=this,a=n.options;n.$.removeClass("messager-"+a.type),i&&(a=t.extend(a,i)),n.$.addClass("messager-"+a.type),e&&(n.message=(a.icon?' ':"")+e,n.$.find(".messager-content").html(n.message))},r.prototype.show=function(n,a){var o=this,s=this.options;if(t.isFunction(n)){var r=a;a=n,r!==i&&(n=r)}if(o.isShow)return void o.hide(function(){o.show(n,a)});o.hiding&&(clearTimeout(o.hiding),o.hiding=null),o.update(n);var l=s.placement,c=t(s.parent),d=c.children(".messagers-holder."+l);if(d.length||(d=t("").attr("class","messagers-holder "+l).appendTo(c)),d.append(o.$),"center"===l){var h=t(e).height()-d.height();d.css("top",Math.max(-h,h/2))}return o.$.show().addClass("in"),s.time&&(o.hiding=setTimeout(function(){o.hide()},s.time)),o.isShow=!0,a&&a(),o},r.prototype.hide=function(t,e){t===!0&&(e=!0,t=null);var i=this;if(i.$.hasClass("in")){i.$.removeClass("in");var n=function(){var e=i.$.parent();i.$.detach(),e.children().length||e.remove(),t&&t(!0)};e?n():setTimeout(n,200)}else t&&t(!1);i.isShow=!1},r.prototype.destroy=function(){var t=this;t.hide(function(){t.$.remove(),t.$=null},!0),delete s[t.id]},r.all=s,r.DEFAULTS=o;var l=function(){t(".messager").each(function(){var e=t(this).data("zui.messager");e&&e.hide&&e.hide(!0)})},c=function(e,n){"string"==typeof n&&(n={type:n}),n=t.extend({},n),n.id===i&&l();var a=s[n.id]||new r(e,n);return a.show(),a},d=function(t){return"string"==typeof t?{placement:t}:t},h={show:c,hide:l};t.each({primary:0,success:"ok-sign",info:"info-sign",warning:"warning-sign",danger:"exclamation-sign",important:0,special:0},function(e,i){h[e]=function(n,a){return c(n,t.extend({type:e,icon:i||null},d(a)))}}),t.zui({Messager:r,showMessager:c,messager:h})}(jQuery,window,void 0),function(t,e,i,n){"use strict";function a(t){if(t=t.toLowerCase(),t&&d.test(t)){var e;if(4===t.length){var i="#";for(e=1;e<4;e+=1)i+=t.slice(e,e+1).concat(t.slice(e,e+1));t=i}var n=[];for(e=1;e<7;e+=2)n.push(y("0x"+t.slice(e,e+2)));return{r:n[0],g:n[1],b:n[2],a:1}}throw new Error("Wrong hex string! (hex: "+t+")")}function o(e){return typeof e===f&&("transparent"===e.toLowerCase()||m[e.toLowerCase()]||d.test(t.trim(e.toLowerCase())))}function s(t){function e(t){return t=t<0?t+1:t>1?t-1:t,6*t<1?r+(s-r)*t*6:2*t<1?s:3*t<2?r+(s-r)*(2/3-t)*6:r}var i=t.h,n=t.s,a=t.l,o=t.a;i=c(i)%u/u,n=l(c(n)),a=l(c(a)),o=l(c(o));var s=a<=.5?a*(n+1):a+n-a*n,r=2*a-s,d={r:e(i+1/3)*h,g:e(i)*h,b:e(i-1/3)*h,a:o};return d}function r(t,i,n){return v(n)&&(n=0),v(i)&&(i=h),e.min(e.max(t,n),i)}function l(t,e){return r(t,e)}function c(t){return"number"==typeof t?t:parseFloat(t)}var d=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/,h=255,u=360,p=100,f="string",g="object",m={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},v=function(t){return t===n},_=function(t){return!v(t)},y=function(t){return parseInt(t)},b=function(t){return y(l(c(t),h))},w=function(t,e,i,n){var o=this;if(o.r=o.g=o.b=0,o.a=1,_(n)&&(o.a=l(c(n),1)),_(t)&&_(e)&&_(i))o.r=b(t),o.g=b(e),o.b=b(i);else if(_(t)){var r=typeof t;if(r==f)t=t.toLowerCase(),"transparent"===t?o.a=0:m[t]?this.rgb(a(m[t])):o.rgb(a(t));else if("number"==r&&v(e))o.r=o.g=o.b=b(t);else if(r==g&&_(t.r))o.r=b(t.r),_(t.g)&&(o.g=b(t.g)),_(t.b)&&(o.b=b(t.b)),_(t.a)&&(o.a=l(c(t.a),1));else if(r==g&&_(t.h)){var d={h:l(c(t.h),u),s:1,l:1,a:1};_(t.s)&&(d.s=l(c(t.s),1)),_(t.l)&&(d.l=l(c(t.l),1)),_(t.a)&&(d.a=l(c(t.a),1)),o.rgb(s(d))}}};w.prototype.rgb=function(t){var e=this;if(_(t)){if(typeof t==g)_(t.r)&&(e.r=b(t.r)),_(t.g)&&(e.g=b(t.g)),_(t.b)&&(e.b=b(t.b)),_(t.a)&&(e.a=l(c(t.a),1));else{var i=y(c(t));e.r=i,e.g=i,e.b=i}return e}return{r:e.r,g:e.g,b:e.b,a:e.a}},w.prototype.hue=function(t){var e=this,i=e.toHsl();return v(t)?i.h:(i.h=l(c(t),u),e.rgb(s(i)),e)},w.prototype.darken=function(t){var e=this,i=e.toHsl();return i.l-=t/p,i.l=l(i.l,1),e.rgb(s(i)),e},w.prototype.clone=function(){var t=this;return new w(t.r,t.g,t.b,t.a)},w.prototype.lighten=function(t){return this.darken(-t)},w.prototype.fade=function(t){return this.a=l(t/p,1),this},w.prototype.spin=function(t){var e=this.toHsl(),i=(e.h+t)%u;return e.h=i<0?u+i:i,this.rgb(s(e))},w.prototype.toHsl=function(){var t,i,n=this,a=n.r/h,o=n.g/h,s=n.b/h,r=n.a,l=e.max(a,o,s),c=e.min(a,o,s),d=(l+c)/2,p=l-c;if(l===c)t=i=0;else{switch(i=d>.5?p/(2-l-c):p/(l+c),l){case a:t=(o-s)/p+(oe.luma()){var n=e;e=t,t=n}return this.a<.5?t:(i=v(i)?.43:c(i),this.luma()0?t.a<1?"rgba("+t.r+","+t.g+","+t.b+","+t.a+")":t.hexStr():"transparent"},w.isColor=o,w.names=m,w.get=function(t){return new w(t)},t.zui({Color:w})}(jQuery,Math,window,void 0),/*!
* Chart.js 1.0.2
* Copyright 2015 Nick Downie
* Released under the MIT license
@@ -55,10 +55,11 @@ function(){var t,e,i,n,a,o={}.hasOwnProperty,s=function(t,e){function i(){this.c
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*/
-!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&module.exports?module.exports=function(e,i){return void 0===i&&(i="undefined"!=typeof window?require("jquery"):require("jquery")(e)),t(i),i}:t(jQuery)}(function(t){"use strict";function e(e){var i=e.data;e.isDefaultPrevented()||(e.preventDefault(),t(e.target).closest("form").ajaxSubmit(i))}function i(e){var i=e.target,n=t(i);if(!n.is("[type=submit],[type=image]")){var a=n.closest("[type=submit]");if(0===a.length)return;i=a[0]}var o=i.form;if(o.clk=i,"image"===i.type)if(void 0!==e.offsetX)o.clk_x=e.offsetX,o.clk_y=e.offsetY;else if("function"==typeof t.fn.offset){var s=n.offset();o.clk_x=e.pageX-s.left,o.clk_y=e.pageY-s.top}else o.clk_x=e.pageX-i.offsetLeft,o.clk_y=e.pageY-i.offsetTop;setTimeout(function(){o.clk=o.clk_x=o.clk_y=null},100)}function n(){if(t.fn.ajaxSubmit.debug){var e="[jquery.form] "+Array.prototype.join.call(arguments,"");window.console&&window.console.log?window.console.log(e):window.opera&&window.opera.postError&&window.opera.postError(e)}}var a=/\r?\n/g,o={};o.fileapi=void 0!==t('').get(0).files,o.formdata=void 0!==window.FormData;var s=!!t.fn.prop;t.fn.attr2=function(){if(!s)return this.attr.apply(this,arguments);var t=this.prop.apply(this,arguments);return t&&t.jquery||"string"==typeof t?t:this.attr.apply(this,arguments)},t.fn.ajaxSubmit=function(e,i,a,r){function l(i){var n,a,o=t.param(i,e.traditional).split("&"),s=o.length,r=[];for(n=0;n',T).val(h.extraData[l].value).appendTo(x)[0]):s.push(c('',T).val(h.extraData[l]).appendTo(x)[0]));h.iframeTarget||g.appendTo(S),m.attachEvent?m.attachEvent("onload",r):m.addEventListener("load",r,!1),setTimeout(t,15);try{x.submit()}catch(c){document.createElement("form").submit.apply(x)}}finally{x.setAttribute("action",i),x.setAttribute("enctype",o),e?x.setAttribute("target",e):p.removeAttr("target"),c(s).remove()}}function r(t){if(!_.aborted&&!U){if((A=a(m))||(n("cannot access response document"),t=D),t===E&&_)return _.abort("timeout"),void C.reject(_,"timeout");if(t===D&&_)return _.abort("server abort"),void C.reject(_,"error","server abort");if(A&&A.location.href!==h.iframeSrc||w){m.detachEvent?m.detachEvent("onload",r):m.removeEventListener("load",r,!1);var e,i="success";try{if(w)throw"timeout";var o="xml"===h.dataType||A.XMLDocument||v.isXMLDoc(A);if(n("isXml="+o),!o&&window.opera&&(null===A.body||!A.body.innerHTML)&&--I)return n("requeing onLoad callback, DOM not available"),void setTimeout(r,250);var s=A.body?A.body:A.documentElement;_.responseText=s?s.innerHTML:null,_.responseXML=A.XMLDocument?A.XMLDocument:A,o&&(h.dataType="xml"),_.getResponseHeader=function(t){return{"content-type":h.dataType}[t.toLowerCase()]},s&&(_.status=Number(s.getAttribute("status"))||_.status,_.statusText=s.getAttribute("statusText")||_.statusText);var l=(h.dataType||"").toLowerCase(),c=/(json|script|text)/.test(l);if(c||h.textarea){var d=A.getElementsByTagName("textarea")[0];if(d)_.responseText=d.value,_.status=Number(d.getAttribute("status"))||_.status,_.statusText=d.getAttribute("statusText")||_.statusText;else if(c){var p=A.getElementsByTagName("pre")[0],f=A.getElementsByTagName("body")[0];p?_.responseText=p.textContent?p.textContent:p.innerText:f&&(_.responseText=f.textContent?f.textContent:f.innerText)}}else"xml"===l&&!_.responseXML&&_.responseText&&(_.responseXML=L(_.responseText));try{P=K(_,l,h)}catch(v){i="parsererror",_.error=e=v||i}}catch(v){n("error caught: ",v),i="error",_.error=e=v||i}_.aborted&&(n("upload aborted"),i=null),_.status&&(i=_.status>=200&&_.status<300||304===_.status?"success":"error"),"success"===i?(h.success&&h.success.call(h.context,P,"success",_),C.resolve(_.responseText,"success",_),u&&v.event.trigger("ajaxSuccess",[_,h])):i&&(void 0===e&&(e=_.statusText),h.error&&h.error.call(h.context,_,i,e),C.reject(_,"error",e),u&&v.event.trigger("ajaxError",[_,h,e])),u&&v.event.trigger("ajaxComplete",[_,h]),u&&!--v.active&&v.event.trigger("ajaxStop"),h.complete&&h.complete.call(h.context,_,i),U=!0,h.timeout&&clearTimeout(k),setTimeout(function(){h.iframeTarget?g.attr("src",h.iframeSrc):g.remove(),_.responseXML=null},100)}}}var l,c,h,u,f,g,m,_,y,b,w,k,x=p[0],C=t.Deferred();if(C.abort=function(t){_.abort(t)},i)for(c=0;c',T)).css({position:"absolute",top:"-1000px",left:"-1000px"}),m=g[0],_={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(t){var e="timeout"===t?"timeout":"aborted";n("aborting upload... "+e),this.aborted=1;try{m.contentWindow.document.execCommand&&m.contentWindow.document.execCommand("Stop")}catch(i){}g.attr("src",h.iframeSrc),_.error=e,h.error&&h.error.call(h.context,_,e,t),u&&i.event.trigger("ajaxError",[_,h,e]),h.complete&&h.complete.call(h.context,_,e)}},(u=h.global)&&0==t.active++&&t.event.trigger("ajaxStart"),u&&t.event.trigger("ajaxSend",[_,h]),h.beforeSend&&!1===h.beforeSend.call(h.context,_,h))return h.global&&t.active--,C.reject(),C;if(_.aborted)return C.reject(),C;(y=x.clk)&&(b=y.name)&&!y.disabled&&(h.extraData=h.extraData||{},h.extraData[b]=y.value,"image"===y.type&&(h.extraData[b+".x"]=x.clk_x,h.extraData[b+".y"]=x.clk_y));var E=1,D=2,M=t("meta[name=csrf-token]").attr("content"),F=t("meta[name=csrf-param]").attr("content");F&&M&&(h.extraData=h.extraData||{},h.extraData[F]=M),h.forceSync?o():setTimeout(o,10);var P,A,U,I=50,L=t.parseXML||function(t,e){return window.ActiveXObject?((e=new ActiveXObject("Microsoft.XMLDOM")).async="false",e.loadXML(t)):e=(new DOMParser).parseFromString(t,"text/xml"),e&&e.documentElement&&"parsererror"!==e.documentElement.nodeName?e:null},N=t.parseJSON||function(t){return window.eval("("+t+")")},K=function(e,i,n){var a=e.getResponseHeader("content-type")||"",o=("xml"===i||!i)&&a.indexOf("xml")>=0,s=o?e.responseXML:e.responseText;return o&&"parsererror"===s.documentElement.nodeName&&t.error&&t.error("parsererror"),n&&n.dataFilter&&(s=n.dataFilter(s,i)),"string"==typeof s&&(("json"===i||!i)&&a.indexOf("json")>=0?s=N(s):("script"===i||!i)&&a.indexOf("javascript")>=0&&t.globalEval(s)),s};return C}if(!this.length)return n("ajaxSubmit: skipping submit process - no element selected"),this;var d,h,u,p=this;"function"==typeof e?e={success:e}:"string"==typeof e||!1===e&&arguments.length>0?(e={url:e,data:i,dataType:a},"function"==typeof r&&(e.success=r)):void 0===e&&(e={}),d=e.method||e.type||this.attr2("method"),(u=(u="string"==typeof(h=e.url||this.attr2("action"))?t.trim(h):"")||window.location.href||"")&&(u=(u.match(/^([^#]+)/)||[])[1]),e=t.extend(!0,{url:u,success:t.ajaxSettings.success,type:d||t.ajaxSettings.type,iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},e);var f={};if(this.trigger("form-pre-serialize",[this,e,f]),f.veto)return n("ajaxSubmit: submit vetoed via form-pre-serialize trigger"),this;if(e.beforeSerialize&&!1===e.beforeSerialize(this,e))return n("ajaxSubmit: submit aborted via beforeSerialize callback"),this;var g=e.traditional;void 0===g&&(g=t.ajaxSettings.traditional);var m,v=[],_=this.formToArray(e.semantic,v,e.filtering);if(e.data){var y=t.isFunction(e.data)?e.data(_):e.data;e.extraData=y,m=t.param(y,g)}if(e.beforeSubmit&&!1===e.beforeSubmit(_,this,e))return n("ajaxSubmit: submit aborted via beforeSubmit callback"),this;if(this.trigger("form-submit-validate",[_,this,e,f]),f.veto)return n("ajaxSubmit: submit vetoed via form-submit-validate trigger"),this;var b=t.param(_,g);m&&(b=b?b+"&"+m:m),"GET"===e.type.toUpperCase()?(e.url+=(e.url.indexOf("?")>=0?"&":"?")+b,e.data=null):e.data=b;var w=[];if(e.resetForm&&w.push(function(){p.resetForm()}),e.clearForm&&w.push(function(){p.clearForm(e.includeHidden)}),!e.dataType&&e.target){var k=e.success||function(){};w.push(function(i,n,a){var o=arguments,s=e.replaceTarget?"replaceWith":"html";t(e.target)[s](i).each(function(){k.apply(this,o)})})}else e.success&&(t.isArray(e.success)?t.merge(w,e.success):w.push(e.success));if(e.success=function(t,i,n){for(var a=e.context||this,o=0,s=w.length;o0,S="multipart/form-data",E=p.attr("enctype")===S||p.attr("encoding")===S,D=o.fileapi&&o.formdata;n("fileAPI :"+D);var M,F=(T||E)&&!D;!1!==e.iframe&&(e.iframe||F)?e.closeKeepAlive?t.get(e.closeKeepAlive,function(){M=c(_)}):M=c(_):M=(T||E)&&D?function(i){for(var n=new FormData,a=0;a0)&&(a={url:a,data:o,dataType:s},"function"==typeof r&&(a.success=r)),a=a||{},a.delegation=a.delegation&&t.isFunction(t.fn.on),!a.delegation&&0===this.length){var l={s:this.selector,c:this.context};return!t.isReady&&l.s?(n("DOM not ready, queuing ajaxForm"),t(function(){t(l.s,l.c).ajaxForm(a)}),this):(n("terminating; zero elements found by selector"+(t.isReady?"":" (DOM not ready)")),this)}return a.delegation?(t(document).off("submit.form-plugin",this.selector,e).off("click.form-plugin",this.selector,i).on("submit.form-plugin",this.selector,a,e).on("click.form-plugin",this.selector,a,i),this):this.ajaxFormUnbind().on("submit.form-plugin",a,e).on("click.form-plugin",a,i)},t.fn.ajaxFormUnbind=function(){return this.off("submit.form-plugin click.form-plugin")},t.fn.formToArray=function(e,i,n){var a=[];if(0===this.length)return a;var s,r=this[0],l=this.attr("id"),c=e||void 0===r.elements?r.getElementsByTagName("*"):r.elements;if(c&&(c=t.makeArray(c)),l&&(e||/(Edge|Trident)\//.test(navigator.userAgent))&&(s=t(':input[form="'+l+'"]').get()).length&&(c=(c||[]).concat(s)),!c||!c.length)return a;t.isFunction(n)&&(c=t.map(c,n));var d,h,u,p,f,g,m;for(d=0,g=c.length;d'),p=i.children("canvas")),p.attr("width",u).attr("height",a);var f={labels:o,datasets:[{fillColor:"rgba(0,0,255,0.05)",strokeColor:"#0054EC",pointColor:"rgba(255,136,0,1)",pointStrokeColor:"#fff",data:o}]},g={animation:!0,scaleOverride:!0,scaleStepWidth:Math.ceil(l/10),scaleSteps:10,scaleStartValue:0,showScale:!1,showTooltips:!1,pointDot:!1,scaleShowGridLines:!1,datasetStrokeWidth:1},m=t(p).lineChart(f,g);i.data("sparklineChart",m)})},t(function(){t(".sparkline").sparkline()})}(jQuery),function(t){t(function(){t.fn.fixedDate=function(){return t(this).each(function(){var e=t(this);e.offset().top+200>t(document.body).height()&&e.attr("data-picker-position","top-right"),"0000-00-00"==e.val()&&e.focus(function(){"0000-00-00"==e.val()&&e.val("").datetimepicker("update")}).blur(function(){""==e.val()&&e.val("0000-00-00")})})};var e={language:t("html").attr("lang"),weekStart:1,todayBtn:1,autoclose:1,todayHighlight:1,startView:2,forceParse:0,showMeridian:1,format:"yyyy-mm-dd hh:ii",startDate:"1970-1-1"},i=t.extend({},e,{minView:2,format:"yyyy-mm-dd"}),n=t.extend({},e,{startView:1,minView:0,maxView:1,format:"hh:ii"});t(".datepicker-wrapper").click(function(){t(this).find(".form-date, .form-datetime, .form-time").datetimepicker("show").focus()}),window.datepickerOptions=e,t.fn.datepicker=function(e){return this.datetimepicker(t.extend({},i,e))},t.fn.timepicker=function(e){return this.datetimepicker(t.extend({},n,e))},t.fn.datepickerAll=function(){return this.find(".form-datetime").fixedDate().datetimepicker(e),this.find(".form-date").fixedDate().datepicker(),this.find(".form-time").fixedDate().timepicker(),this},t("body").datepickerAll()})}(jQuery),function(t){var e=function(e,i){i=t.extend({idStart:0,idEnd:9},i,e.data());var n=e.find(".template");!n.length&&i.template&&(n=t(i.template));var a={options:i};if(n.length){var o=e.find("tbody,.batch-rows"),s=n.remove().html(),r=function(e,a){var r=s;null!==e&&(r=r.replace(/\$idPlus/g,e+1).replace(/\$id/g,e));var l=t("<"+n[0].tagName.toLowerCase()+" />").html(r);return l.addClass(n.attr("class")).removeClass("template"),i.rowCreator&&i.rowCreator(l,e,i),a?a.after(l):o.append(l),t.fn.chosen&&l.find(".chosen").chosen(i.chosen),t.fn.datetimepicker&&l.datepickerAll(),l};t.extend(a,{createRow:r,template:s});for(var l=i.idStart;l<=i.idEnd;++l)r(l)}e.data("zui.batchActionForm",a)};t.fn.batchActionForm=function(i){return this.each(function(){e(t(this),i)})}}(jQuery),function(t){"use strict";var e="zui.table",i={zh_cn:{selectedItems:"已选择 {0} 项",attrTotal:"{0}总计 {1}"},zh_tw:{selectedItems:"已选择 {0} 项",attrTotal:"{0}总计 {1}"},en:{selectedItems:"Seleted {0} items",attrTotal:"{0} total {1}"}},n=function(a,o){var s=this;s.name=e;var r=s.$=t(a);o=s.options=t.extend({},n.DEFAULTS,this.$.data(),o);var l=o.lang||"zh_cn";s.lang=t.isPlainObject(l)?t.extend(!0,{},i[l.lang||t.zui.clientLang()],l):i[l];var c=s.$table=r.is("table")?r:r.find("table"),d=s.$tbody=c.find("tbody");s.$header=c.find("thead");var h=(s.$footer=r.find(".table-footer"),s.$form=r.is("form")?r:r.find("form"));o.checkable&&(r.on("click",".check-all",function(){s.checkAll(!t(this).hasClass("checked"))}),d.on("click","tr",function(){s.checkRow(t(this))}).on("click",'input[type="checkbox"]',function(e){e.stopPropagation();var i=t(this);s.checkRow(i.closest("tr"),i.is(":checked"))}).on("click","a,.btn",function(t){t.stopPropagation()}),o.selectable&&d.selectable(t.extend({},{selector:"tr",selectClass:"",trigger:".c-id",clickBehavior:"multi",listenClick:!1,select:function(t){s.checkRow(t.target,!0)},unselect:function(t){s.checkRow(t.target,!1)},rangeStyle:{border:"1px solid #006af1",backgroundColor:"rgba(50, 128, 252, 0.2)",borderRadius:"2px"}},t.isPlainObject(o.selectable)?o.selectable:null))),h.length&&(o.ajaxForm?h.ajaxForm(t.isPlainObject(o.ajaxForm)?o.ajaxForm:null):h.on("click","[data-form-action]",function(){h.attr("action",t(this).data("formAction")).submit()})),(o.fixFooter||o.fixHeader)&&(s.pageFooterHeight=t("#footer").outerHeight(),s.updateFixUI(),t(window).on("scroll resize",function(){s.updateFixUI()})),s.$statistic=r.find(".table-statistic"),s.updateStatistic()};n.prototype.updateStatistic=function(){var e=this,i=e.$statistic;if(i.length){var n=e.statisticCols;if(!n&&n!==!1){n={};var a=!1;e.$header.find("th").each(function(e){var i=t(this),o=i.data("statistic");o&&(a=!0,n[e]={format:o,name:i.text()})}),e.statisticCols=!!a&&n}var o=0;n&&t.each(n,function(t){n[t].total=0,n[t].checkedTotal=0}),e.$tbody.children("tr").each(function(e){var i=t(this),a=i.hasClass("checked"),s=i.children("td");a&&o++,n&&t.each(n,function(t){var e=parseFloat(s.eq(t).text());isNaN(e)&&(e=0),n[t].total+=e,a&&(n[t].checkedTotal+=e)})});var s=[];o&&s.push(e.lang.selectedItems.format(o)),n&&t.each(n,function(t){var i=n[t],a=i[o?"checkedTotal":"total"];i.format&&(a=i.format.format(a)),s.push(e.lang.attrTotal.format(i.name,a))}),i.text(s.join(", "))}},n.prototype.updateFixUI=function(t){var e=this,i=(new Date).getTime();return!t&&(e.lastUpdateCall&&clearTimeout(e.lastUpdateCall),!e.lastUpdateTime||i-e.lastUpdateTime<100)?void(e.lastUpdateCall=setTimeout(function(){e.updateFixUI(!0)},30)):(e.lastUpdateTime=i,e.lastUpdateCall&&(clearTimeout(e.lastUpdateCall),e.lastUpdateCall=null),e.options.fixHeader&&e.fixHeader(),void(e.options.fixFooter&&e.fixFooter()))},n.prototype.fixHeader=function(){var e=this,i=e.$header,n=i[0].getBoundingClientRect(),a=e.options.fixFooter,o=t.isFunction(a)?a(n,i):n.top<("number"==typeof a?a:-5),s=e.$.find("table.fixed-header-copy");if(o){s.length||(s=t('').addClass(e.$table.attr("class")).append(i.clone()).insertAfter(e.$table)),s.css({top:0,left:n.left,position:"fixed",width:n.width});var r=s.find("th");i.find("th").each(function(e){r.eq(e).css("width",t(this).outerWidth())})}else s.remove()},n.prototype.fixFooter=function(){var e=this,i=e.$footer,n=e.$tbody,a=n[0].getBoundingClientRect(),o=e.options.fixFooter;i.toggleClass("fixed-footer",!!s);var s=t.isFunction(o)?o(a,i):a.bottom>window.innerHeight-50-("number"==typeof o?o:e.pageFooterHeight||5);i.toggleClass("fixed-footer",!!s),s?i.css({bottom:e.pageFooterHeight,left:a.left,width:a.width}):i.css({width:""})},n.prototype.checkAll=function(e){var i=this,n=i.$tbody.find("tr");n.each(function(){i.checkRow(t(this),e,!0)}),i.updateCheckUI()},n.prototype.checkRow=function(t,e,i){var n=t.find('input[type="checkbox"]');void 0===e&&(e=!n.is(":checked")),t.toggleClass("checked",e),n.prop("checked",e),i||this.updateCheckUI()},n.prototype.updateCheckUI=function(){var e=this.$tbody.find("tr"),i=!1,n=null,a=0,o=!1,s=e.length;e.each(function(e){var r=t(this);o=r.hasClass("checked"),r.toggleClass("row-check-begin",o&&!i),n&&n.toggleClass("row-check-end",!o&&i),o&&(a+=1),n=r,i=o,s===e+1&&r.toggleClass("row-check-end",o)}),this.$.toggleClass("has-row-checked",a>0).find(".check-all").toggleClass("checked",a===s),this.updateStatistic()},n.DEFAULTS={checkable:!0,ajaxForm:!1,selectable:!0,fixHeader:!0,fixFooter:!0},t.fn.table=function(i){return this.each(function(){var a=t(this),o=a.data(e),s="object"==typeof i&&i;o||a.data(e,o=new n(this,s)),"string"==typeof i&&o[i]()})},n.NAME=e,t.fn.table.Constructor=n,t(function(){t('[data-ride="table"]').table()})}(jQuery),function(t,e,i){t.fn._ajaxForm=t.fn.ajaxForm;var n={timeout:e.config?e.config.timeout:0,dataType:"json",errControlStyle:{borderColor:"#D2322D"}},a="";t.fn.enableForm=function(e){return e===i&&(e=!0),this.each(function(){var i=t(this);i.find('[type="submit"]').attr("disabled",e?null:"disabled"),i.hasClass("load-indicator")&&i.toggleClass("loading",!e)})};var o=function(e,i,n){"string"==typeof i&&(n=i,i=null),n=n||"show",t.zui.messager?t.zui.messager[n](e,i):alert(e)};t.ajaxForm=function(s,r){var l=t(s);if(l.length>1)return l.each(function(){t.ajaxForm(this,r)});t.isFunction(r)&&(r={complete:r}),r=t.extend({},n,l.data(),r);var c=r.beforeSubmit,d=r.error,h=r.success,u=r.finish;delete r.finish,delete r.success,delete r.onError,delete r.beforeSubmit;var p=r.errControlStyle;delete r.errControlStyle,r=t.extend({beforeSubmit:function(n,o,s){if(l.enableForm(!1),(c&&c(n,o,s))!==!1){var d={},h=o.find('[type="file"]');d.fileapi=h.length&&h[0].files!==i,d.formdata=e.FormData!==i;var u=d.fileapi&&o.find('input[type="file"]:enabled').filter(function(){return""!==t(this).val()}),p=u.length,f="multipart/form-data",g=o.attr("enctype")==f||o.attr("encoding")==f,m=d.fileapi&&d.formdata,v=(p||g)&&!m;v&&(""==a&&(a=r.url),r.url!=a&&(r.url=a),r.url=r.url.indexOf("&")>=0?r.url+"&HTTP_X_REQUESTED_WITH=XMLHttpRequest":r.url+"?HTTP_X_REQUESTED_WITH=XMLHttpRequest")}},success:function(i,n,a){if(l.enableForm(),(h&&h(i,n,a,l))!==!1){try{"string"==typeof i&&(i=JSON.parse(i))}catch(s){}if("object"!=typeof i)return i?alert(i):o("No response.","danger");var c=r.responser?t(r.responser):l.find(".form-responser");c.length||(c=t("#responser"));var d=i.message;if("success"===i.result){if(d){var f=l.find('[type="submit"]'),g=!1;f.length&&(f.popover({container:"body",trigger:"manual",content:d,tipClass:"popover-in-modal popover-success text-success",placement:i.placement||r.popoverPlacement||"right"}).popover("show"),setTimeout(function(){f.popover("destroy")},r.popoverTime||2e3),g=!0),c.length&&(c.html(''+d+"").show().delay(3e3).fadeOut(100),g=!0),g||o(d,"success")}if(u)return u(i,!0,l);if((r.closeModal||i.closeModal)&&setTimeout(t.zui.closeModal,r.closeModalTime||2e3),i.callback){var m=e[i.callback];if(t.isFunction(m)&&m()===!1)return}var v=r.locate||i.locate;if(v)if("loadInModal"==v){var _=t(".modal");setTimeout(function(){_.load(_.attr("ref"),function(){t(this).find(".modal-dialog").css("width",t(this).data("width")),t.zui.ajustModalPosition()})},1e3)}else{var y="reload"==v?e.location.href:v;setTimeout(function(){e.location.href=y},1200)}var b=r.ajaxReload||i.ajaxReload;if(b){var w=t(b);w.length&&w.load(e.location.href+" "+b,function(){w.find('[data-toggle="modal"]').modalTrigger()})}}else{if("string"==typeof d)c.length?c.html(''+d+"").show().delay(3e3).fadeOut(100):o(d,"danger");else if("object"==typeof d){var k=!1,x=[];t.each(d,function(e,i){var n=t.isArray(i)?i.join(";"):i,a=t("#"+e);if(!a.length)return void x.push(n);var o=e+"Label",s=t("#"+o);if(!s.length){var r=a.closest(".input-group").length;s=t('').appendTo(r?a.closest(".input-group").parent():a.parent())}s.empty().append(n),a.css(p).addClass("has-error");var l=function(){var e=t("#"+o);if(e.length)return e.remove(),a.removeAttr("style").removeClass("has-error"),!0};a.on("change input mousedown",l);var c=t("#"+e+"_chosen");c.length&&c.find(".chosen-single").css(p).addClass("has-error").on("mousedown",function(){l()===!0&&t(this).removeAttr("style").removeClass("has-error")}),k||(a.focus(),k=!0)}),x.length&&o(x.join(";"),"danger")}if(u)return u(i,!1,l)}}},error:function(t,i,n){if((d&&d(t,i,n,l))!==!1){l.enableForm();var a="timeout"==i||"error"==i?e.lang?e.lang.timeout:i:t.responseText+i+n;o(a,"danger")}}},r),l._ajaxForm(r),l.on("click","[data-form-action]",function(){l.attr("action",t(this).data("formAction")).submit()})},t.fn.ajaxForm=function(e){return this.each(function(){t.ajaxForm(this,e)})},t(function(){t('.form-ajax,form[data-type="ajax"]').ajaxForm()})}(jQuery,window,void 0),function(t){"use strict";var e="zui.searchList",i=function(t,e){if(t&&t.length)for(var i=0;i').append(o)),e.$menu.append(o),e.$menu.removeClass("loading")},error:function(){e.$menu.removeClass("loading").append(''+(i.errorText||window.lang&&window.lang.timeout)+" ")}},i.ajax))},n.prototype.scrollTo=function(t){t.length&&t[0].scrollIntoView({behavior:"smooth"})},n.prototype.getItems=function(){return this.$.find(this.options.selector)},n.prototype.getActiveItem=function(){return this.getItems().filter(".active:first")},n.prototype.search=function(e){var n=this,a=void 0===e||null===e||""===e,o=n.getItems().removeClass("active");if(a)o.removeClass("hidden");else{var s=t.trim(e).split(" ");o.each(function(){var e=t(this),n=e.text()+" "+(e.data("key")||e.data("filter"));e.toggleClass("hidden",!i(s,n))})}n.scrollTo(o.not(".hidden").first().addClass("active"))},n.DEFAULTS={selector:".list-group a",searchBox:".search-box",onSelectItem:null},t.fn.searchList=function(i){return this.each(function(){var a=t(this),o=a.data(e),s="object"==typeof i&&i;o||a.data(e,o=new n(this,s)),"string"==typeof i&&o[i]()})},n.NAME=e,t.fn.searchList.Constructor=n,t(function(){t('[data-ride="searchList"]').searchList()})}(jQuery),function(t){window.config||(window.config={}),t.createLink=window.createLink=function(t,e,n,a,o){if(a||(a=config.defaultView),o||(o=!1),n)for(n=n.split("&"),i=0;i'+h+"")}}t.val()||(time=e(o.format("hh:mm")),time=time-time%10+10,t.val(n(time)))};t.fn.timeSpanControl=function(i){return this.each(function(){var s=t(this),r=t.extend({},i,s.data()),l=s.find('[name="begin"],.control-time-begin'),c=s.find('[name="end"],.control-time-end'),d=function(){var t=l.val();if(s.find(".hide-empty-begin").toggleClass("hide",!t),t){const i=n(e(t)+30);c.find('option[value="'+i+'"]').length&&c.val(i),r.onChange&&r.onChange(c,i)}};if(s.data("timeSpanControlInit")){if(r.begin){const h=a(r.begin).format("hh:mm");l.find('option[value="'+h+'"]').length&&l.val(h),r.onChange&&r.onChange(l,h)}if(r.end){const u=a(r.end).format("hh:mm");c.find('option[value="'+u+'"]').length&&c.val(u),r.onChange&&r.onChange(c,u)}}else l.on("change",d),o(l,r.begin),o(c,r.end),s.data("timeSpanControlInit",!0);r.end||d()})},t.timeSpanControl={convertTimeToNum:e,convertNumToTime:n,initTimeSelect:o,createTime:a},t.fn.blockTodoes=function(){return this.each(function(){var e=t(this),i=e.find("form"),n=i.find('[name="title"]'),a=function(t){void 0===t&&(t=!e.hasClass("show-form")),e.toggleClass("show-form",t),t&&setTimeout(function(){n.focus()},50)};e.on("click",".todo-form-trigger",function(){a(t(this).data("trigger"))}),i.timeSpanControl({onChange:function(t){t.trigger("chosen:updated")}})})},t(function(){t(".block-todoes").blockTodoes()});var s=t("#searchTypeMenu"),r=t("#searchType"),l=function(e){e||(e=r.val()),e=e||"bug",r.val(e),s.find("li.selected").removeClass("selected");var i=s.find('a[data-value="'+e+'"]'),n=i.text();i.parent().addClass("selected"),t("#searchTypeName").text(n)};l(),s.on("click","a[data-value]",function(){l(t(this).data("value"))}),t.chosenDefaultOptions={disable_search_threshold:4},t.fn._chosen=t.fn.chosen,t.fn.chosen=function(e){this._chosen(t.extend({},t.chosenDefaultOptions,e))},t.extend(t.fn.pager.Constructor.DEFAULTS,{maxNavCount:8,prevIcon:"icon-angle-left",nextIcon:"icon-angle-right",navEllipsisItem:"…",menuDirection:"dropup",pageSizeOptions:[5,10,15,20,25,30,35,40,45,50,100,200,500,1e3,2e3],elements:["total_text","size_menu","prev_icon","nav","next_icon"],onPageChange:function(t,e){console.log("onPageChange",t,e),t.recPerPage!==e.recPerPage&&(window.location.href=this.createLink())}}),t.zui.Messager.DEFAULTS.cssClass="messagger-zt",t.fn.reverseOrder=function(){return this.each(function(){var e=t(this);e.prependTo(e.parent())})};var c=function(e,i){var n=t(e);i=t.extend({},n.data(),i);var a=n.find(".histories-list"),o=!0,s=!1;n.on("click",".btn-reverse",function(){a.children("li").reverseOrder(),o=!o,t(this).find(".icon").toggleClass("icon-arrow-up",o).toggleClass("icon-arrow-down",!o)}).on("click",".btn-expand-all",function(){var e=t(this).find(".icon");s=!s,e.toggleClass("icon-plus",!s).toggleClass("icon-minus",s),a.children("li").toggleClass("show-changes",s)}).on("click",".btn-expand",function(){t(this).closest("li").toggleClass("show-changes")}).on("click",".btn-strip",function(){var e=t(this),n=e.find(".icon"),a=n.hasClass("icon-code");n.toggleClass("icon-code",!a).toggleClass("icon-text",a),e.attr("title",a?i.original:i.textdiff),e.closest("li").toggleClass("show-original",a)}),a.find(".btn-strip").attr("title",i.original);var r=n.find(".modal-comment").modal({show:!1,backdrop:!1,position:function(t){var e=a[0].getBoundingClientRect(),i=t.$element.find(".modal-dialog"),n=i.outerWidth(),o=i.outerHeight();return{top:Math.min(window.innerHeight-o,e.top-40),left:e.left+e.width-n,margin:0}}});n.on("click",".btn-comment",function(){r.modal("toggle")}).on("click",".btn-edit-comment,.btn-hide-form",function(){t(this).closest("li").toggleClass("show-form")});var l=n.find(".comment-edit-form");l.ajaxForm({success:function(t,e,i,n){setTimeout(function(){l.closest("li").removeClass("show-form")},2e3)}})};t.fn.histories=function(t){return this.each(function(){c(this,t)})},t(function(){t(".histories").histories()})}(jQuery),function(window,undefined){function _isArray(t){return!!t&&"[object Array]"===Object.prototype.toString.call(t)}function _isFunction(t){return!!t&&"[object Function]"===Object.prototype.toString.call(t)}function _inArray(t,e){for(var i=0,n=e.length;i=0}function _addUnit(t,e){return e=e||"px",t&&/^\d+$/.test(t)?t+e:t}function _removeUnit(t){var e;return t&&(e=/(\d+)/.exec(t))?parseInt(e[1],10):0}function _escape(t){return t.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}function _unescape(t){return t.replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/&/g,"&")}function _toCamel(t){var e=t.split("-");return t="",_each(e,function(e,i){t+=e>0?i.charAt(0).toUpperCase()+i.substr(1):i}),t}function _toHex(t){function e(t){var e=parseInt(t,10).toString(16).toUpperCase();return e.length>1?e:"0"+e}return t.replace(/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/gi,function(t,i,n,a){return"#"+e(i)+e(n)+e(a)})}function _toMap(t,e){e=e===undefined?",":e;var i,n={},a=_isArray(t)?t:t.split(e);return _each(a,function(t,e){if(i=/^(\d+)\.\.(\d+)$/.exec(e))for(var a=parseInt(i[1],10);a<=parseInt(i[2],10);a++)n[a.toString()]=!0;else n[e]=!0}),n}function _toArray(t,e){return Array.prototype.slice.call(t,e||0)}function _undef(t,e){return t===undefined?e:t}function _invalidUrl(t){return!t||/[<>"]/.test(t)}function _addParam(t,e){return t.indexOf("?")>=0?t+"&"+e:t+"?"+e}function _extend(t,e,i){i||(i=e,e=null);var n;if(e){var a=function(){};a.prototype=e.prototype,n=new a,_each(i,function(t,e){n[t]=e})}else n=i;n.constructor=t,t.prototype=n,t.parent=e?e.prototype:null}function _json(text){var match;(match=/\{[\s\S]*\}|\[[\s\S]*\]/.exec(text))&&(text=match[0]);var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;if(cx.lastIndex=0,cx.test(text)&&(text=text.replace(cx,function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)})),/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return eval("("+text+")");throw"JSON parse error"}function _getBasePath(){for(var t,e=document.getElementsByTagName("script"),i=0,n=e.length;i=0)return void _each(e.split(","),function(){_bind(t,this,i)});var n=_getId(t);n||(n=_setId(t)),_eventData[n]===undefined&&(_eventData[n]={});var a=_eventData[n][e];a&&a.length>0?_unbindEvent(t,e,a[0]):(_eventData[n][e]=[],_eventData[n].el=t),a=_eventData[n][e],0===a.length&&(a[0]=function(e){var i=e?new KEvent(t,e):undefined;_each(a,function(e,n){e>0&&n&&n.call(t,i)})}),_inArray(i,a)<0&&a.push(i),_bindEvent(t,e,a[0])}function _unbind(t,e,i){if(e&&e.indexOf(",")>=0)return void _each(e.split(","),function(){_unbind(t,this,i)});var n=_getId(t);if(n){if(e===undefined)return void(n in _eventData&&(_each(_eventData[n],function(e,i){"el"!=e&&i.length>0&&_unbindEvent(t,e,i[0])}),delete _eventData[n],_removeId(t)));if(_eventData[n]){var a=_eventData[n][e];if(a&&a.length>0){i===undefined?(_unbindEvent(t,e,a[0]),delete _eventData[n][e]):(_each(a,function(t,e){t>0&&e===i&&a.splice(t,1)}),1==a.length&&(_unbindEvent(t,e,a[0]),delete _eventData[n][e]));var o=0;_each(_eventData[n],function(){o++}),o<2&&(delete _eventData[n],_removeId(t))}}}}function _fire(t,e){if(e.indexOf(",")>=0)return void _each(e.split(","),function(){_fire(t,this)});var i=_getId(t);if(i){var n=_eventData[i][e];_eventData[i]&&n&&n.length>0&&n[0]()}}function _ctrl(t,e,i){e=/^\d{2,}$/.test(e)?e:e.toUpperCase().charCodeAt(0),_bind(t,"keydown",function(n){!n.ctrlKey||n.which!=e||n.shiftKey||n.altKey||(i.call(t),n.stop())})}function _ready(t){function e(){a||(a=!0,t(KindEditor),_readyFinished=!0)}function i(){if(!a){try{document.documentElement.doScroll("left")}catch(t){return void setTimeout(i,100)}e()}}function n(){"complete"===document.readyState&&e()}if(_readyFinished)return void t(KindEditor);var a=!1;if(document.addEventListener)_bind(document,"DOMContentLoaded",e);else if(document.attachEvent){_bind(document,"readystatechange",n);var o=!1;try{o=null==window.frameElement}catch(s){}document.documentElement.doScroll&&o&&i()}_bind(window,"load",e)}function _getCssList(t){for(var e,i={},n=/\s*([\w\-]+)\s*:([^;]*)(;|$)/g;e=n.exec(t);){var a=_trim(e[1].toLowerCase()),o=_trim(_toHex(e[2]));i[a]=o}return i}function _getAttrList(t){for(var e,i={},n=/\s+(?:([\w\-:]+)|(?:([\w\-:]+)=([^\s"'<>]+))|(?:([\w\-:"]+)="([^"]*)")|(?:([\w\-:"]+)='([^']*)'))(?=(?:\s|\/|>)+)/g;e=n.exec(t);){var a=(e[1]||e[2]||e[4]||e[6]).toLowerCase(),o=(e[2]?e[3]:e[4]?e[5]:e[7])||"";i[a]=o}return i}function _addClassToTag(t,e){return t=/\s+class\s*=/.test(t)?t.replace(/(\s+class=["']?)([^"']*)(["']?[\s>])/,function(t,i,n,a){return(" "+n+" ").indexOf(" "+e+" ")<0?""===n?i+e+a:i+n+" "+e+a:t}):t.substr(0,t.length-1)+' class="'+e+'">'}function _formatCss(t){var e="";return _each(_getCssList(t),function(t,i){e+=t+":"+i+";"}),e}function _formatUrl(t,e,i,n){function a(t){for(var e=t.split("/"),i=[],n=0,a=e.length;n0&&i.pop():""!==o&&"."!=o&&i.push(o)}return"/"+i.join("/")}function o(e,i){if(t.substr(0,e.length)===e){for(var a=[],s=0;s0&&(l+="/"+a.join("/")),"/"==n&&(l+="/"),l+t.substr(e.length)}if(r=/^(.*)\//.exec(e))return o(r[1],++i)}if(e=_undef(e,"").toLowerCase(),"data:"!=t.substr(0,5)&&(t=t.replace(/([^:])\/\//g,"$1/")),_inArray(e,["absolute","relative","domain"])<0)return t;if(i=i||location.protocol+"//"+location.host,n===undefined){var s=location.pathname.match(/^(\/.*)\//);n=s?s[1]:""}var r;if(r=/^(\w+:\/\/[^\/]*)/.exec(t)){if(r[1]!==i)return t}else if(/^\w+:/.test(t))return t;return/^\//.test(t)?t=i+a(t.substr(1)):/^\w+:\/\//.test(t)||(t=i+a(n+"/"+t)),"relative"===e?t=o(i+n,0).substr(2):"absolute"===e&&t.substr(0,i.length)===i&&(t=t.substr(i.length)),t}function _formatHtml(t,e,i,n,a){null==t&&(t=""),i=i||"",n=_undef(n,!1),a=_undef(a,"\t");var o="xx-small,x-small,small,medium,large,x-large,xx-large".split(",");t=t.replace(/(<(?:pre|pre\s[^>]*)>)([\s\S]*?)(<\/pre>)/gi,function(t,e,i,n){return e+i.replace(/<(?:br|br\s[^>]*)>/gi,"\n")+n}),t=t.replace(/<(?:br|br\s[^>]*)\s*\/?>\s*<\/p>/gi,""),t=t.replace(/(<(?:p|p\s[^>]*)>)\s*(<\/p>)/gi,"$1 $2"),t=t.replace(/\u200B/g,""),t=t.replace(/\u00A9/g,"©"),t=t.replace(/<[^>]+>/g,function(t){return t.replace(/\s+/g," ")});var s={};e&&(_each(e,function(t,e){for(var i=t.split(","),n=0,a=i.length;n]*)>)([\s\S]*?)(<\/script>)/gi,"")),s.style||(t=t.replace(/(<(?:style|style\s[^>]*)>)([\s\S]*?)(<\/style>)/gi,"")));var r=/(\s*)<(\/)?([\w\-:]+)((?:\s+|(?:\s+[\w\-:]+)|(?:\s+[\w\-:]+=[^\s"'<>]+)|(?:\s+[\w\-:"]+="[^"]*")|(?:\s+[\w\-:"]+='[^']*'))*)(\/)?>(\s*)/g,l=[];return t=t.replace(r,function(t,r,c,d,h,u,p){var f=t,g=r||"",m=c||"",v=d.toLowerCase(),_=h||"",y=u?" "+u:"",b=p||"";if(e&&!s[v])return"";if(""===y&&_SINGLE_TAG_MAP[v]&&(y=" /"),_INLINE_TAG_MAP[v]&&(g&&(g=" "),b&&(b=" ")),_PRE_TAG_MAP[v]&&(m?b="\n":g="\n"),n&&"br"==v&&(b="\n"),_BLOCK_TAG_MAP[v]&&!_PRE_TAG_MAP[v])if(n){m&&l.length>0&&l[l.length-1]===v?l.pop():l.push(v),g="\n",b="\n";for(var w=0,k=m?l.length:l.length-1;w=0&&(x[t]=_formatUrl(n,i)),(e&&"style"!==t&&!s[v]["*"]&&!s[v][t]||"body"===v&&"contenteditable"===t||/^kindeditor_\d+$/.test(t))&&delete x[t],"style"===t&&""!==n){var a=_getCssList(n);_each(a,function(t,i){!e||s[v].style||s[v]["."+t]||delete a[t]});var o="";_each(a,function(t,e){o+=t+":"+e+";"}),x.style=o}}),_="",_each(x,function(t,e){"style"===t&&""===e||(e=e.replace(/"/g,"""),_+=" "+t+'="'+e+'"')})}return"font"===v&&(v="span"),g+"<"+m+v+_+y+">"+b}),t=t.replace(/(<(?:pre|pre\s[^>]*)>)([\s\S]*?)(<\/pre>)/gi,function(t,e,i,n){return e+i.replace(/\n/g,'\n')+n}),t=t.replace(/\n\s*\n/g,"\n"),t=t.replace(/\n/g,"\n"),_trim(t)}function _clearMsWord(t,e){return t=t.replace(//gi,"").replace(//gi,"").replace(/"];return _isArray(i)||(i=[i]),_each(i,function(t,e){e&&a.push('')}),n&&a.push(""),a.push(" |