Browse Source

Merge branch 'luckysheet' into dev

dev
mk 6 months ago
parent
commit
99ac6e0541
  1. 12
      src/views/main-content.vue
  2. 5
      src/views/modules/base/smartExcel/cpts/excel-summary.vue

12
src/views/main-content.vue

@ -34,7 +34,7 @@
<template v-if="tabIsIframe(item.iframeURL)"> <template v-if="tabIsIframe(item.iframeURL)">
<iframe <iframe
:src=" :src="
item.iframeURL + '?token=' + token + '&customerId=' + customerId item.iframeURL + '?token=' + `${item.iframeURL === 'http://101.126.17.175:1080/auth'?webUiToken:token}` + '&customerId=' + customerId
" "
ref="iframes" ref="iframes"
class="iframes" class="iframes"
@ -110,7 +110,7 @@
import { isURL } from "@/utils/validate"; import { isURL } from "@/utils/validate";
import Cookie from "js-cookie"; import Cookie from "js-cookie";
import Tips from "./tips.vue"; import Tips from "./tips.vue";
import { requestPost } from "@/js/dai/request"; import { requestPost,requestGet } from "@/js/dai/request";
import workForm from "./modules/secretaryLog/workLog/form.vue"; import workForm from "./modules/secretaryLog/workLog/form.vue";
import dForm from "./modules/secretaryLog/difficulty/difficultyForm.vue"; import dForm from "./modules/secretaryLog/difficulty/difficultyForm.vue";
import hForm from "./modules/secretaryLog/humanisticCare/careForm.vue"; import hForm from "./modules/secretaryLog/humanisticCare/careForm.vue";
@ -132,6 +132,7 @@ export default {
formType: "", formType: "",
formLabelWidth: "120px", formLabelWidth: "120px",
tipsList: [], tipsList: [],
webUiToken:""
}; };
}, },
created() { created() {
@ -141,6 +142,7 @@ export default {
this.token = localStorage.getItem("token"); this.token = localStorage.getItem("token");
this.customerId = localStorage.getItem("customerId"); this.customerId = localStorage.getItem("customerId");
this.loopTips(); this.loopTips();
this.geOpenwebuiToken()
}, },
destroyed() { destroyed() {
this.$store.dispatch("clearInter"); this.$store.dispatch("clearInter");
@ -151,6 +153,12 @@ export default {
}, },
}, },
methods: { methods: {
async geOpenwebuiToken(){
const {code,data} = await requestGet('/epmetuser/userOpenwebui/token')
if(code === 0 ){
this.webUiToken = data;
}
},
toPage(path) { toPage(path) {
if (path) { if (path) {
this.$router.push({ this.$router.push({

5
src/views/modules/base/smartExcel/cpts/excel-summary.vue

@ -64,11 +64,12 @@ export default {
} }
}, },
close() { close() {
this.showView = false this.showView = false;
this.getTableList()
}, },
handleClickBack() { handleClickBack() {
this.$emit('close') this.$emit('close')
this.getTableList()
}, },
handleClickShowView(val){ handleClickShowView(val){
const { id, taskId, taskTitle, taskPeriod, taskType, taskIntroduction,subWorkBookId,workBookId,taskStateName} = val; const { id, taskId, taskTitle, taskPeriod, taskType, taskIntroduction,subWorkBookId,workBookId,taskStateName} = val;

Loading…
Cancel
Save