Commit 592c83b9 by chenqiang

页面样式全局修改;

网上社区子系统;
统计视图子系统界面开发
parent 75b94ce4
import axios from "axios";
// import { getToken } from "./auth.js";
import { Message,MessageBox } from "element-ui";
// import store from "@/store";
// import router from "@/router";
import qs from "qs";
axios.defaults.timeout = 0;
......@@ -22,7 +24,17 @@ down.defaults.responseType = "arraybuffer";
// request 请求拦截器
axios.interceptors.request.use(
config => {
config.headers["Content-Type"] = "application/x-www-form-urlencoded";
// config.headers["Content-Type"] = "application/x-www-form-urlencoded";
config.headers["Content-Type"] = "application/json";
// config.headers['Content-Type'] = 'multipart/form-data';
// 请求前进行拦截, 验证是否已经登录等
// const token = getToken();
// if (token) {
// if (config.url.indexOf("/login") === -1) {
// config.headers["Authorization"] = token;
// }
// }
return config;
},
error => {
......@@ -107,6 +119,11 @@ export function get(url, params) {
})
.then(res => {
resolve(res.data);
// if(res.code =='200' ||res.code == '201'){
// resolve(res.data);
// }else {
// this.$message.error(res.message);
// }
})
.catch(err => {
reject(err.data);
......@@ -126,6 +143,16 @@ export function post(url, params) {
.post(url, qs.stringify(params))
.then(response => {
resolve(response);
// var urlIp = window.location.host.substring(
// 0,
// window.location.host.length - 5
// );
// var logs = {
// ip: urlIp,
// request: url,
// params: params
// };
// store.commit("user/SET_Logs", logs);
})
.catch(err => {
reject(err.data);
......
......@@ -17,8 +17,9 @@
.tjstzxt_top_one {
height: 450px;
padding: 10px 20px;
margin: 20px 20px;
background-color: #ccc;
}
.tj_wrap{height:calc(100% - 13px);position: relative;top:-37px;}
}
......@@ -286,10 +286,11 @@ export default {
dialogFormVisible: false,
// 弹窗表单
formData2: {
bt: '',
tgbt: '',
fbsj: '',
sffb: '',
fblb: ''
fblb: '',
tgnr: ''
},
propQueryField2: [
{
......@@ -362,6 +363,7 @@ export default {
},
// 弹出框显现后的回调
eldialingShow() {
debugger
let self = this
self.editor = null
const item = document.querySelector('#editor')
......@@ -400,7 +402,9 @@ export default {
this.dialogFormVisible = false
},
saveDialog() {
debugger
let self = this
console.log(self.formData2)
self.$refs['DialogForm'].validate(valid => {
if (valid) {
if (self.title == '发布通告') {
......
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