| | |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button size="small" type="primary" icon="el-icon-search" @click="onSubmit">查询</el-button> |
| | | <el-button size="small" type="success" icon="el-icon-plus" @click="addClick">发布需求</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | |
| | | <el-table-column fixed="right" label="操作" width="200"> |
| | | <template slot-scope="scope"> |
| | | <el-button v-if="scope.row.status == 0" @click="shClick(scope.row)" type="text" size="small">审核</el-button> |
| | | <el-button @click="editClick(scope.row)" type="text" size="small" >详情</el-button> |
| | | <el-button @click="editProjectClick(scope.row)" type="text" size="small">编辑</el-button> |
| | | <el-button @click="editClick(scope.row)" type="text" size="small">详情</el-button> |
| | | <el-button @click="evaluateClick(scope.row)" type="text" size="small" >评论列表</el-button> |
| | | <el-button @click="deleteClick(scope.row)" type="text" size="small">删除</el-button> |
| | | </template> |
| | |
| | | <Edit v-if="open_edit" :open_edit="open_edit" :form="userModel" @closeDialog="closeDialogFunc($event, 'edit')"></Edit> |
| | | |
| | | <Editsh v-if="open_sh" :open_edit="open_sh" :form="userModel" @closeDialog="closeDialogFunc($event, 'editsh')"></Editsh> |
| | | |
| | | <!--发布需求/编辑需求--> |
| | | <Add v-if="open_add" :open_add="open_add" :edit_data="editData" @closeDialog="closeDialogFunc($event, 'add')"></Add> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | import PlusApi from '@/api/plus/release.js'; |
| | | import Edit from './Edit.vue'; |
| | | import Editsh from './dialog/Edit.vue'; |
| | | import Add from './dialog/Add.vue'; |
| | | import {deepClone} from '@/utils/base.js'; |
| | | export default { |
| | | components: { |
| | | /*编辑组件*/ |
| | | Edit, |
| | | Editsh, |
| | | Add, |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | /*当前编辑的对象*/ |
| | | userModel: {}, |
| | | open_sh:false, |
| | | open_add: false, |
| | | /*编辑数据*/ |
| | | editData: null, |
| | | }; |
| | | }, |
| | | created() { |
| | |
| | | this.open_edit = true; |
| | | }, |
| | | |
| | | /*打开发布弹窗*/ |
| | | addClick() { |
| | | this.editData = null; |
| | | this.open_add = true; |
| | | }, |
| | | |
| | | /*打开编辑弹窗*/ |
| | | editProjectClick(item) { |
| | | this.editData = deepClone(item); |
| | | this.open_add = true; |
| | | }, |
| | | |
| | | /*打开弹出层审核*/ |
| | | shClick(item) { |
| | | this.userModel = item; |