浏览代码

通报 模板正则 待处理

Luka 23 小时之前
父节点
当前提交
4ee757c801
共有 2 个文件被更改,包括 5 次插入7 次删除
  1. 2 2
      .env.development
  2. 3 5
      src/views/notifyModelCfg/components/detail.vue

+ 2 - 2
.env.development

@@ -17,9 +17,9 @@ VITE_APP_TOKEN =  6617e72a5a7e41eb6c30aa4fa3000022
 # 开发接口地址
 # VITE_APP_API_URL = "http://libai1024.gnway.cc:80"
 # VITE_APP_API_URL = "http://r96896c3.natappfree.cc"
-# VITE_APP_API_URL = "http://106.75.213.212:7070"
+VITE_APP_API_URL = "http://106.75.213.212:7070"
 # VITE_APP_API_URL = "http://192.168.101.73:7070"
-VITE_APP_API_URL = "http://192.168.50.8:7070"
+# VITE_APP_API_URL = "http://192.168.50.8:7070"
 
 # 是否在打包时开启压缩,支持 gzip 和 brotli
 VITE_BUILD_COMPRESS = gzip

+ 3 - 5
src/views/notifyModelCfg/components/detail.vue

@@ -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) {