diff --git a/src/api/system/newdept.js b/src/api/system/newdept.js new file mode 100644 index 00000000..08adf9e8 --- /dev/null +++ b/src/api/system/newdept.js @@ -0,0 +1,95 @@ +import request from '@/utils/request' + +// 获取机构树形列表 +export function listOrgTree(query) { + return request({ + url: '/system/newDept/org/treeList', + method: 'get', + params: query + }) +} + +// 获取机构树(用于部门管理左侧) +export function listOrgTreeSimple() { + return request({ + url: '/system/newDept/org/tree', + method: 'get' + }) +} + +// 根据机构获取部门列表 +export function listDeptByOrg(orgId, query) { + return request({ + url: `/system/newDept/dept/list/${orgId}`, + method: 'get', + params: query + }) +} + +// 新增机构 +export function addOrg(data) { + return request({ + url: '/system/newDept/org', + method: 'post', + data: data + }) +} + +// 修改机构 +export function updateOrg(data) { + return request({ + url: '/system/newDept/org', + method: 'put', + data: data + }) +} + +// 删除机构 +export function deleteOrg(orgId) { + return request({ + url: `/system/newDept/org/${orgId}`, + method: 'delete' + }) +} + +// 新增部门 +export function addDept(data) { + return request({ + url: '/system/newDept/dept', + method: 'post', + data: data + }) +} + +// 修改部门 +export function updateDept(data) { + return request({ + url: '/system/newDept/dept', + method: 'put', + data: data + }) +} + +// 删除部门 +export function deleteDept(deptId) { + return request({ + url: `/system/newDept/dept/${deptId}`, + method: 'delete' + }) +} + +// 导入机构 +export function importOrg() { + return request({ + url: '/system/newDept/org/import', + method: 'post' + }) +} + +// 导入部门 +export function importDept() { + return request({ + url: '/system/newDept/dept/import', + method: 'post' + }) +} diff --git a/src/api/system/user.js b/src/api/system/user.js index fa78c0e3..cc4374cf 100644 --- a/src/api/system/user.js +++ b/src/api/system/user.js @@ -164,6 +164,13 @@ export function confirmPassword(password) { data:data }) } +// 根据组织ID获取部门列表(树形结构) +export function listDeptByOrgId(orgId) { + return request({ + url: `/system/newDept/dept/list/${orgId}`, + method: 'get' + }) +} diff --git a/src/assets/styles/sidebar.scss b/src/assets/styles/sidebar.scss index f1619228..a92604a3 100644 --- a/src/assets/styles/sidebar.scss +++ b/src/assets/styles/sidebar.scss @@ -92,6 +92,7 @@ &:hover { background-color: rgba(0, 0, 0, 0.06) !important; border: 1px solid $base-menu-color-active !important; + color: #fff !important; } } diff --git a/src/views/EquipmentLedger/index.vue b/src/views/EquipmentLedger/index.vue index b488c1a8..dc1e1ede 100644 --- a/src/views/EquipmentLedger/index.vue +++ b/src/views/EquipmentLedger/index.vue @@ -389,6 +389,9 @@ 查看 编辑 + + 删除 + @@ -1508,8 +1511,6 @@ export default { if (res.code === 200) { this.$message.success('删除成功') this.getDeviceList() - } else { - this.$message.error(res.msg || '删除失败') } } catch (error) { this.$message.error('删除失败:' + (error.message || '未知错误')) diff --git a/src/views/EquipmentUpOrDown/equipment/index.vue b/src/views/EquipmentUpOrDown/equipment/index.vue index 0d076e58..4f5cce5d 100644 --- a/src/views/EquipmentUpOrDown/equipment/index.vue +++ b/src/views/EquipmentUpOrDown/equipment/index.vue @@ -79,16 +79,22 @@ 装备上下架列表 - + + > 批量下架 - + + 添加上架装备 diff --git a/src/views/EquipmentUpOrDown/tool/index.vue b/src/views/EquipmentUpOrDown/tool/index.vue index 92bf704c..5f487ecb 100644 --- a/src/views/EquipmentUpOrDown/tool/index.vue +++ b/src/views/EquipmentUpOrDown/tool/index.vue @@ -76,6 +76,11 @@ 工具上下架列表 + 批量下架 - + 上架数量工具 diff --git a/src/views/screen/components-old/countryMap.vue b/src/views/screen/components-old/countryMap.vue index 4eb1e353..d13237db 100644 --- a/src/views/screen/components-old/countryMap.vue +++ b/src/views/screen/components-old/countryMap.vue @@ -209,10 +209,10 @@ export default { }, label: { normal: { - show: false, + show: true, fontSize: 12, fontWeight: 500, - color: 'rgba(255,255,255,0.5)', + color: 'rgba(255,255,255,0.8)', }, emphasis: { show: true, diff --git a/src/views/screen/gwScreen/components/center/index.vue b/src/views/screen/gwScreen/components/center/index.vue index 824201e8..7d3d873b 100644 --- a/src/views/screen/gwScreen/components/center/index.vue +++ b/src/views/screen/gwScreen/components/center/index.vue @@ -34,8 +34,8 @@ export default { { cityName: '北京市', deptName: '北京', - value: [116.407396, 39.9042, 350000000], - totalValue: 350000000, + value: [116.407396, 39.9042, 3500], + totalValue: 3500, totalEquipmentQuantity: 520, configRate: 92, lineNum: 80, @@ -45,8 +45,8 @@ export default { { cityName: '天津市', deptName: '天津', - value: [117.190182, 39.125596, 260000000], - totalValue: 260000000, + value: [117.190182, 39.125596, 2600], + totalValue: 2600, totalEquipmentQuantity: 480, configRate: 90, lineNum: 70, @@ -56,8 +56,8 @@ export default { { cityName: '上海市', deptName: '上海', - value: [121.472644, 31.231706, 420000000], - totalValue: 420000000, + value: [121.472644, 31.231706, 4200], + totalValue: 4200, totalEquipmentQuantity: 600, configRate: 95, lineNum: 88, @@ -67,8 +67,8 @@ export default { { cityName: '重庆市', deptName: '重庆', - value: [106.551556, 29.563009, 300000000], - totalValue: 300000000, + value: [106.551556, 29.563009, 3000], + totalValue: 3000, totalEquipmentQuantity: 510, configRate: 91, lineNum: 75, @@ -79,8 +79,8 @@ export default { { cityName: '石家庄市', deptName: '石家庄', - value: [114.514859, 38.042307, 230000000], - totalValue: 230000000, + value: [114.514859, 38.042307, 2300], + totalValue: 2300, totalEquipmentQuantity: 450, configRate: 89, lineNum: 68, @@ -90,8 +90,8 @@ export default { { cityName: '太原市', deptName: '太原', - value: [112.548879, 37.87059, 210000000], - totalValue: 210000000, + value: [112.548879, 37.87059, 2100], + totalValue: 2100, totalEquipmentQuantity: 430, configRate: 88, lineNum: 60, @@ -101,8 +101,8 @@ export default { { cityName: '沈阳市', deptName: '沈阳', - value: [123.431474, 41.805698, 240000000], - totalValue: 240000000, + value: [123.431474, 41.805698, 2400], + totalValue: 2400, totalEquipmentQuantity: 455, configRate: 89, lineNum: 66, @@ -112,8 +112,8 @@ export default { { cityName: '长春市', deptName: '长春', - value: [125.323544, 43.817072, 205000000], - totalValue: 205000000, + value: [125.323544, 43.817072, 2050], + totalValue: 2050, totalEquipmentQuantity: 410, configRate: 87, lineNum: 58, @@ -123,8 +123,8 @@ export default { { cityName: '哈尔滨市', deptName: '哈尔滨', - value: [126.534967, 45.803775, 260000000], - totalValue: 260000000, + value: [126.534967, 45.803775, 2600], + totalValue: 2600, totalEquipmentQuantity: 470, configRate: 90, lineNum: 72, @@ -135,8 +135,8 @@ export default { { cityName: '南京市', deptName: '南京', - value: [118.796877, 32.060255, 380000000], - totalValue: 380000000, + value: [118.796877, 32.060255, 3800], + totalValue: 3800, totalEquipmentQuantity: 580, configRate: 94, lineNum: 85, @@ -146,8 +146,8 @@ export default { { cityName: '杭州市', deptName: '杭州', - value: [120.15507, 30.274084, 360000000], - totalValue: 360000000, + value: [120.15507, 30.274084, 3600], + totalValue: 3600, totalEquipmentQuantity: 540, configRate: 93, lineNum: 82, @@ -157,8 +157,8 @@ export default { { cityName: '合肥市', deptName: '合肥', - value: [117.227239, 31.820586, 280000000], - totalValue: 280000000, + value: [117.227239, 31.820586, 2800], + totalValue: 2800, totalEquipmentQuantity: 520, configRate: 92, lineNum: 80, @@ -168,8 +168,8 @@ export default { { cityName: '福州市', deptName: '福州', - value: [119.296494, 26.074508, 250000000], - totalValue: 250000000, + value: [119.296494, 26.074508, 2500], + totalValue: 2500, totalEquipmentQuantity: 485, configRate: 90, lineNum: 74, @@ -179,8 +179,8 @@ export default { { cityName: '南昌市', deptName: '南昌', - value: [115.892151, 28.676493, 240000000], - totalValue: 240000000, + value: [115.892151, 28.676493, 2400], + totalValue: 2400, totalEquipmentQuantity: 465, configRate: 89, lineNum: 70, @@ -190,8 +190,8 @@ export default { { cityName: '济南市', deptName: '济南', - value: [117.000923, 36.675807, 310000000], - totalValue: 310000000, + value: [117.000923, 36.675807, 3100], + totalValue: 3100, totalEquipmentQuantity: 550, configRate: 93, lineNum: 84, @@ -202,8 +202,8 @@ export default { { cityName: '郑州市', deptName: '郑州', - value: [113.625368, 34.746599, 330000000], - totalValue: 330000000, + value: [113.625368, 34.746599, 3300], + totalValue: 3300, totalEquipmentQuantity: 560, configRate: 94, lineNum: 86, @@ -213,8 +213,8 @@ export default { { cityName: '武汉市', deptName: '武汉', - value: [114.305393, 30.593099, 340000000], - totalValue: 340000000, + value: [114.305393, 30.593099, 3400], + totalValue: 3400, totalEquipmentQuantity: 570, configRate: 94, lineNum: 87, @@ -224,8 +224,8 @@ export default { { cityName: '长沙市', deptName: '长沙', - value: [112.938814, 28.228209, 290000000], - totalValue: 290000000, + value: [112.938814, 28.228209, 2900], + totalValue: 2900, totalEquipmentQuantity: 530, configRate: 92, lineNum: 78, @@ -236,8 +236,8 @@ export default { { cityName: '广州市', deptName: '广州', - value: [113.264435, 23.129163, 420000000], - totalValue: 420000000, + value: [113.264435, 23.129163, 4200], + totalValue: 4200, totalEquipmentQuantity: 600, configRate: 95, lineNum: 90, @@ -247,8 +247,8 @@ export default { { cityName: '海口市', deptName: '海口', - value: [110.33119, 20.031971, 200000000], - totalValue: 200000000, + value: [110.33119, 20.031971, 2000], + totalValue: 2000, totalEquipmentQuantity: 400, configRate: 86, lineNum: 55, @@ -259,8 +259,8 @@ export default { { cityName: '成都市', deptName: '成都', - value: [104.065735, 30.659462, 390000000], - totalValue: 390000000, + value: [104.065735, 30.659462, 3900], + totalValue: 3900, totalEquipmentQuantity: 580, configRate: 94, lineNum: 83, @@ -270,8 +270,8 @@ export default { { cityName: '贵阳市', deptName: '贵阳', - value: [106.630153, 26.647661, 210000000], - totalValue: 210000000, + value: [106.630153, 26.647661, 2100], + totalValue: 2100, totalEquipmentQuantity: 440, configRate: 88, lineNum: 62, @@ -281,8 +281,8 @@ export default { { cityName: '昆明市', deptName: '昆明', - value: [102.833722, 24.88149, 220000000], - totalValue: 220000000, + value: [102.833722, 24.88149, 2200], + totalValue: 2200, totalEquipmentQuantity: 450, configRate: 88, lineNum: 63, @@ -292,8 +292,8 @@ export default { { cityName: '西安市', deptName: '西安', - value: [108.93977, 34.341574, 300000000], - totalValue: 300000000, + value: [108.93977, 34.341574, 3000], + totalValue: 3000, totalEquipmentQuantity: 525, configRate: 92, lineNum: 76, @@ -304,8 +304,8 @@ export default { { cityName: '兰州市', deptName: '兰州', - value: [103.834304, 36.061089, 180000000], - totalValue: 180000000, + value: [103.834304, 36.061089, 1800], + totalValue: 1800, totalEquipmentQuantity: 390, configRate: 85, lineNum: 54, @@ -315,8 +315,8 @@ export default { { cityName: '西宁市', deptName: '西宁', - value: [101.777795, 36.617134, 150000000], - totalValue: 150000000, + value: [101.777795, 36.617134, 1500], + totalValue: 1500, totalEquipmentQuantity: 350, configRate: 84, lineNum: 50, @@ -326,8 +326,8 @@ export default { { cityName: '台北市', deptName: '台北', - value: [121.565418, 25.033964, 300000000], - totalValue: 300000000, + value: [121.565418, 25.033964, 3000], + totalValue: 3000, totalEquipmentQuantity: 520, configRate: 92, lineNum: 78, @@ -338,8 +338,8 @@ export default { { cityName: '呼和浩特市', deptName: '呼和浩特', - value: [111.75199, 40.84149, 160000000], - totalValue: 160000000, + value: [111.75199, 40.84149, 1600], + totalValue: 1600, totalEquipmentQuantity: 360, configRate: 84, lineNum: 52, @@ -349,8 +349,8 @@ export default { { cityName: '南宁市', deptName: '南宁', - value: [108.366543, 22.817002, 210000000], - totalValue: 210000000, + value: [108.366543, 22.817002, 2100], + totalValue: 2100, totalEquipmentQuantity: 440, configRate: 88, lineNum: 62, @@ -360,8 +360,8 @@ export default { { cityName: '拉萨市', deptName: '拉萨', - value: [91.171924, 29.652491, 120000000], - totalValue: 120000000, + value: [91.171924, 29.652491, 1200], + totalValue: 1200, totalEquipmentQuantity: 300, configRate: 82, lineNum: 40, @@ -371,8 +371,8 @@ export default { { cityName: '银川市', deptName: '银川', - value: [106.278179, 38.46637, 150000000], - totalValue: 150000000, + value: [106.278179, 38.46637, 1500], + totalValue: 1500, totalEquipmentQuantity: 340, configRate: 83, lineNum: 48, @@ -382,8 +382,8 @@ export default { { cityName: '乌鲁木齐市', deptName: '乌鲁木齐', - value: [87.616848, 43.825592, 190000000], - totalValue: 190000000, + value: [87.616848, 43.825592, 1900], + totalValue: 1900, totalEquipmentQuantity: 380, configRate: 85, lineNum: 55, @@ -394,8 +394,8 @@ export default { { cityName: '香港', deptName: '香港', - value: [114.173355, 22.320048, 250000000], - totalValue: 250000000, + value: [114.173355, 22.320048, 2500], + totalValue: 2500, totalEquipmentQuantity: 420, configRate: 88, lineNum: 65, @@ -405,8 +405,8 @@ export default { { cityName: '澳门', deptName: '澳门', - value: [113.54909, 22.198951, 160000000], - totalValue: 160000000, + value: [113.54909, 22.198951, 1600], + totalValue: 1600, totalEquipmentQuantity: 330, configRate: 83, lineNum: 48, @@ -717,7 +717,7 @@ export default { // console.log('🚀 ~ initChart ~ params:', params) const val = params.data.value || [] let unit = '' - if (this.btnIndex === 1) unit = '亿' + if (this.btnIndex === 1) unit = '万元' else if (this.btnIndex === 2) unit = '台' else if (this.btnIndex === 3) unit = '%' return val.length diff --git a/src/views/screen/wsScreen/components/center/index.vue b/src/views/screen/wsScreen/components/center/index.vue index b1c8f8a0..976550ad 100644 --- a/src/views/screen/wsScreen/components/center/index.vue +++ b/src/views/screen/wsScreen/components/center/index.vue @@ -312,7 +312,7 @@ export default { animationEasingUpdate: 'cubicInOut', // 过渡动画的缓动效果。[ default: cubicInOut ] }, label: { - show: false, + show: true, color: '#FFF', position: 'top', fontSize: 18, diff --git a/src/views/screen/wsScreenWidescreen/components/center/index.vue b/src/views/screen/wsScreenWidescreen/components/center/index.vue index 6e3f7975..2130afef 100644 --- a/src/views/screen/wsScreenWidescreen/components/center/index.vue +++ b/src/views/screen/wsScreenWidescreen/components/center/index.vue @@ -312,7 +312,7 @@ export default { animationEasingUpdate: 'cubicInOut', // 过渡动画的缓动效果。[ default: cubicInOut ] }, label: { - show: false, + show: true, color: '#FFF', position: 'top', fontSize: 18, diff --git a/src/views/stockManagement/entryApply/components/AddEquip.vue b/src/views/stockManagement/entryApply/components/AddEquip.vue index 4e2a6db3..cab8d28f 100644 --- a/src/views/stockManagement/entryApply/components/AddEquip.vue +++ b/src/views/stockManagement/entryApply/components/AddEquip.vue @@ -35,7 +35,6 @@ label-width="120px" ref="formRef" style="padding: 12px; overflow-y: auto; height: calc(100vh - 180px); width: 100%" - label-position="right" :model="form" :rules="equipRules" > @@ -96,10 +95,12 @@ clearable :disabled="isEdit" /> + - - + - - + - - + diff --git a/src/views/system/dept/index - 副本.vue b/src/views/system/dept/index - 副本.vue new file mode 100644 index 00000000..c1732b98 --- /dev/null +++ b/src/views/system/dept/index - 副本.vue @@ -0,0 +1,527 @@ + + + + + diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue index 652c7a89..3a936bd6 100644 --- a/src/views/system/dept/index.vue +++ b/src/views/system/dept/index.vue @@ -1,527 +1,904 @@ - + mounted() { + // 初始化数据 + this.getOrgList(); + // 如果默认是部门标签页,也需要加载机构树 + if (this.activeTab === 'dept') { + this.getOrgTree(); + } + } + }; + - + // ========== 机构管理样式 ========== + .org-container { + background: #fff; + padding: 20px; + border-radius: 4px; + } + + // ========== 部门管理样式 ========== + .dept-container { + background: #fff; + padding: 20px; + border-radius: 4px; + } + + .dept-layout { + display: flex; + gap: 20px; + height: calc(100vh - 200px); + } + + .org-tree-panel { + width: 300px; + border: 1px solid #e4e7ed; + border-radius: 4px; + background: #fff; + display: flex; + flex-direction: column; + } + + .tree-search { + padding: 10px; + border-bottom: 1px solid #e4e7ed; + } + + .tree-content { + flex: 1; + overflow-y: auto; + padding: 10px; + } + + .dept-content-panel { + flex: 1; + display: flex; + flex-direction: column; + } + + .dept-header { + display: flex; + justify-content: space-between; + align-items: center; + margin-bottom: 15px; + padding: 10px 0; + } + + .current-org { + font-size: 16px; + font-weight: bold; + color: #303133; + } + + // ========== 通用样式 ========== + .query-form { + margin-bottom: 15px; + padding: 15px; + background: #fafafa; + border-radius: 4px; + } + + .action-buttons { + margin-bottom: 15px; + + .el-button { + margin-right: 10px; + } + } + + // 表格样式调整 + ::v-deep .el-table { + .el-table__row { + &:hover { + background-color: #f5f7fa; + } + } + } + + // 树节点选中样式 + ::v-deep .el-tree-node.is-current > .el-tree-node__content { + background-color: #ecf5ff; + color: #409eff; + } + + // 标签页样式 + ::v-deep .el-tabs { + .el-tabs__header { + margin-bottom: 20px; + background: #fff; + padding: 0 20px; + border-radius: 4px 4px 0 0; + } + + .el-tabs__item { + height: 50px; + line-height: 50px; + font-size: 14px; + + &.is-active { + color: #409eff; + font-weight: bold; + } + } + + .el-tabs__active-bar { + background-color: #409eff; + } + } + + // 输入框图标样式 + ::v-deep .el-input__suffix { + .el-icon-edit { + color: #909399; + cursor: pointer; + + &:hover { + color: #409eff; + } + } + } + diff --git a/src/views/system/role/authUser.vue b/src/views/system/role/authUser.vue index 4c8cd16d..aefb4494 100644 --- a/src/views/system/role/authUser.vue +++ b/src/views/system/role/authUser.vue @@ -89,7 +89,7 @@ \ No newline at end of file + diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index fcc44d41..efe4efec 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -1,1042 +1,1074 @@ + + + - + - + .disabled-row:hover td { + background-color: #f5f7fa !important; + } + - + diff --git a/vue.config.js b/vue.config.js index 7f3f1daf..c50ac5e2 100644 --- a/vue.config.js +++ b/vue.config.js @@ -18,7 +18,7 @@ module.exports = { // 部署生产环境和开发环境下的URL。 // 默认情况下,Vue CLI 会假设你的应用是被部署在一个域名的根路径上 // 例如 https://www.bonus.vip/。如果应用被部署在一个子路径上,你就需要用这个选项指定这个子路径。例如,如果你的应用被部署在 https://www.bonus.vip/admin/,则设置 baseUrl 为 /admin/。 - publicPath: process.env.VUE_APP_BASE_API == '/iws/jiju-api' ? '/iws/glweb/' : '/', // 宏源打包时无需更改 + publicPath: process.env.NODE_ENV === 'production' ? '/iws/glweb/' : '/', // 宏源打包时无需更改 // 在npm run build 或 yarn build 时 ,生成文件的目录名称(要和baseUrl的生产环境路径一致)(默认dist) outputDir: 'dist', // 用于放置生成的静态资源 (js、css、img、fonts) 的;(项目打包之后,静态资源会放在这个文件夹下) @@ -40,8 +40,7 @@ module.exports = { // target: `http://192.168.0.110:18080`,//洪 // target: `http://192.168.0.41:28080`,//蒋 // target: `http://36.33.26.201:17788/proxyApi`, //测试 - target: `http://36.33.26.201:21999/prod-api`, //测试 - // target: `http://127.0.0.1:28080`, + target: `http://36.33.26.201:21999/prod-api`, //测试 // target: `http://192.168.137.1:18080`,// changeOrigin: true, pathRewrite: {