diff --git a/src/components/DictData/index.js b/src/components/DictData/index.js
new file mode 100644
index 0000000..dbe965b
--- /dev/null
+++ b/src/components/DictData/index.js
@@ -0,0 +1,21 @@
+import Vue from 'vue';
+import DataDict from '@/utils/dictionary';
+import { getDicts as getDicts } from '@/api/system/dict/data';
+
+function install() {
+ Vue.use(DataDict, {
+ metas: {
+ '*': {
+ labelField: 'dictLabel',
+ valueField: 'dictValue',
+ request(dictMeta) {
+ return getDicts(dictMeta.type).then((res) => res.data);
+ }
+ }
+ }
+ });
+}
+
+export default {
+ install
+};
diff --git a/src/components/DictRadio/index.vue b/src/components/DictRadio/index.vue
new file mode 100644
index 0000000..3e758ae
--- /dev/null
+++ b/src/components/DictRadio/index.vue
@@ -0,0 +1,55 @@
+
+
+ {{ dict.label }}
+
+
+
+
diff --git a/src/components/DictSelect/index.vue b/src/components/DictSelect/index.vue
new file mode 100644
index 0000000..54b20b0
--- /dev/null
+++ b/src/components/DictSelect/index.vue
@@ -0,0 +1,39 @@
+
+
+
+
+
+
+
+
diff --git a/src/components/HeaderSearch/index.vue b/src/components/HeaderSearch/index.vue
new file mode 100644
index 0000000..c44eff5
--- /dev/null
+++ b/src/components/HeaderSearch/index.vue
@@ -0,0 +1,190 @@
+
+
+
+
+
+
+
diff --git a/src/components/InBody/InBody.vue b/src/components/InBody/InBody.vue
new file mode 100644
index 0000000..099d8fd
--- /dev/null
+++ b/src/components/InBody/InBody.vue
@@ -0,0 +1,18 @@
+
+
+
+
diff --git a/src/components/InOutTypeSelect.vue b/src/components/InOutTypeSelect.vue
new file mode 100644
index 0000000..0fbf902
--- /dev/null
+++ b/src/components/InOutTypeSelect.vue
@@ -0,0 +1,55 @@
+
+ .item-select-wrapper
+ el-select(
+ v-model="value1"
+ clearable
+ :size="size"
+ )
+ el-option(
+ v-for="item in opTypes"
+ :key="item.value"
+ :label="item.label"
+ :value="item.value"
+ )
+ div {{item.label}}
+
+
+
+
+
diff --git a/src/components/NumberRange.vue b/src/components/NumberRange.vue
new file mode 100644
index 0000000..ea733d7
--- /dev/null
+++ b/src/components/NumberRange.vue
@@ -0,0 +1,67 @@
+
+.number-range-wrapper
+ el-input.start(:value="value1[0]" @input="changeVal(0, $event)" placeholder="起始值")
+ .c-line
+ span -
+ el-input.end(:value="value1[1]" @input="changeVal(1, $event)" placeholder="结束值")
+
+
+
+
+
diff --git a/src/components/OssImageUpload/index.vue b/src/components/OssImageUpload/index.vue
new file mode 100644
index 0000000..6ebcabc
--- /dev/null
+++ b/src/components/OssImageUpload/index.vue
@@ -0,0 +1,208 @@
+
+
+
+
+
+
+
+
+ 请上传
+ 大小不超过 {{ fileSize }}MB
+ 格式为 {{ fileType.join("/") }}
+ 的文件
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/components/PanThumb/index.vue b/src/components/PanThumb/index.vue
new file mode 100644
index 0000000..1bcf417
--- /dev/null
+++ b/src/components/PanThumb/index.vue
@@ -0,0 +1,142 @@
+
+
+
+
+
+
+
diff --git a/src/components/RightPanel/index.vue b/src/components/RightPanel/index.vue
new file mode 100644
index 0000000..fbf27eb
--- /dev/null
+++ b/src/components/RightPanel/index.vue
@@ -0,0 +1,149 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/components/RuoYi/Doc/index.vue b/src/components/RuoYi/Doc/index.vue
new file mode 100644
index 0000000..75fa864
--- /dev/null
+++ b/src/components/RuoYi/Doc/index.vue
@@ -0,0 +1,21 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/RuoYi/Git/index.vue b/src/components/RuoYi/Git/index.vue
new file mode 100644
index 0000000..bdafbae
--- /dev/null
+++ b/src/components/RuoYi/Git/index.vue
@@ -0,0 +1,21 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/ThemePicker/index.vue b/src/components/ThemePicker/index.vue
new file mode 100644
index 0000000..1714e1f
--- /dev/null
+++ b/src/components/ThemePicker/index.vue
@@ -0,0 +1,173 @@
+
+
+
+
+
+
+
diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue
index efb1ae3..b3e5a83 100644
--- a/src/layout/components/Navbar.vue
+++ b/src/layout/components/Navbar.vue
@@ -8,7 +8,7 @@
0);
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
-
+const currentLoginTenantId = localStorage.getItem('tenantId');
const userId = ref(userStore.userId);
-const companyName = ref(undefined);
+const companyId = ref(currentLoginTenantId ? currentLoginTenantId : undefined);
const tenantList = ref([]);
// 是否切换了租户
const dynamic = ref(false);
@@ -124,8 +124,10 @@ const openSearchMenu = () => {
// 动态切换
const dynamicTenantEvent = async (tenantId: string) => {
- if (companyName.value != null && companyName.value !== '') {
+ if (companyId.value != null && companyId.value !== '') {
await dynamicTenant(tenantId);
+ // 切换商户号后,本地更新新的商户号
+ localStorage.setItem('tenantId', String(tenantId));
dynamic.value = true;
await proxy?.$router.push('/');
await proxy?.$tab.closeAllPage();
diff --git a/src/views/act/couponActivity/index.vue b/src/views/act/couponActivity/index.vue
index 37cabbd..9b56f9c 100644
--- a/src/views/act/couponActivity/index.vue
+++ b/src/views/act/couponActivity/index.vue
@@ -2,20 +2,13 @@
-
+
-
+
-
+
搜索
@@ -24,106 +17,81 @@
- 新增
-
+ 新增
-
+
-
-
+
+
-
+
满{{ scope.row.minAmount }}元,优惠{{ scope.row.couponAmount }}元
无门槛,优惠{{ scope.row.couponAmount }}元
-
-
-
-
+
+
+
+
-
-
+
+
-
+
-
+
{{ scope.row.beginTime }}
- ~
+ ~
{{ scope.row.endTime }}
-
- 领取记录
-
- 修改
-
+
+ 领取记录
+ 修改
删除
+ >删除
-
-
+
+
-
+
-
+
-
+
-
- 张
+
+ 张
-
- 元
+
+ 元
-
- 元
+
+ 元
@@ -133,24 +101,29 @@
-
+
-
+
-
+
@@ -160,49 +133,45 @@
指定商品不可用
-
+
选择商品
-
+
-
+
{{ row.name }}
-
+
删除
-
+
+
+
-
-
+
+
diff --git a/src/views/login.vue b/src/views/login.vue
index f641549..c6ef39d 100644
--- a/src/views/login.vue
+++ b/src/views/login.vue
@@ -152,6 +152,7 @@ const handleLogin = () => {
// 调用action的登录方法
const [err] = await to(userStore.login(loginForm.value));
if (!err) {
+ localStorage.setItem('tenantId', String(loginForm.value.tenantId));
const redirectUrl = redirect.value || '/';
await router.push(redirectUrl);
loading.value = false;
diff --git a/src/views/oms/aftersale/index.vue b/src/views/oms/aftersale/index.vue
index b3ad5ae..79f2f30 100644
--- a/src/views/oms/aftersale/index.vue
+++ b/src/views/oms/aftersale/index.vue
@@ -3,22 +3,10 @@
-
+
-
+
diff --git a/src/views/oms/order/index.vue b/src/views/oms/order/index.vue
index 8fc2550..0b8f24d 100644
--- a/src/views/oms/order/index.vue
+++ b/src/views/oms/order/index.vue
@@ -4,7 +4,7 @@
-
+
+
diff --git a/src/views/oms/orderOperateHistory/index.vue b/src/views/oms/orderOperateHistory/index.vue
index 153c6d8..f2f71f5 100644
--- a/src/views/oms/orderOperateHistory/index.vue
+++ b/src/views/oms/orderOperateHistory/index.vue
@@ -2,16 +2,10 @@
-
+
-
+
搜索
@@ -20,7 +14,7 @@
-
+
@@ -32,39 +26,29 @@
- {{ parseTime(scope.row.createTime, '')}}
+ {{ parseTime(scope.row.createTime, '') }}
-
-
-
-
-
-
-
-
- 删除
+
+
+
+
+
+
+
+
+ 删除
-
+
-
+
@@ -81,20 +65,29 @@
-
+
+
+