|
@@ -170,7 +170,7 @@
|
|
|
</el-dialog>
|
|
|
|
|
|
<!--处理实施工作任务--->
|
|
|
- <el-dialog title="审批处理" :visible.sync="editEnforceFormVisible" width="45%" :close-on-click-modal="false">
|
|
|
+ <el-dialog title="审批处理" :visible.sync="editEnforceFormVisible" width="65%" :close-on-click-modal="false">
|
|
|
<el-form label-width="120px" :model="enforceForm" size="mini">
|
|
|
<el-descriptions title="" :column="2" border size="mini">
|
|
|
<el-descriptions-item>
|
|
@@ -252,7 +252,13 @@
|
|
|
<el-button slot="trigger" size="mini" type="primary">选取文件</el-button>
|
|
|
</el-upload>
|
|
|
</el-descriptions-item>
|
|
|
-
|
|
|
+ <el-descriptions-item :span="2">
|
|
|
+ <template slot="label">
|
|
|
+ 其他说明
|
|
|
+ </template>
|
|
|
+ <div id="editorElem" style="text-align:left" >
|
|
|
+ </div>
|
|
|
+ </el-descriptions-item>
|
|
|
</el-descriptions>
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
@@ -281,6 +287,8 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import E from 'wangeditor';
|
|
|
+let editor;
|
|
|
import {mapGetters} from 'vuex'
|
|
|
import Pagination from '@/components/Page/Pagination'
|
|
|
import {completeTask, getPersonalTaskList} from '@/api/meeting/enforce'
|
|
@@ -340,7 +348,8 @@ export default {
|
|
|
status: 0,
|
|
|
flowType: null
|
|
|
},
|
|
|
- fileAction: ''
|
|
|
+ fileAction: '',
|
|
|
+ editorContent:null
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
@@ -348,8 +357,17 @@ export default {
|
|
|
this.getTodoMeetingList();
|
|
|
this.getDeptUserTrees();
|
|
|
this.fileAction = uploadFileUrl()
|
|
|
+
|
|
|
},
|
|
|
methods: {
|
|
|
+ createwangeditor(){
|
|
|
+ editor = new E('#editorElem');
|
|
|
+ editor.config.height = 300
|
|
|
+ editor.create()
|
|
|
+ editor.config.onchange = (html) => {
|
|
|
+ this.editorContent=editor.txt.html()
|
|
|
+ };
|
|
|
+ },
|
|
|
getDeptUserTrees() {
|
|
|
getDeptUserTree('').then(res => {
|
|
|
this.userList = res.data
|
|
@@ -390,7 +408,17 @@ export default {
|
|
|
this.enforceForm.taskId = row.taskId
|
|
|
this.enforceForm.currentStep = row.step
|
|
|
this.enforceForm.enforceId = row.id
|
|
|
+ //
|
|
|
this.editEnforceFormVisible = true
|
|
|
+ this.$nextTick(()=>{
|
|
|
+ if (editor==null){
|
|
|
+ this.createwangeditor()
|
|
|
+ }else {
|
|
|
+ editor.destroy();//这里做了一次判断,判断编辑器是否被创建,如果创建了就先销毁。
|
|
|
+ this.createwangeditor()
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
},
|
|
|
openUsers() {
|
|
|
this.usersVisble = true
|