|
@@ -101,7 +101,7 @@
|
|
|
label="创建时间"
|
|
|
width="150"
|
|
|
></el-table-column>
|
|
|
- <el-table-column label="操作" fixed="right">
|
|
|
+ <el-table-column label="操作" fixed="right" >
|
|
|
<template slot-scope="{ row }">
|
|
|
<el-row>
|
|
|
<el-col>
|
|
@@ -111,6 +111,12 @@
|
|
|
@click="handleEdit(row)"
|
|
|
>编辑</el-link
|
|
|
>-
|
|
|
+ <el-link
|
|
|
+ type="success"
|
|
|
+ :underline="false"
|
|
|
+ @click="handleCheck(row,true)"
|
|
|
+ >审核通过</el-link
|
|
|
+ >-
|
|
|
<el-link
|
|
|
type="danger"
|
|
|
:underline="false"
|
|
@@ -150,6 +156,10 @@ export default {
|
|
|
queryModel: {
|
|
|
name: "",
|
|
|
},
|
|
|
+ formModel:{
|
|
|
+ id:"",
|
|
|
+ enabled:"",
|
|
|
+ },
|
|
|
loading: false,
|
|
|
tableData: [],
|
|
|
treeData: [],
|
|
@@ -238,6 +248,58 @@ export default {
|
|
|
handleReset(name) {
|
|
|
this.$refs[name].resetFields();
|
|
|
},
|
|
|
+ handleCheck(record,checked){
|
|
|
+ var self = this;
|
|
|
+
|
|
|
+ var checkText = "";
|
|
|
+
|
|
|
+ if(checked){
|
|
|
+ checkText="审核通过?";
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ checkText="审核不通过?";
|
|
|
+ }
|
|
|
+
|
|
|
+ self
|
|
|
+ .$confirm(checkText, "提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ (function () {
|
|
|
+
|
|
|
+ self.formModel.id = record.id
|
|
|
+
|
|
|
+ if(checked){
|
|
|
+ self.formModel.enabled = true
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ self.formModel.enabled = false
|
|
|
+ }
|
|
|
+
|
|
|
+ return mobileBannerInfoApi.checkBannerInfo(self.formModel);
|
|
|
+
|
|
|
+ })().then(function (response) {
|
|
|
+ var jsonData = response.data;
|
|
|
+
|
|
|
+ if (jsonData.result) {
|
|
|
+ self.$message({
|
|
|
+ message: "审核成功!",
|
|
|
+ type: "success",
|
|
|
+ });
|
|
|
+
|
|
|
+ self.changePage(self.pageIndex);
|
|
|
+
|
|
|
+ } else {
|
|
|
+ self.$message({
|
|
|
+ message: jsonData.message + "",
|
|
|
+ type: "warning",
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ })
|
|
|
+ },
|
|
|
handleAdd() {
|
|
|
this.modalTitle = "新增";
|
|
|
this.businessKey = "";
|