Commit 65fe8867 authored by 黄奎's avatar 黄奎

新增插件

parent 3eefb072
...@@ -144,6 +144,7 @@ module.exports = function(ctx) { ...@@ -144,6 +144,7 @@ module.exports = function(ctx) {
'QCard', 'QCard',
'QCheckbox', 'QCheckbox',
'QTree', 'QTree',
'QOptionGroup',
], ],
// directives: [], // directives: [],
......
...@@ -345,3 +345,4 @@ export function deleteManagerInfo(data) { ...@@ -345,3 +345,4 @@ export function deleteManagerInfo(data) {
data data
}) })
} }
...@@ -137,6 +137,18 @@ export function queryRolePage(data) { ...@@ -137,6 +137,18 @@ export function queryRolePage(data) {
}) })
} }
/**
* 获取角色列表
* @param {JSON参数} data
*/
export function queryRoleDropdown(data) {
return request({
url: '/Public/GetRoleList',
method: 'post',
data
})
}
/** /**
* 获取角色详情 * 获取角色详情
* @param {JSON参数} data * @param {JSON参数} data
...@@ -171,4 +183,4 @@ export function setRoleStatus(data) { ...@@ -171,4 +183,4 @@ export function setRoleStatus(data) {
method: 'post', method: 'post',
data data
}) })
} }
\ No newline at end of file
...@@ -18,6 +18,12 @@ ...@@ -18,6 +18,12 @@
:factory="uploadFile" no-thumbnails> :factory="uploadFile" no-thumbnails>
</q-uploader> </q-uploader>
</div> </div>
</div>
<div class="text-caption q-my-md q-px-xs text-grey-6">选择角色</div>
<div class="q-pa-md">
<q-option-group type="checkbox" :options="roleList" label="RoleName" value="RoleId" v-model="tempRole" emit-value map-options>
</q-option-group>
</div> </div>
</q-card-section> </q-card-section>
<q-separator /> <q-separator />
...@@ -34,6 +40,10 @@ ...@@ -34,6 +40,10 @@
getSchoolDropdown, getSchoolDropdown,
saveManager saveManager
} from '../../../api/school/index' } from '../../../api/school/index'
import {
queryRoleDropdown
}
from '../../../api/system/index'
import { import {
UploadSelfFile, UploadSelfFile,
} from '../../../api/common/common' } from '../../../api/common/common'
...@@ -57,16 +67,24 @@ ...@@ -57,16 +67,24 @@
}, },
optionTitle: "", optionTitle: "",
schoolList: [], schoolList: [],
roleList: [], //角色列表
saveLoading: false, saveLoading: false,
tempRole: [],
} }
}, },
created() { created() {
this.getrolelist();
this.getSchool(); this.getSchool();
}, },
mounted() { mounted() {
this.initObj() this.initObj()
}, },
methods: { methods: {
getrolelist() {
queryRoleDropdown({}).then(res => {
this.roleList = res.Data;
})
},
initObj() { initObj() {
if (this.saveObj) { if (this.saveObj) {
this.optionTitle = "修改管理者信息" this.optionTitle = "修改管理者信息"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment