Commit 98f3dab2 authored by Mac's avatar Mac

1

parent a86046b3
......@@ -112,10 +112,10 @@
<el-form-item label="固定时段:" v-if="peopletype==2">
<div v-for="(x,y) in addMsg " :key="y" >
<div style="display: flex;align-items: flex-start;margin-top: 10px;">
<el-time-select :disabled="y==0" placeholder="起始时间" v-model="x.StartHours"
<el-time-select :disabled="y==0" placeholder="起始时间" v-model="x.StartHours" @change="changeTime()"
:picker-options="{ start: '00:00', step: '01:00', end: '23:00', }">
</el-time-select>
<el-time-select :disabled="y==0" placeholder="结束时间" v-model="x.EndHours"
<el-time-select :disabled="y==0" placeholder="结束时间" v-model="x.EndHours"@change="changeTime()"
:picker-options="{ start: '00:00', step: '01:00', end: '23:00', minTime: x.StartHours}">
</el-time-select>
<div style="max-width: 320px;">
......@@ -261,7 +261,7 @@
//获取部门下拉数据
getDepartList(id) {
let msg = {
School_Id: 0
School_Id: -1
}
getDeptTree(msg).then(res => {
if (res.Code == 1) {
......@@ -282,8 +282,8 @@
closeEditOrder() {
this.$emit('close')
},
queryEmployee() {//下拉人员列表
queryEmployee({}).then(res => {
queryEmployee() {//下拉人员列表 IsLeave=1排除了离职的
queryEmployee({IsLeave:1}).then(res => {
if (res.Code == 1) {
this.Employeelist = res.Data
}
......@@ -514,6 +514,10 @@
}
}
})
},
changeTime(){
console.log('进入')
console.log(this.addMsg)
}
}
......
This diff is collapsed.
......@@ -129,7 +129,7 @@
<div class="q-gutter-sm" style="width: 120%;padding: 15px;border: 1px solid #e8e8e8;">
<ul v-if="Lableshow == false">
<li class="tag-item" v-for="(x,y) in LableList" :key='y'>
<el-tag effect="plain"> {{ x.Name }} </el-tag>
<el-tag effect="plain" style="min-width: 70px;text-align: center;overflow: hidden;"> {{ x.Name }} </el-tag>
<div class="tag-content">
<span class="ant-tag" :class="{'ant-tag-has-color':item.chek}"
v-for="(item,index) in x.ChildList" :key='index'
......@@ -305,7 +305,7 @@
<el-table-column prop="EmpName" label="名称" align="center"> </el-table-column>
<el-table-column prop="LimitNum" label="上限" align="center">
<template slot-scope="scope">
<el-input style="width: 150px;" type='number' v-model="scope.row.LimitNum"
<el-input style="width: 150px;" type='number' v-model="scope.row.LimitNum" :min='0' @input="$forceUpdate()"
size="mini" placeholder="" />
</template>
</el-table-column>
......@@ -325,6 +325,8 @@
<q-btn color="white" v-if="addMsg.Type==2" text-color="black" icon='add' label="选择企业成员" @click="outerVisible=true,byval=EmpBackUpList,choiceapprovaltype='2'" />
</div>
<div style="color: red;">(备用员工的选择最好不要和员工上限模块里的人员重复)</div>
</el-form-item>
</el-form>
......@@ -806,7 +808,7 @@
})
},
queryEmployee() {//下拉人员列表
queryEmployee({}).then(res => {
queryEmployee({IsLeave:1}).then(res => {
if (res.Code == 1) {
this.Employeelist = res.Data
}
......
......@@ -3,7 +3,7 @@
<div class="page-search row items-center">
<div class="col row wrap q-mr-lg q-col-gutter-md">
<div class="col-3">
<q-input @input="changePage(1)" clearable standout="bg-primary text-white" v-model="msg.Name"
<q-input @keyup.enter.native="changePage(1)" clearable standout="bg-primary text-white" v-model="msg.Name"
label="渠道码名称" @clear="changePage(1)" maxlength="20" />
</div>
<div class="col-3">
......@@ -28,10 +28,15 @@
</template>
<template v-slot:body-cell-WXQRCode="props">
<q-td :props="props">
<q-img v-if="props.row.WXQRCode && props.row.WXQRCode!=''" :src="props.row.WXQRCode"
<q-img v-if="props.row.WXQRCode && props.row.WXQRCode!=''" :src="props.row.WXQRCode" @click="viewDetails(props.row)"
style="width: 90px;height: 90px;display: flex;">
</q-img>
</q-td>
</template>
<template v-slot:body-cell-Type="props">
<q-td :props="props">
<div>{{props.row.Type==1?'单人':'多人'}}</div>
</q-td>
</template>
......@@ -71,18 +76,19 @@
</q-table>
</div>
<q-dialog v-model="isDetails">
<q-card style="width: 560px;">
<q-card style="width: 450px;">
<q-card-section class="row items-center q-pb-none">
<div class="text-h6">欢迎语详情</div>
<div class="text-h6">图片详情</div>
<q-space />
<q-btn icon="close" flat round dense v-close-popup />
</q-card-section>
<q-card-section v-if='Detailsobj' class="channelcodeList">
<q-card-section v-if="Detailsobj && Detailsobj.WXQRCode">
<q-img :src="Detailsobj.WXQRCode" style="width:400px;height: 400px;margin-left: 9px;"></q-img>
</q-card-section>
</q-card>
</q-dialog>
</div>
</template>
......@@ -125,9 +131,9 @@
],
//公告column
columns: [{
name: '二维码',
name: 'WXQRCode',
label: '二维码',
field: '二维码',
field: 'WXQRCode',
align: 'left'
},
{
......@@ -142,6 +148,12 @@
label: '分组',
align: 'left'
},
{
name: 'Type',
field: 'Type',
label: '分组',
align: 'left'
},
{
name: 'CustomerNum',
field: 'CustomerNum',
......
......@@ -3,7 +3,7 @@
<div class="page-search row items-center">
<div class="col row wrap q-mr-lg q-col-gutter-md">
<div class="col-3">
<q-input @input="resetSearch" clearable standout="bg-primary text-white" v-model="msg.Name"
<q-input @keyup.enter.native="resetSearch" clearable standout="bg-primary text-white" v-model="msg.Name"
label="分组名称" @clear="resetSearch" maxlength="20" />
</div>
</div>
......
......@@ -107,6 +107,15 @@
</div>
<div v-if="item.Type==5" style="width: 1px; flex:1">
<video width="300" height="200" controls="controls" v-if="item.VideoModel && item.VideoModel.VideoPath">
<source :src="item.VideoModel.VideoPath" type="video/ogg" />
<source :src="item.VideoModel.VideoPath" type="video/mp4" />
<source :src="item.VideoModel.VideoPath" type="video/webm" />
</video>
</div>
<div v-if="item.Type==6"
style="width: 70%;padding: 10px 15px; border: 1px solid #eee; border-radius: 4px; background: #fff;">
<div>{{item.AppletModel.Title}}</div>
......@@ -115,6 +124,24 @@
</div>
<div v-if="item.Type==7" style="width: 1px; flex:1;padding: 10px 15px; border: 1px solid #eee; border-radius: 4px; background: #fff;">
<div style="display: flex;align-items: flex-start;justify-content: space-between;" @click="showUpLoadFile(item.FileModel)">
<div style="width: 1px;flex:1">
{{item.FileModel.FileName}}
</div>
<div style="width: 50px;text-align: right;margin-left: 10px;">
<i v-if="item.FileModel.FilePath.substring(item.FileModel.FilePath.lastIndexOf('.')+1,item.FileModel.FilePath.length).toUpperCase()=='PDF'" class="iconfont icon-pdf"></i>
<i v-else-if="item.FileModel.FilePath.substring(item.FileModel.FilePath.lastIndexOf('.')+1,item.FileModel.FilePath.length).toUpperCase()=='TXT'" class="iconfont icon-txt"></i>
<i v-else-if="item.FileModel.FilePath.substring(item.FileModel.FilePath.lastIndexOf('.')+1,item.FileModel.FilePath.length).toUpperCase()=='DOCX' ||
item.FileModel.FilePath.substring(item.FileModel.FilePath.lastIndexOf('.')+1,item.FileModel.FilePath.length).toUpperCase()=='DOC'
" class="iconfont icon-word"></i>
<i v-else class="iconfont icon-excel"></i>
</div>
</div>
</div>
</div>
</div>
......@@ -297,7 +324,27 @@
viewDetails(row) {
this.Detailsobj = row
this.isDetails = true
}
},
showUpLoadFile(i) {
// 文件类型进行判断
if (
i.FileName.substring(
i.FileName.lastIndexOf(".") + 1,
i.FileName.length
).toUpperCase() == "PDF" ||
i.FileName.substring(
i.FileName.lastIndexOf(".") + 1,
i.FileName.length
).toUpperCase() == "TXT"
) {
this.previewPDF(i.Url);
} else {
window.open(
"https://view.officeapps.live.com/op/view.aspx?src=" + i.FilePath
);
}
},
}
}
......@@ -371,4 +418,15 @@
align-items: center;
border-bottom: 1px solid #e8e8e8;
}
.welcomeList .icon-excel,
.welcomeList .icon-pdf,
.welcomeList .icon-txt,
.welcomeList .icon-wenjian,
.welcomeList .icon-yasuobao,
.welcomeList .icon-shipin,
.welcomeList .icon-word {
font-size: 38px;
color: green;
line-height: 75px;
}
</style>
\ No newline at end of file
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