|
@@ -352,7 +352,7 @@
|
|
</el-row>
|
|
</el-row>
|
|
<el-row>
|
|
<el-row>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
- <el-form-item label="负责人" prop="superiorName1">
|
|
|
|
|
|
+ <el-form-item label="负责人" prop="aid">
|
|
<el-autocomplete
|
|
<el-autocomplete
|
|
v-model="superiorName1"
|
|
v-model="superiorName1"
|
|
style="width: 250px"
|
|
style="width: 250px"
|
|
@@ -573,7 +573,10 @@ export default {
|
|
rules: {
|
|
rules: {
|
|
projectNumber: [{ required: true, message: "项目编号不能为空", trigger: "blur" }],
|
|
projectNumber: [{ required: true, message: "项目编号不能为空", trigger: "blur" }],
|
|
name: [{ required: true, message: "项目名称不能为空", trigger: "blur" }],
|
|
name: [{ required: true, message: "项目名称不能为空", trigger: "blur" }],
|
|
- aid: [{ required: true, message: "负责人不能为空", trigger: "blur" }],
|
|
|
|
|
|
+ aid: [{ required: true, message: "负责人不能为空", trigger: ["blur", "change"] }],
|
|
|
|
+ crossYear: [{ required: true, message: "请选择是否跨年", trigger: "blur" }],
|
|
|
|
+ createYear: [{ required: true, message: "创建年份不能为空", trigger: "blur" }],
|
|
|
|
+ projectYear: [{ required: true, message: "项目年份不能为空", trigger: "blur" }],
|
|
},
|
|
},
|
|
};
|
|
};
|
|
},
|
|
},
|
|
@@ -773,6 +776,9 @@ export default {
|
|
this.$refs["form"].validate((valid) => {
|
|
this.$refs["form"].validate((valid) => {
|
|
this.form.startTime = this.dateRange1[0];
|
|
this.form.startTime = this.dateRange1[0];
|
|
this.form.endTime = this.dateRange1[1];
|
|
this.form.endTime = this.dateRange1[1];
|
|
|
|
+
|
|
|
|
+ console.log("-----");
|
|
|
|
+ return;
|
|
if (valid) {
|
|
if (valid) {
|
|
if (this.form.id != undefined) {
|
|
if (this.form.id != undefined) {
|
|
updateProject(this.form).then((response) => {
|
|
updateProject(this.form).then((response) => {
|