|
@@ -190,7 +190,7 @@
|
|
|
<div class="jiben">基本信息</div>
|
|
|
|
|
|
<el-form
|
|
|
- ref="form"
|
|
|
+ ref="refform"
|
|
|
:model="form"
|
|
|
:rules="rules"
|
|
|
label-width="80px"
|
|
@@ -503,8 +503,8 @@ export default {
|
|
|
form: {},
|
|
|
// 表单校验
|
|
|
rules: {
|
|
|
- deptId: [
|
|
|
- // { required: true, message: "单位名称不能为空", trigger: "blur" },
|
|
|
+ peopleId: [
|
|
|
+ { required: true, message: "单位名称不能为空", trigger: "blur" },
|
|
|
],
|
|
|
},
|
|
|
//下拉s
|
|
@@ -600,7 +600,7 @@ export default {
|
|
|
deteline: null,
|
|
|
startTime: null,
|
|
|
endTime: null,
|
|
|
- unitId1: null,
|
|
|
+ unitId1: this.form.unitName,
|
|
|
peopleIds: null,
|
|
|
address: null,
|
|
|
contents: null,
|
|
@@ -655,9 +655,9 @@ export default {
|
|
|
},
|
|
|
// 选中单位触发
|
|
|
department(data) {
|
|
|
- console.log(data);
|
|
|
this.ChongZhi();
|
|
|
this.form.unitId = data.id;
|
|
|
+ this.form.unitName=data.label
|
|
|
this.ZhuChiRen(this.form.unitId);
|
|
|
this.tomList.forEach((item, i) => {
|
|
|
console.log(item);
|
|
@@ -727,7 +727,7 @@ export default {
|
|
|
contents: null,
|
|
|
},
|
|
|
]),
|
|
|
- this.resetForm("form");
|
|
|
+ this.resetForm("refform");
|
|
|
},
|
|
|
/** 搜索按钮操作 */
|
|
|
handleQuery() {
|
|
@@ -759,6 +759,7 @@ export default {
|
|
|
},
|
|
|
/** 修改按钮操作 */
|
|
|
handleUpdate(row) {
|
|
|
+
|
|
|
this.reset();
|
|
|
this.getTreeselect();
|
|
|
this.form.unitId = row.unitId;
|
|
@@ -787,7 +788,7 @@ export default {
|
|
|
|
|
|
/** 提交按钮 */
|
|
|
submitForm() {
|
|
|
- this.$refs["form"].validate((valid) => {
|
|
|
+ this.$refs['form'][0].validate((valid) => {
|
|
|
if (valid) {
|
|
|
this.form.bdglWeekworkRegisterList = this.tomList;
|
|
|
if (this.form.id != null) {
|