|
@@ -81,12 +81,18 @@
|
|
</div>
|
|
</div>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item style="float: right;" v-if="user.companyId != '3092'">
|
|
<el-form-item style="float: right;" v-if="user.companyId != '3092'">
|
|
|
|
+ <el-link type="primary" :underline="false" @click="isganttshow = true" style="margin-right: 10px;" v-if="permissions.projectResources">资源分配</el-link>
|
|
<el-link type="primary" :underline="false" @click="addTask()">新建任务</el-link>
|
|
<el-link type="primary" :underline="false" @click="addTask()">新建任务</el-link>
|
|
<el-link type="primary" :underline="false" @click="importTaskDialog = true" style="margin-left: 10px;">批量导入</el-link>
|
|
<el-link type="primary" :underline="false" @click="importTaskDialog = true" style="margin-left: 10px;">批量导入</el-link>
|
|
<el-link type="primary" :underline="false" @click="exportTaskList()" style="margin-left: 10px;" v-loading="exportTaskLoading" >数据导出</el-link>
|
|
<el-link type="primary" :underline="false" @click="exportTaskList()" style="margin-left: 10px;" v-loading="exportTaskLoading" >数据导出</el-link>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
</el-col>
|
|
</el-col>
|
|
|
|
+ <!-- 资源分配 -->
|
|
|
|
+ <el-dialog v-if="isganttshow" :visible.sync="isganttshow" fullscreen class="ganttdialog">
|
|
|
|
+ <projectgantt ref="projectganttRef"></projectgantt>
|
|
|
|
+ </el-dialog>
|
|
|
|
+
|
|
<div style="display: flex;width: 100%;">
|
|
<div style="display: flex;width: 100%;">
|
|
<div class="classification">
|
|
<div class="classification">
|
|
<div>
|
|
<div>
|
|
@@ -625,6 +631,7 @@ import { error } from 'dingtalk-jsapi';
|
|
import cascaderOption from "@/components/cascaderOption.vue"
|
|
import cascaderOption from "@/components/cascaderOption.vue"
|
|
|
|
|
|
import taskComponent from "@/components/taskComponent.vue"
|
|
import taskComponent from "@/components/taskComponent.vue"
|
|
|
|
+ import projectgantt from "../project/project_gantt.vue"
|
|
|
|
|
|
// 富文本样式
|
|
// 富文本样式
|
|
import 'quill/dist/quill.core.css'
|
|
import 'quill/dist/quill.core.css'
|
|
@@ -648,7 +655,8 @@ import { getThemeColor } from '@/utils/commonMethod.js'
|
|
selectCat,
|
|
selectCat,
|
|
taskComponent,
|
|
taskComponent,
|
|
vueCascader,
|
|
vueCascader,
|
|
- cascaderOption
|
|
|
|
|
|
+ cascaderOption,
|
|
|
|
+ projectgantt
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -828,6 +836,7 @@ import { getThemeColor } from '@/utils/commonMethod.js'
|
|
tablesTwoKey: 300,
|
|
tablesTwoKey: 300,
|
|
tableMultipleSelection: [],
|
|
tableMultipleSelection: [],
|
|
loadingExport: false,
|
|
loadingExport: false,
|
|
|
|
+ isganttshow: false,
|
|
};
|
|
};
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|