From 51defe0d068a09f9827e8556246188f775a85d7d Mon Sep 17 00:00:00 2001
From: yujialong <479214531@qq.com>
Date: Wed, 27 Apr 2022 17:44:27 +0800
Subject: [PATCH] =?UTF-8?q?=E8=AE=A2=E5=8D=95=E3=80=81=E7=94=A8=E6=88=B7?=
=?UTF-8?q?=E7=AD=89=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/setting.js | 6 +++---
src/utils/http.js | 2 +-
src/views/course/AddCurriculum.vue | 8 ++++----
src/views/customer/AddCustomer.vue | 4 ++--
src/views/order/AddOrder.vue | 8 +++++---
src/views/system/staff.vue | 4 ++--
src/views/user/AddUser.vue | 2 +-
7 files changed, 18 insertions(+), 16 deletions(-)
diff --git a/src/setting.js b/src/setting.js
index db63277..913910d 100644
--- a/src/setting.js
+++ b/src/setting.js
@@ -9,8 +9,8 @@ let jumpPath = `${location.origin}/judgmentPoint`
let host = `${location.origin}:9000/`
if (isDev) {
jumpPath = "http://192.168.31.125:8087/"; // 本地调试-需要启动本地判分点系统
- // 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.137:9000/'// 赓
} else if (isPro) {
jumpPath = "http://www.huorantech.cn/judgmentPoint/";
@@ -23,7 +23,7 @@ const Setting = {
* */
platformId: 3, // 平台标识,1职站,2数据平台,3中台
jumpPath, // 判分点系统跳转路径前缀
- host, // 请求路径前缀
+ apiBaseURL: host, // 请求路径前缀
uploadURL: 'http://39.108.250.202:9000/', // 阿里云oss域名
// 平台列表
platformList: [
diff --git a/src/utils/http.js b/src/utils/http.js
index 6189e50..dfbc448 100644
--- a/src/utils/http.js
+++ b/src/utils/http.js
@@ -4,7 +4,7 @@ import { Message } from 'element-ui'
import router from '../router/index'
import Setting from '@/setting'
-axios.defaults.baseURL = Setting.host
+axios.defaults.baseURL = Setting.apiBaseURL
// 请求超时时间
axios.defaults.timeout = 30000;
diff --git a/src/views/course/AddCurriculum.vue b/src/views/course/AddCurriculum.vue
index af0b94d..f67f998 100644
--- a/src/views/course/AddCurriculum.vue
+++ b/src/views/course/AddCurriculum.vue
@@ -556,11 +556,11 @@ export default {
return e;
});
if (this.permissions) {
- this.assessmentData = data;
- this.assessmentTotal = data.length;
+ this.assessmentData.push(...data)
+ this.assessmentTotal = this.assessmentData.length;
} else {
- this.practiceData = data;
- this.practiceTotal = data.length;
+ this.practiceData.push(...data)
+ this.practiceTotal = this.practiceData.length;
}
}).catch(err => {
});
diff --git a/src/views/customer/AddCustomer.vue b/src/views/customer/AddCustomer.vue
index 208f043..fe94a75 100644
--- a/src/views/customer/AddCustomer.vue
+++ b/src/views/customer/AddCustomer.vue
@@ -73,10 +73,10 @@
-
+
-
+
diff --git a/src/views/order/AddOrder.vue b/src/views/order/AddOrder.vue
index fce4f2a..4816b82 100644
--- a/src/views/order/AddOrder.vue
+++ b/src/views/order/AddOrder.vue
@@ -1073,6 +1073,7 @@ export default {
async addCourse() {
if (this.courseSelection.length > 0) {
let that = this;
+ const { orderType } = this.form
let fn = function(e) {
let obj = {
dataOrCourseId: e.cid,// id
@@ -1082,7 +1083,7 @@ export default {
endTime: "", // 终止
remainingPeriod: "",// 剩余期限
marketValue: e.marketPrice,// 市场价
- finalPrice: "",// 成交价
+ finalPrice: orderType === 2 ? 0 : '',// 成交价
discountRate: "",// 折扣率
accountNum: "",// 账号数
totalAmount: "",// 总价
@@ -1185,6 +1186,7 @@ export default {
async addPlatform() {
if (this.platformSelect.length > 0) {
let that = this;
+ const { orderType } = this.form
let fn = function(e) {
let obj = {
dataOrCourseId: e.id,// id
@@ -1194,10 +1196,10 @@ export default {
endTime: "", // 终止
remainingPeriod: "",// 剩余期限
marketValue: e.market,// 市场价
- finalPrice: "",// 成交价
+ finalPrice: '',// 成交价
discountRate: "",// 折扣率
accountNum: "",// 账号数
- totalAmount: "",// 总价
+ totalAmount: orderType === 2 ? 0 : '',// 总价
isEnable: 1, // 启用否:1启用,0禁用
ship: 0,// 发货否(0未发货,1已发货,默认不发货)
authority: 0,// 数据平台权限
diff --git a/src/views/system/staff.vue b/src/views/system/staff.vue
index 442f2d5..7775655 100644
--- a/src/views/system/staff.vue
+++ b/src/views/system/staff.vue
@@ -237,7 +237,7 @@ export default {
if (value) {
const pattern = /^1[3456789]\d{9}$/
if(pattern.test(value)){
- this.phoneChange()
+ // this.phoneChange()
callback()
}else{
callback(new Error('请输入正确手机号格式'))
@@ -250,7 +250,7 @@ export default {
if (value) {
const pattern = /^([a-zA-Z]|[0-9])(\w|\-)+@[a-zA-Z0-9]+\.([a-zA-Z]{2,4})$/
if(pattern.test(value)){
- this.emailChange()
+ // this.emailChange()
callback()
}else{
callback(new Error('请输入正确邮箱格式'))
diff --git a/src/views/user/AddUser.vue b/src/views/user/AddUser.vue
index ddca997..ebefbcb 100644
--- a/src/views/user/AddUser.vue
+++ b/src/views/user/AddUser.vue
@@ -140,7 +140,7 @@
-
+