|
@@ -1,7 +1,7 @@
|
|
|
<!--
|
|
|
* @Author: your name
|
|
|
* @Date: 2021-11-29 11:26:07
|
|
|
- * @LastEditTime: 2022-03-15 11:51:07
|
|
|
+ * @LastEditTime: 2022-03-16 15:27:43
|
|
|
* @LastEditors: your name
|
|
|
* @Description:新增组织
|
|
|
* @FilePath: \Foshan4A2.0\src\views\authorityManagement\components\authorityPower.vue
|
|
@@ -19,7 +19,7 @@
|
|
|
<div class="addApp-form-content dialog-public-background">
|
|
|
<el-form :inline="true" ref="form" :rules="rules" class="form" :model="form">
|
|
|
<el-form-item prop="name" label="组织名称">
|
|
|
- <el-input placeholder="请输入组织名称" v-model="form.name"></el-input>
|
|
|
+ <el-input placeholder="请输入组织名称" v-model.trim="form.name"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item prop="id" label="组织类型">
|
|
|
<el-select v-model="form.id" placeholder="请选择">
|
|
@@ -27,24 +27,24 @@
|
|
|
<el-option label="集团外" :value="0"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item prop="app" label="描述">
|
|
|
- <el-input style="width: 835px" placeholder="请输入描述" v-model="form.app"></el-input>
|
|
|
+ <el-form-item prop="desc" label="描述">
|
|
|
+ <el-input style="width: 835px" placeholder="请输入描述" v-model.trim="form.desc"></el-input>
|
|
|
</el-form-item>
|
|
|
<div class="top24">
|
|
|
<el-form-item prop="oneCode" label="1级编码">
|
|
|
- <el-input placeholder="最多输入2个字符" v-model="form.oneCode"></el-input>
|
|
|
+ <el-input placeholder="请输入编码" v-model.trim="form.oneCode"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item prop="twoCode" class="twoCode" label="2级编码">
|
|
|
- <el-input placeholder="最多输入3个字符" style="width: 202px" v-model="form.twoCode"></el-input>
|
|
|
+ <el-input placeholder="请输入编码" style="width: 202px" v-model.trim="form.twoCode"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item prop="threeCode" label="3级编码">
|
|
|
- <el-input placeholder="最多输入8个字符" v-model="form.threeCode"></el-input>
|
|
|
+ <el-input placeholder="请输入编码" v-model.trim="form.threeCode"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item prop="fourCode" label="4级编码">
|
|
|
- <el-input placeholder="最多输入2个字符" v-model="form.fourCode"></el-input>
|
|
|
+ <el-input placeholder="请输入编码" v-model.trim="form.fourCode"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item prop="fiveCode" label="5级编码">
|
|
|
- <el-input placeholder="最多输入2个字符" v-model="form.fiveCode"></el-input>
|
|
|
+ <el-input placeholder="请输入编码" v-model.trim="form.fiveCode"></el-input>
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
</el-form>
|
|
@@ -88,7 +88,7 @@ export default {
|
|
|
//应用表单
|
|
|
name: "",
|
|
|
id: "",
|
|
|
- app: "",
|
|
|
+ desc: "",
|
|
|
oneCode: "",
|
|
|
twoCode: "",
|
|
|
threeCode: "",
|
|
@@ -100,15 +100,15 @@ export default {
|
|
|
//表单验证
|
|
|
name: [
|
|
|
{ required: true, message: "请输入组织名称", trigger: "blur" },
|
|
|
- { validator: lengthValidator, max: 32, message: '最多输入32个字符', trigger: ['change', 'blur'] }
|
|
|
+ { validator: lengthValidator, max: 32, message: '长度在 1 到 32 个字符', trigger: ['change', 'blur'] }
|
|
|
],
|
|
|
id: [{ required: true, message: "请输入标识符", trigger: "blur" }],
|
|
|
- app: [{ validator: lengthValidator, max: 128, message: '最多输入128个字符', trigger: ['change', 'blur'] }],
|
|
|
- oneCode: [{ validator: lengthValidator, max: 2, message: '最多输入2个字符', trigger: ['change', 'blur'] }],
|
|
|
- twoCode: [{ validator: lengthValidator, max: 3, message: '最多输入3个字符', trigger: ['change', 'blur'] }],
|
|
|
- threeCode: [{ validator: lengthValidator, max: 8, message: '最多输入8个字符', trigger: ['change', 'blur'] }],
|
|
|
- fourCode: [{ validator: lengthValidator, max: 2, message: '最多输入2个字符', trigger: ['change', 'blur'] }],
|
|
|
- fiveCode: [{ validator: lengthValidator, max: 2, message: '最多输入2个字符', trigger: ['change', 'blur'] }],
|
|
|
+ desc: [{ validator: lengthValidator, max: 128, message: '长度在 1 到 128 个字符', trigger: ['change', 'blur'] }],
|
|
|
+ oneCode: [{ validator: lengthValidator, max: 2, message: '长度在 1 到 2 个字符', trigger: ['change', 'blur'] }],
|
|
|
+ twoCode: [{ validator: lengthValidator, max: 3, message: '长度在 1 到 3 个字符', trigger: ['change', 'blur'] }],
|
|
|
+ threeCode: [{ validator: lengthValidator, max: 8, message: '长度在 1 到 8 个字符', trigger: ['change', 'blur'] }],
|
|
|
+ fourCode: [{ validator: lengthValidator, max: 2, message: '长度在 1 到 2 个字符', trigger: ['change', 'blur'] }],
|
|
|
+ fiveCode: [{ validator: lengthValidator, max: 2, message: '长度在 1 到 2 个字符', trigger: ['change', 'blur'] }],
|
|
|
},
|
|
|
defaultProps: {
|
|
|
children: "children",
|
|
@@ -267,7 +267,7 @@ export default {
|
|
|
} = res.returnData;
|
|
|
this.form.name = OrganName || '';
|
|
|
this.form.id = OrganType || '';
|
|
|
- this.form.app = OrganDesc || '';
|
|
|
+ this.form.desc = OrganDesc || '';
|
|
|
this.form.oneCode = L1 || '';
|
|
|
this.form.twoCode = L2 || '';
|
|
|
this.form.threeCode = L3 || '';
|
|
@@ -361,7 +361,7 @@ export default {
|
|
|
const res = await newOrganmod({
|
|
|
OrganName: this.form.name,
|
|
|
OrganType: this.form.id,
|
|
|
- OrganDesc: this.form.app,
|
|
|
+ OrganDesc: this.form.desc,
|
|
|
OrganUpid: this.OrganUpid,
|
|
|
OrganId: this.AppId,
|
|
|
Status: this.Status,
|