import { reactive, toRefs, ref, watch } from "vue";
+import { useRouter } from "vue-router";
import {
FolderAddOutlined
} from '@ant-design/icons-vue';
+import dialog from "@/utils/dialog";
+import { message } from "ant-design-vue";
import ProjectManager from "@/components/project/ProjectManagerNew";
import { systemList, deleteTrainOrg } from "../../api/organization";
export default {
@@ -180,7 +194,9 @@ export default {
FolderAddOutlined,//图标--新增
},
+
setup() {
+ const router = useRouter();
const state = reactive({
tableLoading: false,
deleteInTeacherdialog: false,
@@ -195,10 +211,24 @@ export default {
pageSize: "10"
},
formParam: {
- trainorgId: null,
- trainorgName: null,
+ systemCode: null,
+ systemName: null,
remark: null,
- sysNum:1
+ levelList:[{
+ levelName:null,
+ levelTime:null,
+ sort:1,
+ levelPay:null,
+ upperLimit:null
+ },
+ {
+ levelName:null,
+ levelTime:null,
+ sort:1,
+ levelPay:null,
+ upperLimit:null
+ },
+ ]
}
})
function managerChange(e, l, d, t, orgName) {
@@ -210,16 +240,16 @@ export default {
const columns = ref([
{
title: '讲师体系编号 ',
- dataIndex: 'trainorgId',
- key: 'trainorgId',
+ dataIndex: 'kid',
+ key: 'kid',
elipsis: true,
align: "center",
width: 200,
},
{
- title: '归属组织名称 ',
- dataIndex: 'trainorgName',
- key: 'trainorgName',
+ title: '讲师体系名称 ',
+ dataIndex: 'systemName',
+ key: 'systemName',
elipsis: true, align: "center",
width: 600,
},
@@ -312,10 +342,18 @@ export default {
}
const cancel = () => {
state.formParam = {
- trainorgId: null,
- trainorgName: null,
- remark: null
+ systemCode: null,
+ systemName: null,
+ remark: null,
+ levelList:[{
+ levelName:null,
+ levelTime:null,
+ sort:1,
+ levelPay:null,
+ upperLimit:null
}
+ ]
+ }
}
//保存
const createTeacherDialog = () => {
@@ -339,12 +377,34 @@ export default {
const rules = {
trainorgId: [{ required: true, message: '讲师体系编号不能为空' }],
trainorgName: [{ required: true, message: '讲师体系名称不能为空' }],
-
-
+ }
+ const handleLook =(record)=>{
+ let id = record.kid
+ router.push({ path: '/LookLecturerSystem', query: { id } })
+ }
+ const inputAdd = ()=>{
+ state.formParam.levelList.push({
+ levelName:null,
+ levelTime:null,
+ sort:1,
+ levelPay:null,
+ upperLimit:null
+ });
+ }
+ const inputRemove=(index)=>{
+ dialog({
+ content: "确定删除此等级信息吗?",
+ ok: async () => {
+ state.formParam.levelList.splice(index, 1);
+ message.success("删除成功");
+ },
+ });
}
return {
...toRefs(state),
rules,
+ inputRemove,
+ inputAdd,
managerChange,
columns,
tableData,
@@ -356,7 +416,8 @@ export default {
addTeacher,
handleModify,
closeDeleteTeacher,
- changePagination
+ changePagination,
+ handleLook
}
}
}
@@ -729,4 +790,20 @@ export default {
.ant-upload.ant-upload-select-picture-card {
border: 0px !important;
border-radius: 50% !important;
-}
\ No newline at end of file
+}
+.btn-circle{
+ text-align: center;
+ line-height: 100%;
+ margin-top: 5px;
+ .custom-icon{
+ font-size: 20px;
+ svg{
+ margin: auto;
+ }
+ }
+ span{
+ width: 100%;
+ height: 100%;
+ font-size: 33px;
+ }
+ }
\ No newline at end of file
diff --git a/src/views/lecturer/LookLecturerSystem.vue b/src/views/lecturer/LookLecturerSystem.vue
new file mode 100644
index 00000000..f3dcd168
--- /dev/null
+++ b/src/views/lecturer/LookLecturerSystem.vue
@@ -0,0 +1,237 @@
+
+ExternalLecturer
+
+
+
+
+ 讲师体系管理
+
+
+
+ 返回
+
+
+
+
+
+
+
+
+
讲师信息
+
+ {{formParam.kid}}
+ {{formParam.systemName}}
+ {{formParam.remark}}
+
+
+
+
+
讲师等级
+
+
+
+
+
+
+
+ {{ record.remark }}
+
+ {{ record.remark }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file