This commit is contained in:
qsh
2024-07-25 14:45:44 +08:00
parent 9180d14ede
commit f8a6617a7a
2 changed files with 26 additions and 6 deletions

View File

@@ -285,13 +285,15 @@
</el-button>
<el-button
type="danger"
v-if="row.id && !row.isConfirm"
v-if="row.id"
:disabled="row.status == 1"
style="padding: 0"
text
v-hasPermi="['home:salary:sealup']"
@click="handleSealup(row)"
>
封存
<span v-if="row.status == 0">封存</span>
<span v-else-if="row.status == 1">已封存</span>
</el-button>
</template>
</el-table-column>
@@ -359,7 +361,7 @@ async function getList() {
tableList.value = data.list.map((it, index) => ({
...it,
id: index + 1,
edit: it.isConfirm ? '2' : '0'
edit: it.status == 1 ? '2' : '0'
}))
}
total.value = data.total