添加功能

This commit is contained in:
yangjun 2023-04-09 09:46:23 +08:00
parent 0617377879
commit d5927f5786
6 changed files with 893 additions and 13 deletions

View File

@ -0,0 +1,72 @@
import { defHttp } from '/@/utils/http/axios';
import { useMessage } from "/@/hooks/web/useMessage";
const { createConfirm } = useMessage();
enum Api {
list = '/kcGongkaike/kcGongkaike/list',
save='/kcGongkaike/kcGongkaike/add',
edit='/kcGongkaike/kcGongkaike/edit',
deleteOne = '/kcGongkaike/kcGongkaike/delete',
deleteBatch = '/kcGongkaike/kcGongkaike/deleteBatch',
importExcel = '/kcGongkaike/kcGongkaike/importExcel',
exportXls = '/kcGongkaike/kcGongkaike/exportXls',
}
/**
* api
* @param params
*/
export const getExportUrl = Api.exportXls;
/**
* api
*/
export const getImportUrl = Api.importExcel;
/**
*
* @param params
*/
export const list = (params) => defHttp.get({ url: Api.list, params });
/**
*
* @param params
* @param handleSuccess
*/
export const deleteOne = (params,handleSuccess) => {
return defHttp.delete({url: Api.deleteOne, params}, {joinParamsToUrl: true}).then(() => {
handleSuccess();
});
}
/**
*
* @param params
* @param handleSuccess
*/
export const batchDelete = (params, handleSuccess) => {
createConfirm({
iconType: 'warning',
title: '确认删除',
content: '是否删除选中数据',
okText: '确认',
cancelText: '取消',
onOk: () => {
return defHttp.delete({url: Api.deleteBatch, data: params}, {joinParamsToUrl: true}).then(() => {
handleSuccess();
});
}
});
}
/**
*
* @param params
* @param isUpdate
*/
export const saveOrUpdate = (params, isUpdate) => {
let url = isUpdate ? Api.edit : Api.save;
return defHttp.post({ url: url, params }, { isTransformResponse: false });
}

View File

