mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-24 05:46:03 +08:00
34 lines
1.3 KiB
JavaScript
34 lines
1.3 KiB
JavaScript
(function (vc) {
|
|
var DEFAULT_PAGE = 1;
|
|
var DEFAULT_ROWS = 10;
|
|
vc.extends({
|
|
data: {
|
|
printerRuleInfo: {
|
|
curPrinterRule: {},
|
|
tabName: 'printerRuleMachine'
|
|
},
|
|
},
|
|
_initMethod: function () {
|
|
},
|
|
_initEvent: function () {
|
|
vc.on('printerRule', 'switchPrinterRule', function (_param) {
|
|
$that.printerRuleInfo.curPrinterRule = _param;
|
|
$that._changePrinterRuleTab('printerRuleMachine');
|
|
})
|
|
},
|
|
methods: {
|
|
_changePrinterRuleTab: function (_tabName) {
|
|
$that.printerRuleInfo.tabName = _tabName;
|
|
if (_tabName == 'printerRuleMachine') {
|
|
vc.emit('printerRuleMachine', 'switch', {ruleId: $that.printerRuleInfo.curPrinterRule.ruleId});
|
|
}
|
|
if (_tabName == 'printerRuleFees') {
|
|
vc.emit('printerRuleFees', 'switch', {ruleId: $that.printerRuleInfo.curPrinterRule.ruleId});
|
|
}
|
|
if (_tabName == 'printerRuleRepair') {
|
|
vc.emit('printerRuleRepair', 'switch', {ruleId: $that.printerRuleInfo.curPrinterRule.ruleId});
|
|
}
|
|
}
|
|
},
|
|
});
|
|
})(window.vc); |