From 1e956972dbc3bceb8abba32d937ca7fe3ca6b871 Mon Sep 17 00:00:00 2001
From: yujialong <479214531@qq.com>
Date: Thu, 10 Feb 2022 10:53:58 +0800
Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=BC=96=E8=BE=91=E9=98=B2?=
=?UTF-8?q?=E6=8A=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/assessment/add/index.vue | 9 ++++++---
src/pages/evaluation/list/index.vue | 11 ++++++++---
src/pages/student/list/index.vue | 6 +++---
src/pages/system/list/staff.vue | 4 ----
src/setting.js | 4 ++--
5 files changed, 19 insertions(+), 15 deletions(-)
diff --git a/src/pages/assessment/add/index.vue b/src/pages/assessment/add/index.vue
index 96f0f96..7139717 100644
--- a/src/pages/assessment/add/index.vue
+++ b/src/pages/assessment/add/index.vue
@@ -254,7 +254,8 @@ export default {
pageSize: 5,
total: 0,
isToProject: false,
- systemList: []
+ systemList: [],
+ submiting: false // 新增编辑防抖标识
};
},
computed: {
@@ -424,6 +425,7 @@ export default {
this.getProjectData();
},
upload() { // 提交
+ if (this.submiting) return false
if (!this.form.experimentalName) return util.warningMsg("请填写考核名称");
if (this.expNameRepeat) return util.warningMsg("考核名称重复,请重新输入");
if (this.form.type !== 1) {
@@ -461,19 +463,20 @@ export default {
this.form.classId = classId.toString();
this.form.stuInfo = stuInfo;
}
+ this.submiting = true
if (this.form.id) {
this.$post(this.api.modifyAssessment, this.form).then(res => {
util.successMsg("修改成功");
this.$router.back();
}).catch(err => {
- console.log(err);
+ this.submiting = false
});
} else {
this.$post(this.api.saveAssessment, this.form).then(res => {
util.successMsg("创建成功");
this.$router.back();
}).catch(err => {
- console.log(err);
+ this.submiting = false
});
}
},
diff --git a/src/pages/evaluation/list/index.vue b/src/pages/evaluation/list/index.vue
index 200c38c..fb4d539 100644
--- a/src/pages/evaluation/list/index.vue
+++ b/src/pages/evaluation/list/index.vue
@@ -300,7 +300,8 @@ export default {
uploadDataList: [],
searchTimer: null,
uploadFaild: false,
- exportCode: ""
+ exportCode: "",
+ submiting: false // 新增编辑防抖标识
};
},
mounted() {
@@ -489,6 +490,7 @@ export default {
saveTopics() { // 提交新增/编辑题目
this.$refs.topicForm.validate((valid) => {
if (valid) {
+ if (this.submiting) return false
let topicForm = this.topicForm;
let optionCount = 0;
let answer = "";
@@ -510,13 +512,15 @@ export default {
this.topicForm.questionType = this.questionType.indexOf(this.topicForm.questionType);
this.topicForm.answer = answer.toUpperCase();
+ this.submiting = true
if (this.topicForm.id) {
this.$post(this.api.questionsUpdate, this.topicForm).then(res => {
util.successMsg("编辑成功!");
this.NewTopics = false;
+ this.submiting = false
this.getData();
}).catch(err => {
- console.log(err);
+ this.submiting = false
});
} else {
this.$post(this.api.questionsSave, this.topicForm).then(res => {
@@ -524,9 +528,10 @@ export default {
this.NewTopics = false;
this.subject = "";
this.keyword = "";
+ this.submiting = false
this.initData();
}).catch(err => {
- console.log(err);
+ this.submiting = false
});
}
} else {
diff --git a/src/pages/student/list/index.vue b/src/pages/student/list/index.vue
index 623651b..d613eb9 100644
--- a/src/pages/student/list/index.vue
+++ b/src/pages/student/list/index.vue
@@ -214,8 +214,8 @@
@@ -407,7 +407,7 @@ export default {
token: util.local.get(Setting.tokenKey)
},
disableds:false,
- submiting: false // 新增编辑员工防抖标识
+ submiting: false // 新增编辑防抖标识
};
},
mounted() {
diff --git a/src/pages/system/list/staff.vue b/src/pages/system/list/staff.vue
index 9edb76e..961a161 100644
--- a/src/pages/system/list/staff.vue
+++ b/src/pages/system/list/staff.vue
@@ -77,10 +77,6 @@
style="width: 100%"
>
-
-
-
-
diff --git a/src/setting.js b/src/setting.js
index 23be905..9736ae2 100644
--- a/src/setting.js
+++ b/src/setting.js
@@ -36,8 +36,8 @@ if (isHh) {
} else if (isDev) {
jumpPath = "http://192.168.31.154:8087/";
// host = "http://www.occupationlab.com:9000/";//线上
- // host = "http://39.108.250.202:9000/"; // 中台测试服
- host = "http://192.168.31.151:9000/"; // 榕
+ host = "http://39.108.250.202:9000/"; // 中台测试服
+ // host = "http://192.168.31.151:9000/"; // 榕
// host = "http://192.168.31.125:9000/"; // 坤
// host = 'http://192.168.31.137:9000/'; // 赓
title = "职站服务端管理系统";