@ -0,0 +1,238 @@
import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
{
title: '学院',
align: "center",
dataIndex: 'xy'
},
{
title: '候选人',
align: "center",
dataIndex: 'hxr'
},
{
title: '职称',
align: "center",
dataIndex: 'zc'
},
{
title: '日期',
align: "center",
dataIndex: 'rq'
},
{
title: '开始时间',
align: "center",
dataIndex: 'kssj'
},
{
title: '结束时间',
align: "center",
dataIndex: 'jssj'
},
{
title: '课程名称',
align: "center",
dataIndex: 'kcmc'
},
{
title: '课堂主题',
align: "center",
dataIndex: 'ktzt'
},
{
title: '课程链接',
align: "center",
dataIndex: 'kclj'
},
{
title: '图片名称',
align: "center",
dataIndex: 'tpmc'
},
{
title: '教师介绍链接',
align: "center",
dataIndex: 'jslj'
},
{
title: '当前状态',
align: "center",
dataIndex: 'dqzt'
},
{
title: '当前状态排序 1 正在上课 2公开课预告 3 已下课',
align: "center",
dataIndex: 'dqztpx_dictText'
},
{
title: '是否显示 1 显示 0 不显示',
align: "center",
dataIndex: 'sfxs_dictText'
},
{
title: '类别',
align: "center",
dataIndex: 'hxrlb'
},
];
//查询数据
export const searchFormSchema: FormSchema[] = [
];
//表单数据
export const formSchema: FormSchema[] = [
{
label: '学院',
field: 'xy',
component: 'Input',
dynamicRules: ({model,schema}) => {
return [
{ required: true, message: '请输入学院!'},
];
},
},
{
label: '候选人',
field: 'hxr',
component: 'Input',
dynamicRules: ({model,schema}) => {
return [
{ required: true, message: '请输入候选人!'},
];
},
},
{
label: '职称',
field: 'zc',
component: 'Input',
dynamicRules: ({model,schema}) => {
return [
{ required: true, message: '请输入职称!'},
];
},
},
{
label: '日期',
field: 'rq',
component: 'Input',
dynamicRules: ({model,schema}) => {
return [
{ required: true, message: '请输入日期!'},
];
},
},
{
label: '开始时间',
field: 'kssj',
component: 'Input',
dynamicRules: ({model,schema}) => {
return [
{ required: true, message: '请输入开始时间!'},
];
},
},
{
label: '结束时间',
field: 'jssj',
component: 'Input',
dynamicRules: ({model,schema}) => {
return [
{ required: true, message: '请输入结束时间!'},
];
},
},
{
label: '课程名称',
field: 'kcmc',
component: 'Input',
dynamicRules: ({model,schema}) => {
return [
{ required: true, message: '请输入课程名称!'},
];
},
},
{
label: '课堂主题',
field: 'ktzt',
component: 'Input',
dynamicRules: ({model,schema}) => {
return [
{ required: true, message: '请输入课堂主题!'},
];
},
},
{
label: '课程链接',
field: 'kclj',
component: 'Input',
dynamicRules: ({model,schema}) => {
return [
{ required: true, message: '请输入课程链接!'},
];
},
},
{
label: '图片名称',
field: 'tpmc',
component: 'Input',
},
{
label: '教师介绍链接',
field: 'jslj',
component: 'Input',
},
{
label: '当前状态',
field: 'dqzt',
component: 'Input',
dynamicRules: ({model,schema}) => {
return [
{ required: true, message: '请输入当前状态!'},
];
},
},
{
label: '当前状态排序 1 正在上课 2公开课预告 3 已下课',
field: 'dqztpx',
component: 'JDictSelectTag',
componentProps:{
dictCode: "dqztpx"
},
dynamicRules: ({model,schema}) => {
return [
{ required: true, message: '请输入当前状态排序 1 正在上课 2公开课预告 3 已下课!'},
];
},
},
{
label: '是否显示 1 显示 0 不显示',
field: 'sfxs',
component: 'JDictSelectTag',
componentProps:{
dictCode: "sfxs"
},
dynamicRules: ({model,schema}) => {
return [
{ required: true, message: '请输入是否显示 1 显示 0 不显示!'},
];
},
},
{
label: '类别',
field: 'hxrlb',
component: 'Input',
},
// TODO 主键隐藏字段目前写死为ID
{
label: '',
field: 'id',
component: 'Input',
show: false,
},
];

View File

