Commit b46a54fe authored by liwenhong's avatar liwenhong

fix:时间格式

parent e2e85eba
...@@ -245,7 +245,7 @@ ...@@ -245,7 +245,7 @@
if (res.code !== 0) return this.$message.error(res.reason); if (res.code !== 0) return this.$message.error(res.reason);
this.configForm = { this.configForm = {
result: res.result.list, result: res.result.list,
date: val, date: moment(val).format("YYYY-MM-DD"),
}; };
}, },
removeDomain(item) { removeDomain(item) {
...@@ -260,15 +260,14 @@ ...@@ -260,15 +260,14 @@
async handleSaveConfig() { async handleSaveConfig() {
this.configForm.result.map((item, index) => (item.level = index + 1)); this.configForm.result.map((item, index) => (item.level = index + 1));
console.log("this.listParams.config", this.configForm.result); console.log("this.listParams.config", this.configForm.result);
if (this.configForm.result.length && this.configForm.result.length > 2) { if (!this.configForm.result[0]) return this.$message.error("请配置档位");
else if (this.configForm.result.length && this.configForm.result.length > 2) {
for (let i = 1; i < this.configForm.result.length; i++) { for (let i = 1; i < this.configForm.result.length; i++) {
if (!this.configForm.result[i].assess_order_num || !this.configForm.result[i].reward_amount) { if (!this.configForm.result[i].assess_order_num || !this.configForm.result[i].reward_amount) {
return this.$message.error("输入不能为空"); return this.$message.error("输入不能为空");
} else if (this.configForm.result[i - 1].assess_order_num >= this.configForm.result[i].assess_order_num) { } else if (this.configForm.result[i - 1].assess_order_num >= this.configForm.result[i].assess_order_num) {
console.log(11);
return this.$message.error("请输入比上一档位大的考核单量"); return this.$message.error("请输入比上一档位大的考核单量");
} else if (this.configForm.result[i - 1].reward_amount >= this.configForm.result[i].reward_amount) { } else if (this.configForm.result[i - 1].reward_amount >= this.configForm.result[i].reward_amount) {
console.log(22);
return this.$message.error("请输入比上一档位大的奖励金额"); return this.$message.error("请输入比上一档位大的奖励金额");
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment