上传gif

This commit is contained in:
墨大叔 2024-09-04 10:56:04 +08:00
parent 7fd0c33264
commit 902904a693
3 changed files with 9 additions and 17 deletions

View File

@ -67,7 +67,7 @@ export default {
// , ['png', 'jpg', 'jpeg']
fileType: {
type: Array,
default: () => ["png", "jpg", "jpeg"],
default: () => ["png", "jpg", "jpeg", "gif"],
},
//
isShowTip: {

View File

@ -8,7 +8,10 @@
<el-descriptions-item label="交易状态">
<dict-tag :value="detail.status" :options="dict.type.sm_transaction_bill_status" size="small"/>
</el-descriptions-item>
<el-descriptions-item label="订单金额">{{detail.money | money | defaultValue}} </el-descriptions-item>
<el-descriptions-item label="订单金额">
{{detail.money | money | defaultValue}}
<template v-if="detail.refundAmount > 0">退款 {{detail.refundAmount | money | defaultValue}} </template>
</el-descriptions-item>
<el-descriptions-item label="设备编号">
<device-link :id="detail.deviceId" :text="detail.deviceNo"/>
</el-descriptions-item>

View File

@ -83,9 +83,6 @@
<template v-else-if="['billAmount', 'provideBonus'].includes(column.key)">
{{d.row[column.key] | money | defaultValue}}
</template>
<template v-else-if="column.key === 'status'">
<dict-tag :options="dict.type.sm_user_status" :value="d.row.status"/>
</template>
<template v-else-if="column.key === 'deviceAdmin'">
<el-tag :type="d.row.deviceAdmin ? 'danger' : 'info'">{{d.row.deviceAdmin ? '是' : '否'}}</el-tag>
</template>
@ -119,21 +116,13 @@
</template>
<script>
import {
listSmUser,
getSmUser,
addSmUser,
updateSmUser,
delSmUser, listAgent, listBiz, listInvestor, listStoreUser
} from '@/api/system/smUser'
import { $serviceType, $showColumns, $withdrawServiceType } from '@/utils/mixins'
import UserLink from '@/components/Business/SmUser/UserLink.vue'
import UserInput from '@/components/Business/SmUser/UserInput.vue'
import DeptTreeSelect from '@/components/Business/Dept/DeptTreeSelect.vue'
import { FieldName, SmUserType, UserType } from '@/utils/constants'
import { FieldName, SmUserType } from '@/utils/constants'
import { mapGetters } from 'vuex'
import { agentListAgent, agentListBiz, agentListInvestor } from '@/api/agent/user'
import SmUser from '@/views/system/smUser/index.vue'
import { bizListBiz, bizListInvestor } from '@/api/biz/user'
const defaultSort = {
@ -144,7 +133,7 @@ const defaultSort = {
export default {
name: "MchUser",
mixins: [$showColumns, $serviceType, $withdrawServiceType],
dicts: ['sm_user_status', 'user_type', 'sys_user_sex', 'service_type', 'withdraw_service_type'],
dicts: ['user_type', 'sys_user_sex', 'service_type', 'withdraw_service_type'],
components: { DeptTreeSelect, UserInput, UserLink },
props: {
query: {
@ -199,8 +188,8 @@ export default {
{key: 'type', visible: true, label: '角色', align: 'center', minWidth: null, sortable: true, width: null},
{key: 'point', visible: true, label: '分成', align: 'center', minWidth: null, sortable: true, width: null},
{key: 'referenceId', visible: true, label: '推广人', align: 'center', minWidth: null, sortable: true, width: null},
{key: 'status', visible: true, label: '状态', align: 'center', minWidth: null, sortable: true, width: null},
{key: 'createTime', visible: true, label: '注册时间', align: 'center', minWidth: null, sortable: true, width: "100"},
// {key: 'status', visible: true, label: '', align: 'center', minWidth: null, sortable: true, width: null},
// {key: 'createTime', visible: true, label: '', align: 'center', minWidth: null, sortable: true, width: "100"},
{key: 'agentCount', visible: true, label: `${FieldName.AGENT}`, align: 'center', minWidth: null, sortable: false, width: null},
{key: 'bizManCount', visible: true, label: `${FieldName.BIZ}`, align: 'center', minWidth: null, sortable: false, width: null},
{key: 'investorCount', visible: true, label: `${FieldName.INVESTOR}`, align: 'center', minWidth: null, sortable: false, width: null},