Compare commits

...

8 Commits

4 changed files with 75 additions and 73 deletions

View File

@ -21,7 +21,7 @@
@node-click="handleChange"
>
<div class="tree-node" slot-scope="{ node,data }" >
<div v-if="data.type === 0" style="display: flex;align-items: center;">
<div v-if="data.type === 0" style="display: flex;align-items: center;padding: 3px 0">
<el-avatar :src="data.avatar"></el-avatar>
{{ node.label }}
</div>
@ -69,12 +69,6 @@ export default {
return [];
}
},
selected: {
type: Array,
default: () => {
return [];
}
},
multiple: { //
default: true,
type: Boolean
@ -135,7 +129,6 @@ export default {
},
getList() {
getUserTree(this.radio, this.chooseId).then(res => {
console.log('人员', res.data)
// if (res.data) {
if (this.selectItem.type === -1 || this.selectItem.type === -2) {
this.dataList = res.data

View File

@ -43,7 +43,7 @@
<el-select v-model="setup.settings.notify.types" value-key="name"
placeholder="选择消息通知方式" style="width: 30%;"
size="medium" clearable multiple collapse-tags>
<el-option v-for="(wc, index) in notifyTypes" :label="wc.name" :key="index" :value="wc"></el-option>
<el-option v-for="(notify, index) in notifyTypes" :label="notify.name" :key="index" :value="notify.type"></el-option>
</el-select>
<el-input size="medium" v-model="setup.settings.notify.title" style="width: 68%; float:right;" placeholder="消息通知标题"></el-input>
</el-form-item>

View File

@ -182,55 +182,77 @@ export default {
let state = operation.state
let type = operation.operation
//
if (state === 'CREATE') {
if (type === 'CREATE') {
this.$set(operation, "icon", "el-icon-check")
this.$set(operation, "color", "#0bbd87")
}
//
if (state === 'AGREE' || state === 'AUTO_PASS') {
this.$set(operation, "icon", "el-icon-check")
this.$set(operation, "color", "#0bbd87")
this.$set(operation, "remark", ' (已同意)')
}
if (state === 'PASS'){
this.$set(operation, "icon", "el-icon-more")
this.$set(operation, "color", "#c0c4cc")
}
//
if (state === 'RUNNING') {
this.$set(operation, "icon", "el-icon-loading")
this.$set(operation, "color", "#f78f5f")
this.$set(operation, "remark",' (处理中)')
}
//退
if (state === 'ROLLBACK') {
this.$set(operation, "icon", "el-icon-refresh")
this.$set(operation, "color", "#f78f5f")
this.$set(operation, "remark", ' (回退成功)')
}
//
if (type === 'CC') {
this.$set(operation, "icon", "el-icon-s-promotion")
this.$set(operation, "color", "#3395f8")
this.$set(operation, "remark", ' (抄送成功)')
if (type === 'OPINION') {
//
if (state === 'AGREE' || state === 'AUTO_PASS') {
this.$set(operation, "icon", "el-icon-check")
this.$set(operation, "color", "#0bbd87")
this.$set(operation, "remark", ' (已同意)')
}
if (state === 'PASS') {
this.$set(operation, "icon", "el-icon-more")
this.$set(operation, "color", "#c0c4cc")
}
//
if (state === 'RUNNING') {
this.$set(operation, "icon", "el-icon-loading")
this.$set(operation, "color", "#f78f5f")
this.$set(operation, "remark", ' (处理中)')
}
//退
if (state === 'ROLLBACK') {
this.$set(operation, "icon", "el-icon-refresh")
this.$set(operation, "color", "#f78f5f")
this.$set(operation, "remark", ' (回退成功)')
}
//
if (state === 'REFUSE' || state === 'AUTO_REFUSE') {
this.$set(operation, "icon", "el-icon-close")
this.$set(operation, "color", "#f56c6c")
this.$set(operation, "remark", ' (拒绝)')
}
}
//
if (state === 'COMMENT') {
this.$set(operation, "icon", "el-icon-chat-dot-round")
this.$set(operation, "color", "#0bbd87")
this.$set(operation, "remark", ' (添加了评论)')
if (type === 'COMMENT') {
//
if (state === 'COMMENT') {
this.$set(operation, "icon", "el-icon-chat-dot-round")
this.$set(operation, "color", "#0bbd87")
this.$set(operation, "remark", ' (添加了评论)')
}
}
//
if (state === 'REFUSE' && type === 'COMMENT') {
this.$set(operation, "icon", "el-icon-chat-dot-round")
this.$set(operation, "color", "#f56c6c")
this.$set(operation, "remark", ' (填写拒绝理由)')
//http
if (type === 'TRIGGER_WEBHOOK') {
this.$set(operation, "icon", "el-icon-share")
if (state === 'SUCCESS') {
this.$set(operation, "color", "#0bbd87")
this.$set(operation, "remark", ' (成功)')
} else if (state === 'RUNNING') {
this.$set(operation, "color", "#f78f5f")
this.$set(operation, "remark", ' (成功)')
} else {
this.$set(operation, "color", "#f56c6c")
this.$set(operation, "remark", ' (失败)')
}
}
//
if ((state === 'REFUSE' || state === 'AUTO_REFUSE')&& type === 'OPINION') {
this.$set(operation, "icon", "el-icon-close")
this.$set(operation, "color", "#f56c6c")
this.$set(operation, "remark", ' (拒绝)')
//
if (type === 'TRIGGER_EMAIL') {
this.$set(operation, "icon", "el-icon-message")
if (state === 'SUCCESS') {
this.$set(operation, "color", "#0bbd87")
this.$set(operation, "remark", ' (成功)')
} else if (state === 'RUNNING') {
this.$set(operation, "color", "#f78f5f")
this.$set(operation, "remark", ' (成功)')
} else {
this.$set(operation, "color", "#f56c6c")
this.$set(operation, "remark", ' (失败)')
}
}
return operation;
},
@ -243,7 +265,8 @@ export default {
/deep/ .el-card__body, .el-main {
padding: 10px;
}
.avatar_name{
.avatar_name {
width: 45px;
display: flex;
flex-direction: column;
@ -256,7 +279,8 @@ export default {
bottom: 20px;
right: 1px;
}
.username{
.username {
width: 45px;
padding-top: 2px;
text-align: center;

View File

@ -43,7 +43,6 @@
</div>
</div>
<user-picker v-if="selectUser.show" title="请选择系统用户" :multiple="selectUser.multiple" ref="userPicker"
:selected="_userInfo"
@ok="selectedUser"/>
</div>
</template>
@ -77,13 +76,6 @@ export default {
default: ""
},
//
userInfo: {
type: Array,
default() {
return []
}
},
//
showAvatar: {
type: Boolean,
default: false
@ -131,20 +123,14 @@ export default {
},
},
data() {
return {}
return {
userInfo:[]
}
},
computed: {
viewer() {
return this.$store.state.diagramMode === 'viewer'
},
_userInfo: {
get() {
return this.userInfo
},
set(val) {
this.userInfo = val
}
},
}
},
methods: {
selectedUser(select) {
@ -157,8 +143,7 @@ export default {
}
userInfoList.push(userInfo)
}
//todo ,
this._userInfo = userInfoList
this.userInfo = userInfoList
this.$store.state.selectUserMap.set(this.$store.state.selectedNode.id, userInfoList)
},
}