update_202208241120_临时发送添加短信类型
| | |
| | | |
| | | // 打包后的环境!!!!!!!!!!!! |
| | | if (process.env && process.env.NODE_ENV !== 'development') { |
| | | baseUrl = '/sms/' |
| | | baseUrl = '/sms-admin/' |
| | | isCrossDomain = 0 |
| | | isTest = 0 |
| | | isMock = 0 |
| | |
| | | var cdTestBaseUrl = { |
| | | name: '/api_test/', |
| | | // url: 'http://192.168.2.106:3602/sms', // - 其 |
| | | url: 'https://phiskincrm.phiskin.com/sms', // - 线上 |
| | | url: 'https://sms.phiskin.com/sms-admin', // - 线上 |
| | | // url: 'http://192.168.1.163:8080/', |
| | | // url: 'http://192.168.31.143:8080/', // - 和 |
| | | // url: 'http://192.168.31.143:8888/', // - 和 |
| | |
| | | @keyup.enter.native="reGetList" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="短信类型"> |
| | | <el-select v-model="smsType" clearable placeholder="选择短信类型" @change="reGetList"> |
| | | <el-option |
| | | v-for="item in smsTypeOpts" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="cyan" icon="el-icon-search" size="mini" @click="reGetList">搜索</el-button> |
| | | <el-button icon="el-icon-refresh" size="mini" @click="resetHandle">重置</el-button> |
| | |
| | | <el-form-item label="批次编号" prop="batchCode"> |
| | | <el-input v-model="dialogData.batchCode" placeholder="请输入批次编号" maxlength="255" /> |
| | | </el-form-item> |
| | | <el-form-item label="短信类型" prop="smsType"> |
| | | <el-select v-model="dialogData.smsType" clearable placeholder="选择短信类型"> |
| | | <el-option |
| | | v-for="item in smsTypeOpts" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="上传文件" prop="uploadFiles"> |
| | | <div class="upload_single_file"> |
| | | <!-- 上传文件组件(单) --> |
| | |
| | | // keyWord: '', // 搜索区字段,可自行扩展其余字段 |
| | | batchName: '', |
| | | batchCode: '', |
| | | smsType: '', |
| | | |
| | | objectName: '短信', // 对象名称,用于删除提示、启用提示、弹窗标题等 |
| | | |
| | |
| | | // 弹窗数据 |
| | | dialogVisible: false, |
| | | dialogData: {}, |
| | | |
| | | smsTypeOpts: [ |
| | | { label: '验证码', value: 0 }, |
| | | { label: '通知短信', value: 1 }, |
| | | { label: '营销短信', value: 2 } |
| | | ], |
| | | |
| | | // 富文本编辑器 |
| | | // rangenum: null, |
| | |
| | | ], |
| | | smsTemplate: [ |
| | | { required: true, message: '短信模内容不能为空', trigger: 'change' } |
| | | ], |
| | | smsType: [ |
| | | { required: true, message: '短信类型不能为空', trigger: 'change' } |
| | | ] |
| | | // isUp: [ |
| | | // { required: true, message: '是否上架不能为空', trigger: 'change' } |
| | |
| | | |
| | | // 获取列表 |
| | | getList() { |
| | | var { pageNum, pageSize, batchName, batchCode } = this |
| | | var { pageNum, pageSize, batchName, batchCode, smsType } = this |
| | | this.postFN({ |
| | | url: 'send-general/list', |
| | | header: { 'Content-Type': 'application/json;charset=UTF-8' }, |
| | |
| | | pageSize: pageSize, |
| | | |
| | | batchName: batchName, |
| | | batchCode: batchCode |
| | | batchCode: batchCode, |
| | | smsType: smsType |
| | | }, |
| | | mockData: { |
| | | code: 100, |
| | |
| | | resetHandle() { |
| | | this.batchCode = '' |
| | | this.batchName = '' |
| | | this.smsType = '' |
| | | this.reGetList() |
| | | }, |
| | | // 删除 |
| | |
| | | var dialogData = { |
| | | batchCode: '', |
| | | batchName: '', |
| | | smsTemplate: '' |
| | | smsTemplate: '', |
| | | smsType: '' |
| | | } |
| | | this.uploadFiles = [] |
| | | this.dialogVisible = true |
| | |
| | | proxy: { |
| | | '/api_test': { |
| | | // target: 'http://192.168.2.106:3602/sms', // - 其 |
| | | target: 'https://phiskincrm.phiskin.com/sms', // - 线上 |
| | | target: 'https://sms.phiskin.com/sms-admin', // - 线上 |
| | | // target: 'http://192.168.1.163:8080/', |
| | | // target: 'http://192.168.31.143:8080/', // 和 |
| | | // target: 'http://192.168.31.143:8888/', // 和 |