hujunwei@agilestar.cn преди 2 години
родител
ревизия
17fc4d835b

+ 1 - 0
src/components/upload.vue

@@ -232,6 +232,7 @@ export default {
           } else {
             this.attList.push({
               id: res.data.body.id,
+              fileName: res.data.body.fileName,
               name: res.data.body.fileName,
               fileCode: res.data.body.fileCode,
               opName: res.data.body.opName,

+ 16 - 14
src/components/uploadDown.vue

@@ -6,13 +6,7 @@
       <i class="iconfont icon-ppt" v-if="item.type === 'ppt'"></i>
       <i class="iconfont icon-wenjian" v-if="item.type === 'wenjian'"></i>
       <i class="el-icon-picture" v-if="item.type === 'png'"></i>
-      <el-tooltip
-        class="item"
-        effect="dark"
-        :content="item.fileName"
-        placement="right"
-        :enterable="false"
-      >
+      <el-tooltip class="item" effect="dark" :content="item.fileName" placement="right" :enterable="false">
         <span class="tab-long">{{ item.fileName }}</span>
       </el-tooltip>
       <div class="seedown" v-if="datalist.type === 2">
@@ -27,6 +21,7 @@
   </div>
 </template>
 <script>
+import getConfig from '../config/dev.js'
 export default {
   props: ["datalist", "dialogStatus"],
   data() {
@@ -44,10 +39,14 @@ export default {
       }
     },
     uploadsee(v) {
-      let url = encodeURIComponent(v.callPath);
-      this.srcsc = "http://114.215.71.182:8012/onlinePreview?url=" + url;
+      console.log(v);
+      let url = encodeURIComponent(Base64.encode(v.callPath));
+      console.log(url);
+      // this.srcsc = 'http://150.158.79.10:8012/onlinePreview?url=' + url;//本地
+      // this.srcsc = 'http:///10.149.85.91:8012/onlinePreview?url=' + url;//测试
+      // this.srcsc = 'http://10.230.15.228:8012/onlinePreview?url=' + url;//生产
+      this.srcsc =  getConfig().KNOWLEDGE_URL+'/onlinePreview?url=' + url;
       this.ifrshow = true;
-      // window.open('http://114.215.71.182:8012/onlinePreview?url=' + url);
     },
     //下载e
     uploaddown(v) {
@@ -111,7 +110,7 @@ export default {
     this.dataHandle();
     console.log(this.infolist);
   },
-  created() {},
+  created() { },
   watch: {
     dialogStatus() {
       this.$forceUpdate();
@@ -178,9 +177,12 @@ export default {
       margin: 0 10px;
       overflow: hidden;
       text-overflow: ellipsis;
-      display: -webkit-box; /* 将对象作为弹性伸缩盒子模型显示 */
-      -webkit-line-clamp: 1; /* 控制最多显示几行 */
-      -webkit-box-orient: vertical; /* 设置或检索伸缩盒对象的子元素的排列方式 */
+      display: -webkit-box;
+      /* 将对象作为弹性伸缩盒子模型显示 */
+      -webkit-line-clamp: 1;
+      /* 控制最多显示几行 */
+      -webkit-box-orient: vertical;
+      /* 设置或检索伸缩盒对象的子元素的排列方式 */
     }
   }
 

+ 4 - 0
src/config/dev.js

@@ -1,6 +1,7 @@
 'use strict'
 let devs = {
     TITLE: '本地环境',
+    KNOWLEDGE_URL: "http://150.158.79.10:8012", //本地环境知识库预览
     BASE_URL: "http://43.138.50.94:9600/", //本地环境
     BASE_API: "http://43.138.50.94:8880/api",//工作流本地环境
     EXCEL_URL: "http://43.138.50.94:7777", //本地excel路径
@@ -34,6 +35,7 @@ let devs = {
 }
 let dev = {
     TITLE: '本地环境',
+    KNOWLEDGE_URL: "http://150.158.79.10:8012", //本地环境知识库预览
     OFFICE_URL:'http://43.138.50.94:7779',  //在线office路径
     BASE_URL: "http://127.0.0.1:8080", //本地环境
     BASE_API: "http://43.138.50.94:8880/api",//工作流本地环境
@@ -67,6 +69,7 @@ let dev = {
 }
 let test = {
     TITLE: '测试环境',
+    KNOWLEDGE_URL: "http://10.149.85.91:8012", //测试环境知识库预览
     OFFICE_URL:'http://10.149.85.91:8000',  //在线office路径
     BASE_URL: "http://10.149.85.91:8000/spfm", //测试环境
     BASE_API: "http://10.149.85.91:8000/api",//工作流测试环境
@@ -100,6 +103,7 @@ let test = {
 }
 let prod = {
     TITLE: '线上环境',
+    KNOWLEDGE_URL: "http://10.230.15.228:8012", //生产环境知识库预览
     OFFICE_URL:'http://10.230.26.15:8000',  //在线office路径
     BASE_URL: "http://10.230.26.15:8000/mkt", //线上环境
     BASE_API: "http://10.230.26.15:8000/api",//工作流线上环境

+ 1 - 4
src/pages/main/accountPermissions/accountdel.vue

@@ -65,7 +65,7 @@
                     </el-form-item>
                 </div>
                 <div class="flex-header">
-                    <el-form-item label="4A主账号:" prop="mainAccount4a">
+                    <el-form-item label="4A主账号:" >
                         <el-input v-model="fromList.mainAccount4a" :disabled="disabled"></el-input>
                     </el-form-item>
                 </div>
@@ -220,9 +220,6 @@ export default {
                 deletionReason: [
                     { required: true, message: "请添加删除原因", trigger: "blur" },
                 ],
-                mainAccount4a: [
-                    { required: true, message: "请添加4A主账号", trigger: "blur" },
-                ],
                 crmAccount: [
                     { required: true, message: "请添加CRM账号", trigger: "blur" },
                 ],

+ 1 - 1
src/pages/main/firewall/index.vue

@@ -710,7 +710,7 @@ export default {
             });
         },
         setForm(e) {
-            this.request_form.title = '[工作台]-防火墙策略-' + this.$refs.formTable.form.needName;
+            this.request_form.title = '[IT工作台]-防火墙策略-' + this.$refs.formTable.form.needName;
             this.$http({
                 url: "/market/fhqProcess/add",
                 method: "post",

+ 155 - 155
src/pages/main/iptv/uploadDown.vue

@@ -1,196 +1,196 @@
 <template>
     <div class="back-box">
         <div v-for="item in infolist" :key="item.id" @click="downcheck(item)">
-            <i class="iconfont icon-word" v-if="item.type==='word'"></i>
-            <i class="iconfont icon-excel" v-if="item.type==='excel'"></i>
-            <i class="iconfont icon-ppt" v-if="item.type==='ppt'"></i>
-            <i class="iconfont icon-wenjian" v-if="item.type==='wenjian'"></i>
-            <i class="el-icon-picture" v-if="item.type==='png'"></i>
+            <i class="iconfont icon-word" v-if="item.type === 'word'"></i>
+            <i class="iconfont icon-excel" v-if="item.type === 'excel'"></i>
+            <i class="iconfont icon-ppt" v-if="item.type === 'ppt'"></i>
+            <i class="iconfont icon-wenjian" v-if="item.type === 'wenjian'"></i>
+            <i class="el-icon-picture" v-if="item.type === 'png'"></i>
             <el-tooltip class="item" effect="dark" :content="item.fileName" placement="right" :enterable="false">
-                <span class="tab-long">{{item.fileName}}</span>
+                <span class="tab-long">{{ item.fileName }}</span>
             </el-tooltip>
-            <div class="seedown" v-if="datalist.type===2">
+            <div class="seedown" v-if="datalist.type === 2">
                 <a @click="uploaddown(item)">下载</a>
             </div>
         </div>
-        <div class="if-box-top" v-if="ifrshow" @keyup.esc="ifrshow=false">
-            <i class="el-icon-close" @click="ifrshow=false"></i>
-            <iframe
-                height="100%"
-                width="100%"
-                :src="srcsc">
+        <div class="if-box-top" v-if="ifrshow" @keyup.esc="ifrshow = false">
+            <i class="el-icon-close" @click="ifrshow = false"></i>
+            <iframe height="100%" width="100%" :src="srcsc">
             </iframe>
         </div>
     </div>
 </template>
 <script>
-    export default {
-        props: ['datalist', 'dialogStatus'],
-        data() {
-            return {
-                infolist: [],
-                status: false,
-                srcsc: '',
-                ifrshow:false,
+import getConfig from '../config/dev.js'
+export default {
+    props: ['datalist', 'dialogStatus'],
+    data() {
+        return {
+            infolist: [],
+            status: false,
+            srcsc: '',
+            ifrshow: false,
+        }
+    },
+    methods: {
+        downcheck(v) {
+            if (this.datalist.type === 1) {
+                this.uploaddown(v);
             }
         },
-        methods: {
-            downcheck(v) {
-                if (this.datalist.type === 1) {
-                    this.uploaddown(v);
+        uploadsee(v) {
+            let url = encodeURIComponent(Base64.encode(v.callPath));
+            this.srcsc = getConfig().KNOWLEDGE_URL + '/onlinePreview?url=' + url;
+            this.ifrshow = true;
+            // window.open('http://114.215.71.182:8012/onlinePreview?url=' + url);
+        },
+        //下载e
+        uploaddown(v) {
+            let fileData = v;
+            this.$http({
+                url: this.datalist.url,
+                method: "post",
+                headers: {
+                    "Content-Type": "application/json",
+                },
+                responseType: "blob",
+                data: { "id": fileData.id, "fileName": fileData.fileName },
+            }).then((response) => {
+                if (window.navigator && window.navigator.msSaveOrOpenBlob) {
+                    let blob = new Blob([response.data], {
+                        type: 'application/vnd.ms-excel'
+                    });
+                    window.navigator.msSaveOrOpenBlob(blob, fileData.fileName);
+                } else {
+                    /* 火狐谷歌的文件下载方式 */
+                    var blob = new Blob([response.data])
+                    var downloadElement = document.createElement('a')
+                    var href = window.URL.createObjectURL(blob);
+                    downloadElement.href = href;
+                    downloadElement.download = fileData.fileName;
+                    document.body.appendChild(downloadElement);
+                    downloadElement.click();
+                    document.body.removeChild(downloadElement);
+                    window.URL.revokeObjectURL(href);
                 }
-            },
-            uploadsee(v) {
-                let url = encodeURIComponent(Base64.encode(v.callPath));
-            this.srcsc = 'http://10.230.15.228:8012/onlinePreview?url=' + url;
-                this.ifrshow=true;
-                // window.open('http://114.215.71.182:8012/onlinePreview?url=' + url);
-            },
-            //下载e
-            uploaddown(v) {
-                let fileData = v;
-                this.$http({
-                    url: this.datalist.url,
-                    method: "post",
-                    headers: {
-                        "Content-Type": "application/json",
-                    },
-                    responseType: "blob",
-                    data: {"id": fileData.id, "fileName": fileData.fileName},
-                }).then((response) => {
-                    if (window.navigator && window.navigator.msSaveOrOpenBlob) {
-                        let blob = new Blob([response.data], {
-                            type: 'application/vnd.ms-excel'
-                        });
-                        window.navigator.msSaveOrOpenBlob(blob, fileData.fileName);
+            });
+        },
+        dataHandle() {
+            this.infolist = this.datalist.attList;
+            if (this.infolist) {
+                for (let i = 0; i < this.infolist.length; i++) {
+                    let f = this.infolist[i].fileName.split(".");
+                    let type = f[f.length - 1];
+                    if (type === 'doc' || type === 'docx') {
+                        this.infolist[i].type = 'word';
+                    } else if (type === 'ppt') {
+                        this.infolist[i].type = 'ppt';
+                    } else if (type === 'xlsx' || type === 'xls') {
+                        this.infolist[i].type = 'excel';
+                    } else if (type === 'png' || type === 'jpg' || type === 'svg' || type === 'gif' || type === 'psd') {
+                        this.infolist[i].type = 'png';
                     } else {
-                        /* 火狐谷歌的文件下载方式 */
-                        var blob = new Blob([response.data])
-                        var downloadElement = document.createElement('a')
-                        var href = window.URL.createObjectURL(blob);
-                        downloadElement.href = href;
-                        downloadElement.download = fileData.fileName;
-                        document.body.appendChild(downloadElement);
-                        downloadElement.click();
-                        document.body.removeChild(downloadElement);
-                        window.URL.revokeObjectURL(href);
-                    }
-                });
-            },
-            dataHandle() {
-                this.infolist = this.datalist.attList;
-                if (this.infolist) {
-                    for (let i = 0; i < this.infolist.length; i++) {
-                        let f = this.infolist[i].fileName.split(".");
-                        let type = f[f.length - 1];
-                        if (type === 'doc' || type === 'docx') {
-                            this.infolist[i].type = 'word';
-                        } else if (type === 'ppt') {
-                            this.infolist[i].type = 'ppt';
-                        } else if (type === 'xlsx' || type === 'xls') {
-                            this.infolist[i].type = 'excel';
-                        } else if (type === 'png' || type === 'jpg' || type === 'svg' || type === 'gif' || type === 'psd') {
-                            this.infolist[i].type = 'png';
-                        } else {
-                            this.infolist[i].type = 'wenjian';
-                        }
+                        this.infolist[i].type = 'wenjian';
                     }
                 }
             }
-        },
-        mounted() {
+        }
+    },
+    mounted() {
 
-        },
-        created() {
-            this.dataHandle();
-        },
-        watch: {
-            dialogStatus() {
-                this.$forceUpdate()
-                let _this = this;
-                _this.dataHandle();
-            }
+    },
+    created() {
+        this.dataHandle();
+    },
+    watch: {
+        dialogStatus() {
+            this.$forceUpdate()
+            let _this = this;
+            _this.dataHandle();
         }
     }
+}
 </script>
 <style scoped lang="scss">
-    .if-box-top{
-        background: #fff;
-        width: 80vw;
-        height: 80vh;
-        margin-top: 10vh;
-        margin-left: 10vw;
-    }
+.if-box-top {
+    background: #fff;
+    width: 80vw;
+    height: 80vh;
+    margin-top: 10vh;
+    margin-left: 10vw;
+}
 
-    .iconfont {
-        font-size: 42px;
-    }
+.iconfont {
+    font-size: 42px;
+}
 
-    .icon-excel {
-        color: #67DB63;
-    }
+.icon-excel {
+    color: #67DB63;
+}
 
-    .icon-word {
-        color: #FF654E;
-    }
+.icon-word {
+    color: #FF654E;
+}
 
-    .icon-ppt {
-        color: #FF8943;
-    }
+.icon-ppt {
+    color: #FF8943;
+}
 
-    .icon-wenjian {
-        color: #ccc;
-    }
+.icon-wenjian {
+    color: #ccc;
+}
 
-    .el-icon-picture {
-        font-size: 36px;
-        color: #ccc;
-        background: #fff;
-        padding: 4px 2px;
-        margin-bottom: 2px;
-        border-radius: 3px;
-    }
+.el-icon-picture {
+    font-size: 36px;
+    color: #ccc;
+    background: #fff;
+    padding: 4px 2px;
+    margin-bottom: 2px;
+    border-radius: 3px;
+}
 
-    .back-box {
-        margin-top: 20px;
-        background: #F2F2F2;
-        padding: 20px;
+.back-box {
+    margin-top: 20px;
+    background: #F2F2F2;
+    padding: 20px;
 
-        div {
-            display: inline-block;
-            text-align: center;
-            margin-right: 20px;
-            cursor: pointer;
+    div {
+        display: inline-block;
+        text-align: center;
+        margin-right: 20px;
+        cursor: pointer;
 
-            span {
-                display: block;
-                width: 80px;
-                overflow: hidden;
-                padding-top: 5px;
-                margin: 0 10px;
-                overflow: hidden;
-                text-overflow: ellipsis;
-                display: -webkit-box; /* 将对象作为弹性伸缩盒子模型显示 */
-                -webkit-line-clamp: 1; /* 控制最多显示几行 */
-                -webkit-box-orient: vertical; /* 设置或检索伸缩盒对象的子元素的排列方式 */
-            }
+        span {
+            display: block;
+            width: 80px;
+            overflow: hidden;
+            padding-top: 5px;
+            margin: 0 10px;
+            overflow: hidden;
+            text-overflow: ellipsis;
+            display: -webkit-box;
+            /* 将对象作为弹性伸缩盒子模型显示 */
+            -webkit-line-clamp: 1;
+            /* 控制最多显示几行 */
+            -webkit-box-orient: vertical;
+            /* 设置或检索伸缩盒对象的子元素的排列方式 */
         }
+    }
 
-        .seedown {
-            margin: 0;
-            margin-top: 5px;
+    .seedown {
+        margin: 0;
+        margin-top: 5px;
 
-            a {
-                font-size: 12px;
-                padding: 2px 5px;
-                border: 1px solid transparent;
-                color: #999;
-            }
+        a {
+            font-size: 12px;
+            padding: 2px 5px;
+            border: 1px solid transparent;
+            color: #999;
+        }
 
-            a:hover {
-                color: #0b82ff;
-            }
+        a:hover {
+            color: #0b82ff;
         }
     }
-
+}
 </style>

+ 1 - 1
src/pages/main/opcode/index.vue

@@ -693,7 +693,7 @@ export default {
             });
         },
         setForm(e) {
-            this.request_form.title = '[工作台]-Op_Code-' + this.$refs.formTable.form.needName;
+            this.request_form.title = '[IT工作台]-Op_Code-' + this.$refs.formTable.form.needName;
             this.$http({
                 url: "/market/opProcess/add",
                 method: "post",