Commit 279b8d78 by sunxi

更新按钮功能

parent f137d446
...@@ -9,6 +9,12 @@ ...@@ -9,6 +9,12 @@
<c-button class="medium_bcs" size="medium" style="margin-left: 40px" type="primary" @click="handleReject"> <c-button class="medium_bcs" size="medium" style="margin-left: 40px" type="primary" @click="handleReject">
丢弃 丢弃
</c-button> </c-button>
<c-button class="medium_bcs" size="medium" style="margin-left: 40px" type="primary" @click="handleSkip">
忽略
</c-button>
<c-button class="medium_bcs" size="medium" style="margin-left: 40px" type="primary" @click="handleReSkip">
取消忽略
</c-button>
<p style="margin-top: 20px;border: 1px solid #333333;padding-10px;width: 100%;min-height: 500px;" v-html="model.msgdtll"></p> <p style="margin-top: 20px;border: 1px solid #333333;padding-10px;width: 100%;min-height: 500px;" v-html="model.msgdtll"></p>
<el-dialog v-if="visible" v-dialogDrag :visible="visible" :modal-append-to-body="false" :close-on-click-modal="true" <el-dialog v-if="visible" v-dialogDrag :visible="visible" :modal-append-to-body="false" :close-on-click-modal="true"
......
...@@ -4,11 +4,12 @@ ...@@ -4,11 +4,12 @@
历史记录 历史记录
</c-button> </c-button>
<c-button class="medium_bcs" size="medium" style="margin-left: 40px" type="primary" @click="handleCheck"> <c-button class="medium_bcs" size="medium" style="margin-left: 40px" type="primary" @click="handleCheck">
放行 人工清分
</c-button> </c-button>
<c-button class="medium_bcs" size="medium" style="margin-left: 40px" type="primary" @click="handleReject"> <!-- <c-button class="medium_bcs" size="medium" style="margin-left: 40px" type="primary" @click="handleReject">
丢弃 丢弃
</c-button> </c-button> -->
<p style="margin-top: 20px;border: 1px solid #333333;padding-10px;width: 100%;min-height: 500px;" v-html="model.msgdtll"></p> <p style="margin-top: 20px;border: 1px solid #333333;padding-10px;width: 100%;min-height: 500px;" v-html="model.msgdtll"></p>
<el-dialog v-if="visible" v-dialogDrag :visible="visible" :modal-append-to-body="false" :close-on-click-modal="true" <el-dialog v-if="visible" v-dialogDrag :visible="visible" :modal-append-to-body="false" :close-on-click-modal="true"
...@@ -64,7 +65,7 @@ export default { ...@@ -64,7 +65,7 @@ export default {
methods: { methods: {
async handleCheck() { async handleCheck() {
this.$confirm("确定放行该报文?", "提示", { this.$confirm("确定人工清分该报文?", "提示", {
confirmButtonText: "确认", confirmButtonText: "确认",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning", type: "warning",
...@@ -72,9 +73,9 @@ export default { ...@@ -72,9 +73,9 @@ export default {
let params={ let params={
mpsinr: this.$route.query.mpsinr || "", mpsinr: this.$route.query.mpsinr || "",
}; };
const rtnmsg = await Api.post(`/${this.moduleRouter()}/msgsel/check`, params); const rtnmsg = await Api.post(`/${this.moduleRouter()}/msgsel/rtmp/sav`, params);
if (rtnmsg.respCode === SUCCESS) { if (rtnmsg.respCode === SUCCESS) {
this.$notify({ title: '成功', type: 'success', message: '丢弃成功' }) this.$notify({ title: '成功', type: 'success', message: '清分成功' })
} }
}); });
}, },
......
...@@ -72,9 +72,9 @@ export default { ...@@ -72,9 +72,9 @@ export default {
let params={ let params={
mpsinr: this.$route.query.mpsinr || "", mpsinr: this.$route.query.mpsinr || "",
}; };
const rtnmsg = await Api.post(`/${this.moduleRouter()}/msgsel/check`, params); const rtnmsg = await Api.post(`/${this.moduleRouter()}/msgsel/sepp/sndagn`, params);
if (rtnmsg.respCode === SUCCESS) { if (rtnmsg.respCode === SUCCESS) {
this.$notify({ title: '成功', type: 'success', message: '丢弃成功' }) this.$notify({ title: '成功', type: 'success', message: '重新发送成功' })
} }
}); });
}, },
...@@ -88,7 +88,7 @@ export default { ...@@ -88,7 +88,7 @@ export default {
let params={ let params={
mpsinr: this.$route.query.mpsinr || "", mpsinr: this.$route.query.mpsinr || "",
}; };
const rtnmsg = await Api.post(`/${this.moduleRouter()}/msgsel/reject`, params); const rtnmsg = await Api.post(`/${this.moduleRouter()}/msgsel/sepp/drp`, params);
if (rtnmsg.respCode === SUCCESS) { if (rtnmsg.respCode === SUCCESS) {
this.$notify({ title: '成功', type: 'success', message: '丢弃成功' }) this.$notify({ title: '成功', type: 'success', message: '丢弃成功' })
} }
......
...@@ -147,6 +147,7 @@ ...@@ -147,6 +147,7 @@
<el-tab-pane label="发报查询" name="fb"> <el-tab-pane label="发报查询" name="fb">
<el-table :data="stmData.data" :columns="stmData.columns" v-loading="load" style="width: 100%" <el-table :data="stmData.data" :columns="stmData.columns" v-loading="load" style="width: 100%"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
@row-dblclick="dbClickRow"
size="small" :border="true" height="calc(100vh - 480px)" :highlight-current-row="true"> size="small" :border="true" height="calc(100vh - 480px)" :highlight-current-row="true">
<el-table-column type="selection" width="55"> <el-table-column type="selection" width="55">
</el-table-column> </el-table-column>
...@@ -273,7 +274,7 @@ export default { ...@@ -273,7 +274,7 @@ export default {
{ {
label: "处理时间", label: "处理时间",
prop: "sttdattim", prop: "sttdattim",
width: "150px" width: "170px"
}, },
], ],
data: [], data: [],
......
...@@ -147,11 +147,15 @@ ...@@ -147,11 +147,15 @@
<el-tab-pane label="报文失败处理" name="fb"> <el-tab-pane label="报文失败处理" name="fb">
<el-table :data="stmData.data" :columns="stmData.columns" v-loading="load" style="width: 100%" <el-table :data="stmData.data" :columns="stmData.columns" v-loading="load" style="width: 100%"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
@row-dblclick="dbClickRow"
size="small" :border="true" height="calc(100vh - 480px)" :highlight-current-row="true"> size="small" :border="true" height="calc(100vh - 480px)" :highlight-current-row="true">
<el-table-column type="selection" width="55"> <el-table-column type="selection" width="55">
</el-table-column> </el-table-column>
<el-table-column v-for="(item, key) in stmData.columns" :key="key" :label="item.label" :prop="item.prop" <el-table-column v-for="(item, key) in stmData.columns" :key="key" :label="item.label" :prop="item.prop" :min-width="item.width">
:min-width="item.width"> <template slot-scope="scope">
<c-select-value-to-label v-if="item.prop == 'sta'" v-model="scope.row.sta" :code="codes.stacod"></c-select-value-to-label>
<span v-else>{{ scope.row[item.prop] }}</span>
</template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -269,7 +273,7 @@ export default { ...@@ -269,7 +273,7 @@ export default {
{ {
label: "处理时间", label: "处理时间",
prop: "sttdattim", prop: "sttdattim",
width: "150px" width: "170px"
}, },
], ],
data: [], data: [],
...@@ -294,6 +298,14 @@ export default { ...@@ -294,6 +298,14 @@ export default {
}, },
methods: { methods: {
dbClickRow(row) {
this.routerPush({
path: '/business/msgdtlsep',
query: {
mpsinr: row.inr
}
})
}
}, },
mounted: function () { mounted: function () {
}, },
......
...@@ -156,7 +156,8 @@ ...@@ -156,7 +156,8 @@
<el-tab-pane label="发报查询" name="sb"> <el-tab-pane label="发报查询" name="sb">
<el-table :data="stmData.data" :columns="stmData.columns" v-loading="load" style="width: 100%" <el-table :data="stmData.data" :columns="stmData.columns" v-loading="load" style="width: 100%"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
size="small" :border="true" height="calc(100vh - 420px)" :highlight-current-row="true"> @row-dblclick="dbClickRow"
size="small" :border="true" height="calc(100vh - 480px)" :highlight-current-row="true">
<el-table-column type="selection" width="55"> <el-table-column type="selection" width="55">
</el-table-column> </el-table-column>
<el-table-column v-for="(item, key) in stmData.columns" :key="key" :label="item.label" :prop="item.prop" <el-table-column v-for="(item, key) in stmData.columns" :key="key" :label="item.label" :prop="item.prop"
...@@ -283,7 +284,7 @@ export default { ...@@ -283,7 +284,7 @@ export default {
{ {
label: "接收时间", label: "接收时间",
prop: "rcvdattim", prop: "rcvdattim",
width: "150px" width: "170px"
}, },
], ],
data: [], data: [],
......
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