吉安感知网项目-前端
张含笑
2026-01-30 6c4bd2467bb6651c6edcf8a9741dcd4e9b1aa6d3
applications/task-work-order/src/views/orderView/orderDataManage/appInnovation/index.vue
@@ -43,16 +43,16 @@
      <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="案例名称" />
               <el-table-column prop="belongDomain" show-overflow-tooltip label="所属领域" />
               <el-table-column prop="innovationStatus" show-overflow-tooltip label="应用创新状态">
                  <template v-slot="{ row }">
                     {{ getDictLabel(row.innovationStatus) }}
                     {{ getDictLabel(row.innovationStatus, dictObj.appInnovationStatus) }}
                  </template>
               </el-table-column>
               <el-table-column prop="applicationScenarioDesc" show-overflow-tooltip label="应用场景描述" />
@@ -60,11 +60,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">
               <el-table-column label="操作" class-name="operation-btns" width="150">
                  <template v-slot="{ row }">
                     <el-link @click="openForm('view', row)">查看</el-link>
                     <!--                     <el-link @click="openForm('edit', row)">编辑</el-link>-->
                     <el-link @click="handleDelete(row)">删除</el-link>
                     <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) && 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: '', // 案例名称
@@ -113,7 +115,9 @@
const dialogRef = ref(null) // 弹框实例
const dialogVisible = ref(false)
const dictObj = ref({}) // 字典对象
const innovationDetailsStatus = ref( '')
provide('dictObj', dictObj)
provide('innovationDetailsStatus', innovationDetailsStatus)
// 获取字典
function getDictList() {
   return getDictionaryByCode('appInnovationStatus').then(res => {
@@ -126,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 {
@@ -148,6 +155,7 @@
// 新增/编辑/查看 弹框
function openForm(mode, row) {
   innovationDetailsStatus.value = row?.innovationStatus
   dialogVisible.value = true
   nextTick(() => {
      dialogRef.value?.open({ mode, row })