feat: 修改生产环境服务器地址

pull/2/head
TianYu 2023-05-17 09:53:43 +08:00
parent 201f44a588
commit 405e61876a
2 changed files with 30 additions and 46 deletions

View File

@ -5,7 +5,7 @@ ENV = 'production'
VUE_APP_TITLE = 创盈商户管理系统 VUE_APP_TITLE = 创盈商户管理系统
# 创盈管理系统/生产环境 # 创盈管理系统/生产环境
VUE_APP_BASE_API = '/prod-api' VUE_APP_BASE_API = 'https://cmx.bskies.cc:8000/cyyywl-api'
# 根据服务器或域名修改 # 根据服务器或域名修改
PUBLIC_PATH = 'http://my-pi.com:8888/yudao-admin/' PUBLIC_PATH = 'http://my-pi.com:8888/yudao-admin/'

View File

@ -2,29 +2,31 @@
<div class="app-container"> <div class="app-container">
<doc-alert title="SaaS 多租户" url="https://doc.iocoder.cn/saas-tenant/"/> <doc-alert title="SaaS 多租户" url="https://doc.iocoder.cn/saas-tenant/"/>
<!-- 搜索工作栏 --> <!-- 搜索工作栏 -->
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="150px">
<el-form-item label="租户名" prop="name"> <el-form-item label="店铺名称" prop="name">
<el-input v-model="queryParams.name" placeholder="请输入租户名" clearable @keyup.enter.native="handleQuery"/> <el-input v-model="queryParams.name" placeholder="请输入店铺名称" clearable @keyup.enter.native="handleQuery"/>
</el-form-item> </el-form-item>
<el-form-item label="联系人" prop="contactName"> <el-form-item label="店铺状态" prop="status">
<el-input v-model="queryParams.contactName" placeholder="请输入联系人" clearable <el-select v-model="queryParams.status" placeholder="请选择状态" clearable>
@keyup.enter.native="handleQuery"/>
</el-form-item>
<el-form-item label="联系手机" prop="contactMobile">
<el-input v-model="queryParams.contactMobile" placeholder="请输入联系手机" clearable
@keyup.enter.native="handleQuery"/>
</el-form-item>
<el-form-item label="租户状态" prop="status">
<el-select v-model="queryParams.status" placeholder="请选择租户状态" clearable>
<el-option v-for="dict in this.getDictDatas(DICT_TYPE.COMMON_STATUS)" <el-option v-for="dict in this.getDictDatas(DICT_TYPE.COMMON_STATUS)"
:key="dict.value" :label="dict.label" :value="dict.value"/> :key="dict.value" :label="dict.label" :value="dict.value"/>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="创建时间" prop="createTime"> <el-form-item label="店铺负责人" prop="contactName">
<el-date-picker v-model="queryParams.createTime" style="width: 240px" value-format="yyyy-MM-dd HH:mm:ss" <el-input v-model="queryParams.contactName" placeholder="请输入" clearable
type="daterange" @keyup.enter.native="handleQuery"/>
range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期" </el-form-item>
:default-time="['00:00:00', '23:59:59']"/> <el-form-item label="店铺负责人手机号" prop="contactMobile">
<el-input v-model="queryParams.contactMobile" placeholder="请输入" clearable
@keyup.enter.native="handleQuery"/>
</el-form-item>
<el-form-item label="销售对接人" prop="saleContactName">
<el-input v-model="queryParams.saleContactName" placeholder="请输入" clearable
@keyup.enter.native="handleQuery"/>
</el-form-item>
<el-form-item label="销售对接人手机号" prop="saleContactMobile">
<el-input v-model="queryParams.saleContactMobile" placeholder="请输入" clearable
@keyup.enter.native="handleQuery"/>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" @click="handleQuery"></el-button> <el-button type="primary" icon="el-icon-search" @click="handleQuery"></el-button>
@ -202,11 +204,12 @@ export default {
queryParams: { queryParams: {
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
name: null, name: '',
contactName: null, contactName: '',
contactMobile: null, contactMobile: '',
status: undefined, status: '',
createTime: [] saleContactName: '',
saleContactMobile: ''
}, },
// //
form: {}, form: {},
@ -276,17 +279,7 @@ export default {
}, },
/** 表单重置 */ /** 表单重置 */
reset() { reset() {
this.form = { this.form = {}
id: undefined,
name: undefined,
packageId: undefined,
contactName: undefined,
contactMobile: undefined,
accountCount: undefined,
expireTime: undefined,
domain: undefined,
status: CommonStatusEnum.ENABLE,
};
this.resetForm('form'); this.resetForm('form');
}, },
/** 搜索按钮操作 */ /** 搜索按钮操作 */
@ -365,23 +358,14 @@ export default {
params.pageNo = undefined; params.pageNo = undefined;
params.pageSize = undefined; params.pageSize = undefined;
// //
this.$modal.confirm('是否确认导出所有租户数据项?').then(() => { this.$modal.confirm('是否确认导出所有店铺数据项?').then(() => {
this.exportLoading = true; this.exportLoading = true;
return exportTenantExcel(params); return exportTenantExcel(params);
}).then(response => { }).then(response => {
this.$download.excel(response, '租户.xls'); this.$download.excel(response, '店铺.xls');
this.exportLoading = false; this.exportLoading = false;
}).catch(() => { }).catch(() => {
}); });
},
/** 套餐名格式化 */
getPackageName(packageId) {
for (const item of this.packageList) {
if (item.id === packageId) {
return item.name;
}
}
return '未知套餐';
} }
} }
}; };