Skip to content

Commit

Permalink
Merge pull request #51 from lanyulei/dev
Browse files Browse the repository at this point in the history
fix: 同步处理流程节点。
  • Loading branch information
lanyulei authored Nov 15, 2020
2 parents 6fd38b9 + 6219091 commit 26f63c4
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 32 deletions.
61 changes: 34 additions & 27 deletions src/components/wfd/components/DetailPanel/HandleNodeDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@
:placeholder="i18n['handleNode.assignType.placeholder']"
:value="model.assignType"
:disabled="readOnly"
@change="(e) => { onChange('assignValue', []);onChange('assignType', e) }"
@change="(e) => { onChange('assignValue', []); onChange('assignType', e); assignmentType() }"
>
<el-option key="person" value="person" :label="i18n['handleNode.assignType.person']" />
<el-option key="role" value="role" :label="i18n['userTask.assignType.role']" />
<!-- <el-option key="persongroup" value="persongroup" :label="i18n['handleNode.assignType.persongroup']"/>
<el-option key="department" value="department" :label="i18n['handleNode.assignType.department']"/> -->
<!-- <el-option key="persongroup" value="persongroup" :label="i18n['handleNode.assignType.persongroup']"/> -->
<el-option key="department" value="department" :label="i18n['handleNode.assignType.department']" />
<el-option key="variable" value="variable" :label="i18n['handleNode.assignType.variable']" />
</el-select>
</div>
Expand Down Expand Up @@ -75,22 +75,17 @@
</el-select>
</div> -->
<div v-else-if="model.assignType === 'department'" class="panelRow">
<div><span style="color: red">*</span> {{ i18n['handleNode.assignType.department.title'] }}:</div>
<div><span style="color: red">*</span> {{ i18n['userTask.assignType.department.title'] }}:</div>
<el-select
style="width:90%; font-size:12px"
:placeholder="i18n['handleNode.assignType.department.placeholder']"
:placeholder="i18n['userTask.assignType.department.placeholder']"
:value="model.assignValue"
:disabled="readOnly"
:multiple="true"
:filterable="true"
@change="(e) => { onChange('assignValue', e); getPersons(e) }"
>
<el-option
v-for="department in departments"
:key="department.id"
:label="department.name===''?department.nickname:department.name"
:value="department.id"
/>
<el-option v-for="department in departments" :key="department.deptId" :label="department.deptName" :value="department.deptId" />
</el-select>
</div>
<div v-else-if="model.assignType === 'variable'" class="panelRow">
Expand All @@ -109,14 +104,14 @@
</div>
<div class="panelRow">
<el-checkbox
:disabled="
model.assignValue===undefined||
model.assignValue===null||
model.assignValue.length <= 1||
model.activeOrder||
readOnly"
:value="!!model.isCounterSign"
@change="(value) => onChange('isCounterSign', value)"
:disabled="model.assignType !== 'role' && model.assignType !== 'department' && (
model.assignValue===undefined ||
model.assignValue===null ||
model.assignValue.length <= 1 ||
model.activeOrder ||
readOnly)"
:value="model.isCounterSign"
@change="(e) => { onChange('isCounterSign', e); initCounterSign(e) }"
>{{ i18n['handleNode.counterSign'] }}</el-checkbox>
<el-checkbox
:disabled="
Expand All @@ -125,15 +120,18 @@
model.assignValue.length <= 1||
model.isCounterSign||
readOnly"
:value="!!model.activeOrder"
:value="model.activeOrder"
@change="(value) => onChange('activeOrder', value)"
>{{ i18n['handleNode.activeOrder'] }}</el-checkbox>
<!-- <el-checkbox @change="(value) => onChange('isEndorsement', value)"
:disabled="readOnly"
:value="!!model.isEndorsement">{{i18n['handleNode.endorsement']}}</el-checkbox>
<el-checkbox @change="(value) => onChange('isTaskOrder', value)"
:disabled="readOnly"
:value="!!model.isTaskOrder">{{i18n['handleNode.taskOrder']}}</el-checkbox> -->
<el-checkbox
v-if="(model.assignType === 'role' || model.assignType === 'department') &&
model.assignValue!==undefined &&
model.assignValue!==null &&
model.assignValue.length >= 1 &&
model.isCounterSign"
:value="model.fullHandle"
@change="(value) => onChange('fullHandle', value)"
>{{ i18n['userTask.fullHandle'] }}</el-checkbox>
</div>
<NodeDetail
:model="model"
Expand Down Expand Up @@ -205,7 +203,8 @@ export default {
}, {
value: 2,
label: '创建者负责人'
}]
}],
roleList: []
}
},
methods: {
Expand All @@ -214,6 +213,14 @@ export default {
this.onChange('activeOrder', false)
this.onChange('isCounterSign', false)
}
},
initCounterSign(e) {
if (!e) {
this.onChange('fullHandle', false)
}
},
assignmentType() {
this.onChange('isCounterSign', false)
}
}
}
Expand Down
8 changes: 3 additions & 5 deletions src/components/wfd/components/DetailPanel/UserTaskDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,15 @@
:placeholder="i18n['userTask.assignType.variable.placeholder']"
:disabled="readOnly"
:multiple="true"
:filterable="true"
@change="(e) => { onChange('assignValue', e); getPersons(e) }"
>
<el-option v-for="(item, index) in variableOptions" :key="index" :label="item.label" :value="item.value" />
</el-select>
</div>
<div class="panelRow">
<el-checkbox
:disabled="model.assignType !== 'role' && (
:disabled="model.assignType !== 'role' && model.assignType !== 'department' && (
model.assignValue===undefined ||
model.assignValue===null ||
model.assignValue.length <= 1 ||
Expand All @@ -123,17 +124,14 @@
@change="(value) => onChange('activeOrder', value)"
>{{ i18n['userTask.activeOrder'] }}</el-checkbox>
<el-checkbox
v-if="model.assignType === 'role' &&
v-if="(model.assignType === 'role' || model.assignType === 'department') &&
model.assignValue!==undefined &&
model.assignValue!==null &&
model.assignValue.length >= 1 &&
model.isCounterSign"
:value="model.fullHandle"
@change="(value) => onChange('fullHandle', value)"
>{{ i18n['userTask.fullHandle'] }}</el-checkbox>
<!-- <el-checkbox @change="(value) => onChange('isEndorsement', value)"
:disabled="readOnly"
:value="!!model.isEndorsement">{{i18n['userTask.endorsement']}}</el-checkbox> -->
</div>
<NodeDetail
:model="model"
Expand Down

0 comments on commit 26f63c4

Please sign in to comment.