|
|
@@ -192,20 +192,20 @@ export default {
|
|
|
return this.id
|
|
|
}
|
|
|
},
|
|
|
- watch:{
|
|
|
+ watch: {
|
|
|
showDialog: {
|
|
|
- handler(val, oldVal) {
|
|
|
+ handler (val, oldVal) {
|
|
|
this.$emit('judgeIndex', val)
|
|
|
- },
|
|
|
+ }
|
|
|
// immediate: true
|
|
|
},
|
|
|
form: {
|
|
|
- handler(val, oldVal) {
|
|
|
+ handler (val, oldVal) {
|
|
|
this.judgeTF(val)
|
|
|
},
|
|
|
immediate: true,
|
|
|
deep: true
|
|
|
- },
|
|
|
+ }
|
|
|
},
|
|
|
methods: {
|
|
|
handleClick (tab, event) {
|
|
|
@@ -230,9 +230,9 @@ export default {
|
|
|
// this.dialogformrenderVisible = true
|
|
|
// },
|
|
|
handleDifferentTab () {
|
|
|
- let objNum = this.form
|
|
|
+ const objNum = this.form
|
|
|
const stm = JSON.parse(objNum.skipTypeMsg)
|
|
|
- const tid = stm.pathInfo ? stm.pathInfo :objNum.taskId
|
|
|
+ const tid = stm.pathInfo ? stm.pathInfo : objNum.taskId
|
|
|
switch (stm.skipType) {
|
|
|
case 1:// 明细
|
|
|
this.handleLinkClick(stm.pathInfo)
|
|
|
@@ -260,7 +260,7 @@ export default {
|
|
|
this.activeName = 'replied'
|
|
|
this.form = ''
|
|
|
this.loading = true
|
|
|
- get({
|
|
|
+ return get({
|
|
|
innerMessageId: this.formId,
|
|
|
type: this.type || '' // 是否为空值,来决定消息是否要已读:空就已读,非空就未读
|
|
|
}).then(response => {
|
|
|
@@ -274,6 +274,7 @@ export default {
|
|
|
if (!this.type) {
|
|
|
this.$emit('callback', true)
|
|
|
}
|
|
|
+ return 1
|
|
|
}).catch(() => {
|
|
|
this.loading = false
|
|
|
})
|
|
|
@@ -286,8 +287,8 @@ export default {
|
|
|
if (obj.skipType > 0) {
|
|
|
if (obj.skipType === 1) {
|
|
|
this.showDialog = true
|
|
|
- } else if (obj.skipType === 2 ) {
|
|
|
- let canshu = form.taskId ? form.taskId : JSON.parse(form.skipTypeMsg).pathInfo
|
|
|
+ } else if (obj.skipType === 2) {
|
|
|
+ const canshu = form.taskId ? form.taskId : JSON.parse(form.skipTypeMsg).pathInfo
|
|
|
const sql = "select count(id_) as num from ibps_bpm_task_pendding where task_id_='" + canshu + "'"
|
|
|
curdPost('sql', sql).then(res => {
|
|
|
if (res.variables.data[0].num > 0) {
|