@ -0,0 +1,215 @@
<template>
<div>
<!--查询区域-->
<div class="jeecg-basic-table-form-container">
<a-form @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol">
<a-row :gutter="24">
</a-row>
</a-form>
</div>
<!--引用表格-->
<BasicTable @register="registerTable" :rowSelection="rowSelection">
<!--插槽:table标题-->
<template #tableTitle>
<a-button type="primary" @click="handleAdd" preIcon="ant-design:plus-outlined"> 新增</a-button>
<a-button type="primary" preIcon="ant-design:export-outlined" @click="onExportXls"> 导出</a-button>
<j-upload-button type="primary" preIcon="ant-design:import-outlined" @click="onImportXls">导入</j-upload-button>
<a-dropdown v-if="selectedRowKeys.length > 0">
<template #overlay>
<a-menu>
<a-menu-item key="1" @click="batchHandleDelete">
<Icon icon="ant-design:delete-outlined"></Icon>
删除
</a-menu-item>
</a-menu>
</template>
<a-button>批量操作
<Icon icon="mdi:chevron-down"></Icon>
</a-button>
</a-dropdown>
</template>
<!--操作栏-->
<template #action="{ record }">
<TableAction :actions="getTableAction(record)" :dropDownActions="getDropDownAction(record)"/>
</template>
<!--字段回显插槽-->
<template #htmlSlot="{text}">
<div v-html="text"></div>
</template>
<!--省市区字段回显插槽-->
<!--<template #pcaSlot="{text}">
{{ getAreaTextByCode(text) }}
</template>-->
<template #fileSlot="{text}">
<span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span>
<a-button v-else :ghost="true" type="primary" preIcon="ant-design:download-outlined" size="small" @click="downloadFile(text)">下载</a-button>
</template>
</BasicTable>
<!-- 表单区域 -->
<KcGongkaikeModal ref="registerModal" @success="handleSuccess"></KcGongkaikeModal>
</div>
</template>
<script lang="ts" name="kcGongkaike-kcGongkaike" setup>
import { ref, reactive } from 'vue';
import { BasicTable, useTable, TableAction } from '/@/components/Table';
import { useListPage } from '/@/hooks/system/useListPage';
import { columns } from './KcGongkaike.data';
import { list, deleteOne, batchDelete, getImportUrl, getExportUrl } from './KcGongkaike.api';
import { downloadFile } from '/@/utils/common/renderUtils';
import KcGongkaikeModal from './components/KcGongkaikeModal.vue'
const queryParam = ref<any>({});
const toggleSearchStatus = ref<boolean>(false);
const registerModal = ref();
//table
const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
tableProps: {
title: 'kc_gongkaike',
api: list,
columns,
canResize:false,
useSearchForm: false,
actionColumn: {
width: 120,
fixed: 'right',
},
beforeFetch: (params) => {
params.column = '',params.order = '';//
return Object.assign(params, queryParam.value);
},
},
exportConfig: {
name: "kc_gongkaike",
url: getExportUrl,
},
importConfig: {
url: getImportUrl,
success: handleSuccess
},
});
const [registerTable, { reload, collapseAll, updateTableDataRecord, findTableDataRecord, getDataSource }, { rowSelection, selectedRowKeys }] = tableContext;
const labelCol = reactive({
xs: { span: 24 },
sm: { span: 7 },
});
const wrapperCol = reactive({
xs: { span: 24 },
sm: { span: 16 },
});
/**
* 新增事件
*/
function handleAdd() {
registerModal.value.disableSubmit = false;
registerModal.value.add();
}
/**
* 编辑事件
*/
function handleEdit(record: Recordable) {
registerModal.value.disableSubmit = false;
registerModal.value.edit(record);
}
/**
* 详情
*/
function handleDetail(record: Recordable) {
registerModal.value.disableSubmit = true;
registerModal.value.edit(record);
}
/**
* 删除事件
*/
async function handleDelete(record) {
await deleteOne({ id: record.id }, handleSuccess);
}
/**
* 批量删除事件
*/
async function batchHandleDelete() {
await batchDelete({ ids: selectedRowKeys.value }, handleSuccess);
}
/**
* 成功回调
*/
function handleSuccess() {
(selectedRowKeys.value = []) && reload();
}
/**
* 操作栏
*/
function getTableAction(record) {
return [
{
label: '编辑',
onClick: handleEdit.bind(null, record),
},
];
}
/**
* 下拉操作栏
*/
function getDropDownAction(record) {
return [
{
label: '详情',
onClick: handleDetail.bind(null, record),
}, {
label: '删除',
popConfirm: {
title: '是否确认删除',
confirm: handleDelete.bind(null, record),
}
}
]
}
/**
* 查询
*/
function searchQuery() {
reload();
}
/**
* 重置
*/
function searchReset() {
queryParam.value = {};
selectedRowKeys.value = [];
//
reload();
}
</script>
<style lang="less" scoped>
.jeecg-basic-table-form-container {
.table-page-search-submitButtons {
display: block;
margin-bottom: 24px;
white-space: nowrap;
}
.query-group-cust{
width: calc(50% - 15px);
min-width: 100px !important;
}
.query-group-split-cust{
width: 30px;
display: inline-block;
text-align: center
}
}
</style>

View File

