|
|
|
@ -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(
|
|
|
|
|
'是否删除?', //文字
|
|
|
|
|