|
@@ -476,7 +476,8 @@
|
|
|
<div class="photo_box" v-for="(photo, pIndex) in tool.toolPhoto" :key="pIndex">
|
|
|
<span>{{ photo.workContent }}</span>
|
|
|
<div class="toolPhoto">
|
|
|
- <img :src="photo.content" @click="previewImg(photo.content)">
|
|
|
+ <img v-if="photo.type == 1" :src="photo.content" @click="previewImg(photo.content)">
|
|
|
+ <img v-if="photo.type == 10" :src="word" @click="openTable(photo.content)">
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -623,6 +624,21 @@
|
|
|
<el-button @click="fullDialogVisible = false">关 闭</el-button>
|
|
|
</div> -->
|
|
|
</el-dialog>
|
|
|
+ <el-dialog
|
|
|
+ title="表格"
|
|
|
+ :visible.sync="dialogVisibleTable2"
|
|
|
+ :append-to-body="true"
|
|
|
+ width="95%"
|
|
|
+ :before-close="handleClose"
|
|
|
+ class="dialog_diy"
|
|
|
+ >
|
|
|
+ <el-form>
|
|
|
+ <div class="cont" v-html="tableJson.text"></div>
|
|
|
+ </el-form>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -896,6 +912,10 @@ export default {
|
|
|
previewImg(url) {
|
|
|
this.$hevueImgPreview(url);
|
|
|
},
|
|
|
+ openTable(f) {
|
|
|
+ this.tableJson.text = JSON.parse(f);
|
|
|
+ this.dialogVisibleTable2 = true;
|
|
|
+ },
|
|
|
change(val) {
|
|
|
console.log(val);
|
|
|
},
|
|
@@ -1292,6 +1312,8 @@ export default {
|
|
|
} else if (this.chapterlist[k].type == 8) {
|
|
|
if (this.chapterlist[k].url.indexOf("https://") == -1 && this.chapterlist[k].url.indexOf("http://") == -1) {
|
|
|
this.chapterlist[k].src = "https://" + this.chapterlist[k].url;
|
|
|
+ }else{
|
|
|
+ this.chapterlist[k].src = this.chapterlist[k].url;
|
|
|
}
|
|
|
} else if (this.chapterlist[k].type == 9) {
|
|
|
this.chapterlist[k].src = this.chapterlist[k].url
|
|
@@ -1334,6 +1356,8 @@ export default {
|
|
|
_work.workContent = `(${_work.username})使用(思维网格)提交了:`
|
|
|
} else if (_tool.tool == 6) {
|
|
|
_work.workContent = `(${_work.username})使用(协同文档)提交了:`
|
|
|
+ } else if (_tool.tool == 48) {
|
|
|
+ _work.workContent = `(${_work.username})使用(表格)提交了:`
|
|
|
}
|
|
|
_tool.toolPhoto.push(_work);
|
|
|
}
|
|
@@ -1365,6 +1389,8 @@ export default {
|
|
|
_work.workContent = `(${_work.username})使用(思维网格)提交了:`
|
|
|
} else if (_tool.tool == 6) {
|
|
|
_work.workContent = `(${_work.username})使用(协同文档)提交了:`
|
|
|
+ } else if (_tool.tool == 48) {
|
|
|
+ _work.workContent = `(${_work.username})使用(表格)提交了:`
|
|
|
}
|
|
|
_tool.toolPhoto.push(_work);
|
|
|
}
|
|
@@ -1971,8 +1997,45 @@ export default {
|
|
|
this.fulltype = type;
|
|
|
this.fullUrl = url;
|
|
|
},
|
|
|
-
|
|
|
-
|
|
|
+ openLine(url) {
|
|
|
+ window.open(url);
|
|
|
+ },
|
|
|
+ downloadFile(url) {
|
|
|
+ let _url = "";
|
|
|
+ if (
|
|
|
+ url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
|
|
|
+ ) {
|
|
|
+ _url = url.split(
|
|
|
+ "https://view.officeapps.live.com/op/view.aspx?src="
|
|
|
+ )[1];
|
|
|
+ } else {
|
|
|
+ _url = url;
|
|
|
+ }
|
|
|
+ const x = new XMLHttpRequest();
|
|
|
+ x.open("GET", _url, true);
|
|
|
+ x.responseType = "blob";
|
|
|
+ x.onload = function (e) {
|
|
|
+ // const url = window.URL.createObjectURL(x.response);
|
|
|
+ // const a = document.createElement("a");
|
|
|
+ // a.href = url;
|
|
|
+ // a.target = "_blank";
|
|
|
+ // a.download = url;
|
|
|
+ // a.click();
|
|
|
+ // a.remove();
|
|
|
+ let content = x.response;
|
|
|
+ let elink = document.createElement("a");
|
|
|
+ elink.download = decodeURI(
|
|
|
+ _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
|
|
|
+ );
|
|
|
+ elink.style.display = "none";
|
|
|
+ let blob = new Blob([content]);
|
|
|
+ elink.href = URL.createObjectURL(blob);
|
|
|
+ document.body.appendChild(elink);
|
|
|
+ elink.click();
|
|
|
+ document.body.removeChild(elink);
|
|
|
+ };
|
|
|
+ x.send();
|
|
|
+ },
|
|
|
|
|
|
},
|
|
|
directives: {
|
|
@@ -4539,8 +4602,9 @@ export default {
|
|
|
.cont>>>table th {
|
|
|
border-bottom: 1px solid #ccc;
|
|
|
border-right: 1px solid #ccc;
|
|
|
- padding: 15px 5px;
|
|
|
+ padding: 10px 10px;
|
|
|
max-width: 0px;
|
|
|
+ vertical-align: baseline;
|
|
|
}
|
|
|
|
|
|
.cont>>>table th {
|