mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 11:19:56 +00:00
Merge branch 'pro' into pro
This commit is contained in:
commit
cde9c819d1
@ -1410,7 +1410,6 @@ class ProjectTask extends AbstractModel
|
||||
$data = $data->toArray();
|
||||
}
|
||||
//
|
||||
$userids = [];
|
||||
if ($userid === null) {
|
||||
$userids = $this->project->relationUserids();
|
||||
} else {
|
||||
|
||||
@ -312,7 +312,7 @@ export default {
|
||||
} else {
|
||||
this.searchKey = ""
|
||||
}
|
||||
this.$emit("showUpdate",value)
|
||||
this.$emit("onShowChange",value)
|
||||
},
|
||||
|
||||
searchKey() {
|
||||
@ -669,7 +669,7 @@ export default {
|
||||
const clone = $A.cloneJSON(this.values)
|
||||
this.values = $A.cloneJSON(this.selects)
|
||||
this.$emit('input', this.values)
|
||||
this.$emit('submit', this.values)
|
||||
this.$emit('onSubmit', this.values)
|
||||
|
||||
if (!this.beforeSubmit) {
|
||||
this.showModal = false
|
||||
|
||||
@ -94,7 +94,7 @@
|
||||
</div>
|
||||
</FormItem>
|
||||
<FormItem>
|
||||
<div class="item-label" slot="label">
|
||||
<div slot="label">
|
||||
<EDropdown ref="eDropdownRef" trigger="click" placement="bottom" @command="dropVisible">
|
||||
<span class="visibility-text">{{$L('可见性')}}
|
||||
<i class="taskfont"></i>
|
||||
@ -124,7 +124,7 @@
|
||||
</EDropdownMenu>
|
||||
</EDropdown>
|
||||
</div>
|
||||
<div class="item-content user ivu-input ivu-input-default ivu-input-with-suffix" v-if="addData.visibility_appoint < 3" @click="showCisibleDropdown">
|
||||
<div class="ivu-input task-add-visibility" v-if="addData.visibility_appoint < 3" @click="showCisibleDropdown">
|
||||
<span v-if="addData.visibility_appoint == 1">{{$L('项目人员可见')}}</span>
|
||||
<span v-else-if="addData.visibility_appoint == 2">{{$L('任务人员可见')}}</span>
|
||||
</div>
|
||||
@ -134,7 +134,7 @@
|
||||
:avatar-size="24"
|
||||
:title="$L('选择指定人员')"
|
||||
:project-id="addData.project_id"
|
||||
@showUpdate="visibleUserSelectShowUpdate"
|
||||
@on-show-change="visibleUserSelectShowChange"
|
||||
border
|
||||
/>
|
||||
</FormItem>
|
||||
@ -561,7 +561,7 @@ export default {
|
||||
this.$refs.eDropdownRef.show()
|
||||
},
|
||||
|
||||
visibleUserSelectShowUpdate(isShow){
|
||||
visibleUserSelectShowChange(isShow){
|
||||
if(!isShow && (this.addData.visibility_appointor.length == 0 || !this.addData.visibility_appointor[0])){
|
||||
let old = this.addData.old_visibility_appoint;
|
||||
this.addData.visibility_appoint = old > 2 ? 1 : (old || 1);
|
||||
|
||||
@ -236,14 +236,15 @@
|
||||
<div class="item-content user">
|
||||
<span @click="showCisibleDropdown" v-if="taskDetail.is_all_visible == 1" class="visibility-text">{{$L('项目人员可见')}}</span>
|
||||
<span @click="showCisibleDropdown" v-else-if="taskDetail.is_all_visible == 2" class="visibility-text">{{$L('任务人员可见')}}</span>
|
||||
<UserSelect v-else
|
||||
<UserSelect
|
||||
v-else
|
||||
ref="visibleUserSelectRef"
|
||||
v-model="taskDetail.visibility_appointor"
|
||||
:avatar-size="28"
|
||||
:title="$L('选择指定人员')"
|
||||
:project-id="taskDetail.project_id"
|
||||
@showUpdate="visibleUserSelectShowUpdate"
|
||||
/>
|
||||
:add-icon="false"
|
||||
@on-show-change="visibleUserSelectShowChange"/>
|
||||
</div>
|
||||
</FormItem>
|
||||
<FormItem v-if="taskDetail.end_at || timeForce">
|
||||
@ -1550,7 +1551,7 @@ export default {
|
||||
this.$refs.eDropdownRef.show()
|
||||
},
|
||||
|
||||
visibleUserSelectShowUpdate(isShow){
|
||||
visibleUserSelectShowChange(isShow){
|
||||
if(!isShow && (this.taskDetail.visibility_appointor.length == 0 || !this.taskDetail.visibility_appointor[0])){
|
||||
let old = this.taskDetail.old_is_all_visible;
|
||||
this.taskDetail.is_all_visible = old > 2 ? 1 : (old || 1);
|
||||
|
||||
@ -152,16 +152,25 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.visibility-text {
|
||||
cursor: pointer;
|
||||
|
||||
&.color {
|
||||
color: #bbbbbb;
|
||||
}
|
||||
.taskfont {
|
||||
display: inline-block;
|
||||
transform: scale(0.9);
|
||||
font-size: 12px;
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.task-add-visibility {
|
||||
cursor: pointer;
|
||||
color: rgba($primary-desc-color, 0.7);
|
||||
}
|
||||
}
|
||||
.task-add-advanced {
|
||||
margin: -16px 0 0;
|
||||
|
||||
@ -429,12 +429,16 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.visibility-text {
|
||||
cursor: pointer;
|
||||
|
||||
&.color {
|
||||
color: #bbbbbb;
|
||||
}
|
||||
.taskfont {
|
||||
display: inline-block;
|
||||
transform: scale(0.9);
|
||||
font-size: 12px;
|
||||
margin-right: 0;
|
||||
}
|
||||
@ -514,7 +518,7 @@
|
||||
&:before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 36px;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
height: 1px;
|
||||
@ -594,11 +598,11 @@
|
||||
.no-tip {
|
||||
flex: 1;
|
||||
display: none;
|
||||
margin-left: 36px;
|
||||
margin-left: 0;
|
||||
}
|
||||
.no-input {
|
||||
position: relative;
|
||||
margin: 22px 0 0 36px;
|
||||
margin: 22px 0 0 0;
|
||||
background-color: #F4F5F7;
|
||||
padding: 10px 4px 10px 6px;
|
||||
border-radius: 10px;
|
||||
@ -634,7 +638,7 @@
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 36px;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
border: 2px dashed #7b7b7b;
|
||||
@ -648,7 +652,7 @@
|
||||
}
|
||||
}
|
||||
.project-log {
|
||||
margin-left: 36px;
|
||||
margin-left: 0;
|
||||
.logs-activity {
|
||||
padding: 22px 0 0;
|
||||
> li {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user