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/appInnovation/index.vue |   30 +++++++++++++++++++++++-------
 1 files changed, 23 insertions(+), 7 deletions(-)

diff --git a/applications/task-work-order/src/views/orderView/orderDataManage/appInnovation/index.vue b/applications/task-work-order/src/views/orderView/orderDataManage/appInnovation/index.vue
index cc480dd..f400d47 100644
--- a/applications/task-work-order/src/views/orderView/orderDataManage/appInnovation/index.vue
+++ b/applications/task-work-order/src/views/orderView/orderDataManage/appInnovation/index.vue
@@ -19,6 +19,7 @@
 					placeholder="请选择"
 					clearable
 					@change="handleSearch"
+					:disabled="permission.yycx_shtg"
 				>
 					<el-option
 						v-for="item in dictObj.appInnovationStatus"
@@ -43,9 +44,9 @@
 		<div class="gd-table-container" v-loading="loading">
 			<div class="gd-table-content gd-table-content-bg">
 				<el-table class="gd-table" :data="list" @selection-change="handleSelectionChange">
-					<el-table-column label="序号" width="60" align="center">
+					<el-table-column label="序号" width="70" align="center">
 						<template #default="{ $index }">
-							{{ formatNumber((searchParams.current - 1) * searchParams.size + $index + 1) }}
+							{{ $index + 1 }}
 						</template>
 					</el-table-column>
 					<el-table-column prop="caseName" show-overflow-tooltip label="案例名称" />
@@ -60,11 +61,11 @@
 					<el-table-column prop="resourceName" show-overflow-tooltip label="资源名称" />
 					<el-table-column prop="resourceCode" show-overflow-tooltip label="资源编码" />
 					<el-table-column prop="caseDesc" show-overflow-tooltip label="案例描述" />
-					<el-table-column label="操作" class-name="operation-btns" width="180">
+					<el-table-column label="操作" class-name="operation-btns" width="150">
 						<template v-slot="{ row }">
 							<el-link  type="primary"  @click="openForm('view', row)">查看</el-link>
 <!--							<el-link  type="primary"  @click="openForm('edit', row)">编辑</el-link>-->
-							<el-link  type="primary"  @click="handleDelete(row)" v-if="!['1', '2'].includes(row.innovationStatus)">删除</el-link>
+							<el-link  type="primary"  @click="handleDelete(row)" v-if="!['1', '2'].includes(row.innovationStatus) && row.isTheSameDepartment">删除</el-link>
 						</template>
 					</el-table-column>
 				</el-table>
@@ -87,7 +88,6 @@
 </template>
 <script setup>
 import { Search, RefreshRight, Plus, Delete } from '@element-plus/icons-vue'
-import { onMounted, ref, nextTick, provide } from 'vue'
 import { ElMessage, ElMessageBox } from 'element-plus'
 import { getDictionaryByCode } from '@/api/system/dictbiz'
 import { getDictLabel } from '@ztzf/utils'
@@ -96,13 +96,17 @@
 	gdApplicationInnovationPageApi,
 	gdApplicationInnovationRemoveApi,
 } from '@/views/orderView/orderDataManage/appInnovation/appInnovationApi'
-
+import { useStore } from 'vuex'
+const store = useStore()
+const userDepartment = store.state.user.userInfo?.dept_id
+const permission = computed(() => store.state.user.permission);
 // 初始化查询参数
 const initSearchParams = () => ({
 	caseName: '', // 案例名称
 	innovationStatus: '', // 应用创新状态
 	current: 1, // 当前页
 	size: 10, // 每页大小
+	isQueryAll:''//是否查询所有
 })
 const searchParams = ref(initSearchParams()) // 查询参数
 const total = ref(0) // 总条数
@@ -127,7 +131,19 @@
 async function getList() {
 	loading.value = true
 	try {
-		const res = await gdApplicationInnovationPageApi(searchParams.value)
+		// 根据权限设置查询参数
+		const params = { ...searchParams.value }
+		if (permission.value.yycx_shtg) {
+			params.innovationStatus = '1'
+			params.isQueryAll = true
+		} else {
+			params.isQueryAll = false
+			delete params.innovationStatus
+		}
+		const res = await gdApplicationInnovationPageApi(params)
+		res?.data?.data?.records.forEach(item => {
+			item.isTheSameDepartment = String(item.createDept) === String(userDepartment)
+		})
 		list.value = res?.data?.data?.records ?? []
 		total.value = res?.data?.data?.total ?? 0
 	} finally {

--
Gitblit v1.9.3