|
@@ -64,7 +64,7 @@
|
|
|
<el-table-column prop="schedule" label="进展情况" align="center">
|
|
|
<template #default="{ row }">
|
|
|
<hc-body v-if="isDrawerType === 'edit'">
|
|
|
- <hc-table-input v-model="row.schedule" type="textarea" resize="none" />
|
|
|
+ <hc-table-input v-model="row.schedule" type="textarea" resize="none" :disabled="currentYear < yearKey" />
|
|
|
</hc-body>
|
|
|
<span v-else>{{ row.schedule }}</span>
|
|
|
</template>
|
|
@@ -72,7 +72,7 @@
|
|
|
<el-table-column prop="progress" label="累计进展情况" align="center">
|
|
|
<template #default="{ row }">
|
|
|
<hc-body v-if="isDrawerType === 'edit'">
|
|
|
- <hc-table-input v-model="row.progress" type="textarea" resize="none" />
|
|
|
+ <hc-table-input v-model="row.progress" type="textarea" resize="none" :disabled="currentYear < yearKey" />
|
|
|
</hc-body>
|
|
|
<span v-else>{{ row.progress }}</span>
|
|
|
</template>
|
|
@@ -83,24 +83,24 @@
|
|
|
<hc-info-table-td is-title width="10%" center>存在问题</hc-info-table-td>
|
|
|
<hc-info-table-td center width="40%">
|
|
|
<span v-if="isDrawerType === 'view'">{{ yearData.table[yearIndex].problemInfo }}</span>
|
|
|
- <el-input v-else v-model="yearData.table[yearIndex].problemInfo" type="textarea" resize="none" />
|
|
|
+ <el-input v-else v-model="yearData.table[yearIndex].problemInfo" type="textarea" resize="none" :disabled="currentYear < yearKey" />
|
|
|
</hc-info-table-td>
|
|
|
<hc-info-table-td is-title width="10%" center>工作建议</hc-info-table-td>
|
|
|
<hc-info-table-td center width="40%">
|
|
|
<span v-if="isDrawerType === 'view'">{{ yearData.table[yearIndex].workSug }}</span>
|
|
|
- <el-input v-else v-model="yearData.table[yearIndex].workSug" type="textarea" resize="none" />
|
|
|
+ <el-input v-else v-model="yearData.table[yearIndex].workSug" type="textarea" resize="none" :disabled="currentYear < yearKey" />
|
|
|
</hc-info-table-td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<hc-info-table-td is-title width="10%" center>填报单位</hc-info-table-td>
|
|
|
<hc-info-table-td center width="40%">
|
|
|
<span v-if="isDrawerType === 'view'">{{ yearData.table[yearIndex].unitInfo }}</span>
|
|
|
- <el-input v-else v-model="yearData.table[yearIndex].unitInfo" />
|
|
|
+ <el-input v-else v-model="yearData.table[yearIndex].unitInfo" :disabled="currentYear < yearKey" />
|
|
|
</hc-info-table-td>
|
|
|
<hc-info-table-td is-title width="10%" center>联系人及联系方式</hc-info-table-td>
|
|
|
<hc-info-table-td center width="40%">
|
|
|
<span v-if="isDrawerType === 'view'">{{ yearData.table[yearIndex].linkInfo }}</span>
|
|
|
- <el-input v-else v-model="yearData.table[yearIndex].linkInfo" />
|
|
|
+ <el-input v-else v-model="yearData.table[yearIndex].linkInfo" :disabled="currentYear < yearKey" />
|
|
|
</hc-info-table-td>
|
|
|
</tr>
|
|
|
</hc-info-table>
|
|
@@ -121,7 +121,8 @@
|
|
|
<script setup>
|
|
|
import { ref, watch } from 'vue'
|
|
|
import mainApi from '~api/project/gist'
|
|
|
-import { deepClone, getArrValue, getObjValue, isNullES, newDownBlob } from 'js-fast-way'
|
|
|
+import { deepClone, getArrValue, getObjValue, newDownBlob } from 'js-fast-way'
|
|
|
+import dayjs from 'dayjs'
|
|
|
|
|
|
const props = defineProps({
|
|
|
isAdmin: {
|
|
@@ -140,6 +141,7 @@ const props = defineProps({
|
|
|
|
|
|
//事件
|
|
|
const emit = defineEmits(['tap', 'check', 'change'])
|
|
|
+const currentYear = new dayjs().year()
|
|
|
|
|
|
//监听权限
|
|
|
const isAdminAuth = ref(props.isAdmin)
|