Commit 2f14e283 authored by zhengke's avatar zhengke

1

parents 4411640c 904fc023
...@@ -45,15 +45,16 @@ module.exports = function (ctx) { ...@@ -45,15 +45,16 @@ module.exports = function (ctx) {
// Full list of options: https://quasar.dev/quasar-cli/quasar-conf-js#Property%3A-build // Full list of options: https://quasar.dev/quasar-cli/quasar-conf-js#Property%3A-build
build: { build: {
vueRouterMode: 'hash', // available values: 'hash', 'history' vueRouterMode: 'hash', // available values: 'hash', 'history'
env: ctx.dev ? { env: ctx.dev ? {
API: 'http://192.168.20.51:8088/api', API: 'https://localhost:5001/api',
API_ZC:'http://192.168.20.9:8087/api', // API: 'http://192.168.20.51:8088/api',
API_SK:'ws:192.168.20.214:' API_ZC: 'http://192.168.20.9:8087/api',
API_SK: 'ws:192.168.20.214:'
} : { } : {
API: 'https://eduapi.oytour.com/api', API: 'https://eduapi.oytour.com/api',
API_ZC:'http://propertyedu.oytour.com/api', API_ZC: 'http://propertyedu.oytour.com/api',
API_SK:'ws://47.96.23.199:' API_SK: 'ws://47.96.23.199:'
}, },
// transpile: false, // transpile: false,
...@@ -153,7 +154,7 @@ module.exports = function (ctx) { ...@@ -153,7 +154,7 @@ module.exports = function (ctx) {
], ],
directives: [ directives: [
'ClosePopup' 'ClosePopup'
], ],
// Quasar plugins // Quasar plugins
plugins: [ plugins: [
......
...@@ -152,4 +152,28 @@ export function SetSynvEduEmployee(data) { ...@@ -152,4 +152,28 @@ export function SetSynvEduEmployee(data) {
method: 'post', method: 'post',
data data
}) })
}
/**
* 获取欢迎语分页列表
*
*/
export function getWeChatWelcomesPageList(data) {
return request({
url: '/QYWeChat/GetWeChatWelcomesPageList',
method: 'post',
data
})
}
/**
* 新增修改欢迎语
*
*/
export function setWeChatWelcomesInfo(data) {
return request({
url: '/QYWeChat/SetWeChatWelcomesInfo',
method: 'post',
data
})
} }
\ No newline at end of file
...@@ -141,4 +141,16 @@ export function GetPaper(data) { ...@@ -141,4 +141,16 @@ export function GetPaper(data) {
method: 'post', method: 'post',
data data
}) })
}
/**
* 保存试卷信息
* @param {JSON参数} data
*/
export function savePaperInfo(data) {
return request({
url: '/Exam/SetPaper',
method: 'post',
data
})
} }
\ No newline at end of file
...@@ -345,6 +345,7 @@ ...@@ -345,6 +345,7 @@
addMsg: { addMsg: {
Id: 0, Id: 0,
Type: 1, Type: 1,
Is_Sync:1,//是否同步 暂时默认为1 同步
MediaGroupId: '', MediaGroupId: '',
} }
...@@ -353,6 +354,7 @@ ...@@ -353,6 +354,7 @@
created() { created() {
if (this.editobj != null) { if (this.editobj != null) {
this.addMsg = this.editobj this.addMsg = this.editobj
this.addMsg.Is_Sync=1
} else { } else {
this.gettype() this.gettype()
} }
...@@ -361,6 +363,7 @@ ...@@ -361,6 +363,7 @@
gettype() { gettype() {
this.addMsg.Id = 0; this.addMsg.Id = 0;
this.addMsg.Type = this.type this.addMsg.Type = this.type
this.addMsg.Is_Sync = 1;
this.addMsg.MediaGroupId = ''; this.addMsg.MediaGroupId = '';
if (this.type == 1) {//文本 if (this.type == 1) {//文本
this.addMsg.TextModel = { this.addMsg.TextModel = {
......
...@@ -6,8 +6,9 @@ ...@@ -6,8 +6,9 @@
</div> </div>
</div> --> </div> -->
<div class="page-content"> <div class="page-content">
<q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat class="sticky-column-table no-bottom-table" <q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat
separator="none" title="" :data="dataList" :columns="columns" row-key="name"> class="sticky-column-table no-bottom-table" separator="none" title="" :data="dataList" :columns="columns"
row-key="name">
<template v-slot:body-cell-title="props"> <template v-slot:body-cell-title="props">
<q-td :props="props"> <q-td :props="props">
...@@ -17,47 +18,50 @@ ...@@ -17,47 +18,50 @@
<template v-slot:body-cell-Content="props"> <template v-slot:body-cell-Content="props">
<q-td :props="props"> <q-td :props="props">
<span v-if="props.row.Type==1">{{getType(props.row,'content')}}</span> <div style="width: 200px;">
<q-img v-if="props.row.Type==2 || props.row.Type==3 || props.row.Type==6" <span v-if="props.row.Type==1">{{getType(props.row,'content')}}</span>
:src="getType(props.row,'content')" style="width: 80px;height: 80px;border-radius: 6px;display: flex;"> <q-img v-if="props.row.Type==2 || props.row.Type==3 || props.row.Type==6"
</q-img> :src="getType(props.row,'content')" style="width: 80px;height: 80px;border-radius: 6px;display: flex;">
<audio controls="controls" </q-img>
v-if='props.row.Type==4 && props.row.AudioModel && props.row.AudioModel.AudioPath' <audio controls="controls"
style="width: 200px;height: 40px;"> v-if='props.row.Type==4 && props.row.AudioModel && props.row.AudioModel.AudioPath'
<source :src="props.row.AudioModel.AudioPath" type="audio/ogg"> style="width: 200px;height: 40px;">
<source :src="props.row.AudioModel.AudioPath" type="audio/mpeg"> <source :src="props.row.AudioModel.AudioPath" type="audio/ogg">
</audio> <source :src="props.row.AudioModel.AudioPath" type="audio/mpeg">
<video width="200" height="120" controls="controls" </audio>
v-if="props.row.Type==5 && props.row.VideoModel && props.row.VideoModel.VideoPath"> <video width="200" height="120" controls="controls"
<source :src="props.row.VideoModel.VideoPath" type="video/ogg" /> v-if="props.row.Type==5 && props.row.VideoModel && props.row.VideoModel.VideoPath">
<source :src="props.row.VideoModel.VideoPath" type="video/mp4" /> <source :src="props.row.VideoModel.VideoPath" type="video/ogg" />
<source :src="props.row.VideoModel.VideoPath" type="video/webm" /> <source :src="props.row.VideoModel.VideoPath" type="video/mp4" />
</video> <source :src="props.row.VideoModel.VideoPath" type="video/webm" />
<div v-if="props.row.Type==7 && props.row.FileModel && props.row.FileModel.FilePath!=''" </video>
@click.stop="showUpLoadFile(props.row.FileModel)"> <div v-if="props.row.Type==7 && props.row.FileModel && props.row.FileModel.FilePath!=''"
<i v-if="props.row.FileModel.FilePath.substring(props.row.FileModel.FilePath.lastIndexOf('.')+1,props.row.FileModel.FilePath.length).toUpperCase()=='PDF'" @click.stop="showUpLoadFile(props.row.FileModel)">
class="iconfont icon-pdf"></i> <i v-if="props.row.FileModel.FilePath.substring(props.row.FileModel.FilePath.lastIndexOf('.')+1,props.row.FileModel.FilePath.length).toUpperCase()=='PDF'"
<i v-else-if="props.row.FileModel.FilePath.substring(props.row.FileModel.FilePath.lastIndexOf('.')+1,props.row.FileModel.FilePath.length).toUpperCase()=='TXT'" class="iconfont icon-pdf"></i>
class="iconfont icon-txt"></i> <i v-else-if="props.row.FileModel.FilePath.substring(props.row.FileModel.FilePath.lastIndexOf('.')+1,props.row.FileModel.FilePath.length).toUpperCase()=='TXT'"
<i v-else-if="props.row.FileModel.FilePath.substring(props.row.FileModel.FilePath.lastIndexOf('.')+1,props.row.FileModel.FilePath.length).toUpperCase()=='DOCX' || class="iconfont icon-txt"></i>
<i v-else-if="props.row.FileModel.FilePath.substring(props.row.FileModel.FilePath.lastIndexOf('.')+1,props.row.FileModel.FilePath.length).toUpperCase()=='DOCX' ||
props.row.FileModel.FilePath.substring(props.row.FileModel.FilePath.lastIndexOf('.')+1,props.row.FileModel.FilePath.length).toUpperCase()=='DOC' props.row.FileModel.FilePath.substring(props.row.FileModel.FilePath.lastIndexOf('.')+1,props.row.FileModel.FilePath.length).toUpperCase()=='DOC'
" class="iconfont icon-word"></i> " class="iconfont icon-word"></i>
<i v-else class="iconfont icon-excel"></i> <i v-else class="iconfont icon-excel"></i>
</div>
</div> </div>
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-optioned="props"> <template v-slot:body-cell-optioned="props">
<q-td :props="props"> <q-td :props="props">
<q-btn flat size="xs" icon="edit" style="font-weight:400;color: #3FC4FF" class="q-mr-xs" label="编辑" v-if="props.row.Type==1 || props.row.Type==3 || props.row.Type==6 " <q-btn flat size="xs" icon="edit" style="font-weight:400;color: #3FC4FF" class="q-mr-xs" label="编辑"
@click="goedit(props.row)" /> v-if="props.row.Type==1 || props.row.Type==3 || props.row.Type==6 " @click="goedit(props.row)" />
<q-btn flat size="xs" icon="edit" style="font-weight:400;color: #3FC4FF" class="q-mr-xs" label="移动" <q-btn flat size="xs" icon="edit" style="font-weight:400;color: #3FC4FF" class="q-mr-xs" label="移动"
@click="plmove(props)" /> @click="plmove(props)" />
<q-btn flat size="xs" icon="delete" color="negative" class="q-mr-xs" label="删除" <q-btn flat size="xs" icon="delete" color="negative" class="q-mr-xs" label="删除"
@click="goDetailed(props.row,'0')" /> @click="goDetailed(props.row,'0')" />
</q-td> </q-td>
</template> </template>
</q-table> </q-table>
</div> </div>
<div v-if="Isadd==true"> <div v-if="Isadd==true">
...@@ -72,8 +76,8 @@ ...@@ -72,8 +76,8 @@
import alladdsc from './allAddSC' import alladdsc from './allAddSC'
import { import {
delWecharMediumInfo,//删除素材 delWecharMediumInfo,//删除素材
} from '../../../api/system/wechat'; } from '../../../api/system/wechat';
export default { export default {
components: { components: {
alladdsc, alladdsc,
...@@ -95,8 +99,8 @@ ...@@ -95,8 +99,8 @@
Isadd: false, Isadd: false,
ISsystem: false, ISsystem: false,
editobj:null, editobj: null,
showtype:1, showtype: 1,
msg: { msg: {
pageIndex: 1, pageIndex: 1,
pageSize: 10, pageSize: 10,
...@@ -243,20 +247,20 @@ ...@@ -243,20 +247,20 @@
this.editobj.Id = row.Id; this.editobj.Id = row.Id;
this.editobj.MediaGroupId = row.MediaGroupId; this.editobj.MediaGroupId = row.MediaGroupId;
this.editobj.Type = row.Type; this.editobj.Type = row.Type;
if(row.Type==1){ if (row.Type == 1) {
this.editobj.TextModel = JSON.parse(JSON.stringify(row.TextModel)); this.editobj.TextModel = JSON.parse(JSON.stringify(row.TextModel));
}else if(row.Type==3){ } else if (row.Type == 3) {
this.editobj.ImgTextModel = JSON.parse(JSON.stringify(row.ImgTextModel)); this.editobj.ImgTextModel = JSON.parse(JSON.stringify(row.ImgTextModel));
}else if(row.Type==6){ } else if (row.Type == 6) {
this.editobj.AppletModel = JSON.parse(JSON.stringify(row.AppletModel)); this.editobj.AppletModel = JSON.parse(JSON.stringify(row.AppletModel));
} }
this.showtype = row.Type.toString() this.showtype = row.Type.toString()
this.Isadd = true this.Isadd = true
}, },
getchildren(){ getchildren() {
this.$emit('editsuccess') this.$emit('editsuccess')
this.Isadd = false this.Isadd = false
}, },
} }
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment