diff --git a/.env.development b/.env.development index 3c9afa97..553c35e6 100644 --- a/.env.development +++ b/.env.development @@ -7,8 +7,9 @@ VUE_APP_TITLE = '曲阳金隅安全智能管控平台' # 接口地址 #VUE_APP_API_BASEURL = http://1.203.161.103:2800/api #VUE_APP_WS_API = 'ws://localhost:8000' -VUE_APP_API_BASEURL = http://222.222.144.147:6013/api -#VUE_APP_API_BASEURL = http://127.0.0.1:8000/api +#VUE_APP_API_BASEURL = http://222.222.144.147:6013/api +#VUE_APP_API_BASEURL = http://10.99.5.79:20309/api +VUE_APP_API_BASEURL = http://127.0.0.1:8000/api #VUE_APP_BASEURL = http://127.0.0.1:8000 diff --git a/src/api/model/hrm.js b/src/api/model/hrm.js index a879fc45..22173ae9 100644 --- a/src/api/model/hrm.js +++ b/src/api/model/hrm.js @@ -99,5 +99,14 @@ export default { ); } }, + export_excel: { + name: "导出", + req: async function(data){ + return await http.get( + `${config.API_URL}/hrm/clock_record/export_excel/`, + data + ); + } + } } } diff --git a/src/config/route.js b/src/config/route.js index 0755f941..ed47ddcb 100644 --- a/src/config/route.js +++ b/src/config/route.js @@ -312,7 +312,7 @@ const routes = [ "name": "remployee", "path": "/rpm/remployee", "meta": { - "title": "我的人员", + "title": "人员列表", "icon": "el-icon-user", "perms": ["remployee"] }, @@ -322,7 +322,7 @@ const routes = [ "name": "rcertificate", "path": "/rpm/rcertificate", "meta": { - "title": "我的证书", + "title": "人员证书", "icon": "el-icon-postcard", "perms": ["rcertificate"] }, @@ -332,7 +332,7 @@ const routes = [ "name": "rfile", "path": "/rpm/rfile", "meta": { - "title": "我的资料", + "title": "企业资料", "icon": "el-icon-shopping-bag", "perms": ["rfile"] }, diff --git a/src/utils/request.js b/src/utils/request.js index ec3efde0..9dab396f 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -36,8 +36,8 @@ axios.interceptors.response.use( if (error.response) { if (error.response.status == 401) { if(error.response.data.err_code == 'no_active_account'){ - ElNotification.error({ - title: '请求错误', + ElNotification.warning({ + title: '请求失败', message: "账户密码错误或已禁用" }); }else{ @@ -52,8 +52,8 @@ axios.interceptors.response.use( } } else { - ElNotification.error({ - title: '请求错误', + ElNotification.warning({ + title: '请求失败', message: error.response.data.err_msg || `Status:${error.response.status},未知错误!` }); } diff --git a/src/views/hrm/certificate.vue b/src/views/hrm/certificate.vue index 8b9c92ac..e9a47949 100644 --- a/src/views/hrm/certificate.vue +++ b/src/views/hrm/certificate.vue @@ -254,6 +254,7 @@ export default { }, getEmployee(data) { // 子组件调用父组件的方法并传参 + console.log(data) this.form.employee=data.id; this.form.employee_name=data.name }, @@ -270,7 +271,6 @@ export default { // }, //人员证书创建 submitcert() { - this.form.employee = this.$route.query.id; this.$refs.dialogForm.validate((valid) => { if (this.form.id == "") { this.$API.hrm.certificate.create diff --git a/src/views/hrm/clock_record.vue b/src/views/hrm/clock_record.vue index 9f5f2ac3..d857b504 100644 --- a/src/views/hrm/clock_record.vue +++ b/src/views/hrm/clock_record.vue @@ -2,23 +2,20 @@
+ + v-model="monthV" + type="month" + style="margin-left:4px" + placeholder="选择月份" + @change="handleQuery" + />
@@ -39,11 +42,21 @@ stripe > + + + + + + @@ -54,7 +67,14 @@ @@ -63,39 +83,66 @@
diff --git a/src/views/rpm/remployee.vue b/src/views/rpm/remployee.vue index f406de11..ae9f9ec1 100644 --- a/src/views/rpm/remployee.vue +++ b/src/views/rpm/remployee.vue @@ -2,7 +2,15 @@
- + + + +
@@ -88,6 +96,7 @@ export default { username: "", }, apiObj: this.$API.rpm.remployee.list, + rpartyOptions:[], query: {}, selection: [], search: { @@ -95,7 +104,15 @@ export default { }, }; }, + mounted(){ + this.getRpartyOptions(); + }, methods: { + getRpartyOptions(){ + this.$API.rpm.rparty.list.req({page:0}).then(res=>{ + this.rpartyOptions = res + }) + }, //添加 add() { this.dialog.save = true; diff --git a/src/views/sys/role.vue b/src/views/sys/role.vue index bcbfb86c..d13a5071 100644 --- a/src/views/sys/role.vue +++ b/src/views/sys/role.vue @@ -52,10 +52,10 @@ node-key="id" show-checkbox :check-strictly="checkStrictly" + :default-expand-all="true" :data="menu.list" :props="menu.props" @check="handleChange" - @check-change="checkChange" > @@ -126,17 +126,17 @@ handleChange(item, check) { this.menu.checked = check.checkedKeys; }, - checkChange(item, check,node) { - let that = this; - if(check){//选中 - if(item.parent!==null){ - if(that.menu.checked.indexOf(item.parent)>-1){}else{ - that.menu.checked.push(item.parent) - } - that.$refs.menu.setChecked(item.parent,true,false); - } - } - }, + // checkChange(item, check,node) { + // let that = this; + // if(check){//选中 + // if(item.parent!==null){ + // if(that.menu.checked.indexOf(item.parent)>-1){}else{ + // that.menu.checked.push(item.parent) + // } + // that.$refs.menu.setChecked(item.parent,true,false); + // } + // } + // }, //加载树数据 async getGroup() { let res = await this.$API.system.permission.list.req({page: 0}); diff --git a/src/views/vm/visit.vue b/src/views/vm/visit.vue index c19f04f5..52d8ed0d 100644 --- a/src/views/vm/visit.vue +++ b/src/views/vm/visit.vue @@ -171,7 +171,7 @@ 删除 @@ -284,7 +284,7 @@ export default { .req(row.id) .then((res) => { this.$message.success("删除成功"); - + this.$refs.table.refresh(); return res; }) .catch((err) => {