|
@@ -44,7 +44,7 @@
|
|
|
<el-option value="3" label="待提交">待提交</el-option>
|
|
|
</el-select></div>
|
|
|
<div>
|
|
|
- <el-tree :data="data" @node-click="handleNodeClick" >
|
|
|
+ <el-tree :data="data" @node-click="handleNodeClick" node-key="id" :default-expanded-keys="expandDate">
|
|
|
<span class="custom-tree-node" slot-scope="{ node, data}">
|
|
|
<span>{{ node.label }}</span>
|
|
|
<span v-if="data.membCount != null && data.isUser == null">({{data.membCount}})</span>
|
|
@@ -390,7 +390,7 @@
|
|
|
<el-form-item v-if="reportTimeType.type == 3" label="用时占比" :prop="'domains.' + index + '.'+timeFields[reportTimeType.type]"
|
|
|
:rules="{ required: true, message: '请设置用时占比', trigger: 'blur' }">
|
|
|
<div style="width:300px;">
|
|
|
- <el-col span="14"><el-slider :disabled="!canEdit" v-model="domain.progress" :min="10" :show-tooltip="false" :step="10" style="width:180px;" @input="domain.workingTime = (reportTimeType.allday*domain.progress/100).toFixed(1)" @change="seleChn(0)"></el-slider></el-col>
|
|
|
+ <el-col span="14"><el-slider :disabled="!canEdit" v-model="domain.progress" :min="5" :show-tooltip="false" :step="5" style="width:180px;" @input="domain.workingTime = (reportTimeType.allday*domain.progress/100).toFixed(1)" @change="seleChn(0)"></el-slider></el-col>
|
|
|
<el-col span="10"><span style="margin-left:10px;float:right;"><span style="margin-right:10px;">{{domain.progress}}%</span>{{domain.workingTime}}小时</span></el-col>
|
|
|
</div>
|
|
|
<div class="overtime" v-if="user.timeType.fillOvertime"><el-checkbox :disabled="!canEdit" v-model="domain.isOvertime">加班</el-checkbox>
|
|
@@ -1456,7 +1456,8 @@
|
|
|
isFlag: false,
|
|
|
isMore: false,
|
|
|
|
|
|
- stateKey: '0'
|
|
|
+ stateKey: '0',
|
|
|
+ expandDate: []
|
|
|
};
|
|
|
},
|
|
|
watch: {
|
|
@@ -3024,6 +3025,7 @@
|
|
|
//设置员工到部门下面
|
|
|
this.setUserToDept(list);
|
|
|
this.data = list;
|
|
|
+ this.expandDate = [this.data[1].id]
|
|
|
this.allData = list;
|
|
|
|
|
|
// if (noAllData.length > 0) {
|