+
@@ -10,16 +11,18 @@
import List from './components/list'
import Edit from './components/edit'
import Info from './components/info'
+import OutSourced from '@/components/OutSourced/index'
export default {
components: {
List: List,
Edit: Edit,
+ OutSourced: OutSourced,
Info: Info
},
data() {
return {
- activeName: 'List'
+ activeName: 'OutSourced'
}
},
watch: {
@@ -27,6 +30,9 @@ export default {
if (val == 'List') {
this.$refs.list.getQuery()
}
+ if (val == 'OutSourced') {
+ this.$refs.outSourced.getQuery()
+ }
}
}
}
diff --git a/src/views/keyprojects/punish/components/list.vue b/src/views/keyprojects/punish/components/list.vue
index 4ac43f4..03bbb69 100644
--- a/src/views/keyprojects/punish/components/list.vue
+++ b/src/views/keyprojects/punish/components/list.vue
@@ -1,5 +1,7 @@
+
+
@@ -110,6 +112,10 @@ export default {
getRowKey(row) {
return row.OUTSOURCED_ID
},
+ back() {
+ this.$parent.CORPINFO_ID = ''
+ this.$parent.activeName = 'OutSourced'
+ },
// 搜索
getQuery() {
this.$refs.multipleTable.clearSelection()
@@ -143,7 +149,9 @@ export default {
requestFN(
'/outsourced/list?showCount=' + this.listQuery.limit + '¤tPage=' + this.listQuery.page,
{
- KEYWORDS: this.KEYWORDS
+ KEYWORDS: this.KEYWORDS,
+ CORPINFO_ID: this.$parent.CORPINFO_ID
+
}
).then((data) => {
this.listLoading = false
diff --git a/src/views/keyprojects/punish/index.vue b/src/views/keyprojects/punish/index.vue
index 0dd7220..c5c501e 100644
--- a/src/views/keyprojects/punish/index.vue
+++ b/src/views/keyprojects/punish/index.vue
@@ -1,5 +1,6 @@
+
@@ -12,17 +13,19 @@ import List from './components/list'
import Info from './components/info'
import List2 from './components/list2'
import HiddenInfo from './components/hiddenInfo.vue'
+import OutSourced from '@/components/OutSourced/index'
export default {
components: {
HiddenInfo: HiddenInfo,
+ OutSourced: OutSourced,
List: List,
Info: Info,
List2: List2
},
data() {
return {
- activeName: 'List',
+ activeName: 'OutSourced',
KEYPROJECTPUNISH_ID: '',
HIDDEN_ID: ''
}