|
@@ -676,7 +676,7 @@
|
|
|
visible: false,
|
|
visible: false,
|
|
|
title: '新增记录计划配置',
|
|
title: '新增记录计划配置',
|
|
|
activeIndex: 0,
|
|
activeIndex: 0,
|
|
|
- classify:'',
|
|
|
|
|
|
|
+ classify: '',
|
|
|
addForm: JSON.parse(JSON.stringify(formBaseData)),
|
|
addForm: JSON.parse(JSON.stringify(formBaseData)),
|
|
|
rules: {
|
|
rules: {
|
|
|
name: [
|
|
name: [
|
|
@@ -913,7 +913,7 @@
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
// 外部调用,打开弹窗
|
|
// 外部调用,打开弹窗
|
|
|
- async open(type, data,classify) {
|
|
|
|
|
|
|
+ async open(type, data, classify) {
|
|
|
console.log('type data', type, data);
|
|
console.log('type data', type, data);
|
|
|
this.classify = classify;
|
|
this.classify = classify;
|
|
|
this.type = type;
|
|
this.type = type;
|
|
@@ -986,6 +986,9 @@
|
|
|
this.$refs.formRef.validate(async (valid) => {
|
|
this.$refs.formRef.validate(async (valid) => {
|
|
|
if (valid) {
|
|
if (valid) {
|
|
|
this.butLoading = true;
|
|
this.butLoading = true;
|
|
|
|
|
+ if (!this.addForm.detailList?.length) {
|
|
|
|
|
+ return this.$message.success('规则明细不能为空');
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
try {
|
|
try {
|
|
|
// 赋值创建人和更新人
|
|
// 赋值创建人和更新人
|