|
@@ -78,7 +78,7 @@
|
|
|
<script>
|
|
<script>
|
|
|
import { listMixin } from '@/mixin/listMixin'
|
|
import { listMixin } from '@/mixin/listMixin'
|
|
|
import columns from './indexColumns'
|
|
import columns from './indexColumns'
|
|
|
-import { getAction } from '@/api/request'
|
|
|
|
|
|
|
+import { getAction, httpAction } from '@/api/request'
|
|
|
import dyList from './dyList'
|
|
import dyList from './dyList'
|
|
|
export default {
|
|
export default {
|
|
|
components: { dyList },
|
|
components: { dyList },
|
|
@@ -103,6 +103,19 @@ export default {
|
|
|
this.getSysList()
|
|
this.getSysList()
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ handleEdit: function(record) {
|
|
|
|
|
+ httpAction('/business/safetool/sec/experiment/expEnd', record, 'post').then((res) => {
|
|
|
|
|
+ if (res.code === 200) {
|
|
|
|
|
+ this.$refs.modalForm.edit(record)
|
|
|
|
|
+ this.$refs.modalForm.title = '编辑'
|
|
|
|
|
+ this.$refs.modalForm.disableSubmit = false
|
|
|
|
|
+ this.$message.success(res.msg)
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.$message.error(res.msg)
|
|
|
|
|
+ console.log(res)
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
loadTree() {
|
|
loadTree() {
|
|
|
this.treeData = []
|
|
this.treeData = []
|
|
|
getAction(this.url.tree).then((res) => {
|
|
getAction(this.url.tree).then((res) => {
|