|
@@ -231,7 +231,7 @@
|
|
|
|
|
|
<!-- 新增/编辑人员的Dialog -->
|
|
<!-- 新增/编辑人员的Dialog -->
|
|
<el-dialog :title="title" :visible.sync="dialogVisible" width="550px" >
|
|
<el-dialog :title="title" :visible.sync="dialogVisible" width="550px" >
|
|
- <el-form ref="form1" :model="insertForm" :rules="rules" label-width="80px">
|
|
|
|
|
|
+ <el-form ref="form12" :model="insertForm" :rules="rules" label-width="80px">
|
|
<el-form-item label="名字" prop="name">
|
|
<el-form-item label="名字" prop="name">
|
|
<el-input v-model="insertForm.name" placeholder="请输入姓名" clearable></el-input>
|
|
<el-input v-model="insertForm.name" placeholder="请输入姓名" clearable></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -276,7 +276,7 @@
|
|
<el-input v-model="insertForm.position" placeholder="请输入岗位职级别" clearable></el-input>
|
|
<el-input v-model="insertForm.position" placeholder="请输入岗位职级别" clearable></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
- <div class="zhaunye"><p>专业证书</p><p><el-link type="primary" @click="addCertificateList()">添加更多证书</el-link><el-link v-if="permissions.structureCertificate" type="primary" @click="managementDiolog = true" style="margin-left: 20px">管理专业证书</el-link></p></div>
|
|
|
|
|
|
+ <div class="zhaunye"><p>专业证书</p><p><el-link type="primary" @click="addCertificateList()">添加更多证书123</el-link><el-link v-if="permissions.structureCertificate" type="primary" @click="managementDiolog = true" style="margin-left: 20px">管理专业证书</el-link></p></div>
|
|
<div class="certificateList">
|
|
<div class="certificateList">
|
|
<div class="moreList">
|
|
<div class="moreList">
|
|
<div class="moreLiList" v-for="(item,index) in insertForm.certJson" :key="index">
|
|
<div class="moreLiList" v-for="(item,index) in insertForm.certJson" :key="index">
|
|
@@ -294,7 +294,7 @@
|
|
</el-form>
|
|
</el-form>
|
|
<span slot="footer" class="dialog-footer">
|
|
<span slot="footer" class="dialog-footer">
|
|
<el-button @click="dialogVisible=false">取消</el-button>
|
|
<el-button @click="dialogVisible=false">取消</el-button>
|
|
- <el-button type="primary" @click="submitInsert" :loading="submitLoading">提交</el-button>
|
|
|
|
|
|
+ <el-button type="primary" @click="submitInsert('insertForm')" :loading="submitLoading">提交</el-button>
|
|
</span>
|
|
</span>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
<!-- 编辑超级管理员的Dialog -->
|
|
<!-- 编辑超级管理员的Dialog -->
|
|
@@ -1215,7 +1215,7 @@
|
|
var form = {}
|
|
var form = {}
|
|
var ssR = this.upRepeat(this.insertForm.certJson)
|
|
var ssR = this.upRepeat(this.insertForm.certJson)
|
|
var trs = true
|
|
var trs = true
|
|
- this.$refs.form1.validate(valid => {
|
|
|
|
|
|
+ this.$refs.form12.validate(valid => {
|
|
if (valid) {
|
|
if (valid) {
|
|
this.submitLoading = true;
|
|
this.submitLoading = true;
|
|
if(ssR) {
|
|
if(ssR) {
|
|
@@ -1261,38 +1261,40 @@
|
|
if (this.insertForm.departmentId != null) {
|
|
if (this.insertForm.departmentId != null) {
|
|
form.departmentId = this.insertForm.departmentId[this.insertForm.departmentId.length-1];
|
|
form.departmentId = this.insertForm.departmentId[this.insertForm.departmentId.length-1];
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ if(!ssR && trs) {
|
|
|
|
+ this.http.post( this.port.manage.insert, form,
|
|
|
|
+ res => {
|
|
|
|
+ this.submitLoading = false;
|
|
|
|
+ if (res.code == "ok") {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: this.insertForm.id != null ? "修改" : "创建" + "成功",
|
|
|
|
+ type: "success"
|
|
|
|
+ });
|
|
|
|
+ this.dialogVisible = false;
|
|
|
|
+ this.getUser();
|
|
|
|
+ this.getUsers()
|
|
|
|
+ } else {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: res.msg,
|
|
|
|
+ type: "error"
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ error => {
|
|
|
|
+ this.listLoading = false;
|
|
|
|
+ this.$message({
|
|
|
|
+ message: error,
|
|
|
|
+ type: "error"
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+ }
|
|
}
|
|
}
|
|
});
|
|
});
|
|
// console.log(form, '提交的数据')
|
|
// console.log(form, '提交的数据')
|
|
// return
|
|
// return
|
|
// console.log(ssR, trs)
|
|
// console.log(ssR, trs)
|
|
- if(!ssR && trs) {
|
|
|
|
- this.http.post( this.port.manage.insert, form,
|
|
|
|
- res => {
|
|
|
|
- this.submitLoading = false;
|
|
|
|
- if (res.code == "ok") {
|
|
|
|
- this.$message({
|
|
|
|
- message: this.insertForm.id != null ? "修改" : "创建" + "成功",
|
|
|
|
- type: "success"
|
|
|
|
- });
|
|
|
|
- this.dialogVisible = false;
|
|
|
|
- this.getUser();
|
|
|
|
- this.getUsers()
|
|
|
|
- } else {
|
|
|
|
- this.$message({
|
|
|
|
- message: res.msg,
|
|
|
|
- type: "error"
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- error => {
|
|
|
|
- this.listLoading = false;
|
|
|
|
- this.$message({
|
|
|
|
- message: error,
|
|
|
|
- type: "error"
|
|
|
|
- });
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
|
|
|
|
},
|
|
},
|
|
|
|
|