|
|
@@ -23,9 +23,9 @@
|
|
|
<van-pull-refresh v-model="refreshing" @refresh="onRefresh">
|
|
|
<van-list v-model="loading" :finished="finished" @load="loadData">
|
|
|
<van-checkbox-group v-model="checkedIds">
|
|
|
- <van-cell v-for="(item,index) in listData" :key="item.id+index" :title="item.shi_wu_ming_cheng" class="vantCell" @click="onClick(item,index)">
|
|
|
+ <van-cell v-for="(item,index) in listData" :key="item.id+index" :title="item.shiWuMingCheng" class="vantCell" @click="onClick(item,index)">
|
|
|
<template slot="icon">
|
|
|
- <van-checkbox v-if="checkMode" ref="checkboxes" :name="item.id_" class="ibps-mr-10" />
|
|
|
+ <van-checkbox v-if="checkMode" ref="checkboxes" :name="item.id" class="ibps-mr-10" />
|
|
|
<ibps-avatar
|
|
|
v-else
|
|
|
:icon="_randomIcon(4)"
|
|
|
@@ -40,14 +40,14 @@
|
|
|
</template>
|
|
|
<template #label>
|
|
|
<van-row @click="overlayShow(item)">
|
|
|
- <van-col span="24">{{ item.shi_wu_shuo_ming_==''?'/':item.shi_wu_shuo_ming_==null?'/':item.shi_wu_shuo_ming_ }}</van-col>
|
|
|
+ <van-col span="24">{{ item.shiWuShuoMing==''?'/':item.shiWuShuoMing==null?'/':item.shiWuShuoMing }}</van-col>
|
|
|
</van-row>
|
|
|
</template>
|
|
|
<!-- 插入内容 -->
|
|
|
- <span>{{ item.create_time_|formatRelativeTime }}</span>
|
|
|
+ <span>{{ item.createTime|formatRelativeTime }}</span>
|
|
|
<div>
|
|
|
<!-- 系统消息 -->
|
|
|
- <van-icon v-if="item.ti_xing_shi_jian_&¤tTime-new Date(item.ti_xing_shi_jian_).getTime()<7200000" name="comment-o" size="1.3rem" color="#ccc" @click="prompt(item,'mesg')" />
|
|
|
+ <van-icon v-if="item.tiXingShiJian&¤tTime-new Date(item.tiXingShiJian).getTime()<7200000" name="comment-o" size="1.3rem" color="#ccc" @click="prompt(item,'mesg')" />
|
|
|
<van-icon v-else name="comment-o" size="1.3rem" color="#1E90FF" @click.stop="sendSystemInfo(item)" />
|
|
|
<!-- <van-icon v-else name="bell" size="1.3rem" color="#1E90FF" @click.stop="sendSystemInfo(item)" /> -->
|
|
|
</div>
|
|
|
@@ -95,6 +95,7 @@ import { sendSmsList } from './sendSms'
|
|
|
import { Notify } from 'vant'
|
|
|
import { Toast } from 'vant'
|
|
|
import { dbSqlConfig } from '@/constant'
|
|
|
+import { queryRem } from '@/api/platform/feature/sqlInject'
|
|
|
|
|
|
export default {
|
|
|
components: {
|
|
|
@@ -217,9 +218,9 @@ export default {
|
|
|
methods: {
|
|
|
prompt(item, type) {
|
|
|
if (type === 'mesg') {
|
|
|
- Notify({ type: 'warning', message: `上次消息催办时间为${item.ti_xing_shi_jian_.substring(0, 16)},距今不足两小时,请勿频繁催办!` })
|
|
|
+ Notify({ type: 'warning', message: `上次消息催办时间为${item.tiXingShiJian.substring(0, 16)},距今不足两小时,请勿频繁催办!` })
|
|
|
} else {
|
|
|
- Notify({ type: 'warning', message: `上次短信催办时间为${item.duan_xin_shi_jian.substring(0, 16)},距今不足两小时,请勿频繁催办!` })
|
|
|
+ Notify({ type: 'warning', message: `上次短信催办时间为${item.tiXingShiJian.substring(0, 16)},距今不足两小时,请勿频繁催办!` })
|
|
|
}
|
|
|
},
|
|
|
// 设置定时器
|
|
|
@@ -229,6 +230,7 @@ export default {
|
|
|
}, 1000)
|
|
|
},
|
|
|
sendFunction(listData) {
|
|
|
+ console.log(listData, 'llllllllllll')
|
|
|
const sendNotice = (req, ups) => {
|
|
|
req.forEach((item, i) => {
|
|
|
this.$common.sendMsg(item)
|
|
|
@@ -265,29 +267,31 @@ export default {
|
|
|
const currentTime = new Date(new Date().getTime() + 28800000).toJSON().slice(0, 16).replace('T', ' ')
|
|
|
console.log('currentTime', currentTime)
|
|
|
listData.forEach(item => {
|
|
|
+ console.log(item, 'listDatalistDatalistDatalistData')
|
|
|
+
|
|
|
const notice = {
|
|
|
- subject: msgTitle[item.guo_qi_zhuang_tai],
|
|
|
- content: `${item.shi_wu_ming_cheng}【${item.shi_wu_shuo_ming_}】${msgContent[item.guo_qi_zhuang_tai]}`,
|
|
|
- receiverId: item.chu_li_ren_id_,
|
|
|
+ subject: msgTitle[item.guoQiZhuangTai],
|
|
|
+ content: `${item.shiWuMingCheng}【${item.shiWuShuoMing}】${msgContent[item.guoQiZhuangTai]}`,
|
|
|
+ receiverId: item.chuLiRenId,
|
|
|
canreplay: '0'
|
|
|
}
|
|
|
const up = {
|
|
|
where: {
|
|
|
- id_: item.id_
|
|
|
+ id_: item.id
|
|
|
},
|
|
|
param: {
|
|
|
- ti_xing_ci_shu_: parseInt(item.ti_xing_ci_shu_) + 1,
|
|
|
+ ti_xing_ci_shu_: parseInt(item.tiXingCiShu) + 1,
|
|
|
ti_xing_shi_jian_: currentTime
|
|
|
}
|
|
|
}
|
|
|
noticeList.push(notice)
|
|
|
upList.push(up)
|
|
|
// 校验提醒时间 (间隔不足2小时不允许发送)
|
|
|
- const D = new Date(item.ti_xing_shi_jian_).getTime()
|
|
|
+ const D = new Date(item.tiXingShiJian).getTime()
|
|
|
const N = new Date(currentTime).getTime()
|
|
|
if (N - D < 7200000) {
|
|
|
flag = true
|
|
|
- msg = `事务【${item.shi_wu_ming_cheng}】上次消息催办时间为${item.ti_xing_shi_jian_},距今不足两小时,请勿频繁催办!`
|
|
|
+ msg = `事务【${item.shiWuMingCheng}】上次消息催办时间为${item.tiXingShiJian},距今不足两小时,请勿频繁催办!`
|
|
|
}
|
|
|
})
|
|
|
if (flag) {
|
|
|
@@ -346,7 +350,38 @@ export default {
|
|
|
const listData = []
|
|
|
res.variables.data.forEach(item => {
|
|
|
if (list.includes(item.id_)) {
|
|
|
- listData.push(item)
|
|
|
+ const obj = {
|
|
|
+ id: item.id_ || '',
|
|
|
+ tenantId: item.tenant_id_ || '',
|
|
|
+ ip: item.ip_ || '',
|
|
|
+ createBy: item.create_by_ || '',
|
|
|
+ createTime: item.create_time_ || '',
|
|
|
+ updateBy: item.update_by_ || '',
|
|
|
+ updateTime: item.update_time_ || '',
|
|
|
+ shiFouGuoShen: item.shi_fou_guo_shen_ || '',
|
|
|
+ bianZhiRen: item.bian_zhi_ren_ || '',
|
|
|
+ bianZhiBuMen: item.bian_zhi_bu_men_ || '',
|
|
|
+ bianZhiShiJian: item.bian_zhi_shi_jian || '',
|
|
|
+ shiWuId: item.shi_wu_id_ || '',
|
|
|
+ wanZhengMingCheng: item.wan_zheng_ming_ch || '',
|
|
|
+ shiWuMingCheng: item.shi_wu_ming_cheng || '',
|
|
|
+ shiWuLeiXing: item.shi_wu_lei_xing_ || '',
|
|
|
+ shiWuZhuangTai: item.shi_wu_zhuang_tai || '',
|
|
|
+ shiWuShuoMing: item.shi_wu_shuo_ming_ || '',
|
|
|
+ chuLiRenMing: item.chu_li_ren_ming_ || '',
|
|
|
+ chuLiRenId: item.chu_li_ren_id_ || '',
|
|
|
+ chuLiRenDianHua: item.chu_li_ren_dian_h || '',
|
|
|
+ buMen: item.bu_men_ || '',
|
|
|
+ buMenId: item.bu_men_id_ || '',
|
|
|
+ zhuGuanId: item.zhu_guan_id_ || '',
|
|
|
+ zhuGuanDianHua: item.zhu_guan_dian_hua || '',
|
|
|
+ tiXingCiShu: item.ti_xing_ci_shu_ || '',
|
|
|
+ duanXinCiShu: item.duan_xin_ci_shu_ || '',
|
|
|
+ tiXingShiJian: item.ti_xing_shi_jian_ || '',
|
|
|
+ duanXinShiJian: item.duan_xin_shi_jian || '',
|
|
|
+ guoQiZhuangTai: item.guo_qi_zhuang_tai || ''
|
|
|
+ }
|
|
|
+ listData.push(obj)
|
|
|
}
|
|
|
})
|
|
|
resolve(listData)// 将处理后的数据作为参数传递给resolve
|
|
|
@@ -369,19 +404,19 @@ export default {
|
|
|
},
|
|
|
// 短信催办函数
|
|
|
smsFunction(item) {
|
|
|
- if (item.chu_li_ren_dian_h) {
|
|
|
+ if (item.chuLiRenDianH) {
|
|
|
const obj = {
|
|
|
- sig: item.id_,
|
|
|
+ sig: item.id,
|
|
|
list: [
|
|
|
- { chu_li_ren_: item.chu_li_ren_ming_, chu_li_ren_dian_h: item.chu_li_ren_dian_h, ren_wu_ming_cheng: item.shi_wu_ming_cheng }
|
|
|
+ { chu_li_ren_: item.chuLiRenMing, chu_li_ren_dian_h: item.chuLiRenDianH, ren_wu_ming_cheng: item.shiWuMingCheng }
|
|
|
]
|
|
|
}
|
|
|
// 获取当时时间
|
|
|
const currentTime = new Date(new Date().getTime() + 28800000).toJSON().slice(0, 16).replace('T', ' ')
|
|
|
- const D = new Date(item.duan_xin_shi_jian).getTime()
|
|
|
+ const D = new Date(item.duanXinShiJian).getTime()
|
|
|
const N = new Date(currentTime).getTime()
|
|
|
if (N - D < 7200000) {
|
|
|
- Notify({ type: 'primary', message: `事务【${item.shi_wu_ming_cheng}】上次信息催办时间为${item.duan_xin_shi_jian},距今不足两小时,请勿频繁催办!` })
|
|
|
+ Notify({ type: 'primary', message: `事务【${item.shiWuMingCheng}】上次信息催办时间为${item.duanXinShiJian},距今不足两小时,请勿频繁催办!` })
|
|
|
return
|
|
|
}
|
|
|
sendSmsList(obj).then((res) => {
|
|
|
@@ -391,10 +426,10 @@ export default {
|
|
|
updList: [
|
|
|
{
|
|
|
where: {
|
|
|
- id_: item.id_
|
|
|
+ id_: item.id
|
|
|
},
|
|
|
param: {
|
|
|
- duan_xin_ci_shu_: parseInt(item.duan_xin_ci_shu_) + 1,
|
|
|
+ duan_xin_ci_shu_: parseInt(item.duanXinCiShu) + 1,
|
|
|
duan_xin_shi_jian: this.getCurrentDateTime()
|
|
|
}
|
|
|
}]
|
|
|
@@ -501,11 +536,12 @@ export default {
|
|
|
page = this.current * 10
|
|
|
}
|
|
|
const key = this.subject
|
|
|
- const sql = `select * from t_gqswb where t_gqswb.shi_wu_ming_cheng like'%` + key + `%' ORDER BY t_gqswb.create_time_ DESC LIMIT ${page},10 `
|
|
|
|
|
|
- // sql注入接口
|
|
|
- this.$common.request('sql', sql).then(res => {
|
|
|
- if (res.variables.data.length === 0) {
|
|
|
+ // const sql = `select * from t_gqswb where t_gqswb.shi_wu_ming_cheng like'%` + key + `%' ORDER BY t_gqswb.create_time_ DESC LIMIT ${page},10 `
|
|
|
+ queryRem(
|
|
|
+ this.getSearcFormData()
|
|
|
+ ).then(res => {
|
|
|
+ if (res.data.dataResult.length === 0) {
|
|
|
if (this.current === 0) {
|
|
|
this.noData = true
|
|
|
} else {
|
|
|
@@ -517,8 +553,7 @@ export default {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
- this.listData.push(...res.variables.data)
|
|
|
-
|
|
|
+ this.listData.push(...res.data.dataResult)
|
|
|
// 判断是否还有更多数据
|
|
|
if ((this.listData.length) % 10 !== 0) {
|
|
|
this.footText = true
|
|
|
@@ -529,15 +564,42 @@ export default {
|
|
|
|
|
|
this.loading = false
|
|
|
this.refreshing = false
|
|
|
- }).catch(err => {
|
|
|
- console.log(err)
|
|
|
})
|
|
|
+ // sql注入接口
|
|
|
+ // this.$common.request('sql', sql).then(res => {
|
|
|
+ // if (res.variables.data.length === 0) {
|
|
|
+ // if (this.current === 0) {
|
|
|
+ // this.noData = true
|
|
|
+ // } else {
|
|
|
+ // this.footText = true
|
|
|
+ // }
|
|
|
+ // this.finished = true
|
|
|
+ // this.loading = false
|
|
|
+ // this.refreshing = false
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+
|
|
|
+ // this.listData.push(...res.variables.data)
|
|
|
+
|
|
|
+ // // 判断是否还有更多数据
|
|
|
+ // if ((this.listData.length) % 10 !== 0) {
|
|
|
+ // this.footText = true
|
|
|
+ // this.finished = true
|
|
|
+ // } else {
|
|
|
+ // this.current++
|
|
|
+ // }
|
|
|
+
|
|
|
+ // this.loading = false
|
|
|
+ // this.refreshing = false
|
|
|
+ // }).catch(err => {
|
|
|
+ // console.log(err)
|
|
|
+ // })
|
|
|
},
|
|
|
// 获取格式化参数
|
|
|
getSearcFormData() {
|
|
|
let params = {}
|
|
|
if (this.$utils.isNotEmpty(this.subject)) {
|
|
|
- params['Q^subject_^SL'] = this.subject
|
|
|
+ params['Q^shi_wu_ming_cheng^SL'] = this.subject
|
|
|
}
|
|
|
if (this.$utils.isNotEmpty(this.moreParams)) {
|
|
|
params = Object.assign(params, this.moreParams)
|