|
@@ -49,6 +49,12 @@
|
|
<el-option v-for="(item,index) in interactionTypes" :key="index" :label="item.key" :value="item.value"/>
|
|
<el-option v-for="(item,index) in interactionTypes" :key="index" :label="item.key" :value="item.value"/>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</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-row>
|
|
<el-col :span="24" >
|
|
<el-col :span="24" >
|
|
<el-form-item :label="this.$t('interactionChain.AcceptSequence')" prop="role_path">
|
|
<el-form-item :label="this.$t('interactionChain.AcceptSequence')" prop="role_path">
|
|
@@ -125,6 +131,7 @@
|
|
formshow: false,
|
|
formshow: false,
|
|
formmodel: {
|
|
formmodel: {
|
|
repeat_times: 1,
|
|
repeat_times: 1,
|
|
|
|
+ bool_whilst: 0,
|
|
group_ids: []
|
|
group_ids: []
|
|
},
|
|
},
|
|
rules: {
|
|
rules: {
|
|
@@ -173,7 +180,15 @@
|
|
},{
|
|
},{
|
|
key:this.$t('tcpType.IM'),
|
|
key:this.$t('tcpType.IM'),
|
|
value:'IM'
|
|
value:'IM'
|
|
- }]
|
|
|
|
|
|
+ }],
|
|
|
|
+ whilstList: [{
|
|
|
|
+ key: this.$t('interactionChain.whilstFalse'),
|
|
|
|
+ value: 0
|
|
|
|
+ },{
|
|
|
|
+ key: this.$t('interactionChain.whilstTrue'),
|
|
|
|
+ value: 1
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -212,7 +227,12 @@
|
|
flex:1,
|
|
flex:1,
|
|
cellRenderer: this.chainFormatter
|
|
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',
|
|
headerName: this.$t('action.edit'), field: 'shop_id',
|
|
cellRendererFramework: 'ButtonCellRenderList',
|
|
cellRendererFramework: 'ButtonCellRenderList',
|
|
@@ -358,13 +378,18 @@
|
|
// return this.deviceTypeTransfer.filter(p => p.value === gridVal).map(p => p.key)
|
|
// 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]
|
|
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() {
|
|
createBroadcast() {
|
|
delete this.formmodel.id
|
|
delete this.formmodel.id
|
|
this.formmodel={
|
|
this.formmodel={
|
|
-
|
|
|
|
|
|
+ bool_whilst: 0
|
|
}
|
|
}
|
|
this.role_path=[]
|
|
this.role_path=[]
|
|
this.role_path_step=[customer,nurse_host]
|
|
this.role_path_step=[customer,nurse_host]
|