Merge branch 'develop' into 'FOTON'

Develop

See merge request LAWS/laws-system-front-FOTON!278
This commit is contained in:
王夏晖
2022-01-04 13:55:54 +08:00
9 changed files with 58 additions and 37 deletions
@@ -505,6 +505,8 @@ export default {
} }
this.lastYear = selYear this.lastYear = selYear
this.lastMonth = selMonth this.lastMonth = selMonth
// 获取日历变化的日期并显示
this.value = new Date(this.value.setDate(1))
this.value = new Date(this.value.setMonth(this.value.getMonth() - monthNum)) this.value = new Date(this.value.setMonth(this.value.getMonth() - monthNum))
this.value = new Date(this.value.setFullYear(this.value.getFullYear() - yearNum)) this.value = new Date(this.value.setFullYear(this.value.getFullYear() - yearNum))
}, },
@@ -222,6 +222,7 @@
:on-success="importFileSuccess" :on-success="importFileSuccess"
:on-remove="importFileRemove" :on-remove="importFileRemove"
:show-file-list="true" :show-file-list="true"
:file-list="form.modelList"
> >
<div style="padding: 20px 0"> <div style="padding: 20px 0">
<i class="el-icon-upload" style="color: #3399ff"></i> <i class="el-icon-upload" style="color: #3399ff"></i>
@@ -242,6 +243,7 @@
:on-success="importFileSuccess2" :on-success="importFileSuccess2"
:on-remove="importFileRemove2" :on-remove="importFileRemove2"
:show-file-list="true" :show-file-list="true"
:file-list="form.fjList"
> >
<div style="padding: 20px 0"> <div style="padding: 20px 0">
<i class="el-icon-upload" style="color: #3399ff"></i> <i class="el-icon-upload" style="color: #3399ff"></i>
@@ -224,6 +224,7 @@
:on-success="importFileSuccess" :on-success="importFileSuccess"
:on-remove="importFileRemove" :on-remove="importFileRemove"
:show-file-list="true" :show-file-list="true"
:file-list="form.fjList"
> >
<div style="padding: 20px 0"> <div style="padding: 20px 0">
<i class="el-icon-upload" style="color: #3399ff"></i> <i class="el-icon-upload" style="color: #3399ff"></i>
@@ -244,6 +245,7 @@
:on-success="importFileSuccess2" :on-success="importFileSuccess2"
:on-remove="importFileRemove2" :on-remove="importFileRemove2"
:show-file-list="true" :show-file-list="true"
:file-list="form.modelList"
> >
<div style="padding: 20px 0"> <div style="padding: 20px 0">
<i class="el-icon-upload" style="color: #3399ff"></i> <i class="el-icon-upload" style="color: #3399ff"></i>
@@ -176,7 +176,7 @@
:rows="3" :rows="3"
resize="none" resize="none"
placeholder="请输入意见" placeholder="请输入意见"
v-model="commentStep1"> v-model="commentInfo">
</el-input> </el-input>
</div> </div>
</el-collapse-item> </el-collapse-item>
@@ -354,6 +354,7 @@
:on-success="importFileSuccess" :on-success="importFileSuccess"
:on-remove="importFileRemove" :on-remove="importFileRemove"
:show-file-list="true" :show-file-list="true"
:file-list="form.modelList"
> >
<div style="padding: 20px 0"> <div style="padding: 20px 0">
<i class="el-icon-upload" style="color: #3399ff"></i> <i class="el-icon-upload" style="color: #3399ff"></i>
@@ -787,7 +788,7 @@ export default {
this.nodeList2 = this.roleForm.dockUserList.split(',') this.nodeList2 = this.roleForm.dockUserList.split(',')
} }
} else { } else {
this.drawerTitle2 = '选择技术委员会相关专委会主任/研究总院职能部门领导,技术管理中心主任' this.drawerTitle2 = '技术委员会相关专委会主任/研究总院职能部门领导,技术管理中心主任'
if (this.roleForm.directorUser.length > 0) { if (this.roleForm.directorUser.length > 0) {
this.nodeList2 = this.roleForm.directorUser.split(',') this.nodeList2 = this.roleForm.directorUser.split(',')
} }
@@ -363,6 +363,7 @@
:on-success="importFileSuccess" :on-success="importFileSuccess"
:on-remove="importFileRemove" :on-remove="importFileRemove"
:show-file-list="true" :show-file-list="true"
:file-list="form.modelList"
> >
<div style="padding: 20px 0"> <div style="padding: 20px 0">
<i class="el-icon-upload" style="color: #3399ff"></i> <i class="el-icon-upload" style="color: #3399ff"></i>
@@ -786,7 +787,7 @@ export default {
this.nodeList2 = this.roleForm.dockUserList.split(',') this.nodeList2 = this.roleForm.dockUserList.split(',')
} }
} else { } else {
this.drawerTitle2 = '选择技术委员会相关专委会主任/研究总院职能部门领导,技术管理中心主任' this.drawerTitle2 = '技术委员会相关专委会主任/研究总院职能部门领导,技术管理中心主任'
if (this.roleForm.directorUser.length > 0) { if (this.roleForm.directorUser.length > 0) {
this.nodeList2 = this.roleForm.directorUser.split(',') this.nodeList2 = this.roleForm.directorUser.split(',')
} }
@@ -903,35 +903,39 @@ export default {
standList.push(item); standList.push(item);
} }
}); });
this.listForm.breakdownList = standList; if(standList.length < 1){
this.listForm.prcCreateUser = this.$store.getters.userInfo.userId; this.$message.warning('请选择落实人')
this.listForm.applyUpdUserId = this.$store.getters.userInfo.userId; }else{
this.listForm.prcCreateUserName = this.$store.getters.userInfo.account; this.listForm.breakdownList = standList;
this.listForm.zrUserId = this.$store.getters.userInfo.userId; this.listForm.prcCreateUser = this.$store.getters.userInfo.userId;
this.listForm.commentText = this.commentText; this.listForm.applyUpdUserId = this.$store.getters.userInfo.userId;
this.listForm.approvalOpinion = ""; this.listForm.prcCreateUserName = this.$store.getters.userInfo.account;
this.listForm.signFlag = ""; this.listForm.zrUserId = this.$store.getters.userInfo.userId;
const json = JSON.stringify(this.listForm.breakdownList); this.listForm.commentText = this.commentText;
this.isSubmit = true; this.listForm.approvalOpinion = "";
this.$http.post("lawss/activiti/completeTask", { this.listForm.signFlag = "";
taskIds: this.taskIds, const json = JSON.stringify(this.listForm.breakdownList);
userId: this.userId, this.isSubmit = true;
json: json this.$http.post("lawss/activiti/completeTask", {
}, { taskIds: this.taskIds,
_this: this userId: this.userId,
}, res => { json: json
if (res.success) { }, {
this.$message.success(res.message); _this: this
this.$router.push("/processCenter"); }, res => {
} if (res.success) {
this.isSubmit = false; this.$message.success(res.message);
}, e => { this.$router.push("/processCenter");
}); }
this.isSubmit = false;
}, e => {
});
}
} }
}, },
drawerCheck(data) { drawerCheck(data) {
var getlist = this.$refs.tree.getCheckedNodes().concat(this.$refs.tree.getHalfCheckedNodes()); var getlist = this.$refs.tree.getCheckedNodes().concat(this.$refs.tree.getHalfCheckedNodes());
if (getlist.length == 1) { if (getlist.length === 1) {
this.roleRow = getlist[0]; this.roleRow = getlist[0];
} else { } else {
this.$refs.tree.setCheckedKeys([data.id]); this.$refs.tree.setCheckedKeys([data.id]);
@@ -222,7 +222,7 @@
label="我司在工作组排名顺序" label="我司在工作组排名顺序"
prop="deptOrder" prop="deptOrder"
align="center" align="center"
width="150"> width="170">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input :disabled="DrawerType === 'see'" style="margin: 10px 0;" v-model="scope.row.deptOrder"></el-input> <el-input :disabled="DrawerType === 'see'" style="margin: 10px 0;" v-model="scope.row.deptOrder"></el-input>
</template> </template>
@@ -1555,6 +1555,7 @@
this.addForm.wgMeetingInfos.forEach(item => { this.addForm.wgMeetingInfos.forEach(item => {
item.joinfile = JSON.stringify(item.joinfile) item.joinfile = JSON.stringify(item.joinfile)
}) })
this.addForm.status = '3'
this.$http.postData('wg_work_group/add', this.addForm, { this.$http.postData('wg_work_group/add', this.addForm, {
_this: this _this: this
}, res => { }, res => {
@@ -1590,7 +1591,7 @@
this.destoryGraph() this.destoryGraph()
this.getData() this.getData()
} else { } else {
this.$message.warning('修改失败') // this.$message.warning(res.message)
} }
}) })
} }
@@ -1670,6 +1671,7 @@
drawShape: function drawShape(cfg, group) { drawShape: function drawShape(cfg, group) {
const level = cfg.level const level = cfg.level
const nodeType = cfg.nature const nodeType = cfg.nature
const processType = cfg.status
if (nodeType === '0') { if (nodeType === '0') {
const circle = group.addShape('circle', { const circle = group.addShape('circle', {
attrs: { attrs: {
@@ -1760,7 +1762,11 @@
radius: (bbox.height + 12) / 2 radius: (bbox.height + 12) / 2
}); });
// 自定义层级颜色 // 自定义层级颜色
if (nodeType === '1') { if (processType !== '1') {
rect.attr({
fill: '#666'
});
} else if (nodeType === '1') {
rect.attr({ rect.attr({
fill: '#1C98B8' fill: '#1C98B8'
}); });
@@ -1880,7 +1886,6 @@
graph.setItemState(ce, 'click', false); graph.setItemState(ce, 'click', false);
}); });
const edgeItem = e.item; // 获取被点击的边元素对象 const edgeItem = e.item; // 获取被点击的边元素对象
console.log('EdgeClick', edgeItem)
graph.setItemState(edgeItem, 'click', true); // 设置当前边的 click 状态为 true graph.setItemState(edgeItem, 'click', true); // 设置当前边的 click 状态为 true
this.handleEdgeClick (edgeItem) this.handleEdgeClick (edgeItem)
}); });
@@ -222,7 +222,7 @@
label="我司在工作组排名顺序" label="我司在工作组排名顺序"
prop="deptOrder" prop="deptOrder"
align="center" align="center"
width="150"> width="170">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input :disabled="DrawerType === 'see'" style="margin: 10px 0;" v-model="scope.row.deptOrder"></el-input> <el-input :disabled="DrawerType === 'see'" style="margin: 10px 0;" v-model="scope.row.deptOrder"></el-input>
</template> </template>
@@ -1411,6 +1411,7 @@
this.addForm.wgMeetingInfos.forEach(item => { this.addForm.wgMeetingInfos.forEach(item => {
item.joinfile = JSON.stringify(item.joinfile) item.joinfile = JSON.stringify(item.joinfile)
}) })
this.addForm.status = '3'
this.$http.postData('wg_work_group/add', this.addForm, { this.$http.postData('wg_work_group/add', this.addForm, {
_this: this _this: this
}, res => { }, res => {
@@ -1446,7 +1447,7 @@
this.destoryGraph() this.destoryGraph()
this.getData() this.getData()
} else { } else {
this.$message.warning('修改失败') // this.$message.warning('修改失败')
} }
}) })
} }
@@ -1474,7 +1475,6 @@
this.headerNo = true this.headerNo = true
let row = node._cfg.model let row = node._cfg.model
this.addForm.pName = row.name this.addForm.pName = row.name
console.log(row);
if (row.level === '2') { if (row.level === '2') {
this.standId = row.wgStandorpolicyInfos[0].standId this.standId = row.wgStandorpolicyInfos[0].standId
} }
@@ -1512,6 +1512,7 @@
drawShape: function drawShape(cfg, group) { drawShape: function drawShape(cfg, group) {
const level = cfg.level const level = cfg.level
const nodeType = cfg.nature const nodeType = cfg.nature
const processType = cfg.status
if (nodeType === '0') { if (nodeType === '0') {
const circle = group.addShape('circle', { const circle = group.addShape('circle', {
attrs: { attrs: {
@@ -1602,7 +1603,11 @@
radius: (bbox.height + 12) / 2 radius: (bbox.height + 12) / 2
}); });
// 自定义层级颜色 // 自定义层级颜色
if (nodeType === '1') { if (processType !== '1') {
rect.attr({
fill: '#666'
});
} else if (nodeType === '1') {
rect.attr({ rect.attr({
fill: '#1C98B8' fill: '#1C98B8'
}); });
@@ -1722,7 +1727,6 @@
graph.setItemState(ce, 'click', false); graph.setItemState(ce, 'click', false);
}); });
const edgeItem = e.item; // 获取被点击的边元素对象 const edgeItem = e.item; // 获取被点击的边元素对象
console.log('EdgeClick', edgeItem)
graph.setItemState(edgeItem, 'click', true); // 设置当前边的 click 状态为 true graph.setItemState(edgeItem, 'click', true); // 设置当前边的 click 状态为 true
this.handleEdgeClick (edgeItem) this.handleEdgeClick (edgeItem)
}); });