PageSourceSearch

https://www.mabangerp.com/amazon/static/js/chunk-1079.4ebb516e.js?site=amazon

js mabangerp.com collected 2026-10-01 10:30:56 UTC 10,848 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[1079],{67077:function(e,t,r){Object.defineProperty(t,"B",{value:!0});var o=r(41827),a=r(44899),n=r(76915),i=r(77085),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.keywordText="",t.page=1,t.pageSize=10,t.total=0,t.loading=!1,t.tableData=[],t.selectedRows=[],t.requestId=0,t}return(0,o.__extends)(t,e),t.prototype.onAddedTextsChange=function(){this.clearInvalidSelection()},t.prototype.onAdvertTypeChange=function(){this.page=1,this.fetchList()},t.prototype.onStockTargetTypeChange=function(){this.page=1,this.fetchList()},t.prototype.onCountryChange=function(){this.page=1,this.fetchList()},t.prototype.onIsCategoryChange=function(){this.page=1,this.fetchList()},Object.defineProperty(t.prototype,"resolvedAdvertType",{get:function(){var e=String(this.advertType||"").toUpperCase();if(e)return e;try{return String(this.injectedAdvertType&&this.injectedAdvertType()||"").toUpperCase()}catch(e){return""}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resolvedTargetType",{get:function(){return(0,i.resolveWordStockNegativeQuery)(this.resolvedAdvertType,this.stockTargetType).target_type},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTargetQuery",{get:function(){return"target"===this.resolvedTargetType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPositiveQuery",{get:function(){return 1===Number(this.isCategory)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textColumnLabel",{get:function(){return this.isTargetQuery?"ASIN":this.$t("词")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resolvedMaxHeight",{get:function(){return this.tableMaxHeight?this.tableMaxHeight:Number(this.tableHeight)>0?Number(this.tableHeight):360},enumerable:!1,configurable:!0}),t.prototype.mounted=function(){this.fetchList()},t.prototype.isAdded=function(e){var t=String(e.text||"").trim();return!!t&&this.addedTexts.includes(t)},t.prototype.canSelectRow=function(e){return!this.isAdded(e)&&(0,i.isWordStockRowAllowedForTargetType)(e,this.resolvedTargetType)},t.prototype.formatSource=function(e){if(!e)return"--";try{var t=(Array.isArray(e)?e:JSON.parse(e)).map(function(e){return e&&e.name}).filter(Boolean);return t.length?t.join(","):"--"}catch(t){return String(e)}},t.prototype.handleSearch=function(){this.page=1,this.fetchList()},t.prototype.handleReset=function(){this.keywordText="",this.page=1,this.fetchList()},t.prototype.handleCurrentChange=function(e){this.page=e,this.fetchList()},t.prototype.handleSelectionChange=function(e){this.selectedRows=e},t.prototype.addOne=function(e){var t=String(e.text||"").trim();t&&!this.isAdded(e)&&(0,i.isWordStockRowAllowedForTargetType)(e,this.resolvedTargetType)&&this.$emit("add",[t])},t.prototype.addSelected=function(){var e=this,t=(0,i.filterWordStockTextsByTargetType)(this.selectedRows.map(function(e){return String(e.text||"").trim()}),this.resolvedTargetType).filter(function(t){return t&&!e.addedTexts.includes(t)});if(t.length){this.$emit("add",t);var r=this.$refs.table;r&&r.clearSelection&&r.clearSelection()}else this.$message.warning(this.isPositiveQuery||this.isTargetQuery?this.$t("请先选择要添加的词"):this.$t("请先选择要添加到否定关键词的词"))},t.prototype.clearInvalidSelection=function(){var e=this,t=this.$refs.table;t&&this.selectedRows.length&&this.selectedRows.forEach(function(r){e.isAdded(r)&&t.toggleRowSelection&&t.toggleRowSelection(r,!1)})},t.prototype.fetchList=function(){return(0,o.__awaiter)(this,void 0,void 0,function(){var e,t;return(0,o.__generator)(this,function(r){switch(r.label){case 0:e=++this.requestId,this.loading=!0,r.label=1;case 1:return r.trys.push([1,3,4,5]),[4,(0,n.getWordStockReportList)((0,i.buildWordStockNegativeListParams)(this.resolvedAdvertType,{page:this.page,pageSize:this.pageSize,searchText:this.keywordText,country:this.country,targetType:this.stockTargetType,isCategory:this.isCategory}))];case 2:return t=r.sent(),e!==this.requestId?[2]:200!==t.code?(this.$message.error(t.msg||t.message||this.$t("获取词库列表失败")),this.tableData=[],this.total=0,[2]):(this.tableData=(0,i.filterWordStockRowsByTargetType)(t.data&&t.data.list||[],this.resolvedTargetType),this.total=t.data&&t.data.total||0,[3,5]);case 3:return r.sent(),e!==this.requestId?[2]:(this.tableData=[],this.total=0,this.$message.error(this.$t("获取词库列表失败")),[3,5]);case 4:return e===this.requestId&&(this.loading=!1),[7];case 5:return[2]}})})},(0,o.__decorate)([(0,a.Prop)({type:Array,default:function(){return[]}})],t.prototype,"addedTexts",void 0),(0,o.__decorate)([(0,a.Prop)({type:Number,default:360})],t.prototype,"tableHeight",void 0),(0,o.__decorate)([(0,a.Prop)({type:Number,default:0})],t.prototype,"tableMaxHeight",void 0),(0,o.__decorate)([(0,a.Prop)({type:String,default:""})],t.prototype,"advertType",void 0),(0,o.__decorate)([(0,a.Prop)({type:String,default:""})],t.prototype,"stockTargetType",void 0),(0,o.__decorate)([(0,a.Prop)({type:Number,default:2})],t.prototype,"isCategory",void 0),(0,o.__decorate)([(0,a.Prop)({type:Array,default:function(){return[]}})],t.prototype,"country",void 0),(0,o.__decorate)([(0,a.Inject)({from:"getAdvertType",default:function(){return function(){return""}}})],t.prototype,"injectedAdvertType",void 0),(0,o.__decorate)([(0,a.Watch)("addedTexts")],t.prototype,"onAddedTextsChange",null),(0,o.__decorate)([(0,a.Watch)("resolvedAdvertType")],t.prototype,"onAdvertTypeChange",null),(0,o.__decorate)([(0,a.Watch)("stockTargetType")],t.prototype,"onStockTargetTypeChange",null),(0,o.__decorate)([(0,a.Watch)("country",{deep:!0})],t.prototype,"onCountryChange",null),(0,o.__decorate)([(0,a.Watch)("isCategory")],t.prototype,"onIsCategoryChange",null),(0,o.__decorate)([(0,a.Component)({name:"WordStockNegativeSelect"})],t)}(a.Vue);t.A=s},77085:function(e,t){function r(e,t){var r=String(t||"").toLowerCase();return"target"===r||"keyword"===r?{target_type:r,is_category:2}:"SD"===String(e||"").toUpperCase()?{target_type:"target",is_category:2}:{target_type:"keyword",is_category:2}}function o(e){var t=String(e||"").trim().toUpperCase();return/^[A-Z0-9]{10}$/.test(t)&&/[A-Z]/.test(t)}function a(e){var t=String(e&&(e.target_type||e.targetType)||"").toLowerCase();if("keyword"===t||"target"===t)return t;var r=Number(e&&e.t_uuid),a=Number(e&&e.k_uuid);return r>0&&!(a>0)?"target":a>0&&!(r>0)?"keyword":o(e&&e.text)?"target":String(e&&e.text||"").trim()?"keyword":""}function n(e,t){var r="target"===String(t||"").toLowerCase()?"target":"keyword",n=String(e&&e.text||"").trim();if(!n)return!1;var i=a(e);return!(i&&i!==r||"keyword"===r&&o(n)||"target"===r&&!o(n))}
1Object.defineProperty(t,"__esModule",{value:!0}),t.filterWordStockTextsByTargetType=t.filterWordStockRowsByTargetType=t.isWordStockRowAllowedForTargetType=t.resolveWordStockRowTargetType=t.isWordStockAsinText=t.buildWordStockNegativeListParams=t.resolveWordStockNegativeQuery=t.resolveWordStockCountry=void 0,t.resolveWordStockCountry=function(e){var t=String((null==e?void 0:e.amazonsite)||(null==e?void 0:e.amazonSite)||(null==e?void 0:e.amazon_site)||(null==e?void 0:e.country)||"").trim().toUpperCase();return t?[t]:[]},t.resolveWordStockNegativeQuery=r,t.buildWordStockNegativeListParams=function(e,t){void 0===t&&(t={});var o=r(e,t.targetType),a=null!=t.searchText?String(t.searchText).trim():"",n="target"===o.target_type;return{page:null!=t.page?t.page:1,pageSize:null!=t.pageSize?t.pageSize:10,is_category:1===Number(t.isCategory)?1:o.is_category,target_type:o.target_type,accurate:null!=t.accurate?t.accurate:0,keyword_text:n?"":a,asin:n?a:"",country:t.country||[],source:t.source||[]}},t.isWordStockAsinText=o,t.resolveWordStockRowTargetType=a,t.isWordStockRowAllowedForTargetType=n,t.filterWordStockRowsByTargetType=function(e,t){return(Array.isArray(e)?e:[]).filter(function(e){return n(e,t)})},t.filterWordStockTextsByTargetType=function(e,t){var r="target"===String(t||"").toLowerCase()?"target":"keyword";return(Array.isArray(e)?e:[]).map(function(e){return String(e||"").trim()}).filter(function(e){if(!e)return!1;var t=o(e);return"target"===r?t:!t})}},41079:function(e,t,r){r.r(t),r.d(t,{__esModule:function(){return a.B},default:function(){return i}});var o=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"word-stock-negative-select"},[t("div",{staticClass:"filter-row"},[t("el-input",{attrs:{size:"small",placeholder:e.$t("请输入搜索内容")},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleSearch.apply(null,arguments)}},model:{value:e.keywordText,callback:function(t){e.keywordText=t},expression:"keywordText"}}),t("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleSearch}},[e._v(e._s(e.$t("查询")))]),t("el-button",{attrs:{size:"small"},on:{click:e.handleReset}},[e._v(e._s(e.$t("重置")))])],1),t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"table",attrs:{data:e.tableData,"max-height":e.resolvedMaxHeight,size:"mini",border:""},on:{"selection-change":e.handleSelectionChange}},[t("el-table-column",{attrs:{type:"selection",width:"42",align:"center",selectable:e.canSelectRow}}),t("el-table-column",{attrs:{label:e.textColumnLabel,"min-width":"140","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[e._v(" "+e._s(r.text)+" ")]}}])}),t("el-table-column",{attrs:{label:e.$t("国家"),width:"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[e._v(" "+e._s(r.country_name||"--")+" ")]}}])}),t("el-table-column",{attrs:{label:e.$t("来源"),width:"90","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[e._v(" "+e._s(e.formatSource(r.source))+" ")]}}])}),t("el-table-column",{attrs:{label:e.$t("操作"),width:"72",align:"center"},scopedSlots:e._u([{key:"default",fn:function(r){var o=r.row;return[t("el-button",{attrs:{type:"text",disabled:e.isAdded(o)},on:{click:function(t){return e.addOne(o)}}},[e._v(" "+e._s(e.isAdded(o)?e.$t("已添加"):e.$t("添加"))+" ")])]}}])}),t("template",{slot:"empty"},[t("span",[e._v(e._s(e.$t("暂无数据")))])])],2),t("div",{staticClass:"footer-row"},[t("el-pagination",{attrs:{small:"",layout:"total, prev, pager, next","current-page":e.page,"page-size":e.pageSize,total:e.total},on:{"current-change":e.handleCurrentChange}}),t("el-button",{attrs:{type:"primary",size:"small",disabled:!e.selectedRows.length},on:{click:e.addSelected}},[e._v(" "+e._s(e.$t("添加"))+" ")])],1)],1)};o._withStripped=!0;var a=r(67077),n=a.A,i=(0,r(67658).A)(n,o,[],!1,null,"d399d646",null).exports}}]);
2//# sourceMappingURL=chunk-1079.4ebb516e.js.map?site=amazon

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.