Commit 9d8fc972 authored by wangqinghua's avatar wangqinghua

bug

parent 859f89a5
......@@ -81,6 +81,10 @@ export const getAgendaByIdByMeet = params =>req('get','/agenda/getAgendaById',p
//意向列表分页
export const getIntentionPage = params =>req('get','/intention/getIntentionPage',params);
//根据id删除意向
export const removeIntentionById = params =>req('get','/intention/removeIntentionById',params);
......
......@@ -54,7 +54,7 @@
<span class="font-size-20 pointer">
<i v-if="scope.row.currentStatus == 0 || scope.row.currentStatus == 1" @click="handleEdit(scope.row)" class="el-icon-edit-outline margin-right-10"></i>
<i v-if="scope.row.currentStatus == 2" class="el-icon-view margin-right-10"></i>
<i v-if="scope.row.currentStatus == 0 || scope.row.currentStatus == 1" @click="handleDelete(scope.row)" class="el-icon-delete"></i>
<i v-if="scope.row.currentStatus == 0 || scope.row.currentStatus == 1" @click="handleDelete(scope.row,scope.$index)" class="el-icon-delete"></i>
</span>
</template>
</el-table-column>
......@@ -77,7 +77,7 @@
<script>
import IntentionDialog from "../components/intentionDialog";
import {getIntentionPage} from "../api/api"
import {getIntentionPage,removeIntentionById} from "../api/api"
export default {
components: {IntentionDialog},
name: "intention",
......@@ -120,8 +120,19 @@
handleEdit(row){
this.$refs.intentionDialog.editDialog('03f273003a794249b0001f0622631a17')
},
handleDelete(){
handleDelete(row,index){
this.$confirm('确定删除该意向?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
removeIntentionById({id:row.id}).then(
(res)=>{
this.getList()
this.$message.success("删除成功")
}
)
})
}
}
}
......
<template>
<div class="view-file">
<el-row class="margin-20-0">
<el-col class="left" :span="12">
<el-col class="left" :span="24">
<div class="text-center">
<p class="margin-10-0">{{meet.title}}</p>
<p class="margin-10-0">时间:{{meet.meetingDate}}</p>
......@@ -26,9 +26,9 @@
<p class="padding-10-0">汇报</p>
</div>
</el-col>
<el-col :span="12">
<el-col class="right margin-20-0" :span="24">
<el-row>
<el-col :span="6">
<el-col class="text-center" :span="6">
<el-select size="small" placeholder="请选择" @change="changeFile" v-model="fileName">
<el-option
v-for="item in options"
......@@ -41,7 +41,9 @@
<el-col class="text-center" :span="18">
议程主题
</el-col>
<el-col :span="6">
</el-row>
<el-row>
<el-col class="text-center margin-20-0" :span="6">
附件名称
</el-col>
<el-col :span="18">
......@@ -63,7 +65,7 @@
id:null,
pdfDoc: null,
loadding: false,
meet:null,
meet:{},
pages: 0,
fileName:'',
options:[]
......@@ -116,7 +118,7 @@
},
mounted () {
this.id = this.$route.query.id
getMeetingById(this.id).then(
getMeetingById({id:this.id}).then(
(res)=>{
}
......@@ -138,6 +140,10 @@
.left > div >p{
color: #333333;
}
.right{
padding: 20px;
border: 1px solid #dddddd;
}
canvas {
display: block;
border-bottom: 1px solid black;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment