Commit f8c60b9f by liaoxing

infcld修改

parent f0c31205
...@@ -51,14 +51,14 @@ export default { ...@@ -51,14 +51,14 @@ export default {
}; };
}, },
methods: {}, methods: {},
created: async function () {} created: async function () {},
// methods: { // methods: {
// myTabClick(tab) { // myTabClick(tab) {
// this.tabClick(tab); // this.tabClick(tab);
// /** // /**
// * do it yourself // * do it yourself
// **/ // **/
// }, // },
// }, // },
// created: async function () { // created: async function () {
// console.log("进入infccd交易"); // console.log("进入infccd交易");
......
...@@ -26,7 +26,6 @@ export default { ...@@ -26,7 +26,6 @@ export default {
if (rtnmsg.respCode == SUCCESS) { if (rtnmsg.respCode == SUCCESS) {
this.stmData.data = []; this.stmData.data = [];
this.stmData.data = rtnmsg.data.list; this.stmData.data = rtnmsg.data.list;
// debugger
this.pagination.total = rtnmsg.data.total; this.pagination.total = rtnmsg.data.total;
} else { } else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
......
...@@ -14,13 +14,9 @@ ...@@ -14,13 +14,9 @@
</div> </div>
</template> </template>
<script> <script>
import Api from "~/service/Api" import CodeTable from "~/config/CodeTable";
import CodeTable from "~/config/CodeTable"
import Infcld from "~/model/Infcld" import Infcld from "~/model/Infcld"
import commonProcess from "~/mixin/commonProcess" import event from "../event"
import Check from "~/model/Infcld/Check"
import Default from "~/model/Infcld/Default"
import Pattern from "~/model/Infcld/Pattern"
import Infsea from "./Infsea" import Infsea from "./Infsea"
...@@ -34,19 +30,15 @@ export default { ...@@ -34,19 +30,15 @@ export default {
root: this root: this
} }
}, },
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理 mixins: [event], // 里面包含了Default、Check等的公共处理
data() { data() {
return { return {
tabVal: "infsea", tabVal: "infsea",
trnName: "infcld", trnName: "infcld",
model: new Infcld().data, model: new Infcld().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null, rules: null,
showPanel: false,
codes: { codes: {
...CodeTable ...CodeTable,
}, },
} }
}, },
...@@ -55,16 +47,16 @@ export default { ...@@ -55,16 +47,16 @@ export default {
} }
}, },
created: async function () { created: async function () {
console.log("进入infcld交易"); // console.log("进入infcld交易");
let rtnmsg = await this.init({}) // let rtnmsg = await this.init({})
if (rtnmsg.respCode == SUCCESS) { // if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑 // //TODO 处理数据逻辑
this.updateModel(rtnmsg.data); // this.updateModel(rtnmsg.data);
} // }
else { // else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); // this.$notify.error({ title: '错误', message: '服务请求失败!' });
} // }
} }
} }
</script> </script>
......
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