修改bug

This commit is contained in:
yangjun 2023-12-21 21:47:19 +08:00
parent ad13799eea
commit 43a92fb84c
4 changed files with 22 additions and 14 deletions

View File

@ -15,7 +15,7 @@
<a-button type="primary" preIcon="ant-design:search-outlined" @click="searchQuery">查询</a-button>
<!-- <a-button type="primary" preIcon="ant-design:export-outlined" @click="onExport" style="margin-left: 8px">PDF导出</a-button> -->
<a-button type="primary" preIcon="ant-design:export-outlined" @click="onExportXls" style="margin-left: 8px">Excel导出</a-button>
<a-button type="primary" preIcon="ant-design:export-outlined" @click="pdfzwys" style="margin-left: 8px">PDF职位映射</a-button>
<a-button type="primary" preIcon="ant-design:export-outlined" @click="pdfzwys" style="margin-left: 8px" v-show="isAdmin=='1'">PDF职位映射</a-button>
</a-col>
</span>
</a-col>
@ -131,6 +131,7 @@
const KcZwtksfInfoList = ref();
const StaticConXyglyChart = ref();
const StaticConGlyChart = ref();
const isAdmin = ref<any>("");
const queryParam = ref<any>({});
@ -142,6 +143,8 @@
const tjlist = (queryParam) => defHttp.get({ url: '/config/kcExportConfigTpkwcqkjzglx/getTjlist', params:queryParam });
//
onMounted(() => {
isAdmin.value = roleList.value.filter(x => x.roleCode == 'admin' ).length;
console.log(`🚀 ~ file: KcExportConfigTpkwcqkjzglxListNew.vue:147 ~ onMounted ~ isAdmin:`, isAdmin)
queryParam.value.xqxn = getSysConfig().flag1
searchQuery()
});

View File

@ -20,15 +20,15 @@ export const columns: BasicColumn[] = [
dataIndex: 'xqxn'
},
{
title: '应听课次数',
title: '发送内容',
align: "center",
dataIndex: 'ytkcs'
},
{
title: '实际听课次数',
align: "center",
dataIndex: 'sjtkcs'
},
// {
// title: '实际听课次数',
// align: "center",
// dataIndex: 'sjtkcs'
// },
{
title: '发送结果',
align: "center",

View File

@ -7,21 +7,26 @@
<a-input v-model:value="formData.teacherName" placeholder="请输入教师姓名" :disabled="disabled" @change="handleTeacherNameChange"></a-input>
</a-form-item>
</a-col>
<a-col :span="24">
<a-form-item label="微信openid" v-bind="validateInfos.openid">
<a-input v-model:value="formData.openid" placeholder="请输入微信openid" :disabled="disabled"></a-input>
</a-form-item>
</a-col>
<a-col :span="24">
<a-form-item label="学期学年" v-bind="validateInfos.xqxn">
<j-dict-select-tag ref="xqDictTag" placeholder="请选择学年学期" v-model:value="formData.xqxn" :disabled="disabled" dictCode="kc_xqxn_history,title,title,true order by start_time desc"/>
</a-form-item>
</a-col>
<a-col :span="24">
<a-form-item label="应听课次数" v-bind="validateInfos.ytkcs">
<a-input v-model:value="formData.ytkcs" placeholder="请输入应听课次数" :disabled="disabled"></a-input>
<a-form-item label="推送内容" v-bind="validateInfos.ytkcs">
<a-input v-model:value="formData.ytkcs" placeholder="请输入推送内容最大20个字" :disabled="disabled"></a-input>
</a-form-item>
</a-col>
<a-col :span="24">
<!-- <a-col :span="24">
<a-form-item label="实际听课次数" v-bind="validateInfos.sjtkcs">
<a-input v-model:value="formData.sjtkcs" placeholder="请输入实际听课次数" :disabled="disabled"></a-input>
</a-form-item>
</a-col>
</a-col> -->
<a-col :span="24" v-show="formData.remark">
<a-form-item label="备注" v-bind="validateInfos.remark">
<a-textarea v-model:value="formData.remark" placeholder="请输入实际听课次数" :disabled="disabled" style="height: 80px;"></a-textarea>
@ -54,7 +59,7 @@
teacherName: '',
xqxn: '',
ytkcs: '',
sjtkcs: '',
// sjtkcs: '',
openid: '',
remark: '',
});
@ -67,7 +72,7 @@
teacherName: [{ required: true, message: '请输入教师姓名!'},],
xqxn: [{ required: true, message: '请选择学期学年!'},],
ytkcs: [{ required: true, message: '请输入应听课次数!'},],
sjtkcs: [{ required: true, message: '请输入实际听课次数!'},],
// sjtkcs: [{ required: true, message: '!'},],
};
const { resetFields, validate, validateInfos } = useForm(formData, validatorRules, { immediate: true });

View File

@ -6,7 +6,7 @@
<a-col :span="6">
<a-form-item label="">
<!-- <JDictSelectTag placeholder="听课身份" v-model:value="queryParam.tksf" dictCode="kc_tksf"/> -->
<j-dict-select-tag placeholder="听课身份" v-model:value="queryParam.tksf" style="width: 100%;" dictCode="kc_tksfrzb,ZWMC,ZWMC,true group by ZWMC" />
<j-dict-select-tag placeholder="听课身份" v-model:value="queryParam.tksf" style="width: 100%;" dictCode="tpkwcqkjzglx" />
</a-form-item>
</a-col>
<a-col :span="6">