From 89380e6260a75d1d3b94de687ebcc2f50d50659d Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Tue, 03 Feb 2026 15:44:33 +0800
Subject: [PATCH] feat:环境变量配置调整
---
applications/task-work-order/src/views/orderView/orderDataManage/evaluate/index.vue | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/applications/task-work-order/src/views/orderView/orderDataManage/evaluate/index.vue b/applications/task-work-order/src/views/orderView/orderDataManage/evaluate/index.vue
index 344d20b..405710e 100644
--- a/applications/task-work-order/src/views/orderView/orderDataManage/evaluate/index.vue
+++ b/applications/task-work-order/src/views/orderView/orderDataManage/evaluate/index.vue
@@ -19,6 +19,7 @@
placeholder="请选择"
clearable
@change="handleSearch"
+ :disabled="permission.sjyy_shtg"
>
<el-option v-for="item in isResolvedOptions" :key="item.value" :label="item.label" :value="item.value" />
</el-select>
@@ -80,7 +81,6 @@
</template>
<script setup>
import { Search, RefreshRight, Plus, Delete } from '@element-plus/icons-vue'
-import { onMounted, ref } from 'vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { getDeptTree } from '@/api/system/dept'
import FormDiaLog from './FormDiaLog.vue'
@@ -91,12 +91,14 @@
import { useStore } from 'vuex'
const store = useStore()
const userDepartment = store.state.user.userInfo?.dept_id
+const permission = computed(() => store.state.user.permission);
// 初始化查询参数
const initSearchParams = () => ({
title: '', // 标题
isResolved: '', // 是否解决
current: 1, // 当前页
size: 10, // 每页大小
+ isQueryAll:''//是否查询所有
})
const searchParams = ref(initSearchParams()) // 查询参数
const total = ref(0) // 总条数
@@ -122,7 +124,16 @@
async function getList() {
loading.value = true
try {
- const res = await gdDataEvaluationPageApi(searchParams.value)
+ // 根据权限设置查询参数
+ const params = { ...searchParams.value }
+ if (permission.value.sjyy_shtg) {
+ params.isQueryAll = true
+ params.isResolved = '0'
+ } else {
+ params.isQueryAll = false
+ delete params.isResolved
+ }
+ const res = await gdDataEvaluationPageApi(params)
res?.data?.data?.records.forEach(item => {
item.isTheSameDepartment = String(item.createDept) === String(userDepartment)
})
--
Gitblit v1.9.3