|
@@ -224,7 +224,7 @@
|
|
|
type="textarea"
|
|
|
:rows="6"
|
|
|
placeholder="请输入描述"
|
|
|
- v-model="textarea"
|
|
|
+ v-model="todayPlanForm.describtion"
|
|
|
>
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
@@ -252,13 +252,19 @@
|
|
|
>
|
|
|
<div>
|
|
|
<span>{{ "选择部门" }}</span>
|
|
|
- <el-cascader
|
|
|
+ <!-- <el-cascader
|
|
|
v-model="departmentIdArray"
|
|
|
:options="departmentList"
|
|
|
:props="props"
|
|
|
collapse-tags
|
|
|
clearable
|
|
|
>
|
|
|
+ </el-cascader> -->
|
|
|
+ <el-cascader
|
|
|
+ v-model="departmentIdArray"
|
|
|
+ :options="departmentList"
|
|
|
+ :props="{ multiple: true, checkStrictly: true }"
|
|
|
+ clearable>
|
|
|
</el-cascader>
|
|
|
</div>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
@@ -635,8 +641,8 @@ export default {
|
|
|
},
|
|
|
(res) => {
|
|
|
if (res.code == "ok") {
|
|
|
- this.todayPlanForm.foremanId = res.data.id;
|
|
|
- this.todayPlanForm.foremanName = res.data.name;
|
|
|
+ this.todayPlanForm.foremanId = res.data ? res.data.id : '';
|
|
|
+ this.todayPlanForm.foremanName = res.data ? res.data.name : ''
|
|
|
} else {
|
|
|
this.$message({
|
|
|
message: res.msg,
|