|
|
@@ -32,7 +32,7 @@
|
|
|
<br />
|
|
|
<template v-for="(item, indx) in groupDb" :key="item.prop">
|
|
|
<el-col :span="item.span || 8">
|
|
|
- <el-form-item :label="item.label" :prop="item.prop + '0'">
|
|
|
+ <el-form-item :label="item.label" :prop="item.prop + index">
|
|
|
<template v-if="item.type === 'input'">
|
|
|
<el-input
|
|
|
v-model="formData[index][item.prop]"
|
|
|
@@ -128,7 +128,6 @@ import { TreeOptions, IOptions } from '@/types/global';
|
|
|
import useDeptStore from '@/store/modules/dept';
|
|
|
import { getNotifyModelDataInfoApi, updateNotifyModelConfigApi } from '@/api/notifyModelCfg/index';
|
|
|
import merge from 'lodash-es/merge';
|
|
|
-import dayjs from 'dayjs';
|
|
|
// 定义props
|
|
|
interface IProps {
|
|
|
modalConfig: {
|
|
|
@@ -206,7 +205,7 @@ watch(
|
|
|
localformRules.value = rules;
|
|
|
const eleForm: any = {};
|
|
|
formItems.forEach(item => {
|
|
|
- eleForm[item.prop] = item.initialValue ?? '1';
|
|
|
+ eleForm[item.prop] = item.initialValue ?? '';
|
|
|
});
|
|
|
|
|
|
initialForm[0] = JSON.parse(JSON.stringify(eleForm));
|
|
|
@@ -251,8 +250,7 @@ function removeItem(index) {
|
|
|
formData.value = JSON.parse(JSON.stringify(newFormData));
|
|
|
console.log('removeItem', formData.value);
|
|
|
}
|
|
|
-{
|
|
|
-}
|
|
|
+
|
|
|
// 点击确定
|
|
|
|
|
|
function handleConfirmClick(formEl: FormInstance | undefined) {
|