@ -0,0 +1,225 @@
<template>
<a-spin :spinning="confirmLoading">
<a-form ref="formRef" class="antd-modal-form" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-row>
<a-col :span="12">
<a-form-item label="学院" v-bind="validateInfos.xy">
<a-input v-model:value="formData.xy" placeholder="请输入学院" :disabled="disabled"></a-input>
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item label="候选人" v-bind="validateInfos.hxr">
<a-input v-model:value="formData.hxr" placeholder="请输入候选人" :disabled="disabled"></a-input>
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item label="职称" v-bind="validateInfos.zc">
<a-input v-model:value="formData.zc" placeholder="请输入职称" :disabled="disabled"></a-input>
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item label="日期" v-bind="validateInfos.rq">
<a-input v-model:value="formData.rq" placeholder="请输入日期" :disabled="disabled"></a-input>
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item label="开始时间" v-bind="validateInfos.kssj">
<a-input v-model:value="formData.kssj" placeholder="请输入开始时间" :disabled="disabled"></a-input>
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item label="结束时间" v-bind="validateInfos.jssj">
<a-input v-model:value="formData.jssj" placeholder="请输入结束时间" :disabled="disabled"></a-input>
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item label="课程名称" v-bind="validateInfos.kcmc">
<a-input v-model:value="formData.kcmc" placeholder="请输入课程名称" :disabled="disabled"></a-input>
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item label="课堂主题" v-bind="validateInfos.ktzt">
<a-input v-model:value="formData.ktzt" placeholder="请输入课堂主题" :disabled="disabled"></a-input>
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item label="课程链接">
<a-input v-model:value="formData.kclj" placeholder="请输入课程链接" :disabled="disabled"></a-input>
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item label="图片名称" v-bind="validateInfos.tpmc">
<j-image-upload v-model:value="formData.tpmc" :disabled="disabled"></j-image-upload>
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item label="教师介绍链接" v-bind="validateInfos.jslj">
<a-input v-model:value="formData.jslj" placeholder="请输入教师介绍链接" :disabled="disabled"></a-input>
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item label="当前状态" v-bind="validateInfos.dqzt">
<a-input v-model:value="formData.dqzt" placeholder="请输入当前状态" :disabled="disabled"></a-input>
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item label="当前状态排序" v-bind="validateInfos.dqztpx">
<j-dict-select-tag type='radio' v-model:value="formData.dqztpx" dictCode="dqztpx" placeholder="请选择当前状态排序" :disabled="disabled"/>
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item label="是否显示" v-bind="validateInfos.sfxs">
<j-dict-select-tag type='radio' v-model:value="formData.sfxs" dictCode="sfxs" placeholder="请选择是否显示" :disabled="disabled"/>
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item label="类别" v-bind="validateInfos.hxrlb">
<a-input v-model:value="formData.hxrlb" placeholder="请输入类别" :disabled="disabled"></a-input>
</a-form-item>
</a-col>
</a-row>
</a-form>
</a-spin>
</template>
<script lang="ts" setup>
import { ref, reactive, defineExpose, nextTick, defineProps, computed, onMounted } from 'vue';
import { defHttp } from '/@/utils/http/axios';
import { useMessage } from '/@/hooks/web/useMessage';
import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
import { getValueType } from '/@/utils';
import { saveOrUpdate } from '../KcGongkaike.api';
import { Form } from 'ant-design-vue';
import JImageUpload from '/@/components/Form/src/jeecg/components/JImageUpload.vue';
const props = defineProps({
formDisabled: { type: Boolean, default: false },
formData: { type: Object, default: ()=>{} },
formBpm: { type: Boolean, default: true }
});
const formRef = ref();
const useForm = Form.useForm;
const emit = defineEmits(['register', 'ok']);
const formData = reactive<Record<string, any>>({
id: '',
xy: '',
hxr: '',
zc: '',
rq: '',
kssj: '',
jssj: '',
kcmc: '',
ktzt: '',
kclj: '',
tpmc: '',
jslj: '',
dqzt: '',
dqztpx: '',
sfxs: '',
hxrlb: '',
});
const { createMessage } = useMessage();
const labelCol = ref<any>({ xs: { span: 24 }, sm: { span: 5 } });
const wrapperCol = ref<any>({ xs: { span: 24 }, sm: { span: 16 } });
const confirmLoading = ref<boolean>(false);
//
const validatorRules = {
xy: [{ required: true, message: '请输入学院!'},],
hxr: [{ required: true, message: '请输入候选人!'},],
zc: [{ required: true, message: '请输入职称!'},],
rq: [{ required: true, message: '请输入日期!'},],
kssj: [{ required: true, message: '请输入开始时间!'},],
jssj: [{ required: true, message: '请输入结束时间!'},],
kcmc: [{ required: true, message: '请输入课程名称!'},],
ktzt: [{ required: true, message: '请输入课堂主题!'},],
kclj: [{ required: true, message: '请输入课程链接!'},],
dqzt: [{ required: true, message: '请输入当前状态!'},],
dqztpx: [{ required: true, message: '请输入当前状态排序 1 正在上课 2公开课预告 3 已下课!'},],
sfxs: [{ required: true, message: '请输入是否显示 1 显示 0 不显示!'},],
};
const { resetFields, validate, validateInfos } = useForm(formData, validatorRules, { immediate: true });
//
const disabled = computed(()=>{
if(props.formBpm === true){
if(props.formData.disabled === false){
return false;
}else{
return true;
}
}
return props.formDisabled;
});
/**
* 新增
*/
function add() {
edit({});
}
/**
* 编辑
*/
function edit(record) {
nextTick(() => {
resetFields();
//
Object.assign(formData, record);
});
}
/**
* 提交数据
*/
async function submitForm() {
//
await validate();
confirmLoading.value = true;
const isUpdate = ref<boolean>(false);
//
let model = formData;
if (model.id) {
isUpdate.value = true;
}
//
for (let data in model) {
//
if (model[data] instanceof Array) {
let valueType = getValueType(formRef.value.getProps, data);
//
if (valueType === 'string') {
model[data] = model[data].join(',');
}
}
}
await saveOrUpdate(model, isUpdate.value)
.then((res) => {
if (res.success) {
createMessage.success(res.message);
emit('ok');
} else {
createMessage.warning(res.message);
}
})
.finally(() => {
confirmLoading.value = false;
});
}
defineExpose({
add,
edit,
submitForm,
});
</script>
<style lang="less" scoped>
.antd-modal-form {
min-height: 500px !important;
overflow-y: auto;
padding: 24px 24px 24px 24px;
}
</style>

