| | |
| | | </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> |
| | |
| | | <div class="table-wrap"> |
| | | <el-table size="small" :data="tableData" border style="width: 100%" v-loading="loading"> |
| | | <el-table-column prop="project_id" label="ID" width="100"></el-table-column> |
| | | <el-table-column prop="nickName" label="发布用户"></el-table-column> |
| | | <el-table-column prop="nickName" label="微信头像"> |
| | | <template slot-scope="scope"> |
| | | <img :src="scope.row.user.avatarUrl" width="30px" height="30px" /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="name" label="标题"></el-table-column> |
| | | <el-table-column prop="category.name" label="分类" width="200"></el-table-column> |
| | | <el-table-column prop="price" label="预算" width="200"></el-table-column> |
| | |
| | | <span v-if="scope.row.status == 2" class="green">已驳回</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column fixed="right" label="操作" width="150"> |
| | | <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> |
| | | </el-table-column> |
| | |
| | | <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.getTableList(); |
| | | }, |
| | | |
| | | evaluateClick(item) { |
| | | let self = this; |
| | | let params = item.project_id; |
| | | this.$router.push({ |
| | | path: '/plus/release/evaluate/list', |
| | | query: { |
| | | project_id: params |
| | | } |
| | | }); |
| | | }, |
| | | |
| | | /*打开编辑*/ |
| | | editClick(item) { |
| | | this.userModel = deepClone(item); |
| | | 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; |