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

新增插件

parent 3eefb072
......@@ -144,6 +144,7 @@ module.exports = function(ctx) {
'QCard',
'QCheckbox',
'QTree',
'QOptionGroup',
],
// directives: [],
......
......@@ -345,3 +345,4 @@ export function deleteManagerInfo(data) {
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
......@@ -171,4 +183,4 @@ export function setRoleStatus(data) {
method: 'post',
data
})
}
\ No newline at end of file
}
......@@ -18,6 +18,12 @@
:factory="uploadFile" no-thumbnails>
</q-uploader>
</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>
</q-card-section>
<q-separator />
......@@ -34,6 +40,10 @@
getSchoolDropdown,
saveManager
} from '../../../api/school/index'
import {
queryRoleDropdown
}
from '../../../api/system/index'
import {
UploadSelfFile,
} from '../../../api/common/common'
......@@ -57,16 +67,24 @@
},
optionTitle: "",
schoolList: [],
roleList: [], //角色列表
saveLoading: false,
tempRole: [],
}
},
created() {
this.getrolelist();
this.getSchool();
},
mounted() {
this.initObj()
},
methods: {
getrolelist() {
queryRoleDropdown({}).then(res => {
this.roleList = res.Data;
})
},
initObj() {
if (this.saveObj) {
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