ソースを参照

feat: 调整弹窗等挂载节点

zhangyuhan 3 ヶ月 前
コミット
8fb4831edf

+ 7 - 7
src/plugins/new-request.js

@@ -35,19 +35,19 @@ export const request = function ({ type, data, dataType,contentType, url, succes
 export const requestSuccessHandle = function (vue, response, tipSuccess, tipError, success, error, url) {
     if (response.status === 'success' || response.error_code === 0) {
         if (tipSuccess) {
-            vue.$Notice.success({
+            vue.$notify.success({
                 title: '操作提示',
-                desc: response.info,
-                duration: 3
+                message: response.info,
+                duration: 3000
             })
         }
         success && success(response)
     } else {
         if (tipError) {
-            vue.$Notice.error({
+            vue.$notify.error({
                 title: '提示',
-                desc: response.info || response.error_msg,
-                duration: 4
+                message: response.info || response.error_msg,
+                duration: 4000
             })
         }
         error && error(response)
@@ -156,7 +156,7 @@ class ActionRequest {
             error: (res) => {
                 console.log(res)
                 // this.$router.push('/login')
-                this.vue.$Notice.error({ title: '对不起您请求的数据不存在或者返回异常', duration: 5 })
+                this.vue.$notify.error({ title: '对不起您请求的数据不存在或者返回异常', duration: 5000 })
             },
             complete: () => {
                 this.vue.$Loading.finish()

+ 1 - 0
src/views/order/components/helpOrder.vue

@@ -1,6 +1,7 @@
 <template>
   <div class="two-child">
     <Modal title="帮助用户下单" v-model="oShow" class-name="order-model other-model" :mask-closable="false"
+           :transfer="false"
       @on-visible-change="visibleChange">
       <Form ref="others" :model="others" :label-width="110">
         <FormItem label="手机号" required>

+ 13 - 16
src/views/order/helpUserOrders.vue

@@ -319,34 +319,31 @@ export default {
                 id: String(row.id)
             }).success((res) => {
                 if (!res.data) {
-                    this.$Notice.warning({ title: '无复制链接' })
+                    this.$notify.warning({ title: '无复制链接' })
                     return
                 }
                 if (res.data.link) {
                     this.copy_(res.data.link + "", () => {
-                        this.$Notice.success({ title: '支付链接复制成功' })
+                        this.$notify.success({ title: '支付链接复制成功' })
                     })
                 } else {
-                    this.$Notice.warning({ title: '无复制链接' })
+                    this.$notify.warning({ title: '无复制链接' })
                 }
             }).post()
         },
         goDelate(row) {
             console.log(row)
-            this.$Modal.confirm({
-                title: "确定删除该订单吗?",
-                onOk: () => {
-                    this.$jyRequest('/jyOrderManager/order/logicalDelOrder').data({
-                        id: String(row.id)
-                    }).success((res) => {
-                        if (res.data.status) {
-                            this.$Notice.success({ title: '删除成功' })
-                            this.reload()
-                        } else {
-                          this.$Notice.error({ title: '删除失败' })
-                        }
-                    }).post()
+            this.$confirm('确定删除该订单吗?', '提示').then(() => {
+              this.$jyRequest('/jyOrderManager/order/logicalDelOrder').data({
+                id: String(row.id)
+              }).success((res) => {
+                if (res.data.status) {
+                  this.$notify.success({ title: '删除成功' })
+                  this.reload()
+                } else {
+                  this.$notify.error({ title: '删除失败' })
                 }
+              }).post()
             })
         },
         localed(val) {

+ 7 - 3
vue.config.js

@@ -9,6 +9,10 @@ module.exports = {
   css: {
     loaderOptions: {
       sass: {
+        // 静默 `legacy-js-api` 和 `@import` 警告
+        sassOptions: {
+          silenceDeprecations: ['legacy-js-api', 'import', 'global-builtin']
+        },
         prependData: `@import '@/assets/css/_variables.scss';`
       }
     }
@@ -40,7 +44,7 @@ module.exports = {
     // allowedHosts: 'all',
     proxy: {
       '^/dev-api': {
-        target: 'https://web-qmx_admin.jydev.jianyu360.com',
+        target: 'https://web2-qmx_admin.jydev.jianyu360.com',
         changeOrigin: true,
         ws: false,
         logLevel: 'debug',
@@ -49,7 +53,7 @@ module.exports = {
         }
       },
       '^/filemanage': {
-        target: 'https://web-qmx_admin.jydev.jianyu360.com',
+        target: 'https://web2-qmx_admin.jydev.jianyu360.com',
         changeOrigin: true,
         ws: false,
         logLevel: 'debug',
@@ -64,7 +68,7 @@ module.exports = {
         logLevel: 'debug',
       },
       '^/succbi': {
-        target: 'https://web-qmx_admin.jydev.jianyu360.com',
+        target: 'https://web2-qmx_admin.jydev.jianyu360.com',
         changeOrigin: true,
         ws: false,
         logLevel: 'debug'