zx 3 years ago
parent 6971ca782c
commit 3f996243d9

@ -65,6 +65,7 @@
<el-link type="primary" @click="goDetail(scope.row.id)" style="margin-right: 8px">查看</el-link>
<el-link type="primary" @click="goEffect(scope.row.id)" style="margin-right: 8px">传播效果</el-link>
<el-link @click="hanlderStop(scope.row.id)" v-if="scope.row.status == 1" type="danger" style="margin-right: 8px"></el-link>
<el-link @click="hanlderFinish(scope.row.id)" v-if="scope.row.status == 2" type="danger" style="margin-right: 8px"></el-link>
</div>
</template>
</el-table-column>
@ -176,6 +177,18 @@ export default defineComponent({
}).catch(() => {});
}).catch(() => {})
},
hanlderFinish(id) {
this.$alert(
'是否立即结算?', //
'立即结算', //
{type: 'warning'}
).then(() => {
this.proxy.$post("/task/finish", {id: id}).then(res => {
this.getData();
this.$message.success('操作成功');
}).catch(() => {});
}).catch(() => {})
},
hanlderDelete(id) {
this.$alert(
'是否删除?', //

Loading…
Cancel
Save