| | |
| | | ], |
| | | onResetView: (row) => { |
| | | // this.$router.push(`${this.$route.path}/${row.id}`) |
| | | |
| | | // const searchFormRef = this.$refs.crud.$refs.searchForm |
| | | // const searchFormValue = searchFormRef.getFormValue() |
| | | const url = this.$router.resolve( |
| | | `/sms/send-batch/${row.id}` |
| | | ).href |
| | | window.open(url, '_blank') |
| | | this.$router.push(`${this.$route.path}/${row.id}`) |
| | | |
| | | // const url = this.$router.resolve( |
| | | // `/sms/send-batch/${row.id}` |
| | | // ).href |
| | | // window.open(url, '_blank') |
| | | |
| | | }, |
| | | columns: [ |
| | |
| | | trigger: 'change', |
| | | }, |
| | | ], |
| | | // outputFormat: (val) => { |
| | | // console.log(val) |
| | | // return ''; |
| | | // }, |
| | | }, |
| | | { |
| | | label: '', |
| | |
| | | hidden: (row) => row.type !== 'SELECT', |
| | | rules: { required: true, message: '请选择领取用户' }, |
| | | inputFormat: (row) => { |
| | | if ('smsUserDTOS' in row) { |
| | | if ('smsUserDTOS' in row && row.smsUserDTOS && row.smsUserDTOS.length>0) { |
| | | return row.smsUserDTOS.filter((i) => i) |
| | | } |
| | | }, |
| | | outputFormat: (val) => { |
| | | return val?.length ? val.map((i) => {return {userId:i.id,userPhone:i.tel} }) : [] |
| | | return val?.length ? val.map((i) => {return {userId:i.userId,userPhone:i.tel} }) : [] |
| | | |
| | | }, |
| | | forceDisabled: true, |
| | | }, |