Przeglądaj źródła

修改详情列表开关

朱鑫波 3 lat temu
rodzic
commit
685f1feec9

+ 5 - 5
src/views/modules/autoLaunch/channelManage/channelDetailList.vue

@@ -217,7 +217,7 @@
                                     : '-'
                             }}
                         </span>
-                        <span slot="state" slot-scope="text, record">
+                        <span slot="channelState" slot-scope="text, record">
                             <a-switch :checked="text === 1" @change="handleSwitchChang($event, record)" />
                         </span>
                         <span slot="action" slot-scope="text, records">
@@ -393,10 +393,10 @@ import Treeselect from './components/treeSelectProject.vue'
 let TTcolumns = [
     {
         title: '开关',
-        dataIndex: 'state',
-        scopedSlots: { customRender: 'state' },
+        dataIndex: 'channelState',
+        scopedSlots: { customRender: 'channelState' },
         align: 'center',
-        key: 'state'
+        key: 'channelState'
     },
     {
         title: '生成方式(来源)',
@@ -832,7 +832,7 @@ export default {
         handleSwitchChang(checked, data) {
             const paramsData = {
                 id: data.id,
-                state: checked ? 1 : 0
+                channelState: checked ? 1 : 0
             }
             getAction('/channel/updateChannelState', paramsData)
                 .then(result => {