@dongkboy 2 سال پیش
والد
کامیت
9856bd743b
2فایلهای تغییر یافته به همراه36 افزوده شده و 4 حذف شده
  1. 2 2
      config/dev.env.js
  2. 34 2
      src/views/Core/components/detailsDialog.vue

+ 2 - 2
config/dev.env.js

@@ -8,14 +8,14 @@ module.exports = merge(prodEnv, {
 
   ENV_CONFIG:'"dev"',
   // BASE_URL: '"https://test.baoxianzhanggui.com/web-api"',//测试服务器
-  // BASE_URL:'"https://sxzgkj.baoxianzhanggui.com/web-api"'//正式服务器
+  BASE_URL:'"https://sxzgkj.baoxianzhanggui.com/web-api"'//正式服务器
   // BASE_URL:'"https://sxzgkj.baoxianzhanggui.com/web-api"'//正式服务器
   // BASE_URL: '"http://192.168.0.115:8080/"' //凯森
   // BASE_URL: '"http:///192.168.0.106:8080/"',//屈晨
   // BASE_URL: '"http:///192.168.0.253:8080/"',//田智
   // BASE_URL: '"http:///192.168.0.42:8080/"',//武鸿鹏
   // BASE_URL: '"http:///192.168.0.253:8080/"',//田智
-  BASE_URL: '"http:///192.168.0.42:8080/"',//武鸿鹏
+  // BASE_URL: '"http:///192.168.0.42:8080/"',//武鸿鹏
   // BASE_URL: '"http://192.168.1.101:8080/"',
   // BASE_URL: '"http:///192.168.0.22:8080/"',//郝宇
   // BASE_URL: '"http:///192.168.0.103:8080/"',//霍续亮

+ 34 - 2
src/views/Core/components/detailsDialog.vue

@@ -804,6 +804,10 @@
         <el-button :size="overSize" @click="productCostAddVehicleFactorVisible = false">取 消</el-button>
       </span>
     </el-dialog>
+    <div v-if="showIframe" class="iframe-wrapper ">
+      <iframe  :src="dialUrl"></iframe>
+      <el-button @click="showIframe = false">关闭</el-button>
+    </div>
   </div>
 </template>
 <script>
@@ -814,6 +818,8 @@ export default {
   name: "detailsDialog",
   data() {
     return {
+      dialUrl:"",
+      showIframe: false,
       dialogVisible: false,
       obj: {},
       warrantObj: {},
@@ -945,8 +951,11 @@ export default {
     phoneDial(type) {
       this.$api.letter.getMobileByOrderNo(this.orderInfo.orderno, type).then((res) => {
         if (res.code == '200') {
-          const url = `https://172.168.1.66/call?username=${res.data.username}&password=${res.data.password}&number=${res.data.phone}`;
-          window.location.href = url;
+          const url = `http://172.168.1.66/call?username=${res.data.username}&password=${res.data.password}&number=${res.data.phone}`;
+          this.dialUrl = url;
+          this.dialogVisible = false;
+          this.showIframe = true;
+
           // const url = 'https://172.168.1.66/call';
           // const params = {
           //   username: res.data.username,
@@ -1063,6 +1072,29 @@ export default {
 };
 </script>
 <style lang="scss" scoped>
+/* 你可以自定义样式来控制iframe的外观和位置 */
+.iframe-wrapper {
+  position: fixed;
+  /* 固定定位 */
+  top: 50%;
+  /* 居中显示 */
+  left: 50%;
+  transform: translate(-50%, -50%);
+  z-index: 1000;
+  /* 确保在最上层 */
+  background: white;
+  padding: 20px;
+  border: 1px solid #ccc;
+  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
+}
+
+.iframe-wrapper iframe {
+  width: 600px;
+  /* iframe的宽度 */
+  height: 400px;
+  /* iframe的高度 */
+}
+
 .details-body {
   .tabLeft {
     list-style: none;