Commit baa6ff76 by 米嘉伟

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

parents 197d828f 28d46b91
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2021-09-07 09:58:13 * @Date: 2021-09-07 09:58:13
* @LastEditTime: 2021-11-29 13:42:22 * @LastEditTime: 2021-11-30 11:11:01
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @FilePath: \指纹系统\founder_vue\src\App.vue * @FilePath: \指纹系统\founder_vue\src\App.vue
...@@ -14,7 +14,17 @@ ...@@ -14,7 +14,17 @@
<script> <script>
import zoom from "./utils/autosize"; import zoom from "./utils/autosize";
export default {}; export default {
created() {
var lett = this;
document.onkeydown = function (e) {
var key = window.event.keyCode;
if (key == 13) {
lett.$bus.emit("enter");
}
};
},
};
</script> </script>
<style lang="scss"> <style lang="scss">
......
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2021-11-15 14:15:58 * @Date: 2021-11-15 14:15:58
* @LastEditTime: 2021-11-26 14:05:08 * @LastEditTime: 2021-11-30 13:45:59
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: \founder_vue\src\components\confrim.vue * @FilePath: \founder_vue\src\components\confrim.vue
...@@ -72,6 +72,9 @@ export default { ...@@ -72,6 +72,9 @@ export default {
})); }));
} }
}, },
offOption() {
this.$refs.cascader.dropDownVisible = false;
},
}, },
mounted() { mounted() {
let self = this; let self = this;
......
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2021-11-25 10:15:01 * @Date: 2021-11-25 10:15:01
* @LastEditTime: 2021-11-29 14:17:01 * @LastEditTime: 2021-11-30 13:44:55
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: \founder_vue\src\components\SelectCode.vue * @FilePath: \founder_vue\src\components\SelectCode.vue
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
<el-select <el-select
v-model="newForm[id]" v-model="newForm[id]"
filterable filterable
ref="select"
:class="{ multiple: multiple }" :class="{ multiple: multiple }"
popper-class="popperClass" popper-class="popperClass"
:multiple="multiple" :multiple="multiple"
...@@ -103,6 +104,9 @@ export default { ...@@ -103,6 +104,9 @@ export default {
} }
}); });
}, },
offOption() {
this.$refs.select.blur();
},
}, },
mounted() { mounted() {
this.getOptions(); this.getOptions();
......
/* /*
* @Author: your name * @Author: your name
* @Date: 2021-09-07 09:57:48 * @Date: 2021-09-07 09:57:48
* @LastEditTime: 2021-11-30 09:16:35 * @LastEditTime: 2021-11-30 13:24:54
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @FilePath: \指纹系统\founder_vue\src\plugins\axios.js * @FilePath: \指纹系统\founder_vue\src\plugins\axios.js
...@@ -76,7 +76,6 @@ _axios.interceptors.request.use( ...@@ -76,7 +76,6 @@ _axios.interceptors.request.use(
// Add a response interceptor // Add a response interceptor
_axios.interceptors.response.use( _axios.interceptors.response.use(
function (response) { function (response) {
// console.log(response)
if (response.data.code == 401) { if (response.data.code == 401) {
if (resTimer) clearTimeout(resTimer) if (resTimer) clearTimeout(resTimer)
resTimer = setTimeout(() => { resTimer = setTimeout(() => {
...@@ -88,7 +87,7 @@ _axios.interceptors.response.use( ...@@ -88,7 +87,7 @@ _axios.interceptors.response.use(
router.replace("/Login"); router.replace("/Login");
}).catch(() => { }).catch(() => {
}); });
}, 200); }, 500);
} }
if (response.config.loading !== false) { if (response.config.loading !== false) {
hideLoading(response.config.loadingTarget); hideLoading(response.config.loadingTarget);
......
...@@ -331,25 +331,6 @@ ...@@ -331,25 +331,6 @@
v-model="editFormParams.describe" v-model="editFormParams.describe"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item class="info-item" label="加入组用户:" prop="userId">
<SelectCode
width="12.75"
:form="editFormParams"
id="userId"
codeUrl="/security/user-groups/userGroupMenu"
multiple
></SelectCode>
</el-form-item>
<el-form-item class="info-item" label="加入组角色:">
<SelectCode
width="12.75"
:form="editFormParams"
id="roleId"
codeUrl="/security/roles/roleMenu"
multiple
></SelectCode>
</el-form-item>
<el-form-item class="info-item" label="启用状态:" prop="status"> <el-form-item class="info-item" label="启用状态:" prop="status">
<el-radio-group class="radio-info" v-model="editFormParams.status"> <el-radio-group class="radio-info" v-model="editFormParams.status">
<el-radio :label="1" class="qiyong">启用</el-radio> <el-radio :label="1" class="qiyong">启用</el-radio>
...@@ -633,7 +614,7 @@ export default { ...@@ -633,7 +614,7 @@ export default {
}; };
// 用户名ID // 用户名ID
var validateUserId = (rule, value, callback) => { var validateUserId = (rule, value, callback) => {
if (value === "") { if (value === "" || value.length == 0) {
callback(new Error("请选择加入用户组的用户!")); callback(new Error("请选择加入用户组的用户!"));
} else { } else {
callback(); callback();
...@@ -723,7 +704,7 @@ export default { ...@@ -723,7 +704,7 @@ export default {
{ validator: validateGroupname, trigger: "blur", required: true }, { validator: validateGroupname, trigger: "blur", required: true },
], //组名称 ], //组名称
userId: [ userId: [
{ validator: validateUserId, trigger: "blur", required: true }, { validator: validateUserId, trigger: "change", required: true },
], // 用户名ID ], // 用户名ID
roleId: [ roleId: [
{ validator: validateRoleId, trigger: "blur", required: true }, { validator: validateRoleId, trigger: "blur", required: true },
...@@ -993,8 +974,17 @@ export default { ...@@ -993,8 +974,17 @@ export default {
submitForm(formName) { submitForm(formName) {
this.$refs.addFormParams.validate((valid) => { this.$refs.addFormParams.validate((valid) => {
if (valid) { if (valid) {
let params = {};
for (let key in this.addFormParams) {
if (key == "roleId" || key == "userId") {
params[key] =
this.addFormParams[key] && this.addFormParams[key].join(",");
} else {
params[key] = this.addFormParams[key];
}
}
this.$axios this.$axios
.post("/security/user-groups", this.addFormParams) .post("/security/user-groups", params)
.then((res) => { .then((res) => {
if (res.data.code == 201) { if (res.data.code == 201) {
setTimeout(() => { setTimeout(() => {
...@@ -1024,9 +1014,16 @@ export default { ...@@ -1024,9 +1014,16 @@ export default {
this.$refs.editFormParams.validate((valid) => { this.$refs.editFormParams.validate((valid) => {
//console.info(valid); //console.info(valid);
if (valid) { if (valid) {
this.$axios let params = {};
.put("/security/user-groups", this.editFormParams) for (let key in this.editFormParams) {
.then((res) => { if (key == "roleId" || key == "userId") {
params[key] =
this.editFormParams[key] && this.editFormParams[key].join(",");
} else {
params[key] = this.editFormParams[key];
}
}
this.$axios.put("/security/user-groups", params).then((res) => {
if (res.data.code == 200) { if (res.data.code == 200) {
setTimeout(() => { setTimeout(() => {
this.$message.success("修改成功"); this.$message.success("修改成功");
...@@ -1072,8 +1069,22 @@ export default { ...@@ -1072,8 +1069,22 @@ export default {
}); });
}, },
}, },
activated() {
this.$bus.on("enter", () => {
this.search();
});
},
deactivated() {
this.$bus.off("enter");
},
beforeDestroy() {
this.$bus.off("enter");
},
mounted() { mounted() {
this.search(); this.search();
this.$bus.on("enter", () => {
this.search();
});
this.$nextTick(() => { this.$nextTick(() => {
document.body.appendChild(this.$refs.isShowEditGroupDialog); document.body.appendChild(this.$refs.isShowEditGroupDialog);
document.body.appendChild(this.$refs.isShowAddUserDialog); document.body.appendChild(this.$refs.isShowAddUserDialog);
...@@ -1126,6 +1137,12 @@ export default { ...@@ -1126,6 +1137,12 @@ export default {
width: 100% !important; width: 100% !important;
} }
} }
/deep/ .is-indeterminate {
.el-checkbox__inner {
background-color: #055fe7;
border-color: #055fe7;
}
}
</style> </style>
<style scoped lang="scss"> <style scoped lang="scss">
.delSelection /deep/ .el-table-column--selection .cell { .delSelection /deep/ .el-table-column--selection .cell {
......
...@@ -792,7 +792,29 @@ export default { ...@@ -792,7 +792,29 @@ export default {
.catch((failResponse) => {}); .catch((failResponse) => {});
}, },
}, },
activated() {
this.$bus.on("enter", () => {
if (this.isUser) {
this.searchUser();
} else {
this.searchGroup();
}
});
},
deactivated() {
this.$bus.off("enter");
},
beforeDestroy() {
this.$bus.off("enter");
},
mounted() { mounted() {
this.$bus.on("enter", () => {
if (this.isUser) {
this.searchUser();
} else {
this.searchGroup();
}
});
this.isUser = true; this.isUser = true;
if (this.isUser) { if (this.isUser) {
this.searchUser(); this.searchUser();
......
...@@ -740,11 +740,20 @@ export default { ...@@ -740,11 +740,20 @@ export default {
// 新增 // 新增
submitForm(formName) { submitForm(formName) {
//console.log(this.addFormParams, 22222222222); //console.log(this.addFormParams, 22222222222);
let params = {};
for (let key in this.addFormParams) {
if (key == "roleId" || key == "userGroupId") {
params[key] =
this.addFormParams[key] && this.addFormParams[key].join(",");
} else {
params[key] = this.addFormParams[key];
}
}
this.$refs.addFormParams.validate((valid) => { this.$refs.addFormParams.validate((valid) => {
//console.log(valid); //console.log(valid);
if (valid) { if (valid) {
this.$axios this.$axios
.post("/security/users", this.addFormParams) .post("/security/users", params)
.then((res) => { .then((res) => {
if (res.data.code == 201) { if (res.data.code == 201) {
setTimeout(() => { setTimeout(() => {
...@@ -998,8 +1007,22 @@ export default { ...@@ -998,8 +1007,22 @@ export default {
this.search(); this.search();
}, },
}, },
activated() {
this.$bus.on("enter", () => {
this.search();
});
},
deactivated() {
this.$bus.off("enter");
},
beforeDestroy() {
this.$bus.off("enter");
},
mounted() { mounted() {
this.search(); this.search();
this.$bus.on("enter", () => {
this.search();
});
this.$nextTick(() => { this.$nextTick(() => {
document.body.appendChild(this.$refs.addUserDialog); document.body.appendChild(this.$refs.addUserDialog);
document.body.appendChild(this.$refs.isShowEditUserDialog); document.body.appendChild(this.$refs.isShowEditUserDialog);
...@@ -1109,7 +1132,12 @@ const data1 = [ ...@@ -1109,7 +1132,12 @@ const data1 = [
.info { .info {
margin-top: 0px !important; margin-top: 0px !important;
} }
/deep/ .is-indeterminate {
.el-checkbox__inner {
background-color: #055fe7;
border-color: #055fe7;
}
}
@import "scss/user"; @import "scss/user";
@import "./scss/dialog_table"; @import "./scss/dialog_table";
</style> </style>
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
</div> </div>
</div> </div>
<div class="save"> <div class="save">
<div @click="redact" class="editText"> <div @click="redact" class="editText" v-if="editBoo">
<i class="el-icon-edit"></i> <i class="el-icon-edit"></i>
<span>编辑</span> <span>编辑</span>
</div> </div>
...@@ -428,6 +428,7 @@ export default { ...@@ -428,6 +428,7 @@ export default {
userPermissions: [], //用户权限 userPermissions: [], //用户权限
countArr: [], //三个权限的总和 countArr: [], //三个权限的总和
checkMap: {}, //判断层叠以及是否选中 checkMap: {}, //判断层叠以及是否选中
editBoo: false
}; };
}, },
methods: { methods: {
...@@ -446,6 +447,7 @@ export default { ...@@ -446,6 +447,7 @@ export default {
}, },
// 保存 // 保存
save() { save() {
this.editBoo = true
if (this.isSave) { if (this.isSave) {
return; return;
} }
......
...@@ -13,8 +13,15 @@ ...@@ -13,8 +13,15 @@
} }
} }
} }
.groupEditDialog /deep/{
height: 20rem !important;
width: 39.6rem !important;
.el-form-item__label{
width: 6rem!important;
}
}
.el-checkbox /deep/ { .el-checkbox /deep/ {
.el-checkbox__label{ .el-checkbox__label {
color: #666666 !important; color: #666666 !important;
} }
.is-checked { .is-checked {
......
...@@ -34,10 +34,10 @@ ...@@ -34,10 +34,10 @@
</el-select> </el-select>
</div> </div>
<div class="display_style"> <div class="display_style">
<span>查询ID:</span> <span>任务号/查询ID:</span>
<el-input <el-input
class="el_input" class="el_input"
placeholder="请输入查询ID" placeholder="请输入任务号/查询ID"
v-model="reqParam.contrastCustomSearchReq.qqid" v-model="reqParam.contrastCustomSearchReq.qqid"
></el-input> ></el-input>
</div> </div>
...@@ -276,7 +276,7 @@ ...@@ -276,7 +276,7 @@
height height
width="auto" width="auto"
></el-table-column> ></el-table-column>
<el-table-column prop="" label="查询ID" :width="cxyrdWidth1"> <el-table-column prop="" label="任务号/查询ID" :width="cxyrdWidth1">
<template slot-scope="scope"> <template slot-scope="scope">
<svg-icon <svg-icon
style=" style="
...@@ -594,7 +594,6 @@ export default { ...@@ -594,7 +594,6 @@ export default {
// //console.log(item); // //console.log(item);
self.$set(item, "width", (item.width * w2) / w1); self.$set(item, "width", (item.width * w2) / w1);
}); });
//console.log(content);
}, },
watch: { watch: {
selectBoo: { selectBoo: {
...@@ -1040,6 +1039,7 @@ export default { ...@@ -1040,6 +1039,7 @@ export default {
}, },
// 自定义展示列 多选框 // 自定义展示列 多选框
changeCheckbox() { changeCheckbox() {
this.tableKey++;
// //console.info("默认", this.defaultTableProps); // //console.info("默认", this.defaultTableProps);
// //console.info("table", this.tableProps); // //console.info("table", this.tableProps);
// //console.info("选中", this.checkedProps); // //console.info("选中", this.checkedProps);
...@@ -1153,7 +1153,21 @@ export default { ...@@ -1153,7 +1153,21 @@ export default {
//console.log(this.selectionData); //console.log(this.selectionData);
}, },
}, },
activated() {
this.$bus.on("enter", () => {
this.search();
});
},
deactivated() {
this.$bus.off("enter");
},
beforeDestroy() {
this.$bus.off("enter");
},
mounted() { mounted() {
this.$bus.on("enter", () => {
this.search();
});
//console.log(this.$moment, 222222222222); //console.log(this.$moment, 222222222222);
// //console.log(window.innerHeight); // //console.log(window.innerHeight);
// //console.log(window.innerWidth); // //console.log(window.innerWidth);
...@@ -1676,6 +1690,10 @@ b { ...@@ -1676,6 +1690,10 @@ b {
</style> </style>
<style lang="scss"> <style lang="scss">
.el-table__expand-icon { .el-table__expand-icon {
.el-icon-arrow-right {
cursor: pointer !important;
}
cursor: pointer !important;
position: absolute; position: absolute;
right: 45px; right: 45px;
cursor: pointer; cursor: pointer;
......
...@@ -131,12 +131,15 @@ export default { ...@@ -131,12 +131,15 @@ export default {
() => { () => {
setTimeout(() => { setTimeout(() => {
this.loginShow = true; this.loginShow = true;
}, 10); }, 50);
} }
); );
}, },
}, },
created() {}, created() {},
beforeDestroy() {
self.player.dispose();
},
mounted() { mounted() {
let self = this; let self = this;
this.loginType.accountStatus = true; this.loginType.accountStatus = true;
......
/* /*
* @Author: your name * @Author: your name
* @Date: 2021-09-07 09:57:48 * @Date: 2021-09-07 09:57:48
* @LastEditTime: 2021-11-30 09:37:40 * @LastEditTime: 2021-11-30 13:52:04
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @FilePath: \指纹系统\founder_vue\vue.config.js * @FilePath: \指纹系统\founder_vue\vue.config.js
...@@ -107,7 +107,6 @@ module.exports = { ...@@ -107,7 +107,6 @@ module.exports = {
} }
}, },
"/login": { "/login": {
// target: "http://192.168.128.108:8764/", // 登录
target: "http://www.meetfood.cn:2390/", // 登录 target: "http://www.meetfood.cn:2390/", // 登录
ws: true, ws: true,
changeOrigin: true, changeOrigin: true,
......
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