|
@@ -3298,23 +3298,33 @@
|
|
|
},
|
|
|
setManDayData() {
|
|
|
this.http.post('/task-group/saveManDay',{data:JSON.stringify(this.groupList)},
|
|
|
- res => {
|
|
|
- if (res.code == "ok") {
|
|
|
- this.modGroupManDayDialog = false;
|
|
|
- this.groupList = res.data;
|
|
|
- } else {
|
|
|
- this.$message({
|
|
|
- message: res.msg,
|
|
|
- type: "error"
|
|
|
- });
|
|
|
- }
|
|
|
- },
|
|
|
- error => {
|
|
|
- this.$message({
|
|
|
- message: error,
|
|
|
- type: "error"
|
|
|
+ res => {
|
|
|
+ if (res.code == "ok") {
|
|
|
+ this.modGroupManDayDialog = false;
|
|
|
+ const { companyId } = JSON.parse(sessionStorage.getItem("user"))
|
|
|
+ console.log(companyId)
|
|
|
+ if(companyId == '3092') {
|
|
|
+ res.data.forEach(item => {
|
|
|
+ item.disabled = Boolean(item.manDay);
|
|
|
});
|
|
|
+ this.groupList = res.data;
|
|
|
+ } else {
|
|
|
+ this.groupList = res.data;
|
|
|
+ }
|
|
|
+ console.log(this.groupList, '返回的值')
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ message: res.msg,
|
|
|
+ type: "error"
|
|
|
});
|
|
|
+ }
|
|
|
+ },
|
|
|
+ error => {
|
|
|
+ this.$message({
|
|
|
+ message: error,
|
|
|
+ type: "error"
|
|
|
+ });
|
|
|
+ });
|
|
|
},
|
|
|
// 重新定义了 addGroup 方法
|
|
|
addGroup(formName) {
|