合并
This commit is contained in:
@@ -98,42 +98,22 @@
|
||||
size="small"
|
||||
@click="showKeyAudience(row)"
|
||||
>服务详情</el-button>
|
||||
<el-button type="text"
|
||||
v-if="row.status == 0"
|
||||
icon="el-icon-video-play"
|
||||
size="small"
|
||||
@click="playServe(row)"
|
||||
>启用</el-button>
|
||||
<el-button type="text"
|
||||
v-if="row.status == 1"
|
||||
icon="el-icon-video-pause"
|
||||
size="small"
|
||||
@click="pauseServe(row)"
|
||||
>暂停</el-button>
|
||||
</template>
|
||||
<!--/父子表-->
|
||||
</avue-crud>
|
||||
|
||||
<!-- / 重点人群详情 -->
|
||||
<!-- <el-dialog title="服务详情" :visible.sync="visibleAudience" :close-on-click-modal="false" append-to-body width="70%">
|
||||
<avue-crud
|
||||
:data="infoData"
|
||||
:option="infoOption"
|
||||
:page.sync="infoPage"
|
||||
@size-change="infoSizeChange"
|
||||
@current-change="infoCurrentChange"
|
||||
class="customPage"
|
||||
>
|
||||
<template slot-scope="{row,index}" slot="menu">
|
||||
<el-button type="text"
|
||||
icon="el-icon-document"
|
||||
size="small"
|
||||
@click="matchWorkStation(row)"
|
||||
>匹配任务/岗位</el-button>
|
||||
<el-button type="text"
|
||||
icon="el-icon-document"
|
||||
size="small"
|
||||
@click="matchPolicy(row)"
|
||||
>匹配政策</el-button>
|
||||
<el-button type="text"
|
||||
icon="el-icon-document"
|
||||
size="small"
|
||||
@click="serveLog(row)"
|
||||
>服务日志</el-button>
|
||||
</template>
|
||||
</avue-crud>
|
||||
</el-dialog> -->
|
||||
|
||||
|
||||
|
||||
<!--批量导入-->
|
||||
<el-dialog title="导入" append-to-body :visible.sync="excelBox" :close-on-click-modal="false" width="555px">
|
||||
<avue-form :option="excelOption" v-model="excelForm" :upload-after="uploadAfter"
|
||||
@@ -209,9 +189,7 @@
|
||||
@current-change="workCurrentChange"
|
||||
>
|
||||
<template slot="missionDesc" slot-scope="{ row }">
|
||||
<!-- {{ row.missionDesc }} -->
|
||||
<el-tooltip class="item" effect="dark" :content="row.missionDesc" placement="top-start">
|
||||
<!-- <el-button>上左</el-button> -->
|
||||
<span>{{ row.missionDesc.length > 50 ? row.missionDesc.substring(0, 50) : row.missionDesc}}</span>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
@@ -292,8 +270,6 @@ import ied from "@/views/util/import-error-dialog";
|
||||
import { excelAccept } from "@/common/accept";
|
||||
import missionView from "../../mission/Table/missionView.vue";
|
||||
import workView from "../../works/Table/missionView.vue"
|
||||
// import ServeDetail from './Dialog/ServeDetail.vue'
|
||||
// import CopyMission from "../mission/Dialog/CopyMission";
|
||||
const page = {
|
||||
pageSize: 10,
|
||||
currentPage: 1,
|
||||
@@ -651,12 +627,6 @@ export default {
|
||||
label: "标签",
|
||||
prop: "labelsBase",
|
||||
},
|
||||
|
||||
// {
|
||||
// label: "备注",
|
||||
// prop: "remarks",
|
||||
|
||||
// },
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -717,7 +687,6 @@ export default {
|
||||
this.getKeyAudience({
|
||||
id: row.id
|
||||
})
|
||||
// this.$refs.copy.onLoad();
|
||||
this.drawer = true;
|
||||
},
|
||||
getKeyAudience(params) {
|
||||
@@ -804,8 +773,6 @@ export default {
|
||||
}
|
||||
}
|
||||
this.personTotal = res.data.data.sum;
|
||||
// this.onLoad();
|
||||
//this.treeData.push(treeDataOne);
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
@@ -862,10 +829,6 @@ export default {
|
||||
);
|
||||
})
|
||||
.catch(() => {
|
||||
// this.$message({
|
||||
// type: 'info',
|
||||
// message: '已取消'
|
||||
// });
|
||||
});
|
||||
},
|
||||
/*批量转移分组 */
|
||||
@@ -1259,6 +1222,47 @@ export default {
|
||||
}
|
||||
|
||||
},
|
||||
// 启用服务
|
||||
playServe(row) {
|
||||
console.log(row)
|
||||
update({
|
||||
id: row.id,
|
||||
status: 1
|
||||
}).then(
|
||||
() => {
|
||||
// done();
|
||||
this.$message({
|
||||
type: "success",
|
||||
message: "启用成功!",
|
||||
});
|
||||
this.refresh();
|
||||
},
|
||||
(error) => {
|
||||
window.console.log(error);
|
||||
// done();
|
||||
}
|
||||
);
|
||||
},
|
||||
pauseServe(row) {
|
||||
console.log(row)
|
||||
update({
|
||||
id: row.id,
|
||||
status: 0
|
||||
}).then(
|
||||
() => {
|
||||
// done();
|
||||
this.$message({
|
||||
type: "success",
|
||||
message: "暂停成功!",
|
||||
});
|
||||
this.refresh();
|
||||
},
|
||||
(error) => {
|
||||
window.console.log(error);
|
||||
// done();
|
||||
}
|
||||
);
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user