Commit 62113f8c by lichengming

修改了查看报告附件删除按钮

parent 0969939e
...@@ -78,6 +78,8 @@ export default { ...@@ -78,6 +78,8 @@ export default {
pageSoilAppendix: data => pageSoilAppendix: data =>
http.post('soil/v1/appendix/page', data).then(res => res), http.post('soil/v1/appendix/page', data).then(res => res),
appendixDelete: data =>
http.delete('soil/v1/appendix/?ids=' + data).then(res => res),
pageTest: data => pageTest: data =>
http.post('soil/v1/experiment/page_test', data).then(res => res), http.post('soil/v1/experiment/page_test', data).then(res => res),
pageCheck: data => pageCheck: data =>
......
...@@ -68,20 +68,10 @@ export default { ...@@ -68,20 +68,10 @@ export default {
selectIds: [], selectIds: [],
iconMsg: [ iconMsg: [
{ {
type: 'md-create',
id: '',
name: '编辑'
},
{
type: 'ios-book', type: 'ios-book',
id: '', id: '',
name: '查看附录' name: '查看附录'
}, },
{
type: 'ios-list',
id: '',
name: '查看试验项目'
},
{ type: 'md-trash', id: '', name: '删除' } { type: 'md-trash', id: '', name: '删除' }
], ],
pageColumns: [ pageColumns: [
...@@ -267,7 +257,7 @@ export default { ...@@ -267,7 +257,7 @@ export default {
}) })
}, },
_deleteOk: async function(ids) { _deleteOk: async function(ids) {
const result = await soilTest.deleteRecord(ids) const result = await soilTest.appendixDelete(ids)
if (result) { if (result) {
this.$Message.success('删除成功') this.$Message.success('删除成功')
this._page() this._page()
......
...@@ -60,6 +60,7 @@ ...@@ -60,6 +60,7 @@
</div> </div>
</div> </div>
<keep-alive> <keep-alive>
<!-- eslint-disable-next-line vue/require-component-is -->
<component ref="refModal" :is="currentComponent" @on-result-change="_componentResult"></component> <component ref="refModal" :is="currentComponent" @on-result-change="_componentResult"></component>
</keep-alive> </keep-alive>
</div> </div>
...@@ -70,6 +71,7 @@ import { soilTest } from '../../../api' ...@@ -70,6 +71,7 @@ import { soilTest } from '../../../api'
import Operation from '../../../components/operation/Operation' import Operation from '../../../components/operation/Operation'
import SampleManage from './SampleManage' import SampleManage from './SampleManage'
export default { export default {
// eslint-disable-next-line vue/no-unused-components
components: { UserInfo, Operation, SampleManage }, components: { UserInfo, Operation, SampleManage },
data() { data() {
return { return {
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
<el-tab-pane label="录入历史" name="queryTabs"></el-tab-pane> <el-tab-pane label="录入历史" name="queryTabs"></el-tab-pane>
</el-tabs> </el-tabs>
<keep-alive> <keep-alive>
<!-- eslint-disable-next-line vue/require-component-is -->
<component ref="refModal" :is="currentComponent"></component> <component ref="refModal" :is="currentComponent"></component>
</keep-alive> </keep-alive>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment