|
@@ -192,6 +192,7 @@
|
|
|
<el-form-item
|
|
|
label="项目负责人:"
|
|
|
prop="skiller"
|
|
|
+ :rules="{required: true, message: '请输入项目负责人', trigger: 'blur'}"
|
|
|
label-width="120px"
|
|
|
class="postInfo-container-item"
|
|
|
>
|
|
@@ -253,6 +254,7 @@
|
|
|
<el-form-item
|
|
|
label="所属部门:"
|
|
|
prop="departmentId"
|
|
|
+ :rules="{required: true, message: '请选择所属部门', trigger: 'blur'}"
|
|
|
label-width="120px"
|
|
|
class="postInfo-container-item"
|
|
|
>
|
|
@@ -288,7 +290,10 @@
|
|
|
<div style="margin-bottom: 30px">
|
|
|
<h3 class="title">
|
|
|
<div class="avatar-wrapper icon-title" style="background:rgba(255,175,41,1)">人</div>
|
|
|
- <div class="icon-info">人员配置</div>
|
|
|
+ <div class="icon-info">
|
|
|
+ 人员配置
|
|
|
+ <span style="color: orangered">*</span>
|
|
|
+ </div>
|
|
|
</h3>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -437,6 +442,15 @@
|
|
|
}
|
|
|
},
|
|
|
handleCreate() {
|
|
|
+ if (this.userIds.length==0){
|
|
|
+ this.$notify({
|
|
|
+ title: '错误',
|
|
|
+ message: '人员配置不能为空',
|
|
|
+ type: 'error',
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
this.$refs.postForm.validate(valid => {
|
|
|
if (valid) {
|
|
|
if (this.dataId) {
|