订单、用户等修改

dev_2022-04-07
yujialong 3 years ago
parent a635295041
commit 51defe0d06
  1. 6
      src/setting.js
  2. 2
      src/utils/http.js
  3. 8
      src/views/course/AddCurriculum.vue
  4. 4
      src/views/customer/AddCustomer.vue
  5. 8
      src/views/order/AddOrder.vue
  6. 4
      src/views/system/staff.vue
  7. 2
      src/views/user/AddUser.vue

@ -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: [

@ -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;

@ -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 => {
});

@ -73,10 +73,10 @@
<el-input placeholder="请输入联系人姓名" v-model="form.name"></el-input>
</el-form-item>
<el-form-item prop="phone" label="手机号">
<el-input placeholder="请输入联系人手机号" v-model="form.phone" maxlength="11" @blur="phoneChange"></el-input>
<el-input placeholder="请输入联系人手机号" v-model="form.phone" maxlength="11"></el-input>
</el-form-item>
<el-form-item prop="email" label="邮箱">
<el-input placeholder="请输入邮箱" v-model="form.email" @blur="emailChange"></el-input>
<el-input placeholder="请输入邮箱" v-model="form.email"></el-input>
</el-form-item>
</el-col>
</el-form>

@ -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, // 10
ship: 0,// 01
authority: 0,//

@ -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('请输入正确邮箱格式'))

@ -140,7 +140,7 @@
<el-table-column prop="userName" label="姓名" align="center"></el-table-column>
<el-table-column prop="workNumber" label="工号/学号" align="center"></el-table-column>
<el-table-column prop="roleName" label="角色" align="center"></el-table-column>
<el-table-column prop="logInNumber" label="绑定时间" align="center"></el-table-column>
<el-table-column prop="phoneBindingTime" label="绑定时间" align="center"></el-table-column>
<el-table-column prop="logInNumber" label="登录次数" align="center"></el-table-column>
<el-table-column prop="lastLoginTime" label="上一次的登录时间" align="center"></el-table-column>
<el-table-column label="操作" align="center">

Loading…
Cancel
Save