|
@@ -108,6 +108,11 @@
|
|
|
size="mini"
|
|
|
title="详 细"
|
|
|
@click="handleView(scope.$index, scope.row)">详 细</el-button>
|
|
|
+ <el-button Inquireclick
|
|
|
+ type="primary"
|
|
|
+ size="mini"
|
|
|
+ title="详 细"
|
|
|
+ @click="generate(scope.$index, scope.row)">生 成</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -218,6 +223,35 @@ export default {
|
|
|
this.currentPage=1;
|
|
|
this.PostGroupPageList()
|
|
|
},
|
|
|
+ //生成
|
|
|
+ generate(index,val){
|
|
|
+ var url = "/api/Statistics/PostGroupStatementExportExcel"
|
|
|
+ var that = this
|
|
|
+ this.$axios({
|
|
|
+ method: 'post',
|
|
|
+ url: url,
|
|
|
+ headers: {
|
|
|
+ Authorization: 'Bearer '
|
|
|
+ },
|
|
|
+ data: {
|
|
|
+ portType: 1,
|
|
|
+ userId:that.userid,
|
|
|
+ pageId:38,
|
|
|
+ diId:val.id,
|
|
|
+ isAudit: true
|
|
|
+ }
|
|
|
+ }).then(function (res) {
|
|
|
+ if (res.data.code == 200) {
|
|
|
+ window.open(res.data.data)
|
|
|
+ that.$message({
|
|
|
+ message: res.data.msg,
|
|
|
+ type: 'success'
|
|
|
+ });
|
|
|
+ }else{
|
|
|
+ that.$message.error(res.data.msg);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
//处理时间
|
|
|
filteryear(val){
|
|
|
let gstime=val.visitDate.split(' ')[0]
|