diff --git a/src/components/ComDataTable/index.vue b/src/components/ComDataTable/index.vue
index 87c3046..0e5d6e6 100644
--- a/src/components/ComDataTable/index.vue
+++ b/src/components/ComDataTable/index.vue
@@ -186,23 +186,43 @@
-
- {{ action.label }}
-
+
+
+
+ {{ action.label }}
+
+
+
+ {{ action.label }}
+
+
-
- {{ action.label }}
-
+
+
+
+ {{ action.label }}
+
+
+
+ {{ action.label }}
+
+
diff --git a/src/store/modules/options.js b/src/store/modules/options.js
index 2e9d907..57ed6dc 100644
--- a/src/store/modules/options.js
+++ b/src/store/modules/options.js
@@ -2,6 +2,7 @@ import { defineStore } from 'pinia'
const useOptionsStore = defineStore('options', {
state: () => ({
+ allPositionAndInspectionStationOptions: [], // 运检站和岗位在一起的选项
positionOptions: [], // 人员岗位
personNatureOptions: [], // 人员性质
personCategoryOptions: [], // 人员分类
diff --git a/src/views/basicManage/inspectionStation/index.vue b/src/views/basicManage/inspectionStation/index.vue
index 0d9cfe2..a41ad84 100644
--- a/src/views/basicManage/inspectionStation/index.vue
+++ b/src/views/basicManage/inspectionStation/index.vue
@@ -122,6 +122,7 @@ const actionColumns = [
if (result.code === 200) {
proxy.$modal.msgSuccess('删除成功')
bus.emit(BUS_EVENTS.REFRESH_OPTIONS, 'inspectionStationOptions') // 刷新运检站下拉缓存
+ bus.emit(BUS_EVENTS.REFRESH_OPTIONS, 'allPositionAndInspectionStationOptions') // 刷新运检站和岗位在一起的选项下拉缓存
comTableRef.value?.refresh() // 刷新表格
}
})
@@ -160,6 +161,7 @@ const onHandleSave = async () => {
if (result.code === 200) {
proxy.$modal.msgSuccess(editId.value ? '编辑成功' : '新增成功')
bus.emit(BUS_EVENTS.REFRESH_OPTIONS, 'inspectionStationOptions') // 刷新运检站下拉缓存
+ bus.emit(BUS_EVENTS.REFRESH_OPTIONS, 'allPositionAndInspectionStationOptions')
addAndEditFormRef.value.resetFields() // 重置表单
dialogConfig.outerVisible = false
comTableRef.value?.refresh() // 刷新表格
diff --git a/src/views/basicManage/position/index.vue b/src/views/basicManage/position/index.vue
index f0d6751..52f988f 100644
--- a/src/views/basicManage/position/index.vue
+++ b/src/views/basicManage/position/index.vue
@@ -121,6 +121,7 @@ const actionColumns = [
if (result.code === 200) {
proxy.$modal.msgSuccess('删除成功')
bus.emit(BUS_EVENTS.REFRESH_OPTIONS, 'positionOptions')
+ bus.emit(BUS_EVENTS.REFRESH_OPTIONS, 'allPositionAndInspectionStationOptions')
comTableRef.value?.refresh() // 刷新表格
}
})
@@ -159,6 +160,7 @@ const onHandleSave = async () => {
if (result.code === 200) {
proxy.$modal.msgSuccess(editId.value ? '编辑成功' : '新增成功')
bus.emit(BUS_EVENTS.REFRESH_OPTIONS, 'positionOptions') // 刷新岗位下拉缓存
+ bus.emit(BUS_EVENTS.REFRESH_OPTIONS, 'allPositionAndInspectionStationOptions')
addAndEditFormRef.value.resetFields() // 重置表单
dialogConfig.outerVisible = false
comTableRef.value?.refresh() // 刷新表格
diff --git a/src/views/monthReportManage/monthlyReport/index.vue b/src/views/monthReportManage/monthlyReport/index.vue
index ecf0206..313f431 100644
--- a/src/views/monthReportManage/monthlyReport/index.vue
+++ b/src/views/monthReportManage/monthlyReport/index.vue
@@ -42,7 +42,12 @@
-
+
下载
diff --git a/src/views/personManage/Person/index.vue b/src/views/personManage/Person/index.vue
index e2c115d..af5b4c1 100644
--- a/src/views/personManage/Person/index.vue
+++ b/src/views/personManage/Person/index.vue
@@ -11,7 +11,14 @@
:action-columns="actionColumns"
>
- 新建人员
+
+ 新建人员
+
{
editId.value = row.id
dialogConfig.outerTitle = '编辑人员'
@@ -137,7 +152,7 @@ const actionColumns = [
Object.assign(addAndEditForm.value, {
inspectionStationId: inspectionStationId + '',
name,
- phone:CryptoUtil.decrypt(phone),
+ phone: CryptoUtil.decrypt(phone),
sex: sex * 1,
positionId: positionId + '',
personnelNatureId: personnelNatureId + '',
@@ -151,6 +166,7 @@ const actionColumns = [
label: '删除',
type: 'danger',
link: true,
+ permission: ['person:person:remove'], // 权限控制:使用 v-hasPermi 指令控制按钮显示
handler: (row) => {
proxy.$modal.confirm('是否确认删除该人员?').then(async () => {
const result = await delPersonAPI({ id: row.id })
diff --git a/src/views/planMange/dailyPlan/index.vue b/src/views/planMange/dailyPlan/index.vue
index 728ed9f..ff34f26 100644
--- a/src/views/planMange/dailyPlan/index.vue
+++ b/src/views/planMange/dailyPlan/index.vue
@@ -7,7 +7,13 @@
-
+
下载统计表
@@ -38,13 +44,21 @@
- 新增日计划
+
+ 新增日计划
+
下载工作量统计表
@@ -167,6 +181,7 @@ const actionColumns = computed(() => [
label: '详情',
type: 'primary',
link: true,
+ permission: ['plan:dailyPlan:detail'], // 权限控制:使用 v-hasPermi 指令控制按钮显示
handler: (row) => {
router.push({
path: '/plan/dailyPlanEdit/index',
@@ -186,6 +201,7 @@ const actionColumns = computed(() => [
label: '编辑',
type: 'primary',
link: true,
+ permission: ['plan:dailyPlan:edit'], // 权限控制:使用 v-hasPermi 指令控制按钮显示
handler: (row) => {
router.push({
path: '/plan/dailyPlanEdit/index',
@@ -205,6 +221,7 @@ const actionColumns = computed(() => [
label: '删除',
type: 'danger',
link: true,
+ permission: ['plan:dailyPlan:remove'], // 权限控制:使用 v-hasPermi 指令控制按钮显示
handler: (row) => {
proxy.$modal.confirm('是否确认删除该日计划?').then(async () => {
const result = await delDailyPlanAPI({ dayPlanId: row.dayPlanId })
diff --git a/src/views/planMange/monthlyPlan/index.vue b/src/views/planMange/monthlyPlan/index.vue
index c31ab41..17edccc 100644
--- a/src/views/planMange/monthlyPlan/index.vue
+++ b/src/views/planMange/monthlyPlan/index.vue
@@ -11,12 +11,20 @@
:action-columns="actionColumns"
>
- 新增月计划
+
+ 新增月计划
+
导出人员安排表
@@ -25,6 +33,7 @@
plain
icon="UploadFilled"
@click="onExportOverallSummary(formData)"
+ v-hasPermi="['plan:monthlyPlan:exportOverallSummary']"
>
导出整体汇总表
@@ -33,6 +42,7 @@
plain
icon="UploadFilled"
@click="onExportWorkloadSummary(formData)"
+ v-hasPermi="['plan:monthlyPlan:exportWorkloadSummary']"
>
导出工作量汇总表
@@ -149,6 +159,7 @@ const actionColumns = [
label: '详情',
type: 'primary',
link: true,
+ permission: ['plan:monthlyPlan:detail'], // 权限控制:使用 v-hasPermi 指令控制按钮显示
handler: (row) => {
const {
monthlyPlanId,
@@ -176,6 +187,7 @@ const actionColumns = [
label: '编辑',
type: 'primary',
link: true,
+ permission: ['plan:monthlyPlan:edit'], // 权限控制:使用 v-hasPermi 指令控制按钮显示
handler: (row) => {
const {
monthlyPlanId,
@@ -202,6 +214,7 @@ const actionColumns = [
label: '删除',
type: 'danger',
link: true,
+ permission: ['plan:monthlyPlan:remove'], // 权限控制:使用 v-hasPermi 指令控制按钮显示
handler: (row) => {
proxy.$modal.confirm('是否确认删除该月计划?').then(async () => {
const result = await delMonthlyPlanAPI({ monthlyPlanId: row.monthlyPlanId })
diff --git a/src/views/planMange/plan/index.vue b/src/views/planMange/plan/index.vue
index cb456c3..cacf0c1 100644
--- a/src/views/planMange/plan/index.vue
+++ b/src/views/planMange/plan/index.vue
@@ -11,8 +11,21 @@
:action-columns="actionColumns"
>
- 新建计划
-
+
+ 新建计划
+
+
导入计划
@@ -217,6 +230,7 @@ const actionColumns = [
label: '删除',
type: 'danger',
link: true,
+ permission: ['plan:plan:remove'], // 权限控制:使用 v-hasPermi 指令控制按钮显示
handler: (row) => {
proxy.$modal.confirm('是否确认删除该计划?').then(async () => {
const result = await delPlanAPI({
diff --git a/src/views/system/dict/data.vue b/src/views/system/dict/data.vue
index 9f5ca0d..fb2c734 100644
--- a/src/views/system/dict/data.vue
+++ b/src/views/system/dict/data.vue
@@ -90,7 +90,12 @@
-
+
diff --git a/src/views/system/dict/index.vue b/src/views/system/dict/index.vue
index 868ee35..b7106cf 100644
--- a/src/views/system/dict/index.vue
+++ b/src/views/system/dict/index.vue
@@ -112,7 +112,12 @@
-
+
-
+
diff --git a/src/views/system/role/index.vue b/src/views/system/role/index.vue
index 3819638..a248319 100644
--- a/src/views/system/role/index.vue
+++ b/src/views/system/role/index.vue
@@ -102,7 +102,12 @@
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
- {{ (pageNum - 1) * pageSize + scope.$index + 1 }}
-
-
-
-
-
-
-
-
- {{ parseTime(scope.row.createTime) }}
-
-
-
+
+
+
+
+ {{ (pageNum - 1) * pageSize + scope.$index + 1 }}
+
+
+
+
+
+
+
+
+ {{ parseTime(scope.row.createTime) }}
+
+
+
-
+
-
-
- 提交
- 返回
-
-
-
+
+
+ 提交
+ 返回
+
+
+
diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue
index a37add5..cc2afbe 100644
--- a/src/views/system/user/index.vue
+++ b/src/views/system/user/index.vue
@@ -3,7 +3,7 @@
-
+
-
+
@@ -183,7 +184,7 @@
label="部门"
align="center"
key="deptName"
- prop="dept.deptName"
+ prop="deptName"
v-if="columns.deptName.visible"
:show-overflow-tooltip="true"
/>
@@ -315,7 +316,7 @@
-
+ /> -->
+
+
+
@@ -511,7 +524,9 @@ import {
addUser,
deptTreeSelect,
} from '@/api/system/user'
+import { getInspectionStationSelectAPI } from '@/api/common.js'
import { Splitpanes, Pane } from 'splitpanes'
+import { useOptions } from '@/hooks/useOptions'
import 'splitpanes/dist/splitpanes.css'
import CryptoUtil from '../../../api/crypto.js'
import ComDialog from '@/components/ComDialog/index.vue'
@@ -522,6 +537,12 @@ const appStore = useAppStore()
const { proxy } = getCurrentInstance()
const { sys_normal_disable, sys_user_sex } = proxy.useDict('sys_normal_disable', 'sys_user_sex')
+const { options: allPositionAndInspectionStationOptions } = useOptions(
+ 'allPositionAndInspectionStationOptions',
+ getInspectionStationSelectAPI,
+ {},
+)
+
const userList = ref([])
const loading = ref(true)
const showSearch = ref(true)
@@ -898,6 +919,7 @@ function handleUpdate(row) {
/** 提交按钮 */
function submitForm() {
proxy.$refs['userRef'].validate((valid) => {
+ form.value.deptId === undefined ? (form.value.deptId = '') : null
if (valid) {
if (form.value.userId != undefined) {
updateUser(form.value).then((response) => {
@@ -917,6 +939,7 @@ function submitForm() {
}
function phoneDes(prm) {
+ if (!prm) return ''
return CryptoUtil.decrypt(prm)
}
onMounted(() => {