| | |
| | | <template> |
| | | <div> |
| | | <div class="laboratoryMangement"> |
| | | <el-row> |
| | | <el-col :span="12" class="top_left_name">设备维护</el-col> |
| | | <el-col :span="12" style="text-align: right;"> |
| | | <el-col :span="12" style="text-align: right;" class="title"> |
| | | <el-button |
| | | @click="testItem()" |
| | | type="primary" |
| | |
| | | line-height: 14px; |
| | | } |
| | | </style> |
| | | <style> |
| | | .laboratoryMangement .title *{ |
| | | font-size: 14px; |
| | | } |
| | | |
| | | .laboratoryMangement .table_top_div *{ |
| | | font-size: 14px; |
| | | } |
| | | |
| | | .laboratoryMangement .title .el-button { |
| | | height: 32px; |
| | | border: 1px solid rgba(190, 190, 190, 0.44); |
| | | box-shadow: 0px 2px 4px rgba(220, 220, 220, 0.41); |
| | | padding: 0 12px; |
| | | } |
| | | .laboratoryMangement .table_top_div .el-button { |
| | | height: 32px; |
| | | border: 1px solid rgba(190, 190, 190, 0.44); |
| | | box-shadow: 0px 2px 4px rgba(220, 220, 220, 0.41); |
| | | padding: 0 12px; |
| | | } |
| | | </style> |
| | |
| | | <el-row> |
| | | <el-col :span="12">技术文件</el-col> |
| | | <el-col :span="12" style="text-align: right;"> |
| | | <el-button icon="el-icon-plus">生成项目书</el-button> |
| | | <el-button icon="el-icon-plus">生成项目书</el-button> |
| | | </el-col> |
| | | </el-row> |
| | | </div> |
| | |
| | | <el-input v-model="searchData.name" @input="query"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="编制状态:" > |
| | | <el-select v-model="searchData.type" placeholder="全部" style="width: 310px;"> |
| | | <el-select v-model="searchData.type" size="small" placeholder="全部" style="width: 250px;"> |
| | | <el-option label="待编制" :value="0"></el-option> |
| | | <el-option label="已编制" :value="1"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item > |
| | | <el-button plain @click="resetBtn">重 置</el-button> |
| | | <el-button @click="searchTechnical">查 询</el-button> |
| | | <el-form-item> |
| | | <el-button plain @click="resetBtn" style="margin-left: 12px;">重 置</el-button> |
| | | <el-button @click="searchTechnical">查 询</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | |
| | | background: #fff; |
| | | padding: 24px 32px; |
| | | } |
| | | |
| | | .search-header .el-form-item__label{ |
| | | padding: 0 30px 0 0; |
| | | } |
| | |
| | | } |
| | | </style> |
| | | |
| | | <style> |
| | | .technical .title *{ |
| | | font-size: 14px; |
| | | } |
| | | |
| | | .technical .search-header *{ |
| | | font-size: 14px; |
| | | } |
| | | </style> |
| | |
| | | } |
| | | ) |
| | | .then((res) => { |
| | | console.log(res); |
| | | this.$parent.removeAllTab() |
| | | this.selectAllTechNam(); |
| | | this.form = {}; |
| | | }); |
| | |
| | | }, |
| | | //批量删除 |
| | | delAllTech() { |
| | | console.log(this.delete); |
| | | this.$axios.post(this.$api.url.delAllTech, { |
| | | ids: this.delete, |
| | | ids: this.delete |
| | | }); |
| | | this.$parent.removeAllTab() |
| | | }, |
| | | //删除 |
| | | delTechById() { |
| | | console.log(this.$api.url.delTechById, this.upData.id); |
| | | this.$axios.post(this.$api.url.delTechById, { |
| | | id: this.upData.id, |
| | | id: this.upData.id |
| | | }); |
| | | this.$parent.removeAllTab() |
| | | }, |
| | | //编辑 |
| | | writeTechById() { |
| | |
| | | } |
| | | ) |
| | | .then((res) => { |
| | | console.log(res); |
| | | this.$parent.removeAllTab() |
| | | }); |
| | | }, |
| | | |
| | |
| | | return el.id; |
| | | }); |
| | | this.delete = cc.join(","); |
| | | console.log(this.delete); |
| | | this.delAllTech(); |
| | | this.$message.success("删除完成"); |
| | | }, |
| | |
| | | } |
| | | |
| | | .left .box i { |
| | | font-size: 32px; |
| | | font-size: 24px; |
| | | margin-bottom: 8px; |
| | | } |
| | | |
| | |
| | | height: 100%; |
| | | } |
| | | </style> |
| | | <style></style> |
| | | <template> |
| | | <div class="all"> |
| | | <div class="title"> |
| | |
| | | </div> |
| | | <div class="component_view"> |
| | | <component class="com_index" v-for="(com, index) in tabs" :is="com.u" :key="upIndex + '|' + index" |
| | | v-show="com.k == tabActive"> |
| | | v-show="com.k == tabActive" @removeAllTab="removeAllTab"> |
| | | </component> |
| | | </div> |
| | | </div> |
| | |
| | | u: "index-index" |
| | | }] |
| | | }, |
| | | |
| | | upTabActive(num) { |
| | | this.tabActive = num; |
| | | this.activeP = num; |
| | |
| | | sessionStorage.clear(); |
| | | localStorage.removeItem("autoenter"); |
| | | this.$router.push("/enter"); |
| | | }, |
| | | removeAllTab(){ |
| | | this.upIndex++ |
| | | } |
| | | } |
| | | }; |