View File

@ -0,0 +1,75 @@
<template>
<a-modal :title="title" :width="width" :visible="visible" @ok="handleOk" :okButtonProps="{ class: { 'jee-hidden': disableSubmit } }" @cancel="handleCancel" cancelText="关闭">
<KcGongkaikeForm ref="registerForm" @ok="submitCallback" :formDisabled="disableSubmit" :formBpm="false"></KcGongkaikeForm>
</a-modal>
</template>
<script lang="ts" setup>
import { ref, nextTick, defineExpose } from 'vue';
import KcGongkaikeForm from './KcGongkaikeForm.vue'
const title = ref<string>('');
const width = ref<string>('80%');
const visible = ref<boolean>(false);
const disableSubmit = ref<boolean>(false);
const registerForm = ref();
const emit = defineEmits(['register', 'success']);
/**
* 新增
*/
function add() {
title.value = '新增';
visible.value = true;
nextTick(() => {
registerForm.value.add();
});
}
/**
* 编辑
* @param record
*/
function edit(record) {
title.value = disableSubmit.value ? '详情' : '编辑';
visible.value = true;
nextTick(() => {
registerForm.value.edit(record);
});
}
/**
* 确定按钮点击事件
*/
function handleOk() {
registerForm.value.submitForm();
}
/**
* form保存回调事件
*/
function submitCallback() {
handleCancel();
emit('success');
}
/**
* 取消按钮回调事件
*/
function handleCancel() {
visible.value = false;
}
defineExpose({
add,
edit,
disableSubmit,
});
</script>
<style>
/**隐藏样式-modal确定按钮 */
.jee-hidden {
display: none !important;
}
</style>

View File

