吉安感知网项目-前端
张含笑
2026-01-28 5b2f6743459bb2da4bddaeb958dcd642d4838a1c
feat:添加部门判断
2 files modified
11 ■■■■■ changed files
applications/task-work-order/src/views/orderView/orderDataManage/appInnovation/index.vue 9 ●●●● patch | view | raw | blame | history
applications/task-work-order/src/views/orderView/orderDataManage/evaluate/index.vue 2 ●●●●● patch | view | raw | blame | history
applications/task-work-order/src/views/orderView/orderDataManage/appInnovation/index.vue
@@ -64,7 +64,7 @@
                        <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>
@@ -96,7 +96,9 @@
    gdApplicationInnovationPageApi,
    gdApplicationInnovationRemoveApi,
} from '@/views/orderView/orderDataManage/appInnovation/appInnovationApi'
import { useStore } from 'vuex'
const store = useStore()
const userDepartment = store.state.user.userInfo?.dept_id
// 初始化查询参数
const initSearchParams = () => ({
    caseName: '', // 案例名称
@@ -128,6 +130,9 @@
    loading.value = true
    try {
        const res = await gdApplicationInnovationPageApi(searchParams.value)
        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 {
applications/task-work-order/src/views/orderView/orderDataManage/evaluate/index.vue
@@ -127,8 +127,6 @@
            item.isTheSameDepartment = String(item.createDept) === String(userDepartment)
        })
        list.value = res?.data?.data?.records ?? []
        console.log('list',list.value);
        total.value = res?.data?.data?.total ?? 0
    } finally {
        loading.value = false