Commit d6b388ba authored by 吴卿华's avatar 吴卿华

Merge branch 'master' of D:\项目\泽宏精效管理项目\precision-effect with conflicts.

parent 065aa0a1
...@@ -25,7 +25,7 @@ import java.util.Map; ...@@ -25,7 +25,7 @@ import java.util.Map;
/** /**
* 公告 信息操作处理 * 公告 信息操作处理
* *
* @author zehong * @author zehong
*/ */
@RestController @RestController
...@@ -41,6 +41,8 @@ public class SysNoticeController extends BaseController ...@@ -41,6 +41,8 @@ public class SysNoticeController extends BaseController
@Autowired @Autowired
private ISysUserService sysUserService; private ISysUserService sysUserService;
@Autowired
private TokenService tokenService;
/** /**
* 获取通知公告列表 * 获取通知公告列表
*/ */
...@@ -48,6 +50,9 @@ public class SysNoticeController extends BaseController ...@@ -48,6 +50,9 @@ public class SysNoticeController extends BaseController
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(SysNotice notice) public TableDataInfo list(SysNotice notice)
{ {
// 获取当前用户
SysUser user = tokenService.getLoginUser(ServletUtils.getRequest()).getUser();
notice.setUserId(user.getUserId());
startPage(); startPage();
List<SysNotice> list = noticeService.selectNoticeList(notice); List<SysNotice> list = noticeService.selectNoticeList(notice);
return getDataTable(list); return getDataTable(list);
......
...@@ -113,10 +113,10 @@ public class TBorrowingApplyForController extends BaseController ...@@ -113,10 +113,10 @@ public class TBorrowingApplyForController extends BaseController
* @param tBorrowingApplyFor * @param tBorrowingApplyFor
* @return * @return
*/ */
@GetMapping("/departmentBalance") @PostMapping("departmentBalance")
public int departmentBalance(TBorrowingApplyFor tBorrowingApplyFor){ public int departmentBalance(@RequestBody TBorrowingApplyFor tBorrowingApplyFor){
SysUser user = tokenService.getLoginUser(ServletUtils.getRequest()).getUser(); SysUser user = tokenService.getLoginUser(ServletUtils.getRequest()).getUser();
tBorrowingApplyFor.setApprovedUserId(user.getUserId()); tBorrowingApplyFor.setBorrowingDeptId(user.getDeptId());
/**查询部门余额是否足够*/ /**查询部门余额是否足够*/
int isSufficient = tBorrowingApplyForService.selectTacc(tBorrowingApplyFor); int isSufficient = tBorrowingApplyForService.selectTacc(tBorrowingApplyFor);
//0部门余额不足 1余额足够 //0部门余额不足 1余额足够
......
...@@ -9,13 +9,17 @@ spring: ...@@ -9,13 +9,17 @@ spring:
url: jdbc:mysql://36.148.23.59:33060/precision_effect_db?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 url: jdbc:mysql://36.148.23.59:33060/precision_effect_db?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: root username: root
password: zehong_/sjz!D password: zehong_/sjz!D
# master:
# url: jdbc:mysql://36.139.131.221:3808/precision_effect?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
# username: precision_effect
# password: zehong_/sjz!D
# 从库数据源 # 从库数据源
slave: slave:
# 从数据源开关/默认关闭 # 从数据源开关/默认关闭
enabled: false enabled: false
url: url:
username: username:
password: password:
# 初始连接数 # 初始连接数
initialSize: 5 initialSize: 5
# 最小连接池数量 # 最小连接池数量
...@@ -35,7 +39,7 @@ spring: ...@@ -35,7 +39,7 @@ spring:
testWhileIdle: true testWhileIdle: true
testOnBorrow: false testOnBorrow: false
testOnReturn: false testOnReturn: false
webStatFilter: webStatFilter:
enabled: true enabled: true
statViewServlet: statViewServlet:
enabled: true enabled: true
...@@ -58,13 +62,13 @@ spring: ...@@ -58,13 +62,13 @@ spring:
# redis 配置 # redis 配置
redis: redis:
# 地址 # 地址
host: 36.148.23.59 host: 36.139.131.221
# 端口,默认为6379 # 端口,默认为6379
port: 6379 port: 1203
# 数据库索引 # 数据库索引
database: 4 database: 4
# 密码 # 密码
password: 1qaz2wsx3edc password: kHy3CCY84jUsKTJC
# 连接超时时间 # 连接超时时间
timeout: 10s timeout: 10s
lettuce: lettuce:
...@@ -90,8 +94,8 @@ zehong: ...@@ -90,8 +94,8 @@ zehong:
# 实例演示开关 # 实例演示开关
demoEnabled: true demoEnabled: true
# 文件路径 示例( Windows配置D:/zehong/uploadPath,Linux配置 /home/zehong/uploadPath) # 文件路径 示例( Windows配置D:/zehong/uploadPath,Linux配置 /home/zehong/uploadPath)
profile: D:/zehong/uploadPath profile: /home/zehong/uploadPath
# 获取ip地址开关 # 获取ip地址开关
addressEnabled: false addressEnabled: false
# 验证码类型 math 数组计算 char 字符验证 # 验证码类型 math 数组计算 char 字符验证
captchaType: math captchaType: math
\ No newline at end of file
...@@ -13,9 +13,9 @@ spring: ...@@ -13,9 +13,9 @@ spring:
slave: slave:
# 从数据源开关/默认关闭 # 从数据源开关/默认关闭
enabled: false enabled: false
url: url:
username: username:
password: password:
# 初始连接数 # 初始连接数
initialSize: 5 initialSize: 5
# 最小连接池数量 # 最小连接池数量
...@@ -35,7 +35,7 @@ spring: ...@@ -35,7 +35,7 @@ spring:
testWhileIdle: true testWhileIdle: true
testOnBorrow: false testOnBorrow: false
testOnReturn: false testOnReturn: false
webStatFilter: webStatFilter:
enabled: true enabled: true
statViewServlet: statViewServlet:
enabled: true enabled: true
...@@ -90,8 +90,8 @@ zehong: ...@@ -90,8 +90,8 @@ zehong:
# 实例演示开关 # 实例演示开关
demoEnabled: true demoEnabled: true
# 文件路径 示例( Windows配置D:/zehong/uploadPath,Linux配置 /home/zehong/uploadPath) # 文件路径 示例( Windows配置D:/zehong/uploadPath,Linux配置 /home/zehong/uploadPath)
profile: D:/zehong/uploadPath profile: /home/zehong/uploadPath
# 获取ip地址开关 # 获取ip地址开关
addressEnabled: false addressEnabled: false
# 验证码类型 math 数组计算 char 字符验证 # 验证码类型 math 数组计算 char 字符验证
captchaType: math captchaType: math
\ No newline at end of file
...@@ -13,7 +13,7 @@ export function listFor(query) { ...@@ -13,7 +13,7 @@ export function listFor(query) {
export function getDepartmentBalance(data) { export function getDepartmentBalance(data) {
return request({ return request({
url: '/system/for/departmentBalance', url: '/system/for/departmentBalance',
method: 'get', method: 'post',
data: data data: data
}) })
} }
......
...@@ -107,6 +107,12 @@ ...@@ -107,6 +107,12 @@
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
<!-- <el-button-->
<!-- size="mini"-->
<!-- type="text"-->
<!-- icon="el-icon-edit"-->
<!-- @click="details(scope.row)"-->
<!-- >修改</el-button>-->
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
...@@ -795,6 +801,9 @@ export default { ...@@ -795,6 +801,9 @@ export default {
}); });
} else { } else {
this.form.approvalStatus=row;
console.log( this.form)
this.form.approvalStatus='1'
getDepartmentBalance(this.form).then(response => { getDepartmentBalance(this.form).then(response => {
if (response==2){ if (response==2){
this.$message.error('部门余额不足'); this.$message.error('部门余额不足');
......
...@@ -10,15 +10,15 @@ ...@@ -10,15 +10,15 @@
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="操作人员" prop="createBy"> <!-- <el-form-item label="操作人员" prop="createBy">-->
<el-input <!-- <el-input-->
v-model="queryParams.createBy" <!-- v-model="queryParams.createBy"-->
placeholder="请输入操作人员" <!-- placeholder="请输入操作人员"-->
clearable <!-- clearable-->
size="small" <!-- size="small"-->
@keyup.enter.native="handleQuery" <!-- @keyup.enter.native="handleQuery"-->
/> <!-- />-->
</el-form-item> <!-- </el-form-item>-->
<el-form-item label="类型" prop="noticeType"> <el-form-item label="类型" prop="noticeType">
<el-select v-model="queryParams.noticeType" placeholder="公告类型" clearable size="small"> <el-select v-model="queryParams.noticeType" placeholder="公告类型" clearable size="small">
<el-option <el-option
...@@ -80,6 +80,12 @@ ...@@ -80,6 +80,12 @@
prop="noticeTitle" prop="noticeTitle"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
/> />
<el-table-column
label="公告内容"
align="center"
prop="noticeContent"
:show-overflow-tooltip="true"
/>
<el-table-column <el-table-column
label="公告类型" label="公告类型"
align="center" align="center"
...@@ -94,30 +100,30 @@ ...@@ -94,30 +100,30 @@
:formatter="statusFormat" :formatter="statusFormat"
width="100" width="100"
/> />
<el-table-column label="创建者" align="center" prop="createBy" width="100" /> <!-- <el-table-column label="创建者" align="center" prop="createBy" width="100" />-->
<el-table-column label="创建时间" align="center" prop="createTime" width="100"> <el-table-column label="创建时间" align="center" prop="createTime" width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}</span> <span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <!-- <el-table-column label="操作" align="center" class-name="small-padding fixed-width">-->
<template slot-scope="scope"> <!-- <template slot-scope="scope">-->
<el-button <!-- <el-button-->
size="mini" <!-- size="mini"-->
type="text" <!-- type="text"-->
icon="el-icon-edit" <!-- icon="el-icon-edit"-->
@click="handleUpdate(scope.row)" <!-- @click="handleUpdate(scope.row)"-->
v-hasPermi="['system:notice:edit']" <!-- v-hasPermi="['system:notice:edit']"-->
>修改</el-button> <!-- >修改</el-button>-->
<el-button <!-- <el-button-->
size="mini" <!-- size="mini"-->
type="text" <!-- type="text"-->
icon="el-icon-delete" <!-- icon="el-icon-delete"-->
@click="handleDelete(scope.row)" <!-- @click="handleDelete(scope.row)"-->
v-hasPermi="['system:notice:remove']" <!-- v-hasPermi="['system:notice:remove']"-->
>删除</el-button> <!-- >删除</el-button>-->
</template> <!-- </template>-->
</el-table-column> <!-- </el-table-column>-->
</el-table> </el-table>
<pagination <pagination
...@@ -340,4 +346,4 @@ export default { ...@@ -340,4 +346,4 @@ export default {
} }
} }
}; };
</script> </script>
\ No newline at end of file
...@@ -35,6 +35,7 @@ module.exports = { ...@@ -35,6 +35,7 @@ module.exports = {
// detail: https://cli.vuejs.org/config/#devserver-proxy // detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: { [process.env.VUE_APP_BASE_API]: {
target: `http://localhost:8668/precisionEffect`, target: `http://localhost:8668/precisionEffect`,
//target: `http://36.139.131.221:8904/precisionEffect`,
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: '' ['^' + process.env.VUE_APP_BASE_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