@ -1,25 +1,30 @@
<template>
<a-card class="rowGutter">
<template #title>
<span style="font-size: 24px;font-weight: bold;">精彩公开课</span>
<div style="font-size: 24px;font-weight: bold;">精彩公开课</div>
<div style="font-weight: 400; line-height: 1; color: #777;">荟萃多学科优秀教师展现多样化精彩教学</div>
</template>
<a-row :gutter="[16,16]">
<a-col v-for="(item,index) in 4" :key="index" :xs="{ span: 24 }" :sm="{ span: 8 }" :lg="{ span: 6 }">
<div style="border-radius: 25px;background: #cccccc8c;width: 70%;margin-bottom: 0.5rem;text-align: center;margin: 0 auto .5rem;padding: 0.5rem;">
时间{{ item }}
<a-col v-for="(item,index) in listData" :key="index" :xs="{ span: 24 }" :sm="{ span: 8 }" :lg="{ span: 6 }">
<!-- <div style="border-radius: 25px;background: #f3f3f3;margin-bottom: 0.5rem;text-align: center;margin: 0 auto .5rem;padding: 0.5rem;"> -->
<div class="ggkTimeClass">
{{funSj(item.rq)}} {{item.kssj}}-{{item.jssj}}
</div>
<div>
<a :href="item.jslj?item.jslj:''" target="_blank">
<div>
<span style="position: absolute;top: 4rem;border-radius: 0 10px 10px 0;background: #1c84c6;color: #FFF;padding: 3px 10px 3px 5px;">公开课预告</span>
<img style="border-radius: 10px 10px 0 0;" src="/resource/img/kc/moren.jpg"/>
<span style="position: absolute;top: 4rem;border-radius: 0 10px 10px 0;background: #1c84c6;color: #FFF;padding: 3px 10px 3px 5px;z-index: 9999;">公开课预告</span>
<img style="border-radius: 10px 10px 0 0;margin-bottom: 8px;" v-if="!item.tpmc" src="/resource/img/kc/moren.jpg" height="170px"/>
<AImage style="border-radius: 10px 10px 0 0;" v-else :src="getFileAccessHttpUrl(item.tpmc)" :width="'100%'" height="170px"/>
</div>
<div style="padding: 0 1rem 1rem;background: #f3f3f3;">
<div>名称</div>
<div>名称2</div>
<div>课的名称</div>
<div>N人听课</div>
<div><a-button type="primary" style="width: 100%;" :disabled="index%2==0">进入课堂</a-button></div>
<div style="padding: 10px 1rem 1rem;background: #f3f3f3;">
<div class="ggkTitle ggkCcxs" :title="item.hxr +`·`+item.hxrlb">{{item.hxr}} · {{item.hxrlb}}</div>
<div class="ggkTwoTitle ggkCcxs" :title="item.zc +`·`+item.xy">{{item.zc}} {{item.xy}}</div>
<div class="ggkThreeTitle ggkCcxs">{{item.kcmc}}</div>
<div class="ggkFourTitle">0人听课</div>
<div><a-button type="primary" class="ggkButton" target="_blank" :href="item.kclj" :disabled="index%2==0">进入课堂</a-button></div>
</div>
</a>
</div>
</a-col>
</a-row>
@ -27,7 +32,57 @@
</template>
<script setup lang="ts">
import { ref ,onMounted} from 'vue';
import { defHttp } from '/@/utils/http/axios';
import { dateFormat } from '/@/utils/common/compUtils';
import { Image as AImage } from 'ant-design-vue';
import { getFileAccessHttpUrl } from '/@/utils/common/compUtils';
let listData = ref<any>([]);
const list = (params) => defHttp.get({ url: '/kcGongkaike/kcGongkaike/list', params });
const queryParam = ref<any>({});
//
onMounted(() => {
queryParam.value.sfxs = '1'
queryParam.value.pageSize = '4'
queryParam.value.rq = "gt "+dateFormat(new Date(), 'yyyy-MM-dd')
queryParam.value.column = 'rq'
queryParam.value.order = 'asc'
list(queryParam.value).then(res=>{
listData.value = res.records
console.log(`🚀 ~ file: index.vue:42 ~ list ~ listData:`, listData)
})
});
function funSj(rq){
var sj = dateFormat(new Date(rq), 'MM月dd日')
return sj;
}
</script>
<style lang="less" scoped>
.ggkTimeClass{
display: inline-block;width: 90%;margin-bottom: 10px;margin-left:12px;padding: 0 15px;height: 40px;font-size: 16px;font-weight: 500;line-height: 39px;border-radius: 36px;background-color: #f3f3f3;text-align: center;
}
.ggkTitle{
line-height: 2rem; font-size: 18px; font-weight: 600;color: black;
}
.ggkTwoTitle{
color: black; font-size: 14px; line-height: 25px;
}
.ggkThreeTitle{
font-size: 16px;
color: #337ab7;
font-weight: 700;
line-height: 50px;
}
.ggkFourTitle{
line-height: 40px;
color: black;
}
.ggkButton{
width: 100%;height:40px;background: #1c84c6;color:#FFF;font-weight: 600;font-size: 18px;border-radius: 5px;
line-height: 37px;
}
.ggkCcxs{
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
</style>