吉安感知网项目-前端
张含笑
2026-01-30 6c4bd2467bb6651c6edcf8a9741dcd4e9b1aa6d3
applications/task-work-order/src/views/orderView/orderDataManage/evaluate/index.vue
@@ -39,7 +39,7 @@
            <el-table class="gd-table" :data="list">
               <el-table-column label="序号" width="80">
                  <template v-slot="{ $index }">
                     {{ ((searchParams.current - 1) * searchParams.size + $index + 1).toString().padStart(2, '0') }}
                     {{ $index + 1 }}
                  </template>
               </el-table-column>
               <el-table-column prop="title" show-overflow-tooltip label="标题" />
@@ -53,11 +53,11 @@
                  </template>
               </el-table-column>
               <el-table-column prop="evaluationContent" 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)">删除</el-link>
                     <el-link  type="primary"  @click="openForm('edit', row)" v-if="row.isTheSameDepartment">编辑</el-link>
                     <el-link  type="primary"  @click="handleDelete(row)" v-if="row.isTheSameDepartment">删除</el-link>
                  </template>
               </el-table-column>
            </el-table>
@@ -88,7 +88,9 @@
   gdDataEvaluationPageApi,
   gdDataEvaluationRemoveApi,
} from '@/views/orderView/orderDataManage/evaluate/evaluateApi'
import { useStore } from 'vuex'
const store = useStore()
const userDepartment = store.state.user.userInfo?.dept_id
// 初始化查询参数
const initSearchParams = () => ({
   title: '', // 标题
@@ -121,6 +123,9 @@
   loading.value = true
   try {
      const res = await gdDataEvaluationPageApi(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 {