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

View File

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