| | |
| | | icon="el-icon-delete" |
| | | size="mini" |
| | | :disabled="multiple" |
| | | @click="handleDelete" |
| | | @click="deleteByIds" |
| | | v-hasPermi="['code:engineering:remove']" |
| | | >删除</el-button> |
| | | </el-col> |
| | |
| | | <dict-tag :options="dict.type.sys_project_type" :value="scope.row.projectType"/> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="投资额" align="center" prop="investmentAmount" /> |
| | | <el-table-column label="投资额(万)" align="center" prop="investmentAmount" /> |
| | | <el-table-column label="开工状态" align="center" prop="status"> |
| | | <template slot-scope="scope"> |
| | | <dict-tag :options="dict.type.sys_project_status" :value="scope.row.status"/> |
| | |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-delete" |
| | | @click="handleDelete(scope.row)" |
| | | @click="deleteById(scope.row)" |
| | | v-hasPermi="['code:engineering:remove']" |
| | | >删除</el-button> |
| | | </template> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { getProjectEngineerings, getProjectEngineeringById, deleteProjectEngineeringByIds, editProjectEngineering, addProjectEngineering } from "@/api/projectEngineering/projectEngineering"; |
| | | import { getProjectEngineerings, getProjectEngineeringById, deleteProjectEngineeringByIds, deleteProjectEngineeringById, editProjectEngineering, addProjectEngineering } from "@/api/projectEngineering/projectEngineering"; |
| | | import {list} from "@/api/projectEngineering/projectInfo"; |
| | | |
| | | export default { |
| | |
| | | } |
| | | }); |
| | | }, |
| | | deleteById(row) { |
| | | this.$modal.confirm('是否确认删除选中工程?').then(function() { |
| | | return deleteProjectEngineeringById(row.id); |
| | | }).then(() => { |
| | | this.getList(); |
| | | this.$modal.msgSuccess("删除成功"); |
| | | }).catch(() => {}); |
| | | }, |
| | | /** 删除按钮操作 */ |
| | | handleDelete(row) { |
| | | const ids = row.id || this.ids; |
| | | this.$modal.confirm('是否确认删除工程库编号为"' + ids + '"的数据项?').then(function() { |
| | | deleteByIds() { |
| | | const ids = this.ids; |
| | | this.$modal.confirm('是否确认删除选中工程?').then(function() { |
| | | return deleteProjectEngineeringByIds(ids); |
| | | }).then(() => { |
| | | this.getList(); |