会员、门店修改,代码优化
This commit is contained in:
@ -69,12 +69,12 @@
|
||||
<el-tag
|
||||
v-if="scope.row.status"
|
||||
type="success"
|
||||
size="mini"
|
||||
size="small"
|
||||
>开启</el-tag>
|
||||
<el-tag
|
||||
v-else
|
||||
type="danger"
|
||||
size="mini"
|
||||
size="small"
|
||||
>关闭</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@ -118,23 +118,35 @@
|
||||
|
||||
<script setup lang="ts" name="ShopAssistant">
|
||||
import { dateFormatter } from '@/utils/formatTime'
|
||||
// import download from '@/utils/download'
|
||||
import { ref, reactive } from 'vue'
|
||||
import * as ShopAssistantApi from '@/api/mall/shopAssistant'
|
||||
import ShopAssistantForm from './ShopAssistantForm.vue'
|
||||
|
||||
interface QueryParams {
|
||||
pageNo: number;
|
||||
pageSize: number;
|
||||
storeId: string | undefined;
|
||||
userId: string | undefined;
|
||||
name: string | undefined;
|
||||
phoneNo: string | undefined;
|
||||
status: string | undefined;
|
||||
createTime: any;
|
||||
}
|
||||
|
||||
const message = useMessage() // 消息弹窗
|
||||
const { t } = useI18n() // 国际化
|
||||
|
||||
const loading = ref(true) // 列表的加载中
|
||||
const total = ref(0) // 列表的总页数
|
||||
const list = ref([]) // 列表的数据
|
||||
const queryParams = reactive({
|
||||
const queryParams:QueryParams = reactive({
|
||||
pageNo: 1,
|
||||
pageSize: 10,
|
||||
storeId: null,
|
||||
userId: null,
|
||||
name: null,
|
||||
phoneNo: null,
|
||||
status: null,
|
||||
storeId: undefined,
|
||||
userId: undefined,
|
||||
name: undefined,
|
||||
phoneNo: undefined,
|
||||
status: undefined,
|
||||
createTime: []
|
||||
})
|
||||
const queryFormRef = ref() // 搜索的表单
|
||||
|
Reference in New Issue
Block a user