diff --git a/client/src/api/ability.js b/client/src/api/ability.js index a210da6..ded8362 100644 --- a/client/src/api/ability.js +++ b/client/src/api/ability.js @@ -120,6 +120,12 @@ export function getAbilityQuality(query) { params: query }) } +export function getQualityItem(id) { + return request({ + url: `/ability/quali/${id}/`, + method: 'get' + }) +} export function getQualityMy(query) { return request({ url: `/ability/quali/my/`, diff --git a/client/src/views/ability/abilityQuality.vue b/client/src/views/ability/abilityQuality.vue index 2096461..94d0af9 100644 --- a/client/src/views/ability/abilityQuality.vue +++ b/client/src/views/ability/abilityQuality.vue @@ -64,28 +64,44 @@ ref="filterTable" > - + + + + - + + + + - {{scope.row.level}} - {{typeOptions[scope.row.grade]}} + {{scope.row.level}} + {{typeOptions[scope.row.grade]}} - - + + + + + - - + + + + - + + + + + - + + + + {{scope.row.create_time.substring(0, 10)}} @@ -152,6 +168,20 @@ this.getGroup(); }, methods: { + showlight(val) { + val = val + ""; + if (this.listQuery.search !== "") { + let searchList = this.listQuery.search.split(" "); + let reg = null; + for (let i = 0; i < searchList.length; i++) { + reg=new RegExp(searchList[i],"g"); + val = val.replace(reg, '' + searchList[i] + ''); + } + return val; + } else { + return val; + } + }, checkPermission, getList() { this.listLoading = true; diff --git a/client/src/views/ability/cma2.vue b/client/src/views/ability/cma2.vue index b7c9451..4ef2396 100644 --- a/client/src/views/ability/cma2.vue +++ b/client/src/views/ability/cma2.vue @@ -47,7 +47,6 @@ - - - 导入分子公司能力 - 批量删除 - @@ -135,14 +130,10 @@ > - {{ - scope.row.create_time.substring(0, 10) - }} + {{scope.row.create_time.substring(0, 10)}} - {{ - scope.row.update_time.substring(0, 10) - }} + {{scope.row.update_time.substring(0, 10)}} --> - ' + - searchList[i] + - "" - ); + let reg = null; + for (let i = 0; i < searchList.length; i++) { + reg=new RegExp(searchList[i],"g"); + val = val.replace(reg, '' + searchList[i] + ''); } return val; } else { diff --git a/client/src/views/ability/mQualityTask.vue b/client/src/views/ability/mQualityTask.vue index 5ee0936..6c222e0 100644 --- a/client/src/views/ability/mQualityTask.vue +++ b/client/src/views/ability/mQualityTask.vue @@ -26,7 +26,7 @@ fit stripe highlight-current-row - max-height="300" + :height="topHeight" @row-click="clickRow" > @@ -66,7 +66,7 @@ v-if="buttonsShow&&checkPermission(['qaction_create'])" type="primary" style="float: right" - @click="serviceUpdate(scope)" + @click="serviceUpdate()" > 更新服务 @@ -74,7 +74,7 @@ v-if="buttonsShow&&checkPermission(['qaction_create'])" type="primary" style="float: right;margin-right: 10px" - @click="qualiUpdate(scope)" + @click="qualiUpdate()" > 编辑资质 @@ -82,7 +82,7 @@ v-if="buttonsShow&&checkPermission(['qaction_create'])" type="primary" style="float: right;margin-right: 10px" - @click="qualiCreate(scope)" + @click="qualiCreate()" > 新增资质 @@ -90,7 +90,7 @@ v-if="buttonsShow&&checkPermission(['qaction_create'])" type="primary" style="float: right;margin-right: 10px" - @click="abilityCreate(scope)" + @click="abilityCreate()" > 新增能力 @@ -103,9 +103,9 @@ fit stripe highlight-current-row - max-height="400" + :height="bottomHeight" > - + {{qtaskName}} @@ -124,13 +124,6 @@ 未确认 - - - {{ scope.row.value2.name }} - {{ scope.row.value2 }} - - - 有 {{ scope.row.files.length }} - 个文件 - {{item.name }} + {{item.name }} + - {{ scope.row.content_name }} + + {{ scope.row.create_by_.name }} + - {{ scope.row.update_time.substring(0, 16) }} + {{ scope.row.update_time.substring(0, 16) }} 删除 + >删除 + @@ -319,21 +317,16 @@ - - - - - + 编辑 + >编辑 + @@ -464,60 +463,16 @@ > - - - - - - - + + - - - - + + - - - + + @@ -554,7 +509,19 @@