zcy 3 سال پیش
والد
کامیت
09c70f2773

+ 5 - 3
src/views/security/checkList/view/dy/syList.vue → src/views/security/checkList/view/dy/dyList.vue

@@ -99,7 +99,7 @@ import { listMixin } from '@/mixin/listMixin'
 import { getAction, httpAction } from '@/api/request'
 import JModal from '@/components/JModal'
 import columns from './syColumns'
-import CheckAndEditModel from '../../CheckAndEditModel'
+import CheckAndEditModel from '../../../stand/CheckAndEditModel'
 
 export default {
   name: 'SyList',
@@ -116,6 +116,7 @@ export default {
       // 表头
       isNotCreateLoad: true,
       columns: columns(this),
+      dataSource: [],
       treeData: [],
       id: '',
       url: {
@@ -134,9 +135,10 @@ export default {
       this.$refs.changeModel.disableSubmit = false
     },
     edit(record) {
+      this.visible = true
+      debugger
       this.id = record.id
       this.loadData()
-      this.visible = true
     },
     changeStatus({ $event, record }) {
       console.log($event, record)
@@ -157,7 +159,7 @@ export default {
       var params = this.getQueryParams()// 查询条件
       this.queryParam = Object.assign({}, params, { id: this.id })
       this.loading = true
-      getAction(this.url.list, params).then((res) => {
+      getAction(this.url.list, this.queryParam).then((res) => {
         if (res.code === 200) {
           this.dataSource = res.rows || res.data
           if (res.total) {

+ 3 - 3
src/views/security/checkList/view/dy/index.vue

@@ -72,16 +72,16 @@
     </div>
     <!-- table区域-end -->
     <!-- 表单区域 -->
-    <sy-list ref="modalForm" />
+    <dy-list ref="modalForm" />
   </div>
 </template>
 <script>
 import { listMixin } from '@/mixin/listMixin'
 import columns from './indexColumns'
 import { getAction } from '@/api/request'
-import syList from './syList'
+import dyList from './dyList'
 export default {
-  components: { syList },
+  components: { dyList },
   mixins: [listMixin],
   data() {
     return {

+ 3 - 3
src/views/security/checkList/view/yy/index.vue

@@ -72,16 +72,16 @@
     </div>
     <!-- table区域-end -->
     <!-- 表单区域 -->
-    <sy-list ref="modalForm" />
+    <yy-list ref="modalForm" />
   </div>
 </template>
 <script>
 import { listMixin } from '@/mixin/listMixin'
 import columns from './indexColumns'
 import { getAction } from '@/api/request'
-import syList from './syList'
+import yyList from './yyList'
 export default {
-  components: { syList },
+  components: { yyList },
   mixins: [listMixin],
   data() {
     return {

+ 1 - 2
src/views/security/checkList/view/yy/syList.vue → src/views/security/checkList/view/yy/yyList.vue

@@ -88,7 +88,6 @@ import { listMixin } from '@/mixin/listMixin'
 import { getAction, httpAction } from '@/api/request'
 import JModal from '@/components/JModal'
 import columns from './syColumns'
-import CheckAndEditModel from '../../CheckAndEditModel'
 
 export default {
   name: 'SyList',
@@ -129,7 +128,7 @@ export default {
       var params = this.getQueryParams()// 查询条件
       this.queryParam = Object.assign({}, params, { id: this.id })
       this.loading = true
-      getAction(this.url.list, params).then((res) => {
+      getAction(this.url.list, this.queryParam).then((res) => {
         if (res.code === 200) {
           this.dataSource = res.rows || res.data
           if (res.total) {

+ 4 - 6
src/views/security/stand/bfList.vue

@@ -103,14 +103,12 @@ import JModal from '@/components/JModal'
 import { listMixin } from '@/mixin/listMixin'
 import columns from './indexColumns'
 import CheckModel from './CheckAndEditModel'
-import ChangeModel from '../checkList/CheckAndEditModel'
 
 export default {
   name: 'BfList',
   components: {
     JModal,
-    CheckModel,
-    ChangeModel
+    CheckModel
   },
   mixins: [listMixin],
   data() {
@@ -151,9 +149,9 @@ export default {
       this.$refs.checkForm.disabled = true
     },
     handleEdit: function(record) {
-      this.$refs.changeModel.edit(record)
-      this.$refs.changeModel.title = '更换安全工具'
-      this.$refs.changeModel.disableSubmit = false
+      this.$refs.checkForm.edit(record)
+      this.$refs.checkForm.title = '更换安全工具'
+      this.$refs.checkForm.disableSubmit = false
     },
 
     close() {