Compare commits

..

8 Commits

4 changed files with 75 additions and 73 deletions

View File

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

View File

@ -43,7 +43,7 @@
<el-select v-model="setup.settings.notify.types" value-key="name" <el-select v-model="setup.settings.notify.types" value-key="name"
placeholder="选择消息通知方式" style="width: 30%;" placeholder="选择消息通知方式" style="width: 30%;"
size="medium" clearable multiple collapse-tags> 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-select>
<el-input size="medium" v-model="setup.settings.notify.title" style="width: 68%; float:right;" placeholder="消息通知标题"></el-input> <el-input size="medium" v-model="setup.settings.notify.title" style="width: 68%; float:right;" placeholder="消息通知标题"></el-input>
</el-form-item> </el-form-item>

View File

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

View File

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