This commit is contained in:
bb_pan 2025-07-02 11:33:13 +08:00
parent cdfeda1728
commit 7a611dbe82
1 changed files with 12 additions and 2 deletions

View File

@ -659,7 +659,7 @@
:close-on-click-modal="false" :close-on-click-modal="false"
> >
<el-form <el-form
label-width="80px" label-width="120px"
:model="addFormParams" :model="addFormParams"
:rules="addFormParamsRules" :rules="addFormParamsRules"
ref="addFormParamsRef" ref="addFormParamsRef"
@ -679,6 +679,14 @@
<el-input style="width: 100%" v-model="addFormParams.typeName" /> <el-input style="width: 100%" v-model="addFormParams.typeName" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12" v-if="addTitle === '修改'">
<el-form-item label="是否录入编码" prop="isEnter">
<el-select style="width: 100%" v-model="addFormParams.isEnter">
<el-option label="是" value="1" />
<el-option label="否" value="0" />
</el-select>
</el-form-item>
</el-col>
</el-row> </el-row>
<el-row style="text-align: right"> <el-row style="text-align: right">
@ -851,6 +859,7 @@ export default {
label: "", label: "",
typeName: "", typeName: "",
companyId: 101, companyId: 101,
isEnter: ''
}, },
addFormParamsRules: { addFormParamsRules: {
@ -1309,7 +1318,7 @@ export default {
}, },
/* 确定 */ /* 确定 */
onSubmit() { onSubmit() {
const { id, typeName } = this.addFormParams; const { id, typeName, isEnter } = this.addFormParams;
console.log("level", this.levelTemp); console.log("level", this.levelTemp);
console.log("idTemp", this.idTemp); console.log("idTemp", this.idTemp);
const addParams = { const addParams = {
@ -1325,6 +1334,7 @@ export default {
level: this.levelTemp, level: this.levelTemp,
parentId: this.parentId, parentId: this.parentId,
typeId: id, typeId: id,
isEnter,
}; };
this.$refs["addFormParamsRef"].validate(async (valid) => { this.$refs["addFormParamsRef"].validate(async (valid) => {