feat:修改 报送任务确认页面

This commit is contained in:
zty 2024-11-06 16:32:37 +08:00
parent be5ada2da1
commit d4f29adb8b
2 changed files with 14 additions and 14 deletions

View File

@ -191,17 +191,15 @@
</el-table-column>
<el-table-column label="报送文件">
<template slot-scope="scope" v-if="scope.row.files">
<el-link
v-if="scope.row.files.length > 1"
@click="handleRecord({ action: 'view', record: scope.row })"
>
<span style="color: red">{{ scope.row.files.length }}</span>
个文件</el-link
>
<div v-else v-for="item in scope.row.files_" v-bind:key="item.id">
<el-link :href="item.path" target="_blank" type="primary">{{
item.name
}}</el-link>
<div v-if="scope.row.files.length > 1">
<el-link @click="handleRecord({ action: 'view', record: scope.row })">
<span style="color: red">{{ scope.row.files.length }}</span> 个文件
</el-link>
</div>
<div v-else>
<div v-for="item in scope.row.files" :key="item.id">
<el-link :href="item.path" target="_blank" type="primary">{{ item.name }}</el-link>
</div>
</div>
</template>
</el-table-column>

View File

@ -106,7 +106,7 @@
v-if="this.data.action == 'deptconfirm'"
>确认</el-button
>
<el-button type="primary" @click="confirm()" v-else>确认</el-button>
<!-- <el-button type="primary" @click="confirm()" v-else></el-button> -->
</div>
</div>
</template>
@ -212,6 +212,7 @@ export default {
}
},
confirm() {
console.log("-----", this.data.action)
if (this.data.action == "update") {
updateRecord(this.record.id, this.record).then((res) => {
this.$message.success("成功");
@ -233,6 +234,7 @@ export default {
this.$emit("handleDo",true);
});
} else if (this.data.action == "deptconfirm_top") {
console.log("deptconfirm_top")
deptconfirm_top(this.record.id).then((res) => {
this.$message.success("事业部确认成功");
this.$emit("handleDo",true);