Commit df030993 by zhangquan

动态配置模板链接

1 parent 152560db
...@@ -20,7 +20,8 @@ let instance = null ...@@ -20,7 +20,8 @@ let instance = null
Vue.use(ElementUI) Vue.use(ElementUI)
Vue.use(GLTable) Vue.use(GLTable)
export async function bootstrap({ history, common, messenger, globalState }) { export async function bootstrap({ history, common, messenger, globalState }) {
const { response, request, sign, secret, sign_common, request_common, request_gpt, request_merchant, messageModel } = await fetchConfig(common) const { response, request, sign, secret, sign_common, request_common, request_gpt, request_merchant, messageModel, commonData } = await fetchConfig(common)
Vue.prototype.$commonData = commonData
Vue.prototype.$history = history Vue.prototype.$history = history
Vue.prototype.$messenger = messenger Vue.prototype.$messenger = messenger
Vue.prototype.$globalState = globalState Vue.prototype.$globalState = globalState
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
</el-button> </el-button>
<input type="file" style="opacity: 0" ref="file" accept="*" @change="uploadFile" /> <input type="file" style="opacity: 0" ref="file" accept="*" @change="uploadFile" />
</div> </div>
<a href="https://img01.glsx.com.cn/weapp/resource/saas/scrm/xlsx/红包链接.xlsx" target="_blank">下载模板</a> <a :href="tempUrl" target="_blank">下载模板</a>
</div> </div>
</el-form-item> </el-form-item>
<div class="tip">支持扩展名:xlsx、xls、csv</div> <div class="tip">支持扩展名:xlsx、xls、csv</div>
...@@ -65,6 +65,7 @@ export default { ...@@ -65,6 +65,7 @@ export default {
data() { data() {
return { return {
size: 'small', size: 'small',
tempUrl: this.$commonData.radarTmplUrl,
url: url, url: url,
batchForm: { batchForm: {
isUpload: false, isUpload: false,
......
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
</el-button> </el-button>
<input type="file" style="opacity: 0" ref="file" accept="*" @change="uploadFile" /> <input type="file" style="opacity: 0" ref="file" accept="*" @change="uploadFile" />
</div> </div>
<a href="https://img01.glsx.com.cn/weapp/resource/saas/scrm/xlsx/红包链接.xlsx" target="_blank">下载模板</a> <a :href="tempUrl" target="_blank">下载模板</a>
</div> </div>
</el-form-item> </el-form-item>
<div class="tip">支持扩展名:xlsx、xls</div> <div class="tip">支持扩展名:xlsx、xls</div>
...@@ -131,6 +131,7 @@ export default { ...@@ -131,6 +131,7 @@ export default {
}, },
data() { data() {
return { return {
tempUrl: this.$commonData.tmplUrl,
parkingPlaceVisible: false, parkingPlaceVisible: false,
uploadVisible: false, uploadVisible: false,
isBatch: false, isBatch: false,
...@@ -526,11 +527,11 @@ export default { ...@@ -526,11 +527,11 @@ export default {
this.isBatch = true this.isBatch = true
}, },
//车位标记 //车位标记
sign(row){ sign(row) {
this.$router.push({ this.$router.push({
path:'/parkingPlace/sign', path: '/parkingPlace/sign',
query:row query: row
}) })
}, },
openUploadDialog(row) { openUploadDialog(row) {
this.curId = row.id this.curId = row.id
...@@ -578,7 +579,7 @@ export default { ...@@ -578,7 +579,7 @@ export default {
this.uploadList = JSON.parse(JSON.stringify(UPLOAD_LIST)) this.uploadList = JSON.parse(JSON.stringify(UPLOAD_LIST))
}, },
getMerchantList() { getMerchantList() {
this.$apis.parkingSpace.getMerchantListApi({ merchantId: '44209875' }).then(res => { this.$apis.parkingSpace.getMerchantListApi({ merchantId: this.$commonData.merchantId }).then(res => {
if (res?.length) { if (res?.length) {
const target = this.searchFormList.find(item => item.name == 'merchantId') const target = this.searchFormList.find(item => item.name == 'merchantId')
target.optionList = [{ merchantName: '全部', merchantNo: '' }, ...res] target.optionList = [{ merchantName: '全部', merchantNo: '' }, ...res]
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!