no message
This commit is contained in:
parent
93161691a6
commit
8b75b67a83
@ -157,13 +157,13 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div style="margin-top: 20px">
|
||||
<el-pagination
|
||||
background
|
||||
layout="prev, pager, next"
|
||||
:total="total">
|
||||
</el-pagination>
|
||||
</div>
|
||||
<pagination
|
||||
v-show="total>0"
|
||||
:total="total"
|
||||
:page.sync="queryParams.page"
|
||||
:limit.sync="queryParams.pageSize"
|
||||
@pagination="getStoreList"
|
||||
/>
|
||||
|
||||
</el-card>
|
||||
|
||||
@ -326,6 +326,8 @@ export default {
|
||||
await Storelist(this.queryParams).then(res=>{
|
||||
console.log(res)
|
||||
this.arrlist = res.data.records
|
||||
// this.total = res.data.total
|
||||
|
||||
})
|
||||
},
|
||||
|
||||
|
@ -1319,6 +1319,17 @@ export default {
|
||||
this.queryParams1.page = 1;
|
||||
this.getDutyList();
|
||||
},
|
||||
reset2() {
|
||||
this.queryParams1={
|
||||
page:1,
|
||||
pageSize:10,
|
||||
// 当做机构id使用
|
||||
storeId:"",
|
||||
deptId:''
|
||||
}
|
||||
this.getDutyList();
|
||||
|
||||
},
|
||||
getDutyList(){
|
||||
this.loading = true;
|
||||
dutyList(this.queryParams1).then(res => {
|
||||
|
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
|
||||
<div class="bai-box" style="margin-top: 20px" >
|
||||
<div class="bai-box" >
|
||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
||||
|
||||
<el-form-item label="" prop="orderNo">
|
||||
@ -66,17 +66,18 @@
|
||||
<el-form-item label="">
|
||||
<el-date-picker
|
||||
v-model="dateRange"
|
||||
style="width: 240px"
|
||||
style="width: 240px;height: 32px"
|
||||
size="medium"
|
||||
value-format="yyyy-MM-dd"
|
||||
type="daterange"
|
||||
|
||||
range-separator="-"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"
|
||||
></el-date-picker>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item>
|
||||
<el-form-item style="float: right;margin-right: 0px">
|
||||
<el-button type="primary" icon="el-icon-search" @click="handleQuery">搜索</el-button>
|
||||
<el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button>
|
||||
|
||||
@ -90,7 +91,7 @@
|
||||
{{ getType(scope.row.type) }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :label="sumPayMoney" align="center" prop="payMoney">
|
||||
<el-table-column :label="sumPayMoney" align="center" prop="payMoney" >
|
||||
|
||||
</el-table-column>
|
||||
|
||||
@ -119,17 +120,19 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<!-- <el-table-column label="支付通道" align="center" prop="userMobile" width="150">-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <span>{{ scope.row.userMobile?scope.row.userMobile: '散户'}}</span>-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
<el-table-column label="支付通道" align="center" prop="paymentChannel" width="150">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ scope.row.paymentChannel?scope.row.paymentChannel: '--'}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column label="商户号编号" align="center" prop="mchntCd" width="150">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ scope.row.mchntCd?scope.row.mchntCd: '--'}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
|
||||
<!-- <el-table-column label="商户号编号" align="center" prop="userMobile" width="150">-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <span>{{ scope.row.userMobile?scope.row.userMobile: '散户'}}</span>-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
|
||||
<el-table-column label="订单创建时间" align="center" prop="createTime">
|
||||
<template slot-scope="scope">
|
||||
|
@ -8,8 +8,8 @@
|
||||
</div>
|
||||
<div class="dis-box">
|
||||
<div class="block">
|
||||
<el-avatar v-if="fullImagePath" shape="square" :size="96" :key="fullImagePath" :src="fullImagePath"></el-avatar>
|
||||
<el-avatar v-else shape="square" :size="96" src="https://cube.elemecdn.com/e/fd/0fc7d20532fdaf769a25683617711png.png"></el-avatar>
|
||||
<el-avatar v-if="fullImagePath" shape="square" :size="96" :key="fullImagePath" :src="fullImagePath" style="border-radius: 3%;"></el-avatar>
|
||||
<el-avatar v-else shape="square" :size="96" src="https://cube.elemecdn.com/e/fd/0fc7d20532fdaf769a25683617711png.png" style="border-radius: 3%;"></el-avatar>
|
||||
</div>
|
||||
<div style="width: 100%">
|
||||
<div class="dis-box" style="align-items: center;cursor: pointer;margin-bottom: 20px">
|
||||
@ -60,20 +60,22 @@
|
||||
<span class="demonstration" >营业执照</span>
|
||||
<br/>
|
||||
|
||||
<el-image v-if="from.license" :src="imagePath+from.license" style="margin-top: 10px;"></el-image>
|
||||
<el-image v-if="from.license" :src="imagePath+from.license" style="margin-top: 10px;width: 220px;height: 135px;border-radius: 3%;" ></el-image>
|
||||
<el-image v-else src="https://cube.elemecdn.com/e/fd/0fc7d20532fdaf769a25683617711png.png" ></el-image>
|
||||
|
||||
</div>
|
||||
<div style="height: 200px; width: 300px; margin-left: 100px;">
|
||||
<div style="height: 1000px; width: 1000px; margin-left: 30px;">
|
||||
<span class="demonstration">门头照</span>
|
||||
<br/>
|
||||
<div style="width: 1220px;display: flex">
|
||||
<el-image v-for="(item, index) in from.doorstepPhoto" v-if="from.doorstepPhoto[0]" :src="imagePath+item" style="margin-top: 10px;margin-right:10px;width: 220px;height: 135px;display: flex;border-radius: 3%; "></el-image>
|
||||
<el-image v-else src="https://cube.elemecdn.com/e/fd/0fc7d20532fdaf769a25683617711png.png" style="border-radius: 3%;"></el-image>
|
||||
|
||||
<el-image v-if="from.doorstepPhoto[0]" :src="imagePath+from.doorstepPhoto[0]" style="margin-top: 10px;"></el-image>
|
||||
<el-image v-else src="https://cube.elemecdn.com/e/fd/0fc7d20532fdaf769a25683617711png.png" ></el-image>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<el-dialog title="编辑油站" class="d-dialog" :visible.sync="editDialog" width="900px" style="padding-right: 10px;">
|
||||
<el-dialog title="编辑油站" class="d-dialog" :visible.sync="editDialog" width="1000px" style="padding-right: 10px;">
|
||||
<el-form :model="from" ref="form" :rules="rules">
|
||||
<el-row>
|
||||
<el-col :span="10">
|
||||
@ -471,8 +473,8 @@
|
||||
this.hideUpload = true
|
||||
|
||||
// Check if the number of files exceeds 3
|
||||
if (this.uploadImages.length >= 3) {
|
||||
this.$message.warning('最多只可以上传三张');
|
||||
if (this.uploadImages.length >= 5) {
|
||||
this.$message.warning('最多只可以上传五张');
|
||||
return false; // Cancel upload
|
||||
}
|
||||
return true; // Continue with the upload
|
||||
@ -539,7 +541,7 @@
|
||||
.box-h{
|
||||
background: rgb(255, 255, 255);
|
||||
width: 98%;
|
||||
margin: 10px auto;
|
||||
margin: 20px auto;
|
||||
box-sizing: border-box;
|
||||
padding: 20px;
|
||||
}
|
||||
|
@ -96,12 +96,12 @@
|
||||
<el-form :model="form" label-width="120px">
|
||||
<!-- 通知名称 -->
|
||||
<el-form-item label="通知名称" :required="true">
|
||||
<el-input v-model="form.notificationName" placeholder="请输入通知名称"></el-input>
|
||||
<el-input v-model="form.notificationName" placeholder="请输入通知名称" style="width: 300px" ></el-input>
|
||||
</el-form-item>
|
||||
|
||||
<!-- 通知类型 -->
|
||||
<el-form-item label="通知类型" :required="true">
|
||||
<el-select v-model="form.notificationType" placeholder="请选择通知类型">
|
||||
<el-select v-model="form.notificationType" placeholder="请选择通知类型" style="width: 300px">
|
||||
<el-option label="到期提醒" value="到期提醒"></el-option>
|
||||
<!-- 添加其他选项 -->
|
||||
</el-select>
|
||||
@ -109,13 +109,13 @@
|
||||
|
||||
<!-- 通知模板 -->
|
||||
<el-form-item label="通知模板" :required="true">
|
||||
<el-input type="textarea" v-model="form.templateContent" placeholder="请输入通知内容" :maxlength="200" show-word-limit></el-input>
|
||||
<el-input type="textarea" v-model="form.templateContent" :rows="3" placeholder="请输入通知内容" :maxlength="200" show-word-limit style="width: 300px"></el-input>
|
||||
</el-form-item>
|
||||
|
||||
<!-- 接收角色 -->
|
||||
<el-form-item label="接收角色" :required="true">
|
||||
<el-select v-model="form.recipientRoles" multiple placeholder="请选择角色">
|
||||
<el-option v-for="item in dutyList1" :label="item.dutyName" :value="item.dutyId"></el-option>
|
||||
<el-select v-model="form.recipientRoles" multiple placeholder="请选择角色" style="width: 300px">
|
||||
<el-option v-for="item in dutyList1" :label="item.dutyName" :value="item.dutyId" ></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
||||
@ -125,7 +125,7 @@
|
||||
</el-form-item>
|
||||
|
||||
<!-- 发送条件 -->
|
||||
<el-form-item label="发送条件" style="margin-bottom: 10px">
|
||||
<el-form-item label="发送条件" style="margin-bottom: 10px" :required="true">
|
||||
<div v-for="(condition, index) in form.conditions" :key="index" class="condition-group">
|
||||
<el-select v-model="condition.field" placeholder="请选择条件" style="width: 150px;margin-right: 10px">
|
||||
<el-option label="系统到期日期" value="系统到期日期"></el-option>
|
||||
@ -148,11 +148,15 @@
|
||||
</el-form-item>
|
||||
|
||||
<!-- 操作按钮 -->
|
||||
<el-form-item>
|
||||
<!-- <el-form-item>-->
|
||||
|
||||
<!-- </el-form-item>-->
|
||||
</el-form>
|
||||
<div style="display: flex; justify-content: center; align-items: center;margin-top: 30px">
|
||||
<el-button type="primary" @click="handleSubmit">保存</el-button>
|
||||
<el-button @click="handleReset">取消</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</div>
|
||||
|
||||
</el-dialog>
|
||||
|
||||
</div>
|
||||
@ -183,9 +187,10 @@ export default {
|
||||
templateStatus: true,
|
||||
type: 0,
|
||||
conditions: [
|
||||
{ field: '', operator: '', value: '' }
|
||||
]
|
||||
},
|
||||
// { field: '', operator: '', value: '' }
|
||||
|
||||
deviceInfo: {
|
||||
id: null, // 自增id
|
||||
notificationName: '',//通知名称,字符长度最多100,不能为空
|
||||
@ -239,8 +244,18 @@ export default {
|
||||
|
||||
// 在这里调用接口提交设备信息数据
|
||||
console.log('提交设备信息数据:', this.form);
|
||||
if ( this.form.conditions.length === 0 || this.form.conditions[0].field == '') {
|
||||
this.form.conditions = ''
|
||||
this.$message({
|
||||
type: 'info',
|
||||
message: '请选择发送条件!'
|
||||
});
|
||||
return
|
||||
} else {
|
||||
this.form.conditions = JSON.stringify(this.form.conditions)
|
||||
}
|
||||
this.form.recipientRoles = JSON.stringify(this.form.recipientRoles)
|
||||
|
||||
if (this.form.id) {
|
||||
updateSysNotifyApi(this.form).then(res=>{
|
||||
if(res.code === 200) {
|
||||
@ -277,12 +292,12 @@ export default {
|
||||
this.open = true;
|
||||
this.getDutyList()
|
||||
|
||||
this.title = "增加设备"
|
||||
this.title = "增加通知模板"
|
||||
},
|
||||
edit(e) {
|
||||
this.clean()
|
||||
this.open = true;
|
||||
this.title = "编辑设备"
|
||||
this.title = "编辑通知模板"
|
||||
this.getDutyList()
|
||||
|
||||
this.form = e
|
||||
@ -372,6 +387,19 @@ export default {
|
||||
conditions: [
|
||||
{ field: '', operator: '', value: '' }
|
||||
]
|
||||
},
|
||||
this.form= {
|
||||
id: null,
|
||||
notificationName: '',
|
||||
notificationType: '',
|
||||
templateContent: '',
|
||||
recipientRoles: [],
|
||||
dutyList: [],
|
||||
templateStatus: true,
|
||||
type: 0,
|
||||
conditions: [
|
||||
{ field: '', operator: '', value: '' }
|
||||
]
|
||||
}
|
||||
},
|
||||
}
|
||||
|
@ -164,8 +164,10 @@
|
||||
</el-table-column>
|
||||
|
||||
</el-table>
|
||||
<div style="display: flex; justify-content: center; align-items: center;margin-top: 30px">
|
||||
<el-button type="primary" @click="userEnter">确定</el-button>
|
||||
<el-button @click="userCe">取消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
|
||||
</div>
|
||||
@ -296,7 +298,7 @@ export default {
|
||||
this.open = true;
|
||||
this.getDutyList()
|
||||
|
||||
this.title = "增加设备"
|
||||
this.title = "新增通知"
|
||||
},
|
||||
userEnter1(){
|
||||
// 在这里调用接口提交设备信息数据
|
||||
@ -325,7 +327,7 @@ export default {
|
||||
edit(e) {
|
||||
this.clean()
|
||||
this.open = true;
|
||||
this.title = "编辑设备"
|
||||
this.title = "编辑通知"
|
||||
this.form = e
|
||||
this.form.recipientUser = JSON.parse(this.form.recipientUser)
|
||||
this.form.recipientRoles = JSON.parse(this.form.recipientRoles)
|
||||
|
Loading…
Reference in New Issue
Block a user