Commit 1bd74a6e by 张超军

Merge branch 'dev_zwpt' of http://47.92.108.28/changchao/founder_vue into dev_zwpt

parents 7854483d 2a5f851c
...@@ -976,9 +976,6 @@ export default { ...@@ -976,9 +976,6 @@ export default {
position: absolute; position: absolute;
right: 0; right: 0;
} }
/deep/ .btn-next {
// margin-right: 120px;
}
} }
/deep/.el-table th { /deep/.el-table th {
background-color: #f6f8fa; background-color: #f6f8fa;
......
...@@ -886,9 +886,6 @@ const datas1 = [ ...@@ -886,9 +886,6 @@ const datas1 = [
position: absolute; position: absolute;
right: 0; right: 0;
} }
/deep/ .btn-next {
// margin-right: 120px;
}
} }
/deep/.el-table th { /deep/.el-table th {
background-color: #f6f8fa; background-color: #f6f8fa;
......
...@@ -450,7 +450,7 @@ export default { ...@@ -450,7 +450,7 @@ export default {
{ value: "-1", name: "无效", type: "querystates" }, { value: "-1", name: "无效", type: "querystates" },
{ value: "-2", name: "同步特征", type: "querystates" } { value: "-2", name: "同步特征", type: "querystates" }
], ],
expanded: false // 展开标志 expanded: false // 展开标志
// arr: [] // arr: []
}; };
}, },
...@@ -462,7 +462,7 @@ export default { ...@@ -462,7 +462,7 @@ export default {
); );
//挑选被选中的对象 //挑选被选中的对象
this.key = this.key + 1; //为了保证table 每次都会重渲,这样做体验感更好,如果不为table设置key值的话,用户一旦选中了复选框选项,就是在原来table基础上添加删除每一列,页面就有跳动的感觉,体验感不好 this.key = this.key + 1; //为了保证table 每次都会重渲,这样做体验感更好,如果不为table设置key值的话,用户一旦选中了复选框选项,就是在原来table基础上添加删除每一列,页面就有跳动的感觉,体验感不好
}, }
}, },
computed: { computed: {
// 计算总页数 // 计算总页数
...@@ -670,7 +670,7 @@ export default { ...@@ -670,7 +670,7 @@ export default {
// 展开或关闭行 // 展开或关闭行
hadnlExpandChange(row, expanded) { hadnlExpandChange(row, expanded) {
// 获取展开标志 // 获取展开标志
this.expanded = expanded this.expanded = expanded;
// 获取下标 // 获取下标
var i = this.list.findIndex(table => table.queryId === row.queryId); var i = this.list.findIndex(table => table.queryId === row.queryId);
// var i = this.tableData.findIndex(table => table.id === row.id); // var i = this.tableData.findIndex(table => table.id === row.id);
...@@ -679,7 +679,7 @@ export default { ...@@ -679,7 +679,7 @@ export default {
this.list[i] = { this.list[i] = {
qid: row.qid, qid: row.qid,
children: row.children, children: row.children,
queryId: row.queryId, queryId: row.queryId
}; };
this.$forceUpdate(); this.$forceUpdate();
console.info("展开时row数据", this.list[i]); console.info("展开时row数据", this.list[i]);
...@@ -806,11 +806,6 @@ export default { ...@@ -806,11 +806,6 @@ export default {
}, },
mounted() { mounted() {
this.search(); this.search();
// setTimeout(() => {
// [...document.querySelectorAll(".el-icon-arrow-right")].forEach(item => {
// item.classList = "el-icon-plus";
// });
// }, 200);
} }
}; };
// 用户ID 下拉的数据 // 用户ID 下拉的数据
...@@ -1417,7 +1412,7 @@ b { ...@@ -1417,7 +1412,7 @@ b {
height: 11px; height: 11px;
/* border: black 1px solid; */ /* border: black 1px solid; */
margin: 0; margin: 0;
background-image: url('../../assets/img/confirm/expend.png'); background-image: url("../../assets/img/confirm/expend.png");
background-position: center; background-position: center;
background-size: 11px; background-size: 11px;
background-repeat: no-repeat; background-repeat: no-repeat;
...@@ -1425,7 +1420,7 @@ b { ...@@ -1425,7 +1420,7 @@ b {
.el-table__expand-icon.el-table__expand-icon--expanded { .el-table__expand-icon.el-table__expand-icon--expanded {
width: 11px; width: 11px;
height: 11px; height: 11px;
background-image: url('../../assets/img/confirm/shrink.png'); background-image: url("../../assets/img/confirm/shrink.png");
background-position: center; background-position: center;
background-size: 11px; background-size: 11px;
background-repeat: no-repeat; background-repeat: no-repeat;
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
<source :src="barcgroundUrl" type="video/mp4" /> <source :src="barcgroundUrl" type="video/mp4" />
浏览器不支持 video 标签,建议升级浏览器。 浏览器不支持 video 标签,建议升级浏览器。
</video> </video>
<!-- todo 视频加载切换为图片加载 -->
<!-- 考虑视频加载失败 图片背景效果 --> <!-- 考虑视频加载失败 图片背景效果 -->
<div class="poster hidden" v-if="!vedioCanPlay"> <div class="poster hidden" v-if="!vedioCanPlay">
<img :style="fixStyle" :src="barcgroundImgUrl" alt="" /> <img :style="fixStyle" :src="barcgroundImgUrl" alt="" />
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
class="width100 margin_top25_bottom10" class="width100 margin_top25_bottom10"
type="text" type="text"
placeholder="请输入用户名" placeholder="请输入用户名"
v-model="userInfo.username" v-model="userInfo.userName"
> >
<i slot="prefix" style="display: flex;align-items: center;"> <i slot="prefix" style="display: flex;align-items: center;">
<img <img
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
<el-input <el-input
class=" width100 margin_top25_bottom10" class=" width100 margin_top25_bottom10"
placeholder="请输入密码" placeholder="请输入密码"
v-model="userInfo.password" v-model="userInfo.passWord"
> >
<i slot="prefix"> <i slot="prefix">
<img <img
...@@ -39,6 +39,7 @@ ...@@ -39,6 +39,7 @@
</template> </template>
<script> <script>
import qs from "qs";
export default { export default {
name: "AccountsLogin", name: "AccountsLogin",
props: ["loginType"], props: ["loginType"],
...@@ -58,21 +59,43 @@ export default { ...@@ -58,21 +59,43 @@ export default {
data() { data() {
return { return {
isShow: false, isShow: false,
userInfo: { username: "xxs", password: "123456" }, userInfo: { userName: "admin", passWord: "123456" },
usernameUrl: require("../../../assets/img/login/user.png"), usernameUrl: require("../../../assets/img/login/user.png"),
passwordUrl: require("../../../assets/img/login/password.png") passwordUrl: require("../../../assets/img/login/password.png")
}; };
}, },
methods: { methods: {
// 登录 // 登录
login() { login(userinfo) {
console.info(this.userInfo); console.info(this.userInfo);
// todo 登录请求 // todo 登录请求
if (this.userInfo.username && this.userInfo.password) { this.$axios
this.$router.push("/Home/Home"); .post("/login/myLoginForm?" + qs.stringify(userinfo))
} .then(res => {
console.info(res);
if (res.data.code === "200") {
this.$message.success(userinfo.userName + "登录成功!");
this.$router.push("/Home/Home");
}
});
// "/myLoginForm?userName=" +
// userinfo.userName +
// "&passWord=" +
// userinfo.passWord,
// qs.stringify(userinfo)
// , true, {
// headers: { "content-type": "application/x-www-form-urlencoded" }
// }
// )
// .then(res => {
// console.info(res);
// });
// if (this.userInfo.username && this.userInfo.password) {
// this.$router.push("/Home/Home");
// }
// this.$store // this.$store
// .dispatch("user/login", this.userInfo) // .dispatch("/myLoginForm", this.userInfo)
// .then(res => { // .then(res => {
// if (res.code >= 0) { // if (res.code >= 0) {
// this.$message({ // this.$message({
...@@ -92,7 +115,6 @@ export default { ...@@ -92,7 +115,6 @@ export default {
// this.$message.error(err.message); // this.$message.error(err.message);
// this.getCaptcha(); // this.getCaptcha();
// }); // });
// x;
} }
}, },
mounted() { mounted() {
......
...@@ -83,8 +83,9 @@ module.exports = { ...@@ -83,8 +83,9 @@ module.exports = {
"/api": { "/api": {
// target: "http://192.168.0.137:8080/", //统一的请求头部每次修改都要重启才会生效 http://39.99.224.27:8006/ // target: "http://192.168.0.137:8080/", //统一的请求头部每次修改都要重启才会生效 http://39.99.224.27:8006/
// target: "http://172.18.108.2:8099/", // 张 认定 // target: "http://172.18.108.2:8099/", // 张 认定
target: "http://192.168.128.118:8099", // 湖南-张 // target: "http://192.168.128.118:8099", // 湖南-张
// target: "http://192.168.128.104:8099", // 湖南-马 // target: "http://192.168.128.104:8099", // 湖南-马
target: "http://47.92.226.24:3004/", // 登录
// target: "http://172.18.116.73:8099/", //统一的请求头部每次修改都要重启才会生效 http://39.99.224.27:8006/ ma // target: "http://172.18.116.73:8099/", //统一的请求头部每次修改都要重启才会生效 http://39.99.224.27:8006/ ma
// target: "http://127.0.0.1:8099", // target: "http://127.0.0.1:8099",
ws: true, ws: true,
...@@ -92,6 +93,14 @@ module.exports = { ...@@ -92,6 +93,14 @@ module.exports = {
pathRewrite: { pathRewrite: {
"^/api": "/api" "^/api": "/api"
} }
},
"/login": {
target: "http://47.92.226.24:3004/", // 登录
ws: true,
changeOrigin: true,
pathRewrite: {
"^/login": ""
}
} }
// 阿里 // 阿里
// "/api": { // "/api": {
......
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