wupengfei 2 years ago
parent
commit
86a3d5a311

+ 5 - 4
.idea/workspace.xml

@@ -4,6 +4,7 @@
     <list default="true" id="1a36929e-c054-4875-a943-593a74e55fa4" name="Default Changelist" comment="">
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/application/operate/controller/SupplierGoods.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/operate/controller/SupplierGoods.php" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/vendor/zoujingli/think-library/src/Controller.php" beforeDir="false" afterPath="$PROJECT_DIR$/vendor/zoujingli/think-library/src/Controller.php" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -120,7 +121,7 @@
   <component name="PropertiesComponent">
     <property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
     <property name="WebServerToolWindowFactoryState" value="false" />
-    <property name="last_opened_file_path" value="$PROJECT_DIR$/../xianglian_test_api" />
+    <property name="last_opened_file_path" value="$PROJECT_DIR$/../yyyfs" />
     <property name="node.js.detected.package.eslint" value="true" />
     <property name="node.js.detected.package.tslint" value="true" />
     <property name="node.js.path.for.package.eslint" value="project" />
@@ -168,7 +169,7 @@
       <workItem from="1661520525074" duration="602000" />
       <workItem from="1666574984353" duration="7852000" />
       <workItem from="1666659002848" duration="14268000" />
-      <workItem from="1666746114555" duration="7764000" />
+      <workItem from="1666746114555" duration="8163000" />
     </task>
     <servers />
   </component>
@@ -190,10 +191,10 @@
     </state>
     <state x="212" y="108" width="1457" height="809" key="DiffContextDialog/0.0.1920.1040@0.0.1920.1040" timestamp="1666750983163" />
     <state x="283" y="145" width="1942" height="1088" key="DiffContextDialog/0.0.2560.1400@0.0.2560.1400" timestamp="1659085937978" />
-    <state x="961" y="382" key="FileChooserDialogImpl" timestamp="1666659722301">
+    <state x="961" y="382" key="FileChooserDialogImpl" timestamp="1666763054136">
       <screen x="0" y="0" width="1920" height="1040" />
     </state>
-    <state x="961" y="382" key="FileChooserDialogImpl/0.0.1920.1040@0.0.1920.1040" timestamp="1666659722301" />
+    <state x="961" y="382" key="FileChooserDialogImpl/0.0.1920.1040@0.0.1920.1040" timestamp="1666763054136" />
     <state x="1281" y="514" key="FileChooserDialogImpl/0.0.2560.1400@0.0.2560.1400" timestamp="1659161879142" />
     <state x="268" y="101" key="MergeDialog" timestamp="1659442916508">
       <screen x="0" y="0" width="1920" height="1040" />

+ 1 - 1
application/operate/controller/SupplierGoods.php

@@ -147,7 +147,7 @@ class SupplierGoods extends Controller
     {
         $supplier_id = \app\common\model\SupplierGoods::where('id',$id)->value('supplier_id');
        // $this->redirect('@operate/supplier_goods/index',['id'=>$supplier_id,'spm'=>'m-277-294-296']);
-        $this->redirect('/operate/supplier_goods/index.html?id='.$supplier_id.'&spm=m-277-294-296');
+        $this->red2('/operate/supplier_goods/index.html?id='.$supplier_id.'&spm=m-277-294-296');
     }
 
 }

+ 16 - 0
vendor/zoujingli/think-library/src/Controller.php

@@ -157,6 +157,22 @@ abstract class Controller extends \stdClass
         throw new HttpResponseException(redirect($url, $vars, $code));
     }
 
+
+    public function red2($url,$time=1000,$msg= '操作成功')
+    {
+        echo "<script>
+            var url = {$url};
+            var msg = {$msg};
+            var time = {$time};
+            layer.msg(msg);
+            setInterval(function() {
+                location.href=location.href+'&reloaded=1';
+            location.reload();
+            },time)
+          
+</script>";
+    }
+
     /**
      * 返回视图内容
      * @param string $tpl 模板名称