This commit is contained in:
java110 2023-04-18 14:20:04 +08:00
parent dd25d4f543
commit 0f17abcbb4
2 changed files with 23 additions and 21 deletions

View File

@ -1,19 +1,16 @@
<div >
<div>
<div class="row">
<div class="col-md-2">
<div class="margin-xs-r bg-white treeview">
<ul class="list-group text-center">
<li class="list-group-item node-orgTree "
:class="{'vc-node-selected':newOaWorkflowInfo.switchValue=='newOaWorkflowPool'}" @click="swatch('newOaWorkflowPool')"><span><vc:i18n name="流程工单" namespace="newOaWorkflow"></vc:i18n></span>
<li class="list-group-item node-orgTree " v-if="vc.hasPrivilege('502023041839740294')" :class="{'vc-node-selected':newOaWorkflowInfo.switchValue=='newOaWorkflowPool'}" @click="swatch('newOaWorkflowPool')">
<vc:i18n name="流程工单" namespace="newOaWorkflow"></vc:i18n>
</li>
<li class="list-group-item node-orgTree "
:class="{'vc-node-selected':newOaWorkflowInfo.switchValue=='newOaWorkflowForm'}" @click="swatch('newOaWorkflowForm')">
<li class="list-group-item node-orgTree " :class="{'vc-node-selected':newOaWorkflowInfo.switchValue=='newOaWorkflowForm'}" @click="swatch('newOaWorkflowForm')">
起草流程</li>
<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>
<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>
</li>
<li class="list-group-item node-orgTree "
:class="{'vc-node-selected':newOaWorkflowInfo.switchValue=='newOaWorkflowFinish'}" @click="swatch('newOaWorkflowFinish')">
<li class="list-group-item node-orgTree " :class="{'vc-node-selected':newOaWorkflowInfo.switchValue=='newOaWorkflowFinish'}" @click="swatch('newOaWorkflowFinish')">
流程已办</li>
</ul>
</div>
@ -33,4 +30,4 @@
</div>
</div>
</div>
</div>
</div>

View File

@ -1,7 +1,7 @@
/**
入驻小区
**/
(function (vc) {
(function(vc) {
var DEFAULT_PAGE = 1;
var DEFAULT_ROWS = 100;
vc.extends({
@ -10,28 +10,33 @@
switchValue: '',
}
},
_initMethod: function () {
_initMethod: function() {
//$that.newOaWorkflowInfo.switchValue = vc.getParam('switchValue');
let _switchValue = vc.getParam('switchValue');
if (_switchValue) {
$that.swatch(_switchValue);
return;
}
$that.swatch('newOaWorkflowPool');
if (vc.hasPrivilege('502023041839740294')) {
$that.swatch('newOaWorkflowPool');
} else {
$that.swatch('newOaWorkflowForm');
}
},
_initEvent: function () {
vc.on('newOaWorkflow', 'listNewOaWorkflow', function (_param) {
_initEvent: function() {
vc.on('newOaWorkflow', 'listNewOaWorkflow', function(_param) {
vc.component._listNewOaWorkflows(DEFAULT_PAGE, DEFAULT_ROWS);
});
vc.on('newOaWorkflow', 'switch', function (_switchValue) {
vc.on('newOaWorkflow', 'switch', function(_switchValue) {
$that.swatch(_switchValue);
})
},
methods: {
swatch: function (_value) {
if($that.newOaWorkflowInfo.switchValue == _value){
return ;
swatch: function(_value) {
if ($that.newOaWorkflowInfo.switchValue == _value) {
return;
}
$that.newOaWorkflowInfo.switchValue = _value;
vc.emit(_value, 'witch', {
@ -40,4 +45,4 @@
}
}
});
})(window.vc);
})(window.vc);