Forráskód Böngészése

采美百科页面接口调试

yuwenjun1997 2 éve
szülő
commit
ad6e3e8a6b

+ 2 - 2
src/main/resources/static/js/supplier-center/encyclopedia/edit.js

@@ -127,7 +127,7 @@ const edit = new Vue({
         contentEdit: null, // 编辑器
         // 提交表单数据
         formData: {
-            authUserId:'',
+            shopId:'',
             id: '', // 词条id
             name: '', // 词条名称
             alias: '', // 义项名
@@ -261,7 +261,7 @@ const edit = new Vue({
         // 提交表单
         async handleConfirm() {
             try {
-                this.formData.authUserId = GLOBAL_SHOP_ID
+                this.formData.shopId = GLOBAL_SHOP_ID
                 this.formData.imageList = this.filterImageList(this.fileList)
                 this.formData.videoList = this.filterVideoList(this.fileList)
                 await this.$refs.ruleForm.validate()

+ 3 - 1
src/main/resources/static/js/supplier-center/encyclopedia/list.js

@@ -10,7 +10,8 @@ const list = new Vue({
         windowName: 'supplier-entry-list',
         isPC: window.innerWidth > 768,
         listQuery: {
-            id: '', //词条id
+            shopId: '',
+            id: '', //词条id,
             name: '', //词条名称
             typeId: '', //分类id
             auditStatus: '', //百科审核状态:1待审核,2审核通过,3审核失败
@@ -65,6 +66,7 @@ const list = new Vue({
             if(this.listQuery.pageNum < 1){
                 this.listQuery.pageNum = 1
             }
+            this.listQuery.shopId = GLOBAL_SHOP_ID
             shopBikeApi.FetchEntryList(this.listQuery, function (res) {
                 self.list = res.data.results
                 self.totalPage = res.data.totalPage