mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-12 10:00:56 +08:00
optimize
This commit is contained in:
parent
dd25d4f543
commit
0f17abcbb4
@ -1,19 +1,16 @@
|
|||||||
<div >
|
<div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-2">
|
<div class="col-md-2">
|
||||||
<div class="margin-xs-r bg-white treeview">
|
<div class="margin-xs-r bg-white treeview">
|
||||||
<ul class="list-group text-center">
|
<ul class="list-group text-center">
|
||||||
<li class="list-group-item node-orgTree "
|
<li class="list-group-item node-orgTree " v-if="vc.hasPrivilege('502023041839740294')" :class="{'vc-node-selected':newOaWorkflowInfo.switchValue=='newOaWorkflowPool'}" @click="swatch('newOaWorkflowPool')">
|
||||||
:class="{'vc-node-selected':newOaWorkflowInfo.switchValue=='newOaWorkflowPool'}" @click="swatch('newOaWorkflowPool')"><span><vc:i18n name="流程工单" namespace="newOaWorkflow"></vc:i18n></span>
|
<vc:i18n name="流程工单" namespace="newOaWorkflow"></vc:i18n>
|
||||||
</li>
|
</li>
|
||||||
<li class="list-group-item node-orgTree "
|
<li class="list-group-item node-orgTree " :class="{'vc-node-selected':newOaWorkflowInfo.switchValue=='newOaWorkflowForm'}" @click="swatch('newOaWorkflowForm')">
|
||||||
:class="{'vc-node-selected':newOaWorkflowInfo.switchValue=='newOaWorkflowForm'}" @click="swatch('newOaWorkflowForm')">
|
|
||||||
起草流程</li>
|
起草流程</li>
|
||||||
<li class="list-group-item node-orgTree "
|
<li class="list-group-item node-orgTree " :class="{'vc-node-selected':newOaWorkflowInfo.switchValue=='newOaWorkflowUndo'}" @click="swatch('newOaWorkflowUndo')"><span><vc:i18n name="流程待办" namespace="newOaWorkflow"></vc:i18n></span>
|
||||||
:class="{'vc-node-selected':newOaWorkflowInfo.switchValue=='newOaWorkflowUndo'}" @click="swatch('newOaWorkflowUndo')"><span><vc:i18n name="流程待办" namespace="newOaWorkflow"></vc:i18n></span>
|
|
||||||
</li>
|
</li>
|
||||||
<li class="list-group-item node-orgTree "
|
<li class="list-group-item node-orgTree " :class="{'vc-node-selected':newOaWorkflowInfo.switchValue=='newOaWorkflowFinish'}" @click="swatch('newOaWorkflowFinish')">
|
||||||
:class="{'vc-node-selected':newOaWorkflowInfo.switchValue=='newOaWorkflowFinish'}" @click="swatch('newOaWorkflowFinish')">
|
|
||||||
流程已办</li>
|
流程已办</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
入驻小区
|
入驻小区
|
||||||
**/
|
**/
|
||||||
(function (vc) {
|
(function(vc) {
|
||||||
var DEFAULT_PAGE = 1;
|
var DEFAULT_PAGE = 1;
|
||||||
var DEFAULT_ROWS = 100;
|
var DEFAULT_ROWS = 100;
|
||||||
vc.extends({
|
vc.extends({
|
||||||
@ -10,7 +10,7 @@
|
|||||||
switchValue: '',
|
switchValue: '',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
_initMethod: function () {
|
_initMethod: function() {
|
||||||
//$that.newOaWorkflowInfo.switchValue = vc.getParam('switchValue');
|
//$that.newOaWorkflowInfo.switchValue = vc.getParam('switchValue');
|
||||||
let _switchValue = vc.getParam('switchValue');
|
let _switchValue = vc.getParam('switchValue');
|
||||||
|
|
||||||
@ -18,20 +18,25 @@
|
|||||||
$that.swatch(_switchValue);
|
$that.swatch(_switchValue);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$that.swatch('newOaWorkflowPool');
|
if (vc.hasPrivilege('502023041839740294')) {
|
||||||
|
$that.swatch('newOaWorkflowPool');
|
||||||
|
} else {
|
||||||
|
$that.swatch('newOaWorkflowForm');
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
_initEvent: function () {
|
_initEvent: function() {
|
||||||
vc.on('newOaWorkflow', 'listNewOaWorkflow', function (_param) {
|
vc.on('newOaWorkflow', 'listNewOaWorkflow', function(_param) {
|
||||||
vc.component._listNewOaWorkflows(DEFAULT_PAGE, DEFAULT_ROWS);
|
vc.component._listNewOaWorkflows(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||||
});
|
});
|
||||||
vc.on('newOaWorkflow', 'switch', function (_switchValue) {
|
vc.on('newOaWorkflow', 'switch', function(_switchValue) {
|
||||||
$that.swatch(_switchValue);
|
$that.swatch(_switchValue);
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
swatch: function (_value) {
|
swatch: function(_value) {
|
||||||
if($that.newOaWorkflowInfo.switchValue == _value){
|
if ($that.newOaWorkflowInfo.switchValue == _value) {
|
||||||
return ;
|
return;
|
||||||
}
|
}
|
||||||
$that.newOaWorkflowInfo.switchValue = _value;
|
$that.newOaWorkflowInfo.switchValue = _value;
|
||||||
vc.emit(_value, 'witch', {
|
vc.emit(_value, 'witch', {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user