fuliqi
2025-02-07 25ac1283aaf3a2eb794f89d74bac36480b9270ff
src/views/projectEngineering/projectLibrary/index.vue
@@ -236,12 +236,16 @@
            <template v-if="item.slotName === 'planStartTime'">
              {{ scope.row.planStartTime ? scope.row.planStartTime.split('-')[0] + '年' : '' }}
            </template>
            <!-- usedStatus插槽 -->
            <template v-if="item.slotName === 'usedStatus'">
              <dict-tag :options="dict.type.sys_used_status" :value="scope.row.usedStatus"/>
            </template>
          </template>
          <!-- 默认显示 -->
          <span v-else>{{ scope.row[item.id] }}</span>
        </template>
      </el-table-column>
      <el-table-column v-if="this.$route.query.projectCategory==6" label="审核备注" width="140" align="center" prop="remark"/>
      <!-- 操作列 -->
      <el-table-column label="操作" width="140" align="center">
        <template slot-scope="scope">
@@ -254,6 +258,7 @@
          </el-button>
          <el-button
            v-if="isReserve"
            v-hasRole="['user']"
            size="medium"
            type="text"
            icon="el-icon-edit"
@@ -299,7 +304,7 @@
export default {
  dicts: ['sys_administrative_divisions', 'sys_investment_type', 'sys_project_phases',
    'sys_funding_type', 'sys_association_status', 'sys_project_status', 'sys_project_code',
    'sys_project_tags', 'sys_key_categories', 'sys_project_type'],
    'sys_project_tags', 'sys_key_categories', 'sys_project_type','sys_used_status'],
  name: "ProjectInfo",
  components: {
    FileDialog
@@ -374,7 +379,7 @@
  created() {
    this.queryParams.importanceType = this.$route.query.importanceType;
    const projectCategory = this.$route.query.projectCategory;
    if (!projectCategory || projectCategory === '1') {
    if (!projectCategory || projectCategory === '1' || projectCategory === '6') {
      this.isReserve = true;
    }
    if (projectCategory) {
@@ -401,7 +406,8 @@
    },
    handleDetail(row) {
      this.removeStore();
      this.$router.push({path: '/projectEngineering/project/ProjectDetails', query: {projectId: row.id,disabled: 'true' }});
      const audit = this.$route.query.projectCategory==='6'? 1:0
      this.$router.push({path: '/projectEngineering/project/ProjectDetails', query: {projectId: row.id,disabled: 'true',audit: audit }});
    },
    // 新增页面
    add() {