公章管理
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<template>
|
||||
<div>
|
||||
<el-dialog title="新增机构" :visible="operateVisable" @close="cancel" width="600px" center :distroy-on-close="true">
|
||||
<el-dialog :title="title" :visible="operateVisable" v-if="operateVisable" @close="cancel" width="600px" center
|
||||
:distroy-on-close="true">
|
||||
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="130px" class="demo-ruleForm">
|
||||
<el-form-item label="机构名称" prop="identifyName">
|
||||
<el-input v-model="ruleForm.identifyName"></el-input>
|
||||
@@ -21,17 +22,17 @@
|
||||
</template>
|
||||
<script>
|
||||
import {
|
||||
insert
|
||||
insert,
|
||||
} from "@/api/officialSeal/officialSeal.js";
|
||||
export default {
|
||||
props: ["operateVisable",],
|
||||
props: ["operateVisable"],
|
||||
data() {
|
||||
return {
|
||||
title: "新增机构",
|
||||
ruleForm: {},
|
||||
rules: {
|
||||
identifyName: [
|
||||
{ required: true, message: '请输入机构名称', trigger: 'blur' },
|
||||
// { min: 3, max: 5, message: '长度在 3 到 5 个字符', trigger: 'blur' }
|
||||
],
|
||||
operName: [
|
||||
{ required: true, message: '请输入经办人姓名', trigger: 'blur' },
|
||||
@@ -46,7 +47,7 @@ export default {
|
||||
watch: {
|
||||
operateVisable(val) {
|
||||
if (val) {
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -55,20 +56,29 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
// 新增部门
|
||||
insertFn(data){
|
||||
insert(data).then(res=>{
|
||||
insertFn(data) {
|
||||
insert(data).then(res => {
|
||||
this.$modal.msgSuccess("新增成功!");
|
||||
this.$emit("cancelFilingreview");
|
||||
this.$emit('getList');
|
||||
})
|
||||
},
|
||||
// // 编辑
|
||||
// sealUpdateFn(data) {
|
||||
// sealUpdate(data).then(res => {
|
||||
// this.$modal.msgSuccess("修改成功!");
|
||||
// this.$emit("cancelFilingreview");
|
||||
// this.$emit('getList');
|
||||
// })
|
||||
// },
|
||||
// 提交form表单
|
||||
submitForm() {
|
||||
this.$refs['ruleForm'].validate((valid) => {
|
||||
if (valid) {
|
||||
this.insertFn(this.ruleForm)
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
},
|
||||
cancel() {
|
||||
this.$emit("cancelFilingreview");
|
||||
|
||||
Reference in New Issue
Block a user