diff --git a/src/api/index.js b/src/api/index.js index dd390ca47936fc9735e7b9fd470b85f227c9f48a..212ee85edc31006052e1d724e30b4dd44a3ce228 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -1,4 +1,4 @@ -import { request, METHOD } from '@/utils'; +import { request, METHOD, formatObj } from '@/utils'; export * from './menu'; export * from './system'; export * from './task'; @@ -6,3 +6,15 @@ export * from './task'; export function getUserDetailInfoApi() { return request('/api/v1/detail', METHOD.GET); } +export const getStaticParam = async staticKey => { + const res = await request('/api/v1/parameters/business/multi/list', METHOD.GET, { + queryList: staticKey, + }); + const curData = res.find(i => i.key === staticKey); + const newData = await formatObj(curData.businessParameterList || [], { + value: 'paramValue', + label: 'paramName', + key: 'paramId', + }); + return newData; +}; diff --git a/src/api/organization.js b/src/api/organization.js index 1cd6cc0e6c0a28236e169a18b274b13a479cb958..533a4d7a7ea0a04d3e3040ea741f0ad939910ef0 100644 --- a/src/api/organization.js +++ b/src/api/organization.js @@ -43,6 +43,18 @@ function addOperationApi(data) { function updateOperationApi(data) { return putReq('/api/v1/parameters/operation', data); } + +function getRolesApi(data) { + return getReq('/api/v1/roles', data); +} +function getUsersInfoApi({ userId }) { + return getReq(`/api/v1/users/${userId}`); +} + +export const addUserApi = data => postReq('/api/v1/users', data); + +export const updateUserApi = data => putReq('/api/v1/users', data); + export default { addJobs: addJobsApi, updateJobs: updateJobsApi, @@ -55,4 +67,8 @@ export default { updateBusiness: updateBusinessApi, addOperation: addOperationApi, updateOperation: updateOperationApi, + getRoles: getRolesApi, + getUsersInfo: getUsersInfoApi, + addUser: addUserApi, + updateUser: updateUserApi, }; diff --git a/src/components/MySelect/ParameterSelect.vue b/src/components/MySelect/ParameterSelect.vue new file mode 100644 index 0000000000000000000000000000000000000000..760129afd56e83cfd43e9b663050a38853755568 --- /dev/null +++ b/src/components/MySelect/ParameterSelect.vue @@ -0,0 +1,50 @@ + + + diff --git a/src/components/MySelect/RequestSelect.vue b/src/components/MySelect/RequestSelect.vue new file mode 100644 index 0000000000000000000000000000000000000000..cce16feb9c3bc73fad872860e9a5253a7c2c6b12 --- /dev/null +++ b/src/components/MySelect/RequestSelect.vue @@ -0,0 +1,46 @@ + + + diff --git a/src/components/MySelect/index.vue b/src/components/MySelect/index.vue index 0c9ff1c4232892754e4916c47ae30ceeb7a02deb..1f9b560afac0263157ff205bda04b63acbc2ee57 100644 --- a/src/components/MySelect/index.vue +++ b/src/components/MySelect/index.vue @@ -5,34 +5,21 @@ :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" placeholder="Please select" allow-clear - :options="data" + :options="options" v-on="$listeners" v-bind="$attrs" /> diff --git a/src/components/table/drawer.vue b/src/components/table/drawer.vue index 8065d366127866e10f91aa6fada4e4688fc2424a..96f313cc6b867ba72d2ec75688e724450e611c5d 100644 --- a/src/components/table/drawer.vue +++ b/src/components/table/drawer.vue @@ -5,7 +5,7 @@ :drawerStyle="drawerStyle" :bodyStyle="bodyStyle" destroyOnClose - :width="600" + :width="width" v-bind="$attrs" v-on="$listeners" @close="onClose" @@ -31,8 +31,9 @@ export default { props: { oncancel: Function, - onok: Function, + onOk: Function, value: Boolean, + width: { type: Number, default: 600 }, }, model: { prop: 'value', @@ -64,9 +65,13 @@ export default { }, async ok() { this.loading = true; - await (this.onok && this.onok()); + try { + await (this.onOk && this.onOk()); + this.$emit('change', false); + } catch { + // TODO + } this.loading = false; - this.$emit('change', false); }, }, }; diff --git a/src/components/upload/uploadList.vue b/src/components/upload/uploadList.vue new file mode 100644 index 0000000000000000000000000000000000000000..58efa661ade025dc63aae3c6ae452318ad63f913 --- /dev/null +++ b/src/components/upload/uploadList.vue @@ -0,0 +1,84 @@ + + + diff --git a/src/pages/system/view/organization/components/OrganizationTree.vue b/src/pages/system/view/organization/components/OrganizationTree.vue index bf0e9b2feef696ed8e6f741d717681cd12b33007..89cad82f91ccbadaf9427fb8dcb80c2b2bad805a 100644 --- a/src/pages/system/view/organization/components/OrganizationTree.vue +++ b/src/pages/system/view/organization/components/OrganizationTree.vue @@ -9,10 +9,10 @@ allow-clear tree-default-expand-all :replaceFields="replaceFields" - v-on="$listeners" + @change="onChange" /> - + diff --git a/src/pages/system/view/organization/orgmanagement/form.vue b/src/pages/system/view/organization/orgmanagement/form.vue index d676792c35ee424b252530df1445050334dc182a..1eec806776a67051452c207ef3446710bedeed9f 100644 --- a/src/pages/system/view/organization/orgmanagement/form.vue +++ b/src/pages/system/view/organization/orgmanagement/form.vue @@ -13,7 +13,13 @@ - + @@ -27,10 +33,11 @@ diff --git a/src/pages/system/view/organization/usermanagement/components/Certificate/Certificate.vue b/src/pages/system/view/organization/usermanagement/components/Certificate/Certificate.vue new file mode 100644 index 0000000000000000000000000000000000000000..05e097cc87f2bb678231d30e5cbc16c6437391da --- /dev/null +++ b/src/pages/system/view/organization/usermanagement/components/Certificate/Certificate.vue @@ -0,0 +1,56 @@ + + + diff --git a/src/pages/system/view/organization/usermanagement/components/Certificate/CertificateFrom.vue b/src/pages/system/view/organization/usermanagement/components/Certificate/CertificateFrom.vue new file mode 100644 index 0000000000000000000000000000000000000000..e72ccfbe378e1c0d0fcf8248942f5605b2b15eea --- /dev/null +++ b/src/pages/system/view/organization/usermanagement/components/Certificate/CertificateFrom.vue @@ -0,0 +1,103 @@ + + + diff --git a/src/pages/system/view/organization/usermanagement/components/Certificate/CertificateItem.vue b/src/pages/system/view/organization/usermanagement/components/Certificate/CertificateItem.vue new file mode 100644 index 0000000000000000000000000000000000000000..b1d964f8654969d62be4acafc898f8cbcdd65e0c --- /dev/null +++ b/src/pages/system/view/organization/usermanagement/components/Certificate/CertificateItem.vue @@ -0,0 +1,50 @@ + + + diff --git a/src/pages/system/view/organization/usermanagement/components/FixedPhone.vue b/src/pages/system/view/organization/usermanagement/components/FixedPhone.vue new file mode 100644 index 0000000000000000000000000000000000000000..ba50ca9cbac9a1b17e6705df4817b1fb16908010 --- /dev/null +++ b/src/pages/system/view/organization/usermanagement/components/FixedPhone.vue @@ -0,0 +1,43 @@ + + + diff --git a/src/pages/system/view/organization/usermanagement/components/Jobs/Jobs.vue b/src/pages/system/view/organization/usermanagement/components/Jobs/Jobs.vue new file mode 100644 index 0000000000000000000000000000000000000000..ccb2f1d5f1ce50ae9ca7ff247d35a3122a2b8890 --- /dev/null +++ b/src/pages/system/view/organization/usermanagement/components/Jobs/Jobs.vue @@ -0,0 +1,61 @@ + + + diff --git a/src/pages/system/view/organization/usermanagement/components/Jobs/JobsFrom.vue b/src/pages/system/view/organization/usermanagement/components/Jobs/JobsFrom.vue new file mode 100644 index 0000000000000000000000000000000000000000..3b9cac1da76ba7207e1fe2a8c9bc89b71540a1dc --- /dev/null +++ b/src/pages/system/view/organization/usermanagement/components/Jobs/JobsFrom.vue @@ -0,0 +1,96 @@ + + + diff --git a/src/pages/system/view/organization/usermanagement/components/Jobs/JobsItem.vue b/src/pages/system/view/organization/usermanagement/components/Jobs/JobsItem.vue new file mode 100644 index 0000000000000000000000000000000000000000..bd790fe86fe30e6abdf9f206b9474f5cb4d57625 --- /dev/null +++ b/src/pages/system/view/organization/usermanagement/components/Jobs/JobsItem.vue @@ -0,0 +1,42 @@ + + + diff --git a/src/pages/system/view/organization/usermanagement/components/StepsOne.vue b/src/pages/system/view/organization/usermanagement/components/StepsOne.vue new file mode 100644 index 0000000000000000000000000000000000000000..188dc71466ef6bedfdb11cc720ab33691d4742e0 --- /dev/null +++ b/src/pages/system/view/organization/usermanagement/components/StepsOne.vue @@ -0,0 +1,71 @@ + + + diff --git a/src/pages/system/view/organization/usermanagement/components/StepsThree.vue b/src/pages/system/view/organization/usermanagement/components/StepsThree.vue new file mode 100644 index 0000000000000000000000000000000000000000..92844a6b4686d001c267437da192c9e6a540745c --- /dev/null +++ b/src/pages/system/view/organization/usermanagement/components/StepsThree.vue @@ -0,0 +1,15 @@ + + + diff --git a/src/pages/system/view/organization/usermanagement/components/StepsTwo.vue b/src/pages/system/view/organization/usermanagement/components/StepsTwo.vue new file mode 100644 index 0000000000000000000000000000000000000000..2eb987fc3bbb9298bb6ffaac6c6a90a0220fbccf --- /dev/null +++ b/src/pages/system/view/organization/usermanagement/components/StepsTwo.vue @@ -0,0 +1,22 @@ + + + diff --git a/src/pages/system/view/organization/usermanagement/form.vue b/src/pages/system/view/organization/usermanagement/form.vue index 6c75f9139a3a3325b832529a9a55b1e5ca16ee93..39bed447315b571edd2dd1288f7bf5836c755ab6 100644 --- a/src/pages/system/view/organization/usermanagement/form.vue +++ b/src/pages/system/view/organization/usermanagement/form.vue @@ -1,44 +1,47 @@