|
@@ -1,17 +1,23 @@
|
|
|
<template>
|
|
|
<yw-box class="qywszm-box" title="通报列表">
|
|
|
<div class="box">
|
|
|
- <div class="list btnActive" v-for="(item, index) in data" :key="index" @click="next(item)">
|
|
|
+ <div
|
|
|
+ class="list btnActive"
|
|
|
+ v-for="(item, index) in data"
|
|
|
+ :key="index"
|
|
|
+ @click="next(item)"
|
|
|
+ >
|
|
|
<div class="left">
|
|
|
- {{item.name}}
|
|
|
- </div>
|
|
|
- <div class="right">{{ item.fbTime}}</div>
|
|
|
+ {{ item.name }}
|
|
|
+ </div>
|
|
|
+ <div class="right">{{ item.fbTime }}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</yw-box>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import { debug } from "@/api/zxbg";
|
|
|
import { getTaxList } from "@/api/TaxAdministration";
|
|
|
export default {
|
|
|
data() {
|
|
@@ -19,20 +25,20 @@ export default {
|
|
|
data: {},
|
|
|
};
|
|
|
},
|
|
|
- created(){
|
|
|
-
|
|
|
-this.getlist()
|
|
|
-},
|
|
|
+ created() {
|
|
|
+ this.getlist();
|
|
|
+ },
|
|
|
|
|
|
- methods:{
|
|
|
- // 获取列表
|
|
|
- getlist() {
|
|
|
- console.log(1);
|
|
|
- getTaxList().then((res) => {
|
|
|
+ methods: {
|
|
|
+ // 获取列表
|
|
|
+ async getlist() {
|
|
|
+ let form = {
|
|
|
+ cookie: await this.getCookie(),
|
|
|
+ };
|
|
|
+ getTaxList(form).then((res) => {
|
|
|
this.$loading.hide();
|
|
|
if (res.code == 200) {
|
|
|
- console.log(res);
|
|
|
- this.data=res.data
|
|
|
+ this.data = res.data;
|
|
|
} else {
|
|
|
this.$msgbox({
|
|
|
title: "提示",
|
|
@@ -43,13 +49,41 @@ this.getlist()
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- next(e){
|
|
|
- console.log(e);
|
|
|
- sessionStorage.setItem("satb",JSON.stringify(e))
|
|
|
- this.$emit("update:nowStep", 2);
|
|
|
- this.$emit("update:nowPage", "wc");
|
|
|
- }
|
|
|
- }
|
|
|
+ getCookie() {
|
|
|
+ return new Promise((resolve, reject) => {
|
|
|
+ let form = {};
|
|
|
+ form.namespace = "ServiceApp.service";
|
|
|
+ form.serviceId = "FileService";
|
|
|
+ form.funcId = "ReadIni";
|
|
|
+ form.xlh = "123456";
|
|
|
+ form.data = {
|
|
|
+ Section: "init",
|
|
|
+ Key: "zjwzCookies",
|
|
|
+ NoText: "",
|
|
|
+ iniFilePath: "C:\\smzc\\config.ini",
|
|
|
+ };
|
|
|
+ debug(JSON.stringify(form)).then((res) => {
|
|
|
+ if (res.data) {
|
|
|
+ if (res.data.data == "" || res.data.data == undefined) {
|
|
|
+ this.$msgbox({
|
|
|
+ title: "提示",
|
|
|
+ content: "获取 cookie 失败",
|
|
|
+ type: "error",
|
|
|
+ showCansole: false,
|
|
|
+ }).then(() => {});
|
|
|
+ reject("获取 cookie 失败");
|
|
|
+ } else {
|
|
|
+ resolve(res.data.data);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
+ },
|
|
|
+ next(e) {
|
|
|
+ window.location.href = e.url;
|
|
|
+ var a = callbackObjAsync.showBackExit();
|
|
|
+ },
|
|
|
+ },
|
|
|
};
|
|
|
</script>
|
|
|
|
|
@@ -57,11 +91,10 @@ this.getlist()
|
|
|
@media (min-width: 1800px) {
|
|
|
.qywszm-box {
|
|
|
.box {
|
|
|
- margin-top: -50px;
|
|
|
+ margin-top: -20px;
|
|
|
width: 100%;
|
|
|
height: 110%;
|
|
|
overflow: auto;
|
|
|
- // background-color: aqua;
|
|
|
.list {
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
@@ -95,7 +128,7 @@ this.getlist()
|
|
|
@media (max-width: 1800px) {
|
|
|
.qywszm-box {
|
|
|
.box {
|
|
|
- margin-top: -50px;
|
|
|
+ margin-top: -20px;
|
|
|
width: 100%;
|
|
|
height: 110%;
|
|
|
overflow: auto;
|
|
@@ -144,4 +177,4 @@ this.getlist()
|
|
|
::-webkit-scrollbar {
|
|
|
width: 10px;
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|