|
@@ -1,11 +1,26 @@
|
|
<template>
|
|
<template>
|
|
<div class="flex-count">
|
|
<div class="flex-count">
|
|
- <el-button @click="clickNewSave">新建</el-button>
|
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
+ <span class="demonstration">新建+</span>
|
|
|
|
+ <el-dropdown trigger="click">
|
|
|
|
+ <span class="el-dropdown-link">
|
|
|
|
+ 下拉菜单<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
|
+ </span>
|
|
|
|
+ <el-dropdown-menu slot="dropdown">
|
|
|
|
+ <el-dropdown-item icon="el-icon-plus">黄金糕</el-dropdown-item>
|
|
|
|
+ <el-dropdown-item icon="el-icon-circle-plus">狮子头</el-dropdown-item>
|
|
|
|
+ <el-dropdown-item icon="el-icon-circle-plus-outline">螺蛳粉</el-dropdown-item>
|
|
|
|
+ <el-dropdown-item icon="el-icon-check">双皮奶</el-dropdown-item>
|
|
|
|
+ <el-dropdown-item icon="el-icon-circle-check">蚵仔煎</el-dropdown-item>
|
|
|
|
+ </el-dropdown-menu>
|
|
|
|
+ </el-dropdown>
|
|
|
|
+ </el-col>
|
|
<fromList :list="firstTable" @clickDemand="clickDemand" />
|
|
<fromList :list="firstTable" @clickDemand="clickDemand" />
|
|
<div>
|
|
<div>
|
|
<!-- <myUpload @uploadBack="uploadBack" :fileInfo="fileInfo" :fileList="fileInfo.fileList">
|
|
<!-- <myUpload @uploadBack="uploadBack" :fileInfo="fileInfo" :fileList="fileInfo.fileList">
|
|
</myUpload> -->
|
|
</myUpload> -->
|
|
- <el-dialog :modal="false" title="提示" :visible.sync="officeStatus" style="height:100% ;" width="100%" height="100%" center>
|
|
|
|
|
|
+ <el-dialog :modal="false" title="提示" :visible.sync="officeStatus" style="height:100% ;" width="100%"
|
|
|
|
+ height="100%" center>
|
|
<div id="DocEditor" v-if="officeStatus">
|
|
<div id="DocEditor" v-if="officeStatus">
|
|
<onlyoffice-editor editorId="DocEditor" :src="src" :config="config" @ready="onReady" />
|
|
<onlyoffice-editor editorId="DocEditor" :src="src" :config="config" @ready="onReady" />
|
|
</div>
|
|
</div>
|
|
@@ -31,7 +46,7 @@ export default {
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- saveStatus:false,
|
|
|
|
|
|
+ saveStatus: false,
|
|
officeStatus: false,
|
|
officeStatus: false,
|
|
src: '',
|
|
src: '',
|
|
config: {},
|
|
config: {},
|
|
@@ -92,8 +107,22 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
//新建在线编辑xxx
|
|
//新建在线编辑xxx
|
|
- clickNewSave(){
|
|
|
|
- this.saveStatus = true
|
|
|
|
|
|
+ clickNewSave() {
|
|
|
|
+ this.saveStatus = true
|
|
|
|
+ this.$http({
|
|
|
|
+ url: "/office/file/create",
|
|
|
|
+ method: "post",
|
|
|
|
+ type: 'office',
|
|
|
|
+ headers: {
|
|
|
|
+ "Content-Type": "application/json",
|
|
|
|
+ },
|
|
|
|
+ data: {
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
+ }).then((res) => {
|
|
|
|
+ this.firstTable.data = res.data.body;
|
|
|
|
+
|
|
|
|
+ });
|
|
},
|
|
},
|
|
//点击工单状态跳转需求流程显示页面
|
|
//点击工单状态跳转需求流程显示页面
|
|
clickDemand(e, res) {
|
|
clickDemand(e, res) {
|
|
@@ -105,7 +134,7 @@ export default {
|
|
this.$http({
|
|
this.$http({
|
|
url: "/office/restfile/edit",
|
|
url: "/office/restfile/edit",
|
|
method: "post",
|
|
method: "post",
|
|
- type:'office',
|
|
|
|
|
|
+ type: 'office',
|
|
headers: {
|
|
headers: {
|
|
"Content-Type": "application/json",
|
|
"Content-Type": "application/json",
|
|
},
|
|
},
|
|
@@ -121,8 +150,8 @@ export default {
|
|
this.src = api;
|
|
this.src = api;
|
|
let config = {
|
|
let config = {
|
|
documentType: docType,
|
|
documentType: docType,
|
|
- height:'100%',
|
|
|
|
- width:'100%',
|
|
|
|
|
|
+ height: '100%',
|
|
|
|
+ width: '100%',
|
|
document: {
|
|
document: {
|
|
fileType: fileType,
|
|
fileType: fileType,
|
|
key: id,
|
|
key: id,
|
|
@@ -147,7 +176,7 @@ export default {
|
|
this.$http({
|
|
this.$http({
|
|
url: "/office/restfile/list",
|
|
url: "/office/restfile/list",
|
|
method: "post",
|
|
method: "post",
|
|
- type:'office',
|
|
|
|
|
|
+ type: 'office',
|
|
headers: {
|
|
headers: {
|
|
"Content-Type": "application/json",
|
|
"Content-Type": "application/json",
|
|
},
|
|
},
|
|
@@ -170,18 +199,21 @@ export default {
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
-::v-deep .el-dialog--center{
|
|
|
|
|
|
+::v-deep .el-dialog--center {
|
|
height: 100%;
|
|
height: 100%;
|
|
margin-top: 10px !important;
|
|
margin-top: 10px !important;
|
|
}
|
|
}
|
|
-::v-deep .el-dialog__body{
|
|
|
|
|
|
+
|
|
|
|
+::v-deep .el-dialog__body {
|
|
height: 100%;
|
|
height: 100%;
|
|
}
|
|
}
|
|
-#DocEditor{
|
|
|
|
|
|
+
|
|
|
|
+#DocEditor {
|
|
height: 100%;
|
|
height: 100%;
|
|
}
|
|
}
|
|
-.flex-count{
|
|
|
|
|
|
+
|
|
|
|
+.flex-count {
|
|
height: 100%;
|
|
height: 100%;
|
|
- background:#fff;
|
|
|
|
|
|
+ background: #fff;
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|