diff --git a/src/views/caseCommon/caseDetailSupervise.vue b/src/views/caseCommon/caseDetailSupervise.vue
new file mode 100644
index 0000000..0ec1fe4
--- /dev/null
+++ b/src/views/caseCommon/caseDetailSupervise.vue
@@ -0,0 +1,344 @@
+
+
+
+
+
+
+
+ 查看地图
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 案卷图片:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 提交
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/caseCommon/caseDetailSupervise.vue b/src/views/caseCommon/caseDetailSupervise.vue
new file mode 100644
index 0000000..0ec1fe4
--- /dev/null
+++ b/src/views/caseCommon/caseDetailSupervise.vue
@@ -0,0 +1,344 @@
+
+
+
+
+
+
+
+ 查看地图
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 案卷图片:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 提交
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/seo/seo.vue b/src/views/seo/seo.vue
index c58bc38..5439b21 100644
--- a/src/views/seo/seo.vue
+++ b/src/views/seo/seo.vue
@@ -1,9 +1,5 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ @addDetail="showDetail"/>
diff --git a/src/views/caseCommon/caseDetailSupervise.vue b/src/views/caseCommon/caseDetailSupervise.vue
new file mode 100644
index 0000000..0ec1fe4
--- /dev/null
+++ b/src/views/caseCommon/caseDetailSupervise.vue
@@ -0,0 +1,344 @@
+
+
+
+
+
+
+
+ 查看地图
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 案卷图片:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 提交
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/seo/seo.vue b/src/views/seo/seo.vue
index c58bc38..5439b21 100644
--- a/src/views/seo/seo.vue
+++ b/src/views/seo/seo.vue
@@ -1,9 +1,5 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ @addDetail="showDetail"/>
diff --git a/src/views/supervise/allCase.vue b/src/views/supervise/allCase.vue
index a3fdd84..b4a360f 100644
--- a/src/views/supervise/allCase.vue
+++ b/src/views/supervise/allCase.vue
@@ -1,32 +1,15 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
@@ -89,8 +72,8 @@
this.fetchData()
},
methods: {
+ // 获取数据
fetchData() {
- console.log(this.listQuery)
this.listLoading = true
seoSearch(this.listQuery).then(res => {
this.caseList = res.data.rows
@@ -98,55 +81,23 @@
this.listLoading = false
})
},
+ // 来自caselist组件的查询条件(分页)更改后的查询
changeQuery(listQuery) {
this.listQuery = listQuery
this.fetchData()
},
+ // 来自业务查询条件更改后的查询
searchForm(listQuery) {
- debugger
this.listQuery = listQuery
- console.log('searchForm', this.listQuery)
- this.fetchData(listQuery)
- },
- addDetail(tabPane, row) {
- if (!this.existTab(tabPane)) {
- console.log(tabPane, row)
- this.editableTabs.push(tabPane)
- this.editableTabsValue = tabPane.name
- this.props[tabPane.index] = row
- } else {
- this.editableTabsValue = tabPane.name
- }
- },
- submitProcess(caseid) {
- this.removeTab('case' + caseid)
this.fetchData()
},
- existTab(tabPane) {
- const tab = _.find(this.editableTabs, ['index', tabPane.index])
- return tab
+ // 查看详情
+ showDetail(tabPane, row) {
+ this.$router.push({ path: '/caseDetailSupervise/' + row.id })
},
- removeTab(targetName) {
- console.log('removeTab', targetName)
- const tabs = this.editableTabs
- let activeName = this.editableTabsValue
- if (activeName === targetName) {
- tabs.forEach((tab, index) => {
- if (tab.name === targetName) {
- const nextTab = tabs[index + 1] || tabs[index - 1]
- if (nextTab) {
- activeName = nextTab.name
- }
- }
- })
- }
-
- this.editableTabsValue = activeName
- this.editableTabs = tabs.filter(tab => tab.name !== targetName)
-
- if (this.editableTabs.length === 0) {
- this.editableTabsValue = 'listTab'
- }
+ // 业务提交后的刷新
+ submitProcess(caseid) {
+ this.fetchData()
}
}
@@ -155,13 +106,4 @@
diff --git a/src/views/caseCommon/caseDetailSupervise.vue b/src/views/caseCommon/caseDetailSupervise.vue
new file mode 100644
index 0000000..0ec1fe4
--- /dev/null
+++ b/src/views/caseCommon/caseDetailSupervise.vue
@@ -0,0 +1,344 @@
+
+
+
+
+
+
+
+ 查看地图
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 案卷图片:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 提交
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/seo/seo.vue b/src/views/seo/seo.vue
index c58bc38..5439b21 100644
--- a/src/views/seo/seo.vue
+++ b/src/views/seo/seo.vue
@@ -1,9 +1,5 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ @addDetail="showDetail"/>
diff --git a/src/views/supervise/allCase.vue b/src/views/supervise/allCase.vue
index a3fdd84..b4a360f 100644
--- a/src/views/supervise/allCase.vue
+++ b/src/views/supervise/allCase.vue
@@ -1,32 +1,15 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
@@ -89,8 +72,8 @@
this.fetchData()
},
methods: {
+ // 获取数据
fetchData() {
- console.log(this.listQuery)
this.listLoading = true
seoSearch(this.listQuery).then(res => {
this.caseList = res.data.rows
@@ -98,55 +81,23 @@
this.listLoading = false
})
},
+ // 来自caselist组件的查询条件(分页)更改后的查询
changeQuery(listQuery) {
this.listQuery = listQuery
this.fetchData()
},
+ // 来自业务查询条件更改后的查询
searchForm(listQuery) {
- debugger
this.listQuery = listQuery
- console.log('searchForm', this.listQuery)
- this.fetchData(listQuery)
- },
- addDetail(tabPane, row) {
- if (!this.existTab(tabPane)) {
- console.log(tabPane, row)
- this.editableTabs.push(tabPane)
- this.editableTabsValue = tabPane.name
- this.props[tabPane.index] = row
- } else {
- this.editableTabsValue = tabPane.name
- }
- },
- submitProcess(caseid) {
- this.removeTab('case' + caseid)
this.fetchData()
},
- existTab(tabPane) {
- const tab = _.find(this.editableTabs, ['index', tabPane.index])
- return tab
+ // 查看详情
+ showDetail(tabPane, row) {
+ this.$router.push({ path: '/caseDetailSupervise/' + row.id })
},
- removeTab(targetName) {
- console.log('removeTab', targetName)
- const tabs = this.editableTabs
- let activeName = this.editableTabsValue
- if (activeName === targetName) {
- tabs.forEach((tab, index) => {
- if (tab.name === targetName) {
- const nextTab = tabs[index + 1] || tabs[index - 1]
- if (nextTab) {
- activeName = nextTab.name
- }
- }
- })
- }
-
- this.editableTabsValue = activeName
- this.editableTabs = tabs.filter(tab => tab.name !== targetName)
-
- if (this.editableTabs.length === 0) {
- this.editableTabsValue = 'listTab'
- }
+ // 业务提交后的刷新
+ submitProcess(caseid) {
+ this.fetchData()
}
}
@@ -155,13 +106,4 @@
diff --git a/src/views/supervise/components/caseDetailSupervise.vue b/src/views/supervise/components/caseDetailSupervise.vue
index 1d15f51..a4f805f 100644
--- a/src/views/supervise/components/caseDetailSupervise.vue
+++ b/src/views/supervise/components/caseDetailSupervise.vue
@@ -289,21 +289,19 @@
this.superviseForm.superviseRemarks = value
},
submit() {
- console.log('submit')
+ const superviseForm = this.superviseForm
this.$confirm('确定提交案件处理吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
+ console.log('doing submit')
// 点击“确定”后的操作
- const isBuild = this.buildForm()
- if (!isBuild) {
- return
- }
- superviseCaseTask(this.superviseForm).then(response => {
+ debugger
+ superviseCaseTask(superviseForm).then(response => {
if (response.code === 200) {
this.$message.success('提交成功')
- this.$emit('submitProcess', this.caseDetail.caseid)
+ // this.$emit('submitProcess', this.caseDetail.caseid)
} else {
this.$message.error('提交失败')
}
diff --git a/src/views/caseCommon/caseDetailSupervise.vue b/src/views/caseCommon/caseDetailSupervise.vue
new file mode 100644
index 0000000..0ec1fe4
--- /dev/null
+++ b/src/views/caseCommon/caseDetailSupervise.vue
@@ -0,0 +1,344 @@
+
+
+
+
+
+
+
+ 查看地图
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 案卷图片:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 提交
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/seo/seo.vue b/src/views/seo/seo.vue
index c58bc38..5439b21 100644
--- a/src/views/seo/seo.vue
+++ b/src/views/seo/seo.vue
@@ -1,9 +1,5 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ @addDetail="showDetail"/>
diff --git a/src/views/supervise/allCase.vue b/src/views/supervise/allCase.vue
index a3fdd84..b4a360f 100644
--- a/src/views/supervise/allCase.vue
+++ b/src/views/supervise/allCase.vue
@@ -1,32 +1,15 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
@@ -89,8 +72,8 @@
this.fetchData()
},
methods: {
+ // 获取数据
fetchData() {
- console.log(this.listQuery)
this.listLoading = true
seoSearch(this.listQuery).then(res => {
this.caseList = res.data.rows
@@ -98,55 +81,23 @@
this.listLoading = false
})
},
+ // 来自caselist组件的查询条件(分页)更改后的查询
changeQuery(listQuery) {
this.listQuery = listQuery
this.fetchData()
},
+ // 来自业务查询条件更改后的查询
searchForm(listQuery) {
- debugger
this.listQuery = listQuery
- console.log('searchForm', this.listQuery)
- this.fetchData(listQuery)
- },
- addDetail(tabPane, row) {
- if (!this.existTab(tabPane)) {
- console.log(tabPane, row)
- this.editableTabs.push(tabPane)
- this.editableTabsValue = tabPane.name
- this.props[tabPane.index] = row
- } else {
- this.editableTabsValue = tabPane.name
- }
- },
- submitProcess(caseid) {
- this.removeTab('case' + caseid)
this.fetchData()
},
- existTab(tabPane) {
- const tab = _.find(this.editableTabs, ['index', tabPane.index])
- return tab
+ // 查看详情
+ showDetail(tabPane, row) {
+ this.$router.push({ path: '/caseDetailSupervise/' + row.id })
},
- removeTab(targetName) {
- console.log('removeTab', targetName)
- const tabs = this.editableTabs
- let activeName = this.editableTabsValue
- if (activeName === targetName) {
- tabs.forEach((tab, index) => {
- if (tab.name === targetName) {
- const nextTab = tabs[index + 1] || tabs[index - 1]
- if (nextTab) {
- activeName = nextTab.name
- }
- }
- })
- }
-
- this.editableTabsValue = activeName
- this.editableTabs = tabs.filter(tab => tab.name !== targetName)
-
- if (this.editableTabs.length === 0) {
- this.editableTabsValue = 'listTab'
- }
+ // 业务提交后的刷新
+ submitProcess(caseid) {
+ this.fetchData()
}
}
@@ -155,13 +106,4 @@
diff --git a/src/views/supervise/components/caseDetailSupervise.vue b/src/views/supervise/components/caseDetailSupervise.vue
index 1d15f51..a4f805f 100644
--- a/src/views/supervise/components/caseDetailSupervise.vue
+++ b/src/views/supervise/components/caseDetailSupervise.vue
@@ -289,21 +289,19 @@
this.superviseForm.superviseRemarks = value
},
submit() {
- console.log('submit')
+ const superviseForm = this.superviseForm
this.$confirm('确定提交案件处理吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
+ console.log('doing submit')
// 点击“确定”后的操作
- const isBuild = this.buildForm()
- if (!isBuild) {
- return
- }
- superviseCaseTask(this.superviseForm).then(response => {
+ debugger
+ superviseCaseTask(superviseForm).then(response => {
if (response.code === 200) {
this.$message.success('提交成功')
- this.$emit('submitProcess', this.caseDetail.caseid)
+ // this.$emit('submitProcess', this.caseDetail.caseid)
} else {
this.$message.error('提交失败')
}
diff --git a/src/views/supervise/criticalCase.vue b/src/views/supervise/criticalCase.vue
index f67eee7..c19eb36 100644
--- a/src/views/supervise/criticalCase.vue
+++ b/src/views/supervise/criticalCase.vue
@@ -1,32 +1,15 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
@@ -98,70 +81,28 @@
this.listLoading = false
})
},
+ // 来自caselist组件的查询条件(分页)更改后的查询
changeQuery(listQuery) {
this.listQuery = listQuery
this.fetchData()
},
+ // 来自业务查询条件更改后的查询
searchForm(listQuery) {
- debugger
this.listQuery = listQuery
- console.log('searchForm', this.listQuery)
- this.fetchData(listQuery)
- },
- addDetail(tabPane, row) {
- if (!this.existTab(tabPane)) {
- console.log(tabPane, row)
- this.editableTabs.push(tabPane)
- this.editableTabsValue = tabPane.name
- this.props[tabPane.index] = row
- } else {
- this.editableTabsValue = tabPane.name
- }
- },
- submitProcess(caseid) {
- this.removeTab('case' + caseid)
this.fetchData()
},
- existTab(tabPane) {
- const tab = _.find(this.editableTabs, ['index', tabPane.index])
- return tab
+ // 查看详情
+ showDetail(tabPane, row) {
+ this.$router.push({path: '/caseDetailSupervise/' + row.id})
},
- removeTab(targetName) {
- console.log('removeTab', targetName)
- const tabs = this.editableTabs
- let activeName = this.editableTabsValue
- if (activeName === targetName) {
- tabs.forEach((tab, index) => {
- if (tab.name === targetName) {
- const nextTab = tabs[index + 1] || tabs[index - 1]
- if (nextTab) {
- activeName = nextTab.name
- }
- }
- })
- }
-
- this.editableTabsValue = activeName
- this.editableTabs = tabs.filter(tab => tab.name !== targetName)
-
- if (this.editableTabs.length === 0) {
- this.editableTabsValue = 'listTab'
- }
+ // 业务提交后的刷新
+ submitProcess(caseid) {
+ this.fetchData()
}
}
-
}
diff --git a/src/views/caseCommon/caseDetailSupervise.vue b/src/views/caseCommon/caseDetailSupervise.vue
new file mode 100644
index 0000000..0ec1fe4
--- /dev/null
+++ b/src/views/caseCommon/caseDetailSupervise.vue
@@ -0,0 +1,344 @@
+
+
+
+
+
+
+
+ 查看地图
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 案卷图片:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 提交
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/seo/seo.vue b/src/views/seo/seo.vue
index c58bc38..5439b21 100644
--- a/src/views/seo/seo.vue
+++ b/src/views/seo/seo.vue
@@ -1,9 +1,5 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ @addDetail="showDetail"/>
diff --git a/src/views/supervise/allCase.vue b/src/views/supervise/allCase.vue
index a3fdd84..b4a360f 100644
--- a/src/views/supervise/allCase.vue
+++ b/src/views/supervise/allCase.vue
@@ -1,32 +1,15 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
@@ -89,8 +72,8 @@
this.fetchData()
},
methods: {
+ // 获取数据
fetchData() {
- console.log(this.listQuery)
this.listLoading = true
seoSearch(this.listQuery).then(res => {
this.caseList = res.data.rows
@@ -98,55 +81,23 @@
this.listLoading = false
})
},
+ // 来自caselist组件的查询条件(分页)更改后的查询
changeQuery(listQuery) {
this.listQuery = listQuery
this.fetchData()
},
+ // 来自业务查询条件更改后的查询
searchForm(listQuery) {
- debugger
this.listQuery = listQuery
- console.log('searchForm', this.listQuery)
- this.fetchData(listQuery)
- },
- addDetail(tabPane, row) {
- if (!this.existTab(tabPane)) {
- console.log(tabPane, row)
- this.editableTabs.push(tabPane)
- this.editableTabsValue = tabPane.name
- this.props[tabPane.index] = row
- } else {
- this.editableTabsValue = tabPane.name
- }
- },
- submitProcess(caseid) {
- this.removeTab('case' + caseid)
this.fetchData()
},
- existTab(tabPane) {
- const tab = _.find(this.editableTabs, ['index', tabPane.index])
- return tab
+ // 查看详情
+ showDetail(tabPane, row) {
+ this.$router.push({ path: '/caseDetailSupervise/' + row.id })
},
- removeTab(targetName) {
- console.log('removeTab', targetName)
- const tabs = this.editableTabs
- let activeName = this.editableTabsValue
- if (activeName === targetName) {
- tabs.forEach((tab, index) => {
- if (tab.name === targetName) {
- const nextTab = tabs[index + 1] || tabs[index - 1]
- if (nextTab) {
- activeName = nextTab.name
- }
- }
- })
- }
-
- this.editableTabsValue = activeName
- this.editableTabs = tabs.filter(tab => tab.name !== targetName)
-
- if (this.editableTabs.length === 0) {
- this.editableTabsValue = 'listTab'
- }
+ // 业务提交后的刷新
+ submitProcess(caseid) {
+ this.fetchData()
}
}
@@ -155,13 +106,4 @@
diff --git a/src/views/supervise/components/caseDetailSupervise.vue b/src/views/supervise/components/caseDetailSupervise.vue
index 1d15f51..a4f805f 100644
--- a/src/views/supervise/components/caseDetailSupervise.vue
+++ b/src/views/supervise/components/caseDetailSupervise.vue
@@ -289,21 +289,19 @@
this.superviseForm.superviseRemarks = value
},
submit() {
- console.log('submit')
+ const superviseForm = this.superviseForm
this.$confirm('确定提交案件处理吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
+ console.log('doing submit')
// 点击“确定”后的操作
- const isBuild = this.buildForm()
- if (!isBuild) {
- return
- }
- superviseCaseTask(this.superviseForm).then(response => {
+ debugger
+ superviseCaseTask(superviseForm).then(response => {
if (response.code === 200) {
this.$message.success('提交成功')
- this.$emit('submitProcess', this.caseDetail.caseid)
+ // this.$emit('submitProcess', this.caseDetail.caseid)
} else {
this.$message.error('提交失败')
}
diff --git a/src/views/supervise/criticalCase.vue b/src/views/supervise/criticalCase.vue
index f67eee7..c19eb36 100644
--- a/src/views/supervise/criticalCase.vue
+++ b/src/views/supervise/criticalCase.vue
@@ -1,32 +1,15 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
@@ -98,70 +81,28 @@
this.listLoading = false
})
},
+ // 来自caselist组件的查询条件(分页)更改后的查询
changeQuery(listQuery) {
this.listQuery = listQuery
this.fetchData()
},
+ // 来自业务查询条件更改后的查询
searchForm(listQuery) {
- debugger
this.listQuery = listQuery
- console.log('searchForm', this.listQuery)
- this.fetchData(listQuery)
- },
- addDetail(tabPane, row) {
- if (!this.existTab(tabPane)) {
- console.log(tabPane, row)
- this.editableTabs.push(tabPane)
- this.editableTabsValue = tabPane.name
- this.props[tabPane.index] = row
- } else {
- this.editableTabsValue = tabPane.name
- }
- },
- submitProcess(caseid) {
- this.removeTab('case' + caseid)
this.fetchData()
},
- existTab(tabPane) {
- const tab = _.find(this.editableTabs, ['index', tabPane.index])
- return tab
+ // 查看详情
+ showDetail(tabPane, row) {
+ this.$router.push({path: '/caseDetailSupervise/' + row.id})
},
- removeTab(targetName) {
- console.log('removeTab', targetName)
- const tabs = this.editableTabs
- let activeName = this.editableTabsValue
- if (activeName === targetName) {
- tabs.forEach((tab, index) => {
- if (tab.name === targetName) {
- const nextTab = tabs[index + 1] || tabs[index - 1]
- if (nextTab) {
- activeName = nextTab.name
- }
- }
- })
- }
-
- this.editableTabsValue = activeName
- this.editableTabs = tabs.filter(tab => tab.name !== targetName)
-
- if (this.editableTabs.length === 0) {
- this.editableTabsValue = 'listTab'
- }
+ // 业务提交后的刷新
+ submitProcess(caseid) {
+ this.fetchData()
}
}
-
}
diff --git a/src/views/supervise/overtimeCase.vue b/src/views/supervise/overtimeCase.vue
index b84cd31..662225c 100644
--- a/src/views/supervise/overtimeCase.vue
+++ b/src/views/supervise/overtimeCase.vue
@@ -1,32 +1,15 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
@@ -98,55 +81,23 @@
this.listLoading = false
})
},
+ // 来自caselist组件的查询条件(分页)更改后的查询
changeQuery(listQuery) {
this.listQuery = listQuery
this.fetchData()
},
+ // 来自业务查询条件更改后的查询
searchForm(listQuery) {
- debugger
this.listQuery = listQuery
- console.log('searchForm', this.listQuery)
- this.fetchData(listQuery)
- },
- addDetail(tabPane, row) {
- if (!this.existTab(tabPane)) {
- console.log(tabPane, row)
- this.editableTabs.push(tabPane)
- this.editableTabsValue = tabPane.name
- this.props[tabPane.index] = row
- } else {
- this.editableTabsValue = tabPane.name
- }
- },
- submitProcess(caseid) {
- this.removeTab('case' + caseid)
this.fetchData()
},
- existTab(tabPane) {
- const tab = _.find(this.editableTabs, ['index', tabPane.index])
- return tab
+ // 查看详情
+ showDetail(tabPane, row) {
+ this.$router.push({path: '/caseDetailSupervise/' + row.id})
},
- removeTab(targetName) {
- console.log('removeTab', targetName)
- const tabs = this.editableTabs
- let activeName = this.editableTabsValue
- if (activeName === targetName) {
- tabs.forEach((tab, index) => {
- if (tab.name === targetName) {
- const nextTab = tabs[index + 1] || tabs[index - 1]
- if (nextTab) {
- activeName = nextTab.name
- }
- }
- })
- }
-
- this.editableTabsValue = activeName
- this.editableTabs = tabs.filter(tab => tab.name !== targetName)
-
- if (this.editableTabs.length === 0) {
- this.editableTabsValue = 'listTab'
- }
+ // 业务提交后的刷新
+ submitProcess(caseid) {
+ this.fetchData()
}
}