|
@@ -130,7 +130,7 @@
|
|
prop="adminId"
|
|
prop="adminId"
|
|
:formatter="unit3Format"
|
|
:formatter="unit3Format"
|
|
/>
|
|
/>
|
|
- <el-table-column
|
|
|
|
|
|
+ <el-table-column
|
|
label="任务类型"
|
|
label="任务类型"
|
|
align="center"
|
|
align="center"
|
|
prop="type"
|
|
prop="type"
|
|
@@ -163,14 +163,19 @@
|
|
<span>{{ parseTime(scope.row.endTime, "{y}-{m}-{d}") }}</span>
|
|
<span>{{ parseTime(scope.row.endTime, "{y}-{m}-{d}") }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="描述" align="center" prop="contents" />
|
|
|
|
|
|
+ <el-table-column label="描述" align="center" prop="contents" show-overflow-tooltip/>
|
|
<el-table-column
|
|
<el-table-column
|
|
label="操作"
|
|
label="操作"
|
|
align="center"
|
|
align="center"
|
|
class-name="small-padding fixed-width"
|
|
class-name="small-padding fixed-width"
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <el-button size="btlook" type="text" @click="ViewProgress(scope.row)" v-if="scope.row.common == 1">
|
|
|
|
|
|
+ <el-button
|
|
|
|
+ size="btlook"
|
|
|
|
+ type="text"
|
|
|
|
+ @click="ViewProgress(scope.row)"
|
|
|
|
+ v-if="scope.row.common == 1"
|
|
|
|
+ >
|
|
<span>进度录入</span>
|
|
<span>进度录入</span>
|
|
</el-button>
|
|
</el-button>
|
|
<el-button
|
|
<el-button
|
|
@@ -268,19 +273,18 @@
|
|
style="width: 200px"
|
|
style="width: 200px"
|
|
clearable
|
|
clearable
|
|
size="small"
|
|
size="small"
|
|
-
|
|
|
|
>
|
|
>
|
|
<el-option
|
|
<el-option
|
|
v-for="dict in dict.type.work_type"
|
|
v-for="dict in dict.type.work_type"
|
|
:key="dict.value"
|
|
:key="dict.value"
|
|
:label="dict.label"
|
|
:label="dict.label"
|
|
:value="dict.value"
|
|
:value="dict.value"
|
|
- @click.native="chooseplan"
|
|
|
|
|
|
+ @click.native="chooseplan"
|
|
/>
|
|
/>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<div>
|
|
<div>
|
|
- <el-form-item label="执行人" prop="peopleName" label-width="100px">
|
|
|
|
|
|
+ <el-form-item label="执行人" prop="peopleName" label-width="100px">
|
|
<div>
|
|
<div>
|
|
<el-select
|
|
<el-select
|
|
multiple
|
|
multiple
|
|
@@ -352,7 +356,71 @@
|
|
<el-button @click="cancel">取 消</el-button>
|
|
<el-button @click="cancel">取 消</el-button>
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
- <!-- 进度查看弹框 -->
|
|
|
|
|
|
+ <!-- 进度录入弹框 -->
|
|
|
|
+ <el-dialog
|
|
|
|
+ :title="title"
|
|
|
|
+ :visible.sync="open1"
|
|
|
|
+ width="980px"
|
|
|
|
+ append-to-body
|
|
|
|
+ class="el-dialog__header"
|
|
|
|
+ >
|
|
|
|
+ <el-form
|
|
|
|
+ ref="Progress"
|
|
|
|
+ :model="Progress"
|
|
|
|
+ :rules="rules1"
|
|
|
|
+ label-width="100px"
|
|
|
|
+ :inline="true"
|
|
|
|
+ >
|
|
|
|
+ <div class="jiben">完成进度</div>
|
|
|
|
+ <el-form-item prop="planProgress">
|
|
|
|
+ <div>
|
|
|
|
+ <el-input-number
|
|
|
|
+ v-model="Progress.planProgress"
|
|
|
|
+ controls-position="right"
|
|
|
|
+ :min="0"
|
|
|
|
+ :max="100"
|
|
|
|
+ ></el-input-number>
|
|
|
|
+ <el-progress
|
|
|
|
+ :text-inside="true"
|
|
|
|
+ :stroke-width="24"
|
|
|
|
+ :percentage="Progress.planProgress"
|
|
|
|
+ color="rgba(41, 231, 205, 1)"
|
|
|
|
+ class="jinduProgress"
|
|
|
|
+ ></el-progress>
|
|
|
|
+ </div>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <div class="jiben">附件</div>
|
|
|
|
+ <el-form-item>
|
|
|
|
+ <fileUpload v-model="Progress.file" />
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <div class="jiben">备注</div>
|
|
|
|
+ <el-form-item prop="remark">
|
|
|
|
+ <el-input
|
|
|
|
+ v-model="Progress.remark"
|
|
|
|
+ type="textarea"
|
|
|
|
+ placeholder="请输入内容"
|
|
|
|
+ />
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <div class="jiben">完成时间</div>
|
|
|
|
+ <el-form-item prop="accomplishTime">
|
|
|
|
+ <el-date-picker
|
|
|
|
+ class="comtimer"
|
|
|
|
+ clearable
|
|
|
|
+ size="small"
|
|
|
|
+ v-model="Progress.accomplishTime"
|
|
|
|
+ type="date"
|
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
|
+ placeholder="选择完成时间"
|
|
|
|
+ >
|
|
|
|
+ </el-date-picker>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-form>
|
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
|
+ <el-button type="primary" @click="submitForm1">确 定</el-button>
|
|
|
|
+ <el-button @click="cancel">取 消</el-button>
|
|
|
|
+ </div>
|
|
|
|
+ </el-dialog>
|
|
|
|
+ <!-- 进度查看弹框 -->
|
|
<el-dialog
|
|
<el-dialog
|
|
:title="title"
|
|
:title="title"
|
|
:visible.sync="open2"
|
|
:visible.sync="open2"
|
|
@@ -435,6 +503,101 @@
|
|
<el-button @click="cancel">取 消</el-button>
|
|
<el-button @click="cancel">取 消</el-button>
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
+ <!-- 进度查看1弹框 -->
|
|
|
|
+ <el-dialog
|
|
|
|
+ :title="title"
|
|
|
|
+ :visible.sync="open3"
|
|
|
|
+ width="980px"
|
|
|
|
+ append-to-body
|
|
|
|
+ class="el-dialog__header"
|
|
|
|
+ >
|
|
|
|
+ <el-form
|
|
|
|
+ ref="moreTable"
|
|
|
|
+ :model="moreTable"
|
|
|
|
+ :rules="rules"
|
|
|
|
+ label-width="100px"
|
|
|
|
+ :inline="true"
|
|
|
|
+ >
|
|
|
|
+ <div class="jiben">完成进度</div>
|
|
|
|
+ <el-progress
|
|
|
|
+ :text-inside="true"
|
|
|
|
+ :stroke-width="24"
|
|
|
|
+ :percentage="comstatus"
|
|
|
|
+ style="margin-bottom: 20px"
|
|
|
|
+ color="rgba(41, 231, 205, 1)"
|
|
|
|
+ ></el-progress>
|
|
|
|
+ <div class="jiben">任务周期</div>
|
|
|
|
+ <div class="thistext">
|
|
|
|
+ {{ moreTable.startTime }} 至 {{ moreTable.endTime }}
|
|
|
|
+ </div>
|
|
|
|
+ <!-- <div class="thistext"></div> -->
|
|
|
|
+ <div class="jiben">附件文档</div>
|
|
|
|
+ <el-form-item prop="file">
|
|
|
|
+ <!-- <el-input label="计划名称" v-model="ProgressLook.file" class="big" /> -->
|
|
|
|
+ <!-- <a :href="moreTable.file" download title="下载" style="color:white;margin-left:10px">下载附件</a> -->
|
|
|
|
+ <el-input
|
|
|
|
+ label="附件名称"
|
|
|
|
+ v-model="singleTable.fileName"
|
|
|
|
+ style="width: 820px"
|
|
|
|
+ />
|
|
|
|
+ <!-- <div>{{singleTableb.fileName}}</div> -->
|
|
|
|
+ <a
|
|
|
|
+ :href="moreTable.file"
|
|
|
|
+ download
|
|
|
|
+ title="下载"
|
|
|
|
+ style="color: white; margin-left: 10px"
|
|
|
|
+ class="downloadfile"
|
|
|
|
+ >下载附件</a
|
|
|
|
+ >
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <div class="jiben">备注</div>
|
|
|
|
+ <div class="thistext">{{ moreTable.remark }}</div>
|
|
|
|
+ <div class="jiben">任务描述</div>
|
|
|
|
+ <div class="thistext">{{ moreTable.contents }}</div>
|
|
|
|
+ <div class="jiben">执行人信息</div>
|
|
|
|
+ <el-table
|
|
|
|
+ :data="moreTable.workProgresses"
|
|
|
|
+ border
|
|
|
|
+ style="width: 100%; background: #004d86"
|
|
|
|
+ class="tabless"
|
|
|
|
+ >
|
|
|
|
+ <el-table-column prop="peopleName" label="执行人" width="180">
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="任务周期" width="190">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div>{{ scope.row.taskCycle }}</div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column prop="schedule" label="进度">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <el-progress
|
|
|
|
+ :text-inside="true"
|
|
|
|
+ :stroke-width="24"
|
|
|
|
+ :percentage="scope.row.schedule"
|
|
|
|
+ style="margin-bottom: 20px"
|
|
|
|
+ color="rgba(41, 231, 205, 1)"
|
|
|
|
+ ></el-progress>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column prop="accomplishTime" label="完成时间" width="180">
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="状态" width="180">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div>{{ scope.row.schedule == 100 ? "完成" : "未完成" }}</div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column prop="address" label="下载">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <a :href="scope.row.file" download>下载附件</a>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ </el-table>
|
|
|
|
+ </el-form>
|
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
|
+ <el-button type="primary" @click="submitForm2">确 定</el-button>
|
|
|
|
+ <el-button @click="cancel">取 消</el-button>
|
|
|
|
+ </div>
|
|
|
|
+ </el-dialog>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -446,9 +609,16 @@ import {
|
|
addWorkTask,
|
|
addWorkTask,
|
|
updateWorkTask,
|
|
updateWorkTask,
|
|
exportWorkTask,
|
|
exportWorkTask,
|
|
|
|
+ singProgress,
|
|
|
|
+ moreProgress,
|
|
|
|
+ uploadProgress,
|
|
|
|
+} from "@/api/workingArrangements/workTask";
|
|
|
|
+import {
|
|
|
|
+ deptUser,
|
|
|
|
+ allUser,
|
|
|
|
+ getDept,
|
|
|
|
+ getDeptList,
|
|
} from "@/api/workingArrangements/workTask";
|
|
} from "@/api/workingArrangements/workTask";
|
|
-import {singProgress,moreProgress} from "@/api/workingArrangements/planTask";
|
|
|
|
-import { deptUser, allUser, getDept ,getDeptList} from "@/api/workingArrangements/workTask";
|
|
|
|
import { getDicts } from "@/api/system/dict/data";
|
|
import { getDicts } from "@/api/system/dict/data";
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
import Treeselect from "@riophae/vue-treeselect";
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
@@ -515,6 +685,11 @@ export default {
|
|
rules: {
|
|
rules: {
|
|
number: [{ required: true, message: "编号不能为空", trigger: "blur" }],
|
|
number: [{ required: true, message: "编号不能为空", trigger: "blur" }],
|
|
},
|
|
},
|
|
|
|
+ rules1: {
|
|
|
|
+ planProgress: [
|
|
|
|
+ { required: true, message: "请输入完成进度", trigger: "blur" },
|
|
|
|
+ ],
|
|
|
|
+ },
|
|
// 发布单位
|
|
// 发布单位
|
|
part: [],
|
|
part: [],
|
|
// 执行单位
|
|
// 执行单位
|
|
@@ -526,13 +701,24 @@ export default {
|
|
dictType: {
|
|
dictType: {
|
|
dictType: "work_type",
|
|
dictType: "work_type",
|
|
},
|
|
},
|
|
- ziDian:[],
|
|
|
|
|
|
+ ziDian: [],
|
|
// 部门列表
|
|
// 部门列表
|
|
- getdeptList:[],
|
|
|
|
|
|
+ getdeptList: [],
|
|
// 单人进度查看框
|
|
// 单人进度查看框
|
|
- singleTable:[],
|
|
|
|
|
|
+ singleTable: [],
|
|
// 多人进度查看框
|
|
// 多人进度查看框
|
|
- moreTable:[]
|
|
|
|
|
|
+ moreTable: [],
|
|
|
|
+
|
|
|
|
+ comstatus: 0,
|
|
|
|
+ // 进度录入参数
|
|
|
|
+ Progress: {
|
|
|
|
+ schedule: "",
|
|
|
|
+ file: "",
|
|
|
|
+ remark: "",
|
|
|
|
+ accomplishTime: "",
|
|
|
|
+ taskId: "",
|
|
|
|
+ id: "",
|
|
|
|
+ },
|
|
};
|
|
};
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
@@ -543,23 +729,40 @@ export default {
|
|
});
|
|
});
|
|
this.getdict();
|
|
this.getdict();
|
|
this.chooseplan();
|
|
this.chooseplan();
|
|
- getDeptList().then((res)=>{
|
|
|
|
- this.getdeptList=res.data
|
|
|
|
- })
|
|
|
|
-
|
|
|
|
|
|
+ getDeptList().then((res) => {
|
|
|
|
+ this.getdeptList = res.data;
|
|
|
|
+ });
|
|
|
|
+ // this.handleChakan()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ /** 进度录入按钮操作 */
|
|
|
|
+ ViewProgress(row) {
|
|
|
|
+ // this.reset();
|
|
|
|
+ this.open1 = true;
|
|
|
|
+ this.title = "进度录入";
|
|
|
|
+ this.jinduId = row.id;
|
|
|
|
+ singProgress(this.jinduId).then((res) => {
|
|
|
|
+ console.log(res.data);
|
|
|
|
+ this.Progress.id = res.data.workProgress.id;
|
|
|
|
+ this.Progress.taskId = res.data.id;
|
|
|
|
+ this.Progress.planProgress = res.data.workProgress.schedule;
|
|
|
|
+ });
|
|
|
|
+ },
|
|
// 进度查看单人进度
|
|
// 进度查看单人进度
|
|
handleChakan(row) {
|
|
handleChakan(row) {
|
|
this.reset();
|
|
this.reset();
|
|
this.open2 = true;
|
|
this.open2 = true;
|
|
this.title = "进度查看";
|
|
this.title = "进度查看";
|
|
// 获取当前行的id
|
|
// 获取当前行的id
|
|
|
|
+ console.log(row.id);
|
|
singProgress(row.id).then((res) => {
|
|
singProgress(row.id).then((res) => {
|
|
- console.log(res)
|
|
|
|
- // this.singleTable = res.data;
|
|
|
|
- // this.singleTable.planProgresses =this.singleTable.planProgress.schedule;
|
|
|
|
- // console.log(this.singleTable);
|
|
|
|
|
|
+ this.singleTable = res.data;
|
|
|
|
+ this.singleTable.planProgresses =
|
|
|
|
+ this.singleTable.workProgress.schedule;
|
|
|
|
+ this.Progress.id = this.singleTable.workProgress.id;
|
|
|
|
+ // console.log(this.Progress.id);
|
|
|
|
+ // this.singleTable.jindu=singleTable.planProgress.schedule
|
|
|
|
+ // console.log(this.singleTable)
|
|
});
|
|
});
|
|
},
|
|
},
|
|
// 多人进度查看
|
|
// 多人进度查看
|
|
@@ -571,10 +774,9 @@ export default {
|
|
moreProgress(row.id).then((res) => {
|
|
moreProgress(row.id).then((res) => {
|
|
this.moreTable = res.data;
|
|
this.moreTable = res.data;
|
|
console.log(this.moreTable);
|
|
console.log(this.moreTable);
|
|
- this.moreTable.planProgresses.forEach((item) => {
|
|
|
|
|
|
+ this.moreTable.workProgresses.forEach((item) => {
|
|
this.comstatus +=
|
|
this.comstatus +=
|
|
- item.schedule / this.moreTable.planProgresses.length;
|
|
|
|
- // this.comstatus=0
|
|
|
|
|
|
+ item.schedule / this.moreTable.workProgresses.length;
|
|
});
|
|
});
|
|
});
|
|
});
|
|
},
|
|
},
|
|
@@ -583,7 +785,6 @@ export default {
|
|
this.loading = true;
|
|
this.loading = true;
|
|
listWorkTask(this.queryParams).then((response) => {
|
|
listWorkTask(this.queryParams).then((response) => {
|
|
this.workTaskList = response.rows;
|
|
this.workTaskList = response.rows;
|
|
- console.log(this.workTaskList)
|
|
|
|
this.total = response.total;
|
|
this.total = response.total;
|
|
this.loading = false;
|
|
this.loading = false;
|
|
});
|
|
});
|
|
@@ -645,7 +846,7 @@ export default {
|
|
deptUser(id).then((res) => {
|
|
deptUser(id).then((res) => {
|
|
// this.renYuan = res.data;
|
|
// this.renYuan = res.data;
|
|
this.executor = res.data;
|
|
this.executor = res.data;
|
|
- console.log(this.executor)
|
|
|
|
|
|
+ console.log(this.executor);
|
|
});
|
|
});
|
|
},
|
|
},
|
|
// 发布单位选中触发
|
|
// 发布单位选中触发
|
|
@@ -656,10 +857,10 @@ export default {
|
|
// 执行单位选中触发
|
|
// 执行单位选中触发
|
|
selectPeo1(val) {
|
|
selectPeo1(val) {
|
|
this.form.unitId = val.id;
|
|
this.form.unitId = val.id;
|
|
- this.form.peopleName=""
|
|
|
|
|
|
+ this.form.peopleName = "";
|
|
this.getZhuChi(this.form.unitId);
|
|
this.getZhuChi(this.form.unitId);
|
|
},
|
|
},
|
|
-
|
|
|
|
|
|
+
|
|
// 查询计划类型
|
|
// 查询计划类型
|
|
getdict() {
|
|
getdict() {
|
|
getDicts(this.dictType.dictType).then((res) => {
|
|
getDicts(this.dictType.dictType).then((res) => {
|
|
@@ -671,12 +872,12 @@ export default {
|
|
this.reset();
|
|
this.reset();
|
|
this.open = true;
|
|
this.open = true;
|
|
this.title = "添加工作任务";
|
|
this.title = "添加工作任务";
|
|
- // 获取执行单位列表
|
|
|
|
- getDept2().then((res) => {
|
|
|
|
- // console.log(res,2)
|
|
|
|
- this.users = res.data;
|
|
|
|
- console.log(this.users);
|
|
|
|
- });
|
|
|
|
|
|
+ // 获取执行单位列表
|
|
|
|
+ getDept2().then((res) => {
|
|
|
|
+ // console.log(res,2)
|
|
|
|
+ this.users = res.data;
|
|
|
|
+ console.log(this.users);
|
|
|
|
+ });
|
|
},
|
|
},
|
|
/** 修改按钮操作 */
|
|
/** 修改按钮操作 */
|
|
handleUpdate(row) {
|
|
handleUpdate(row) {
|
|
@@ -696,60 +897,51 @@ export default {
|
|
this.title = "修改工作计划";
|
|
this.title = "修改工作计划";
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- unit2Format(row, column) {
|
|
|
|
|
|
+ unit2Format(row, column) {
|
|
var deptName = "";
|
|
var deptName = "";
|
|
- if(parseInt(this.workTaskList[0].common)==1 || this.workTaskList[0].common==2){
|
|
|
|
|
|
+ if (
|
|
|
|
+ parseInt(this.workTaskList[0].common) == 1 ||
|
|
|
|
+ this.workTaskList[0].common == 2
|
|
|
|
+ ) {
|
|
this.rylist.map((item) => {
|
|
this.rylist.map((item) => {
|
|
- row.peopleName.split(",").forEach((items, index) => {
|
|
|
|
- if (item.userId == items) {
|
|
|
|
- deptName += item.nickName + " ";
|
|
|
|
- }
|
|
|
|
|
|
+ row.peopleName.split(",").forEach((items, index) => {
|
|
|
|
+ if (item.userId == items) {
|
|
|
|
+ deptName += item.nickName + " ";
|
|
|
|
+ }
|
|
|
|
+ });
|
|
});
|
|
});
|
|
- });
|
|
|
|
- }else if(parseInt(this.workTaskList[0].common)==0){
|
|
|
|
|
|
+ } else if (parseInt(this.workTaskList[0].common) == 0) {
|
|
this.rylist.map((item) => {
|
|
this.rylist.map((item) => {
|
|
- row.peopleName.split(",").forEach((items, index) => {
|
|
|
|
- if (item.userId == items) {
|
|
|
|
- deptName += item.nickName + " ";
|
|
|
|
- }
|
|
|
|
|
|
+ row.peopleName.split(",").forEach((items, index) => {
|
|
|
|
+ if (item.userId == items) {
|
|
|
|
+ deptName += item.nickName + " ";
|
|
|
|
+ }
|
|
|
|
+ });
|
|
});
|
|
});
|
|
- });
|
|
|
|
}
|
|
}
|
|
return deptName;
|
|
return deptName;
|
|
-
|
|
|
|
- // var deptName = "";
|
|
|
|
- // console.log(this.rylist)
|
|
|
|
- // console.log(row)
|
|
|
|
- // this.rylist.map((item) => {
|
|
|
|
- // row.peopleName.split(",").forEach((items, index) => {
|
|
|
|
- // if (item.deptId == items) {
|
|
|
|
- // deptName += item.nickName + " ";
|
|
|
|
- // }
|
|
|
|
- // });
|
|
|
|
- // });
|
|
|
|
- // return deptName;
|
|
|
|
},
|
|
},
|
|
unit3Format(row, column) {
|
|
unit3Format(row, column) {
|
|
var deptName = "";
|
|
var deptName = "";
|
|
- if(parseInt(this.workTaskList[0].common)==1){
|
|
|
|
- console.log(111)
|
|
|
|
|
|
+ if (
|
|
|
|
+ parseInt(this.workTaskList[0].common) == 1 ||
|
|
|
|
+ this.workTaskList[0].common == 2
|
|
|
|
+ ) {
|
|
this.getdeptList.map((item) => {
|
|
this.getdeptList.map((item) => {
|
|
- console.log(item.deptId)
|
|
|
|
- console.log(row)
|
|
|
|
- if (item.deptId == row.adminId) {
|
|
|
|
- deptName = item.deptName;
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
- }else if(parseInt(this.workTaskList[0].common)==0){
|
|
|
|
- this.part[0].children.map((item) => {
|
|
|
|
- if (item.id == row.adminId) {
|
|
|
|
- deptName = item.label;
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
|
|
+ if (item.deptId == row.adminId) {
|
|
|
|
+ deptName = item.deptName;
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ } else if (parseInt(this.workTaskList[0].common) == 0) {
|
|
|
|
+ this.part[0].children.map((item) => {
|
|
|
|
+ if (item.id == row.adminId) {
|
|
|
|
+ deptName = item.label;
|
|
|
|
+ }
|
|
|
|
+ });
|
|
}
|
|
}
|
|
return deptName;
|
|
return deptName;
|
|
},
|
|
},
|
|
- unit4Format(row,column) {
|
|
|
|
|
|
+ unit4Format(row, column) {
|
|
var deptName = "";
|
|
var deptName = "";
|
|
this.ziDian.map((item) => {
|
|
this.ziDian.map((item) => {
|
|
if (item.dictSort == row.type) {
|
|
if (item.dictSort == row.type) {
|
|
@@ -763,20 +955,20 @@ export default {
|
|
this.form.type = this.queryParams.type;
|
|
this.form.type = this.queryParams.type;
|
|
},
|
|
},
|
|
/** 提交按钮 */
|
|
/** 提交按钮 */
|
|
- submitForm() {
|
|
|
|
- console.log(this.form)
|
|
|
|
- this.$refs["form"].validate((valid) => {
|
|
|
|
- if (valid) {
|
|
|
|
|
|
+ submitForm() {
|
|
|
|
+ console.log(this.form);
|
|
|
|
+ this.$refs["form"].validate((valid) => {
|
|
|
|
+ if (valid) {
|
|
if (this.form.adminId === this.form.unitId) {
|
|
if (this.form.adminId === this.form.unitId) {
|
|
alert("发布单位和执行单位不能相同");
|
|
alert("发布单位和执行单位不能相同");
|
|
} else {
|
|
} else {
|
|
this.form.peopleName = this.form.peopleName.join(",");
|
|
this.form.peopleName = this.form.peopleName.join(",");
|
|
this.form.peopleId = this.form.peopleName;
|
|
this.form.peopleId = this.form.peopleName;
|
|
- console.log(this.form)
|
|
|
|
|
|
+ console.log(this.form);
|
|
if (this.form.id != null) {
|
|
if (this.form.id != null) {
|
|
updateWorkTask(this.form).then((response) => {
|
|
updateWorkTask(this.form).then((response) => {
|
|
this.$modal.msgSuccess("修改成功");
|
|
this.$modal.msgSuccess("修改成功");
|
|
- this.queryParams.type=""
|
|
|
|
|
|
+ this.queryParams.type = "";
|
|
this.open = false;
|
|
this.open = false;
|
|
this.getList();
|
|
this.getList();
|
|
});
|
|
});
|
|
@@ -789,30 +981,49 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- })
|
|
|
|
|
|
+ });
|
|
// this.$refs["form"].validate((valid) => {
|
|
// this.$refs["form"].validate((valid) => {
|
|
- // if (valid) {
|
|
|
|
- // this.form.peopleName = this.form.peopleName.join(",");
|
|
|
|
- // this.form.peopleId = this.form.peopleName;
|
|
|
|
- // console.log(this.form);
|
|
|
|
- // if (this.form.id != null) {
|
|
|
|
- // updateWorkTask(this.form).then((response) => {
|
|
|
|
- // this.$modal.msgSuccess("修改成功");
|
|
|
|
- // this.open = false;
|
|
|
|
- // this.getList();
|
|
|
|
- // });
|
|
|
|
- // } else {
|
|
|
|
- // addWorkTask(this.form).then((response) => {
|
|
|
|
- // this.$modal.msgSuccess("新增成功");
|
|
|
|
- // this.open = false;
|
|
|
|
- // this.getList();
|
|
|
|
- // });
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
|
|
+ // if (valid) {
|
|
|
|
+ // this.form.peopleName = this.form.peopleName.join(",");
|
|
|
|
+ // this.form.peopleId = this.form.peopleName;
|
|
|
|
+ // console.log(this.form);
|
|
|
|
+ // if (this.form.id != null) {
|
|
|
|
+ // updateWorkTask(this.form).then((response) => {
|
|
|
|
+ // this.$modal.msgSuccess("修改成功");
|
|
|
|
+ // this.open = false;
|
|
|
|
+ // this.getList();
|
|
|
|
+ // });
|
|
|
|
+ // } else {
|
|
|
|
+ // addWorkTask(this.form).then((response) => {
|
|
|
|
+ // this.$modal.msgSuccess("新增成功");
|
|
|
|
+ // this.open = false;
|
|
|
|
+ // this.getList();
|
|
|
|
+ // });
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
// });
|
|
// });
|
|
},
|
|
},
|
|
- submitForm2(){
|
|
|
|
-
|
|
|
|
|
|
+ submitForm1() {
|
|
|
|
+ this.$refs["Progress"].validate((valid) => {
|
|
|
|
+ if (valid) {
|
|
|
|
+ this.Progress.taskId = this.jinduId;
|
|
|
|
+ this.Progress.schedule = this.Progress.planProgress;
|
|
|
|
+ console.log(this.Progress);
|
|
|
|
+ uploadProgress(this.Progress).then((res1) => {
|
|
|
|
+ console.log(res1);
|
|
|
|
+ this.$modal.msgSuccess("上传成功");
|
|
|
|
+ // this.Progress
|
|
|
|
+ this.reset();
|
|
|
|
+ this.open1 = false;
|
|
|
|
+ this.getList();
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ submitForm2() {
|
|
|
|
+ this.comstatus = 0;
|
|
|
|
+ this.open2 = false;
|
|
|
|
+ this.open3 = false;
|
|
},
|
|
},
|
|
/** 删除按钮操作 */
|
|
/** 删除按钮操作 */
|
|
handleDelete(row) {
|
|
handleDelete(row) {
|
|
@@ -853,7 +1064,7 @@ export default {
|
|
getdeptlist() {
|
|
getdeptlist() {
|
|
getDeptList().then((res) => {
|
|
getDeptList().then((res) => {
|
|
this.ExecutableUnit = res.data;
|
|
this.ExecutableUnit = res.data;
|
|
- console.log(this.ExecutableUnit)
|
|
|
|
|
|
+ console.log(this.ExecutableUnit);
|
|
});
|
|
});
|
|
},
|
|
},
|
|
// 选中执行人id
|
|
// 选中执行人id
|
|
@@ -864,7 +1075,7 @@ export default {
|
|
// this.executor = res.data;
|
|
// this.executor = res.data;
|
|
// });
|
|
// });
|
|
// },
|
|
// },
|
|
-
|
|
|
|
|
|
+
|
|
// 计划编号
|
|
// 计划编号
|
|
planName() {
|
|
planName() {
|
|
let date = new Date();
|
|
let date = new Date();
|
|
@@ -881,7 +1092,7 @@ export default {
|
|
console.log(111);
|
|
console.log(111);
|
|
console.log(this.form.number);
|
|
console.log(this.form.number);
|
|
},
|
|
},
|
|
- // 获取发布单位id
|
|
|
|
|
|
+ // 获取发布单位id
|
|
issueunit(id) {
|
|
issueunit(id) {
|
|
this.form.adminId = id;
|
|
this.form.adminId = id;
|
|
},
|
|
},
|
|
@@ -1052,7 +1263,7 @@ export default {
|
|
width: 940px;
|
|
width: 940px;
|
|
border: 1px solid #fff;
|
|
border: 1px solid #fff;
|
|
border-radius: 4px;
|
|
border-radius: 4px;
|
|
- height: 36px;
|
|
|
|
|
|
+ height: auto !important;
|
|
line-height: 36px;
|
|
line-height: 36px;
|
|
text-indent: 1em;
|
|
text-indent: 1em;
|
|
margin-bottom: 20px;
|
|
margin-bottom: 20px;
|
|
@@ -1122,4 +1333,10 @@ export default {
|
|
.vue-treeselect__single-value {
|
|
.vue-treeselect__single-value {
|
|
color: white;
|
|
color: white;
|
|
}
|
|
}
|
|
|
|
+/* 文字多余部分省略 */
|
|
|
|
+.el-table_1_column_8 .cell {
|
|
|
|
+ overflow: hidden;
|
|
|
|
+ text-overflow: ellipsis;
|
|
|
|
+ white-space: nowrap;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|