diff --git a/src/views/notice/NoticeDetail.vue b/src/views/notice/NoticeDetail.vue
new file mode 100644
index 0000000..f80ed13
--- /dev/null
+++ b/src/views/notice/NoticeDetail.vue
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
diff --git a/src/views/notice/NoticeForm.vue b/src/views/notice/NoticeForm.vue
new file mode 100644
index 0000000..ef9f619
--- /dev/null
+++ b/src/views/notice/NoticeForm.vue
@@ -0,0 +1,216 @@
+
+
+
+ 保存
+ 返回
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 是
+ 否
+
+
+
+
+
+
+ 是
+ 否
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 新闻资讯
+ 公告详情
+ 通知
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/notice/NoticeList.vue b/src/views/notice/NoticeList.vue
new file mode 100644
index 0000000..725296e
--- /dev/null
+++ b/src/views/notice/NoticeList.vue
@@ -0,0 +1,198 @@
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ {queryParam = {}, this.loadData()}">重置
+
+
+
+
+
+
+ {{ record.type | typeFilter }}
+
+
+ {{ record.publishTime | moment('YYYY-MM-DD HH:mm:ss') }}
+
+
+ 查看
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ {queryParam = {}, this.loadData()}">重置
+
+
+
+
+
+
+
+
+
+
+ {{ record.type | typeFilter }}
+
+
+ {{ record.publishTime | moment('YYYY-MM-DD HH:mm:ss') }}
+
+
+
+ 编辑
+
+ 查看
+
+ handleDel(record)">
+ 删除
+
+
+
+
+
+
+
+
+
diff --git a/src/views/org/OrgTree.vue b/src/views/org/OrgTree.vue
index f5d0f90..b17955d 100644
--- a/src/views/org/OrgTree.vue
+++ b/src/views/org/OrgTree.vue
@@ -104,7 +104,7 @@ export default {
})
},
loadOrg () {
- orgList().then(res => {
+ orgList({ orgType: 1 }).then(res => {
if (!res.code === 200 || !res.data.length) {
return
}
diff --git a/src/views/security/menu/MenuForm.vue b/src/views/security/menu/MenuForm.vue
index 305cb92..c0adced 100644
--- a/src/views/security/menu/MenuForm.vue
+++ b/src/views/security/menu/MenuForm.vue
@@ -1,5 +1,12 @@
-
+
@@ -33,7 +40,13 @@
- {
this.setMenuItem(record)
@@ -185,7 +198,7 @@ export default {
this.formLoading = false
},
- getMenuTree() {
+ getMenuTree () {
menuTree().then((res) => {
if (res.code == 200) {
this.form.resetFields(`pid`, [])
@@ -206,7 +219,7 @@ export default {
/**
* 选择菜单类型执行初始化表单变量
*/
- meneTypeFunc(type) {
+ meneTypeFunc (type) {
this.type = type
// eslint-disable-next-line eqeqeq
if (type == '0' || type == '1') {
@@ -221,6 +234,7 @@ export default {
}
// eslint-disable-next-line eqeqeq
if (type == '0') {
+ console.log(type)
// 组件默认为显示,设置可输入,给默认组件 PageView,验证必填
this.componentShow = true
this.componentDisabled = false
@@ -228,6 +242,7 @@ export default {
this.componentRequired = true
// 父级初始化顶级,并将其隐藏
this.form.getFieldDecorator('pid', { initialValue: '0' })
+ this.treeSelDefaultValue = 0
this.pidShow = false
} else {
// eslint-disable-next-line eqeqeq
@@ -256,7 +271,7 @@ export default {
this.form.getFieldDecorator('permission', { initialValue: '' })
}
},
- handleSubmit() {
+ handleSubmit () {
const { form: { validateFields } } = this
this.confirmLoading = true
validateFields((errors, values) => {
@@ -299,12 +314,12 @@ export default {
}
})
},
- handleCancel() {
+ handleCancel () {
this.form.resetFields()
this.confirmLoading = false
this.visible = false
},
- setMenuItem(record) {
+ setMenuItem (record) {
console.log(record)
this.form.setFieldsValue(
{
diff --git a/src/views/user/Login.vue b/src/views/user/Login.vue
index 1403366..08a0080 100644
--- a/src/views/user/Login.vue
+++ b/src/views/user/Login.vue
@@ -1,6 +1,12 @@
+
+
+ 学员
+ 管理员
+
+
@@ -23,22 +29,24 @@ import { mapActions } from 'vuex'
import { timeFix } from '@/utils/util'
export default {
- data() {
+ data () {
return {
form: {
username: '',
- password: ''
+ password: '',
+ roleCode: 'student'
},
rules: {
username: [{ required: true, message: '请输入用户名' }],
- password: [{ required: true, message: '请输入密码', trigger: 'blur' }]
+ password: [{ required: true, message: '请输入密码', trigger: 'blur' }],
+ roleCode: [{ required: true, message: '请输入密码', trigger: 'change' }]
},
loading: false
}
},
methods: {
...mapActions(['Login', 'Logout']),
- handleSubmit() {
+ handleSubmit () {
if (this.loading) {
return false
}
@@ -57,7 +65,7 @@ export default {
}
})
},
- loginSuccess(res) {
+ loginSuccess (res) {
this.loading = false
this.$router.push({ path: '/' })
// 延迟 1 秒显示欢迎信息
@@ -68,7 +76,7 @@ export default {
})
}, 1000)
},
- requestFailed() {
+ requestFailed () {
this.loading = false
}
}