@@ -188,10 +184,8 @@ import claTimeSelect from '@/components/sc/claTime/claTimeSelect'
import roomSelect from '@/components/sc/base/roomSelect'
import claSelect from '@/components/sc/course/cla/claSelect'
import deptSelect from '@/components/system/dept/deptSelect'
-import { allDetailInfoById } from '@/api/school/sc/cla'
import moment from 'moment'
-import { searchCourseClaStudent } from '@/api/school/sc/cla/index'
-import {claTimeInfo as loadClaTimeInfo,confirmCla} from "@/api/school/sc/cla/claTime";
+import {claTimeInfo as loadClaTimeInfo,confirmCla,searchCourseClaStudent} from "@/api/school/sc/cla/claTime";
import memberCardApi from "@/api/school/sc/memberCard";
export default {
components: {
@@ -306,22 +300,15 @@ export default {
},
loadClaInfo() {
- if (this.claId) {
this.loadingClaDetail = true
loadClaTimeInfo(this.appointCourseTimeId).then(response => {
this.claTimeInfo = response.data
// 自动设置表单信息
this.autoSetFormByClaTimeInfo()
- return allDetailInfoById(this.claId)
- }).then(response => {
- this.loadingClaDetail = false
- this.claInfo = response.data.courseCla
- this.claCourseInfo = response.data.course
- this.getList()
- }).catch(() => {
this.loadingClaDetail = false
})
- }
+
+ this.getList()
},
// 自动设置 表单信息
autoSetFormByClaTimeInfo() {
@@ -365,7 +352,7 @@ export default {
this.claStudentList = claStudentList
this.loading = false
})
-
+ this.loading = false
},
// 签到
diff --git a/src/components/sc/claTime/changeClaTimeAttend.vue b/src/components/sc/claTime/changeClaTimeAttend.vue
index ef45f4c..b91ccba 100644
--- a/src/components/sc/claTime/changeClaTimeAttend.vue
+++ b/src/components/sc/claTime/changeClaTimeAttend.vue
@@ -5,15 +5,11 @@
校区:
-
{{ claInfo.deptName }}
+
{{ claTimeInfo.deptName }}
所属课程:
-
{{ claCourseInfo.courseName }}
-
-
-
班级:
-
{{ claInfo.claName }}
+
{{ claTimeInfo.courseName }}
上课教练:
@@ -69,9 +65,9 @@
v-model="form.endTime"
size="small"
:picker-options="{
- start: '08:00',
+ start: '00:00',
step: '00:01',
- end: '20:00'
+ end: '23:59'
}"
style="width: 135px;"
placeholder="下课时间"
@@ -162,10 +158,10 @@
import { selectDictLabel } from '@/utils/commonUtils'
import staffSelect from '@/components/system/staff/staffSelect'
import roomSelect from '@/components/sc/base/roomSelect'
-import { allDetailInfoById } from '@/api/school/sc/cla'
+// import { allDetailInfoById } from '@/api/school/sc/cla'
import { claTimeInfo as loadClaTimeInfo, } from '@/api/school/sc/cla/claTime'
import moment from 'moment'
-import { searchCourseClaStudent } from '@/api/school/sc/cla/index'
+import { searchCourseClaStudent } from '@/api/school/sc/cla/claTime'
export default {
components: {
staffSelect,
@@ -283,17 +279,11 @@ export default {
this.loadingClaDetail = true
loadClaTimeInfo(this.courseTimeId).then(response => {
this.claTimeInfo = response.data
- // 自动设置表单信息
this.autoSetFormByClaTimeInfo()
- return allDetailInfoById(this.claId)
- }).then(response => {
- this.loadingClaDetail = false
- this.claInfo = response.data.courseCla
- this.claCourseInfo = response.data.course
- this.loadCourseClaStudentAndAttendDetail()
- }).catch(() => {
this.loadingClaDetail = false
})
+
+ this.loadCourseClaStudentAndAttendDetail()
}
},
// 自动设置 表单信息
@@ -301,8 +291,8 @@ export default {
this.form.teacherId = this.claTimeInfo.teacherId
this.form.roomId = this.claTimeInfo.roomId
this.form.claDate = this.claTimeInfo.realClaDate
- this.form.startTime = this.claTimeInfo.realStartTime.substr(0, 5)
- this.form.endTime = this.claTimeInfo.realEndTime.substr(0, 5)
+ this.form.startTime = this.claTimeInfo.realStartTime?.substr(0, 5)
+ this.form.endTime = this.claTimeInfo.realEndTime?.substr(0, 5)
this.form.memo = this.claTimeInfo.memo
this.form.classTheme = this.claTimeInfo.classTheme
},
@@ -334,6 +324,7 @@ export default {
this.loading = false
})
+ this.loading = false
},
}
}
diff --git a/src/components/sc/claTime/changeTime.vue b/src/components/sc/claTime/changeTime.vue
index dde3fee..2897302 100644
--- a/src/components/sc/claTime/changeTime.vue
+++ b/src/components/sc/claTime/changeTime.vue
@@ -2,11 +2,11 @@
-
-
-
-
-
+
+
+
+
+
@@ -34,11 +34,11 @@
-
-
-
-
-
+
+
+
+
+
-
+
-
+
-
-
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -63,7 +104,7 @@
-
+
全选
{{ dict.dictLabel }}
@@ -92,9 +133,9 @@
v-model="form.startTime"
size="small"
:picker-options="{
- start: '08:00',
+ start: '00:00',
step: '00:01',
- end: '20:00'
+ end: '23:59'
}"
@change="startTimeChange"
placeholder="选择上课时间"
@@ -111,7 +152,7 @@
@@ -154,6 +195,7 @@
@@ -283,4 +367,24 @@ export default {
padding-left: 10px;
}
}
+ /* 富文本样式 */
+ .editor-container {
+ border: 1px solid #e6e6e6;
+ border-radius: 4px;
+ padding: 5px;
+ margin-bottom: 10px;
+ }
+
+ .remark-editor {
+ min-height: 200px;
+ }
+
+ .profile-editor {
+ min-height: 300px;
+ }
+
+ .editor-container img {
+ max-width: 100% !important;
+ height: auto !important;
+ }
diff --git a/src/components/sc/course/cla/claSelect.vue b/src/components/sc/course/cla/claSelect.vue
index ddd5eb5..193be7f 100644
--- a/src/components/sc/course/cla/claSelect.vue
+++ b/src/components/sc/course/cla/claSelect.vue
@@ -118,10 +118,6 @@ export default {
},
mounted() {
this.loadCla()
- // if (this.mountedLoadAll && this.claList.length === 0) {
- // this.pageNum = 1
- // this.loadCla()
- // }
},
methods: {
loadCla: function() {
diff --git a/src/components/sc/course/courseSelect.vue b/src/components/sc/course/courseSelect.vue
index 0ff62d7..347eff9 100644
--- a/src/components/sc/course/courseSelect.vue
+++ b/src/components/sc/course/courseSelect.vue
@@ -21,7 +21,7 @@
diff --git a/src/views/school/claTime/rule/index.vue b/src/views/school/claTime/rule/index.vue
index fad2054..9e1e269 100644
--- a/src/views/school/claTime/rule/index.vue
+++ b/src/views/school/claTime/rule/index.vue
@@ -4,14 +4,11 @@
-
-
-
-
+
-
+
diff --git a/src/views/school/course/cla/index.vue b/src/views/school/course/cla/index.vue
index 8690412..3d76708 100644
--- a/src/views/school/course/cla/index.vue
+++ b/src/views/school/course/cla/index.vue
@@ -375,7 +375,7 @@ export default {
const claInfo = response.data.claInfo
this.$refs['changeTimeRule'].reset()
- this.$refs['changeTimeRule'].canChangeCla = false
+ this.$refs['changeTimeRule'].canChangeCourse = false
this.$refs['changeTimeRule'].form.deptId = claInfo.departId
this.$refs['changeTimeRule'].form.claId = claInfo.claId
this.$refs['changeTimeRule'].open = true
diff --git a/src/views/school/course/index.vue b/src/views/school/course/index.vue
index 9226807..ee8f348 100644
--- a/src/views/school/course/index.vue
+++ b/src/views/school/course/index.vue
@@ -121,7 +121,7 @@
:cell-style="{'text-align': 'center'}"
>
-
+
@@ -137,13 +137,11 @@
-
{{ scope.row.tuitionFee }} 元
-
{{ scope.row.claFee }} 元
@@ -161,20 +159,30 @@
+
+
+
+
+
+
+
+ 查看内容
+
+
+
{{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
@@ -251,6 +266,8 @@ export default {
chargeType: undefined,
sale: ''
},
+ remarkDialogVisible: false,
+ remarkDialogContent: "",
// 课程类型
courseTypeOptions: [],
// 教学模式
@@ -327,8 +344,9 @@ export default {
/** 修改按钮操作 */
handleUpdate(row) {
getCourse(row.courseId || this.ids).then(response => {
- this.$refs.addCourseComponents.init()
this.$refs.addCourseComponents.form = response.data
+ this.$refs.addCourseComponents.init()
+
if (response.data.partCampus==null){
this.$refs.addCourseComponents.form.partCampus=[]
}
@@ -359,7 +377,21 @@ export default {
that.loadingChange = false
})
},
-
+ /** 课程说明 */
+ showProfileDialog(content) {
+ let processedContent = content || '暂无说明';
+ processedContent = processedContent.replace(
+ /
* 说明:佣金方案为app端提成统计提供数据依据,计算结果仅供参考,
-
* 计算方式:
+
* 系统自动计算方式:
1.按成交订单使用的佣金方案分组,
2.按照方案中的比例计算某一组的提成,
3.所有分组的提成之和 = 最后应得提成,
* 举例:
课程顾问Amy本月成交了10单,其中有3单使用了佣金方案A,
- 如果三单的销售额之和为12000元,大于方案A的第一阶梯阈值8000元,小于方案A的第二阶梯阈值15000元,
+ 如果这3单的销售额之和为12000元,大于方案A的第一阶梯阈值8000元,小于方案A的第二阶梯阈值15000元,
那么这三单的提成=Amy这三单的销售额之和 ✖️ 方案A的第二阶梯比例8% = 12000✖️0.08 = 960元;
+ 以此类推,将剩余7单再按照佣金方案分组,分别计算提成;
+ 最后将提成结果相加,就是Amy本月成交的10单总提成;
diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue
index e9871d7..0a420d2 100644
--- a/src/views/system/dept/index.vue
+++ b/src/views/system/dept/index.vue
@@ -1,16 +1,16 @@
-
+
-
+
+
+
+ {{ scope.row.activationDate }} ~ {{scope.row.expiryDate}}
+
+
{{ parseTime(scope.row.createTime) }}
@@ -112,25 +117,25 @@
-
-
+
+
-
-
+
+
-
-
-
+
+
+
{{ dict.deptTypeName }}
+ v-for="dict in dict.type.sys_normal_disable"
+ :key="dict.value"
+ :label="dict.value"
+ >{{dict.label}}
@@ -141,48 +146,31 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+ {{ dict.deptTypeName }}
+
-
-
-
-
-
-
-
-
- {{dict.label}}
-
+
+
+
@@ -229,7 +217,8 @@ export default {
// 查询参数
queryParams: {
deptName: undefined,
- status: undefined
+ status: undefined,
+ dateRange: undefined,
},
// 类型
deptTypeOptions: [{
@@ -252,20 +241,9 @@ export default {
orderNum: [
{ required: true, message: "显示排序不能为空", trigger: "blur" }
],
- email: [
- {
- type: "email",
- message: "请输入正确的邮箱地址",
- trigger: ["blur", "change"]
- }
+ dateRange: [
+ { required: true, message: "入驻期限不能为空", trigger: "change" }
],
- phone: [
- {
- pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
- message: "请输入正确的手机号码",
- trigger: "blur"
- }
- ]
}
};
},
@@ -281,22 +259,6 @@ export default {
}).catch(() => {});
}
- },
- /****/
- changeLeader(value){
-
- if (value){
- const selectedOption = this.leaderOptions.find(opt => opt.userId === value);
- this.form.leader=selectedOption.nickName;
- this.form.phone=selectedOption.phonenumber;
- this.form.email=selectedOption.email;
- }else {
- this.form.leader=null;
- this.form.phone=null;
- this.form.email=null;
- }
-
-
},
/** 查询部门列表 */
getList() {
@@ -328,6 +290,9 @@ export default {
deptId: undefined,
parentId: undefined,
deptName: undefined,
+ dateRange: undefined,
+ activationDate: undefined,
+ expiryDate: undefined,
deptType:'2',
orderNum: undefined,
leader: undefined,
@@ -376,6 +341,9 @@ export default {
this.reset();
getDept(row.deptId).then(response => {
this.form = response.data;
+ if (this.form.activationDate!=undefined && this.form.expiryDate!=null){
+ this.form.dateRange=[new Date(response.data.activationDate), new Date(response.data.expiryDate)]
+ }
this.oldType=response.data.deptType
this.open = true;
this.title = "修改部门";
@@ -388,6 +356,8 @@ export default {
submitForm: function() {
this.$refs["form"].validate(valid => {
if (valid) {
+ this.form.activationDate=this.form.dateRange[0];
+ this.form.expiryDate= this.form.dateRange[1];
if (this.form.deptId != undefined) {
updateDept(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
diff --git a/src/views/system/role/index.vue b/src/views/system/role/index.vue
index 96f52af..7b200a8 100644
--- a/src/views/system/role/index.vue
+++ b/src/views/system/role/index.vue
@@ -531,7 +531,7 @@ export default {
this.reset();
const roleId = row.roleId || this.ids
const roleMenu = this.getRoleMenuTreeselect(roleId);
- if (roleId<=108 && this.userId!==1 ){
+ if (roleId<=108 && this.userId!=1 ){
this.disabledFlag=true;
}
getRole(roleId).then(response => {
@@ -547,7 +547,7 @@ export default {
})
});
});
- this.title = this.userId===1?"修改角色":"角色权限展示";
+ this.title = this.userId==1?"修改角色":"角色权限展示";
});
},
/** 选择角色权限范围触发 */
diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue
index 0fad7fc..39ce482 100644
--- a/src/views/system/user/index.vue
+++ b/src/views/system/user/index.vue
@@ -48,21 +48,21 @@
@keyup.enter.native="handleQuery"
/>
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
搜索
@@ -104,6 +104,7 @@
v-model="scope.row.status"
active-value="0"
inactive-value="1"
+ :disabled="scope.row.userId == '26'"
@change="handleStatusChange(scope.row)"
>
@@ -120,7 +121,7 @@
width="160"
class-name="small-padding fixed-width"
>
-
+