|
@@ -18,12 +18,13 @@
|
|
|
</BasicModal>
|
|
|
</template>
|
|
|
<script lang="ts">
|
|
|
- import { defineComponent, ref, nextTick, onMounted, reactive, h } from 'vue';
|
|
|
+ import { defineComponent, ref, nextTick, onMounted, reactive, computed } from 'vue';
|
|
|
import { BasicModal, useModalInner } from '/@/components/Modal';
|
|
|
import { BasicForm, FormSchema, useForm } from '/@/components/Form/index';
|
|
|
import { useMessage } from '/@/hooks/web/useMessage';
|
|
|
import { addIncrementNum } from '/@/api/dealer'
|
|
|
import { useI18n } from '/@/hooks/web/useI18n';
|
|
|
+ import { useUserStore } from '/@/store/modules/user';
|
|
|
|
|
|
const { t } = useI18n();
|
|
|
export default defineComponent({
|
|
@@ -35,6 +36,8 @@
|
|
|
setup(props, { emit }) {
|
|
|
const modelRef = ref({});
|
|
|
const title = ref('权益设置');
|
|
|
+ const userStore = useUserStore();
|
|
|
+ const isDev = computed(() => userStore.getSystemEnv);
|
|
|
const preventAutoFill = ref(true);
|
|
|
const fileFlow = reactive({
|
|
|
coverImageUrl:''
|
|
@@ -104,7 +107,6 @@
|
|
|
});
|
|
|
async function onDataReceive(data) {
|
|
|
modelRef.value = data
|
|
|
- let isEnv = window.location.origin
|
|
|
resetFields()
|
|
|
setFieldsValue({
|
|
|
id:data.id,
|
|
@@ -116,7 +118,7 @@
|
|
|
},{
|
|
|
field: 'highAddNum',
|
|
|
label: `高级会员(年)剩余可售 ${data.highSubNum || 0} 个 新增`,
|
|
|
- ifShow: isEnv.includes('eur'),
|
|
|
+ ifShow: isDev.value,
|
|
|
},{
|
|
|
field: 'downAddNum',
|
|
|
label: `场景下载剩余可售 ${data.downSubNum || 0} 次 新增`,
|