Commit d386b334 by zhangquan

动态配置模板链接

1 parent 3ec3a931
......@@ -24,7 +24,8 @@ let instance = null
Vue.use(ElementUI)
Vue.use(GLTable)
export async function bootstrap({ history, common, messenger, globalState, routerBase }) {
const { response, request, sign, secret, sign_common, request_common, response_sop, request_sop, request_merchant } = await fetchConfig(common)
const { response, request, sign, secret, sign_common, request_common, response_sop, request_sop, request_merchant, tmplUrl } = await fetchConfig(common)
Vue.prototype.$tmplUrl = tmplUrl
Vue.prototype.$history = history
Vue.prototype.$messenger = messenger
Vue.prototype.$globalState = globalState
......
......@@ -6,7 +6,7 @@
<label class="label" for="">Excel文件:</label>
<el-button size="small" icon="el-icon-plus" @click="selectFile">上传文件</el-button>
<input type="file" style="opacity: 0;width: 0;height: 0;" ref="file" accept="*" @change="uploadFile" />
<span class="download-text">下载模板</span>
<span class="download-text" @click="downLoadTmpl">下载模板</span>
</div>
<span class="file-name" v-if="fileUrl">{{ fileName }}</span>
</div>
......@@ -55,6 +55,11 @@ export default {
util.exportFn(this.checkInfo.errUrl)
}
},
downLoadTmpl(){
const url = this.$tmplUrl
if(!url) return this.$message.error('请配置模板链接')
util.exportFn(url)
},
handleCancel(){
this.fileUrl = ''
this.fileName = ''
......
......@@ -475,7 +475,7 @@ export default {
if(configType==0){
this.basicForm = {
pushFlag,
sendTime: [endTime, startTime],
sendTime: [startTime, endTime],
pushPhonesList: pushPhones?.split(',') || []
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!