Przeglądaj źródła

接收顺序加上同时发送

wennn 2 lat temu
rodzic
commit
e569dfc584
4 zmienionych plików z 37 dodań i 6 usunięć
  1. 3 1
      languages/en.js
  2. 3 1
      languages/es.js
  3. 3 1
      languages/zh-CN.js
  4. 28 3
      src/views/interaction-chain/index.vue

+ 3 - 1
languages/en.js

@@ -1127,7 +1127,9 @@ module.exports = {
     AcceptSequence:'Accept Sequence',
     chooseActionTypeTip:'Choose the type of interaction pls',
     chooseRoleSquence:'Choose the role to accept pls',
-    sketchMap:'The Sketch Map Of Acception'
+    sketchMap:'The Sketch Map Of Acception',
+    whilstFalse: 'Send in sequence',
+    whilstTrue: 'Send at the same time'
   },
   functionRoleMapping:{
     configurateLeft:'configurate the roles own[',

+ 3 - 1
languages/es.js

@@ -1127,7 +1127,9 @@ module.exports = {
     AcceptSequence:'Secuencia de aceptación',
     chooseActionTypeTip:'Seleccione el tipo de interacción',
     chooseRoleSquence:'Seleccione la función de recepción',
-    sketchMap:'Diagrama de aceptación'
+    sketchMap:'Diagrama de aceptación',
+    whilstFalse: 'Enviar en orden',
+    whilstTrue: 'Envío simultáneo'
   },
   functionRoleMapping:{
     configurateLeft:'Configurar su propio papel[',

+ 3 - 1
languages/zh-CN.js

@@ -1130,7 +1130,9 @@ module.exports = {
     AcceptSequence:'接收顺序',
     chooseActionTypeTip:'请选择交互类型',
     chooseRoleSquence:'请选择接收角色的顺序',
-    sketchMap:'交互接收流程示意图'
+    sketchMap:'交互接收流程示意图',
+    whilstFalse: '按顺序发送',
+    whilstTrue: '同时发送'
   },
   functionRoleMapping:{
     configurateLeft:'配置拥有[',

+ 28 - 3
src/views/interaction-chain/index.vue

@@ -49,6 +49,12 @@
                             <el-option v-for="(item,index) in interactionTypes" :key="index" :label="item.key" :value="item.value"/>
                         </el-select>
                     </el-form-item>
+                  <el-form-item :label="this.$t('interactionChain.AcceptSequence')" prop="bool_whilst">
+                    <el-radio-group v-model="formmodel.bool_whilst">
+                      <el-radio :label="0">{{ $t('interactionChain.whilstFalse') }}</el-radio>
+                      <el-radio :label="1">{{ $t('interactionChain.whilstTrue') }}</el-radio>
+                    </el-radio-group>
+                  </el-form-item>
                     <el-row>
                         <el-col :span="24" >
                             <el-form-item :label="this.$t('interactionChain.AcceptSequence')" prop="role_path">
@@ -125,6 +131,7 @@
                 formshow: false,
                 formmodel: {
                     repeat_times: 1,
+                    bool_whilst: 0,
                     group_ids: []
                 },
                 rules: {
@@ -173,7 +180,15 @@
                 },{
                     key:this.$t('tcpType.IM'),
                     value:'IM'
-                }]
+                }],
+              whilstList: [{
+                  key: this.$t('interactionChain.whilstFalse'),
+                  value: 0
+                },{
+                  key: this.$t('interactionChain.whilstTrue'),
+                  value: 1
+                }
+              ]
             }
         },
         computed: {
@@ -212,7 +227,12 @@
                     flex:1,
                     cellRenderer: this.chainFormatter
                 },
-
+              {
+                headerName: this.$t('interactionChain.AcceptSequence'), field: 'bool_whilst', sortable: true, filterFramework: 'ListFilter', filterParams: {
+                  listData: this.whilstList
+                }, width: 140,
+                valueGetter: this.whilstGetter
+              },
                 {
                     headerName: this.$t('action.edit'), field: 'shop_id',
                     cellRendererFramework: 'ButtonCellRenderList',
@@ -358,13 +378,18 @@
                 // return this.deviceTypeTransfer.filter(p => p.value === gridVal).map(p => p.key)
                 return this.interactionTypes.filter(p=>p.value===gridVal).map(p=>p.key)[0]
             },
+          whilstGetter(params) {
+            const gridVal = params.data.bool_whilst
+            // return this.deviceTypeTransfer.filter(p => p.value === gridVal).map(p => p.key)
+            return this.whilstList.filter(p=>p.value===gridVal).map(p=>p.key)[0]
+          },
             /**
              * 创建接收顺序
              */
             createBroadcast() {
                 delete this.formmodel.id
                 this.formmodel={
-
+                  bool_whilst: 0
                 }
                 this.role_path=[]
                 this.role_path_step=[customer,nurse_host]