|
@@ -307,11 +307,11 @@ export default {
|
|
|
add(index, data) {
|
|
add(index, data) {
|
|
|
data = data || {
|
|
data = data || {
|
|
|
projectId: undefined,
|
|
projectId: undefined,
|
|
|
- itemName: 456,
|
|
|
|
|
- itemCategory: 1,
|
|
|
|
|
|
|
+ itemName: undefined,
|
|
|
|
|
+ itemCategory: undefined,
|
|
|
businessId: undefined,
|
|
businessId: undefined,
|
|
|
- educationTypeId: 21,
|
|
|
|
|
- itemType: 1,
|
|
|
|
|
|
|
+ educationTypeId: undefined,
|
|
|
|
|
+ itemType: undefined,
|
|
|
typeValue: undefined,
|
|
typeValue: undefined,
|
|
|
minValue: undefined,
|
|
minValue: undefined,
|
|
|
maxValue: undefined,
|
|
maxValue: undefined,
|
|
@@ -324,37 +324,25 @@ export default {
|
|
|
close() {
|
|
close() {
|
|
|
this.$refs["form"].resetFields();
|
|
this.$refs["form"].resetFields();
|
|
|
},
|
|
},
|
|
|
- changeEduType() {},
|
|
|
|
|
resetForm() {
|
|
resetForm() {
|
|
|
this.form = {
|
|
this.form = {
|
|
|
itemList: [
|
|
itemList: [
|
|
|
{
|
|
{
|
|
|
projectId: undefined,
|
|
projectId: undefined,
|
|
|
- itemName: 456,
|
|
|
|
|
- itemCategory: 1,
|
|
|
|
|
- businessId: 151,
|
|
|
|
|
- educationTypeId: 21,
|
|
|
|
|
- itemType: 1,
|
|
|
|
|
- typeValue: undefined,
|
|
|
|
|
- minValue: undefined,
|
|
|
|
|
- maxValue: undefined,
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- projectId: undefined,
|
|
|
|
|
- itemName: 456,
|
|
|
|
|
- itemCategory: 1,
|
|
|
|
|
- businessId: 151,
|
|
|
|
|
- educationTypeId: 21,
|
|
|
|
|
- itemType: 1,
|
|
|
|
|
|
|
+ itemName: undefined,
|
|
|
|
|
+ itemCategory: undefined,
|
|
|
|
|
+ businessId: undefined,
|
|
|
|
|
+ educationTypeId: undefined,
|
|
|
|
|
+ itemType: undefined,
|
|
|
typeValue: undefined,
|
|
typeValue: undefined,
|
|
|
minValue: undefined,
|
|
minValue: undefined,
|
|
|
maxValue: undefined,
|
|
maxValue: undefined,
|
|
|
},
|
|
},
|
|
|
],
|
|
],
|
|
|
tpId: undefined,
|
|
tpId: undefined,
|
|
|
- tpName: 123,
|
|
|
|
|
|
|
+ tpName: undefined,
|
|
|
defaultStatus: 0,
|
|
defaultStatus: 0,
|
|
|
- tenantId: "1",
|
|
|
|
|
|
|
+ tenantId: undefined,
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
cb() {
|
|
cb() {
|
|
@@ -378,6 +366,7 @@ export default {
|
|
|
changeMaxValue(prop) {
|
|
changeMaxValue(prop) {
|
|
|
this.$refs.form.validateField(prop);
|
|
this.$refs.form.validateField(prop);
|
|
|
},
|
|
},
|
|
|
|
|
+ // 阶梯校验
|
|
|
isHaveIntersect(list) {
|
|
isHaveIntersect(list) {
|
|
|
const isEmpty = list.some((e) => !e.minValue && !e.maxValue);
|
|
const isEmpty = list.some((e) => !e.minValue && !e.maxValue);
|
|
|
if (isEmpty) {
|
|
if (isEmpty) {
|