添加问卷微信推送功能
This commit is contained in:
parent
ce86a4d849
commit
c0ec42e79e
|
@ -172,16 +172,16 @@
|
||||||
>填空</a-button
|
>填空</a-button
|
||||||
></p
|
></p
|
||||||
>
|
>
|
||||||
<p
|
<!-- <p
|
||||||
><a-button type="primary" preIcon="ant-design:check-square-outlined" @click="addTigan(8)" :disabled="editDisabled"
|
><a-button type="primary" preIcon="ant-design:check-square-outlined" @click="addTigan(8)" :disabled="editDisabled"
|
||||||
>文件</a-button
|
>文件</a-button
|
||||||
></p
|
></p
|
||||||
>
|
> -->
|
||||||
</a-card>
|
</a-card>
|
||||||
<a-card title="引用题库">
|
<a-card title="引用题库">
|
||||||
<p><a-button type="primary" @click="handleYylx('0')" :disabled="editDisabled">我的题库</a-button></p>
|
<p><a-button type="primary" @click="handleYylx('0')" :disabled="editDisabled">我的题库</a-button></p>
|
||||||
<p><a-button type="primary" @click="handleYylx('1')" :disabled="editDisabled">公有题库</a-button></p>
|
<p><a-button type="primary" @click="handleYylx('1')" :disabled="editDisabled">公有题库</a-button></p>
|
||||||
<!-- <p><a-button type="primary" @click="importOpen = true">导入试题</a-button></p> -->
|
<p><a-button type="primary" @click="importOpen = true">导入试题</a-button></p>
|
||||||
</a-card>
|
</a-card>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="20" style="overflow-y: scroll; min-height: 100px">
|
<a-col :span="20" style="overflow-y: scroll; min-height: 100px">
|
||||||
|
@ -648,8 +648,8 @@
|
||||||
<a-button type="primary" @click="handleSzzycs(1)"><Icon icon="ant-design:edit-outlined" />修改课程测验次数</a-button>
|
<a-button type="primary" @click="handleSzzycs(1)"><Icon icon="ant-design:edit-outlined" />修改课程测验次数</a-button>
|
||||||
<a-divider type="vertical" />
|
<a-divider type="vertical" />
|
||||||
<a-button type="primary" @click="handleAddOne"><Icon icon="ant-design:file-add-outlined" />新增测验</a-button>
|
<a-button type="primary" @click="handleAddOne"><Icon icon="ant-design:file-add-outlined" />新增测验</a-button>
|
||||||
<!-- <a-divider type="vertical" />
|
<a-divider type="vertical" />
|
||||||
<a-button type="primary" @click="handleTiku('6')" style="margin-left: 8px; margin-right: 18px">题库</a-button> -->
|
<a-button type="primary" @click="handleTiku('6')" style="margin-left: 8px; margin-right: 18px">题库</a-button>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
<a-row style="padding: 10px">
|
<a-row style="padding: 10px">
|
||||||
|
@ -811,9 +811,9 @@
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="4">
|
<a-col :span="4">
|
||||||
<div style="text-align: right">
|
<div style="text-align: right">
|
||||||
<!-- <a @click="handleEdit(item, true)" v-if="item.ytjnum > 0">编辑测验</a>
|
<a @click="handleWxtx(item)">微信提醒</a>
|
||||||
<a-divider type="vertical" /> -->
|
<!-- <a-divider type="vertical" /> -->
|
||||||
<a @click="handleDelete(item)" v-if="item.ytjnum == '0'">删除</a>
|
<!-- <a @click="handleDelete(item)" v-if="item.ytjnum == '0'">删除</a> -->
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
|
@ -1202,6 +1202,15 @@ async function importXls(data, url) {
|
||||||
await defHttp.uploadFile({ url }, { file: data.file }, { success: isReturn });
|
await defHttp.uploadFile({ url }, { file: data.file }, { success: isReturn });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function handleWxtx(record) {
|
||||||
|
|
||||||
|
defHttp.get({ url: '/wjxWjxx/wjxWjxx/sendWxtx', params: { id: record.id, wjlx: wjLeixing.value } }).then((res) => {
|
||||||
|
console.log('👣', res);
|
||||||
|
});
|
||||||
|
createMessage.success('发送成功');
|
||||||
|
}
|
||||||
|
|
||||||
//答题结果
|
//答题结果
|
||||||
function handleTeaDtjg(item) {
|
function handleTeaDtjg(item) {
|
||||||
console.log('🧳', item);
|
console.log('🧳', item);
|
||||||
|
|
|
@ -527,6 +527,8 @@
|
||||||
<div class="ellip-word"><span class="ellip-word2">作业截止时间:</span>{{ dayjs(item.endTime).format('YYYY.MM.DD HH:mm') }}</div>
|
<div class="ellip-word"><span class="ellip-word2">作业截止时间:</span>{{ dayjs(item.endTime).format('YYYY.MM.DD HH:mm') }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="text-align: right; margin-top: 20px; margin-bottom: -10px; width: 100%">
|
<div style="text-align: right; margin-top: 20px; margin-bottom: -10px; width: 100%">
|
||||||
|
<!-- <a @click="handleWxtx(item)" class="home-status"><Icon icon="ant-design:wechat-outlined" />微信提醒</a>
|
||||||
|
<a-divider type="vertical" /> -->
|
||||||
<a @click="handleEdit(item, true)" v-if="item.ytjnum > 0" class="home-status"><Icon icon="ant-design:form-outlined" />编辑作业</a>
|
<a @click="handleEdit(item, true)" v-if="item.ytjnum > 0" class="home-status"><Icon icon="ant-design:form-outlined" />编辑作业</a>
|
||||||
<a @click="handleChehui(item)" v-if="item.ytjnum == 0" class="home-status"><Icon icon="ant-design:import-outlined" />撤回作业</a>
|
<a @click="handleChehui(item)" v-if="item.ytjnum == 0" class="home-status"><Icon icon="ant-design:import-outlined" />撤回作业</a>
|
||||||
<a-divider type="vertical" />
|
<a-divider type="vertical" />
|
||||||
|
@ -582,7 +584,7 @@
|
||||||
<XxhbbksListModal ref="XxhbbksListModalPage"></XxhbbksListModal>
|
<XxhbbksListModal ref="XxhbbksListModalPage"></XxhbbksListModal>
|
||||||
|
|
||||||
<a-modal v-model:visible="imgvisible" title="图片预览" width="800px" :cancelText="`关闭`" :okButtonProps="{ class: { 'jee-hidden': true } }">
|
<a-modal v-model:visible="imgvisible" title="图片预览" width="800px" :cancelText="`关闭`" :okButtonProps="{ class: { 'jee-hidden': true } }">
|
||||||
<div style="padding: 15px;text-align: center;">
|
<div style="padding: 15px; text-align: center">
|
||||||
<img :src="ylimgurl" />
|
<img :src="ylimgurl" />
|
||||||
</div>
|
</div>
|
||||||
</a-modal>
|
</a-modal>
|
||||||
|
@ -727,6 +729,13 @@ function handleEndTime(record) {
|
||||||
zyInfo.value.xshpkssj = record;
|
zyInfo.value.xshpkssj = record;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function handleWxtx(record) {
|
||||||
|
defHttp.post({ url: '/zyInfo/zyInfo/sendWxtx', params: { id: record.id } }).then((res) => {
|
||||||
|
console.log('👣', res);
|
||||||
|
});
|
||||||
|
createMessage.success('发送成功');
|
||||||
|
}
|
||||||
|
|
||||||
function handleJscjbfb() {
|
function handleJscjbfb() {
|
||||||
var list = tableData.value;
|
var list = tableData.value;
|
||||||
|
|
||||||
|
@ -1697,7 +1706,7 @@ function searchReset() {
|
||||||
queryParam.value.queryType = queryType.value;
|
queryParam.value.queryType = queryType.value;
|
||||||
queryParam.value.rwbh = rwbh;
|
queryParam.value.rwbh = rwbh;
|
||||||
queryParam.value.ywid = zyInfo.value.id;
|
queryParam.value.ywid = zyInfo.value.id;
|
||||||
console.log(`🚀 ~ searchReset ~ rwbh:`, rwbh)
|
console.log(`🚀 ~ searchReset ~ rwbh:`, rwbh);
|
||||||
total.value = 1;
|
total.value = 1;
|
||||||
searchQueryZyxq();
|
searchQueryZyxq();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue