Files
cog_streamer_web/dist/js/chunk-2ec66508.8c50bd7f.js
我是个攻城狮 2fe864787a alls
2026-08-26 16:53:45 +08:00

2 lines
8.0 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2ec66508"],{"271a":function(t,e,s){"use strict";var a=s("cb2d"),r=s("e330"),o=s("577e"),n=s("d6d6"),i=URLSearchParams,c=i.prototype,l=r(c.getAll),d=r(c.has),u=new i("a=1");!u.has("a",2)&&u.has("a",void 0)||a(c,"has",(function(t){var e=arguments.length,s=e<2?void 0:arguments[1];if(e&&void 0===s)return d(this,t);var a=l(this,t);n(e,1);var r=o(s),i=0;while(i<a.length)if(a[i++]===r)return!0;return!1}),{enumerable:!0,unsafe:!0})},"294c":function(t,e,s){},5494:function(t,e,s){"use strict";var a=s("83ab"),r=s("e330"),o=s("edd0"),n=URLSearchParams.prototype,i=r(n.forEach);a&&!("size"in n)&&o(n,"size",{get:function(){var t=0;return i(this,(function(){t++})),t},configurable:!0,enumerable:!0})},"87db":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAWZJREFUOE+lkzEsREEURc9NFAoJJQnRbKGwCVEg2YRG6NWiQDQUGwWFxOqUOgqFQkehQ4Vo6HQkFDYhUSgVCskzbzN/8+1++wtT/fyZd96d++6Ify411ptZNzAPDAFdwEv4PpV0kdXrF8DMlkPRLvAF3AIfETQInANLkl7ToDrAzBaAA2AfKEtySG2Z2QRwCHwDw5I+k70aIMp+AI4krWZJNbN+4NEbSCo3AtYCfRPoS9Mz/FkP19sAehKFiYJjN0zSVKuhmNlo9Mavce9nE8CZGyZpLgdQAJ6CoWOS7tKAPaAkqZgDmAVO4hXe04DpOKZJSdd/QcI0LoH2kInxXybGSdyEMfYCDqlmGLgV/lWCBzPpUKVz4MXewZO4E0BXIThvwEjwZ8XBEVqRtN2kIKroCLHwTosxxsk5T6WPuRRV1CFNbyGC2oABoBOopuNrZt7As1CU9JwJyHugZlbw4voU8gpa7f8Ai3x7EUt44c4AAAAASUVORK5CYII="},"88a7":function(t,e,s){"use strict";var a=s("cb2d"),r=s("e330"),o=s("577e"),n=s("d6d6"),i=URLSearchParams,c=i.prototype,l=r(c.append),d=r(c["delete"]),u=r(c.forEach),p=r([].push),h=new i("a=1&a=2&b=3");h["delete"]("a",1),h["delete"]("b",void 0),h+""!=="a=2"&&a(c,"delete",(function(t){var e=arguments.length,s=e<2?void 0:arguments[1];if(e&&void 0===s)return d(this,t);var a=[];u(this,(function(t,e){p(a,{key:e,value:t})})),n(e,1);var r,i=o(t),c=o(s),h=0,y=0,f=!1,w=a.length;while(h<w)r=a[h++],f||r.key===i?(f=!0,d(this,r.key)):y++;while(y<w)r=a[y++],r.key===i&&r.value===c||l(this,r.key,r.value)}),{enumerable:!0,unsafe:!0})},"989b":function(t,e,s){"use strict";s.d(e,"a",(function(){return i}));s("d9e2"),s("88a7"),s("271a"),s("5494");function a(t,e){const s=String(t||e||"资产评估报告").replace(/[\\/:*?"<>|]/g,"_").trim();return s||"资产评估报告"}function r(t){if(!t)return"";const e=t.match(/filename\*\s*=\s*UTF-8''([^;]+)/i);if(e)try{return decodeURIComponent(e[1])}catch(a){return e[1]}const s=t.match(/filename\s*=\s*(?:"([^"]+)"|([^;\s]+))/i);return s?s[1]||s[2]:""}function o(t){const e=new URL(t,window.location.href).pathname,s=e.split("/").pop();return s?decodeURIComponent(s):""}function n(t){return/(?:application|text)\/(?:json|xml|html)|\+xml/i.test(t||"")}async function i(t,e){if(!t||"string"!==typeof t)throw new Error("下载地址无效");let s;try{new URL(t,window.location.href),s=await fetch(t,{credentials:"omit"})}catch(p){throw new Error("报告文件无法访问,请检查对象存储的跨域来源配置")}const i=s.headers.get("content-type")||"";if(!s.ok||n(i))throw new Error("报告文件暂时无法下载,请稍后重试");const c=await s.blob();if(!c.size)throw new Error("报告文件为空,请稍后重试");const l=a(r(s.headers.get("content-disposition"))||o(t),e),d=window.URL.createObjectURL(c),u=document.createElement("a");u.href=d,u.download=l,u.style.display="none",document.body.appendChild(u),u.click(),document.body.removeChild(u),window.setTimeout(()=>window.URL.revokeObjectURL(d),6e4)}},b7eb:function(t,e,s){"use strict";s.r(e);var a=function(){var t=this,e=t._self._c;return e("UserShell",{attrs:{title:"我的申请",subtitle:"查看个人全部申请记录与处理状态",profile:t.profile,"menu-items":t.menuItems,"active-key":"apply","center-path":"/user/personal"}},[e("div",{staticClass:"page-actions"},[e("button",{staticClass:"apply-entry-btn",attrs:{type:"button"},on:{click:t.goApply}},[t._v("资产评估申请")])]),e("div",{staticClass:"notice-box"},[e("div",{staticClass:"notice-text"},[e("div",[t._v("· 当前资产类别暂定为主播资产/机构资产")]),e("div",[t._v("· 审核时间为2个工作日;审核通过后,专员将在3个工作日内电话联系你,联系电话:17882361794")])])]),e("div",{staticClass:"search-row"},[e("el-input",{staticClass:"search-input",attrs:{placeholder:"请输入编号/类型/状态"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleSearch.apply(null,arguments)}},model:{value:t.keyword,callback:function(e){t.keyword="string"===typeof e?e.trim():e},expression:"keyword"}}),e("button",{staticClass:"search-btn",attrs:{type:"button"},on:{click:t.handleSearch}},[e("img",{attrs:{src:s("87db")}}),t._v(" 搜索 ")])],1),e("div",{staticClass:"table-wrap"},[e("table",{staticClass:"apply-table"},[e("colgroup",[e("col",{staticStyle:{width:"177px"}}),e("col"),e("col"),e("col"),e("col")]),e("thead",[e("tr",{staticStyle:{height:"45px"}},[e("th",{staticStyle:{width:"177px"}},[t._v("申请编号")]),e("th",[t._v("资产类别")]),e("th",[t._v("提交时间")]),e("th",[t._v("当前状态")]),e("th",[t._v("操作")])])]),e("tbody",[t._l(t.filteredRecords,(function(s){return e("tr",{key:s.id,staticStyle:{height:"55px"}},[e("td",{staticStyle:{width:"177px"}},[t._v(t._s(s.applicationNo))]),e("td",[t._v(t._s(s.assetCategory))]),e("td",[t._v(t._s(s.submittedAt))]),e("td",[e("span",{class:["status-pill",t.statusClassMap[s.status]||"status-draft"]},[t._v(t._s(s.statusLabel))])]),e("td",[e("div",{staticClass:"action-group"},t._l(t.getActions(s),(function(a){return e("button",{key:a.label,class:["table-btn",a.type],attrs:{type:"button"},on:{click:function(e){return t.handleAction(a.key,s)}}},[t._v(" "+t._s(a.label)+" ")])})),0)])])})),t.filteredRecords.length?t._e():e("tr",{staticStyle:{height:"55px"}},[e("td",{staticClass:"empty-cell",attrs:{colspan:"5"}},[t._v("暂无申请记录")])])],2)])])])},r=[],o=(s("14d9"),s("0643"),s("2382"),s("9a9a"),s("1fa1")),n=s("4bb6"),i=s.n(n),c=s("42ee"),l=s("2c7f"),d=s("989b"),u={name:"PersonalApplicationList",components:{UserShell:o["a"]},data(){return{tipIcon:i.a,profile:Object(c["m"])(),menuItems:Object(c["l"])(),keyword:"",searchKeyword:"",records:[],statusClassMap:{rejected:"status-rejected",pending:"status-reviewing",approved:"status-approved",draft:"status-draft"}}},computed:{filteredRecords(){if(!this.searchKeyword)return this.records;const t=this.searchKeyword.toLowerCase();return this.records.filter(e=>[e.applicationNo,e.assetCategory,e.status,e.statusLabel].some(e=>String(e||"").toLowerCase().includes(t)))}},created(){this.loadRecords()},methods:{async loadRecords(){try{this.profile=Object(c["m"])(),this.records=await Object(l["c"])({per_page:15})}catch(t){this.records=[],this.$message.error(t&&t.message?t.message:"获取申请列表失败")}},handleSearch(){this.searchKeyword=this.keyword},goApply(){this.$router.push("/user/personal/asset-apply")},getActions(t){if("rejected"===t.status||"draft"===t.status)return[{key:"edit",label:"修改",type:"primary"}];if("pending"===t.status)return[{key:"view",label:"查看",type:"ghost"}];if("approved"===t.status){const e=[{key:"view",label:"查看",type:"ghost"}];return t.reportUrl&&e.push({key:"download",label:"下载报告",type:"ghost wide"}),e}return[{key:"edit",label:"修改",type:"primary"}]},async handleAction(t,e){if("edit"!==t)if("view"!==t){if("download"===t){if(!e.reportUrl)return void this.$message.warning("评估报告暂未生成");try{await Object(d["a"])(e.reportUrl,e.applicationNo+"-资产评估报告")}catch(s){this.$message.error(s&&s.message?s.message:"报告下载失败,请稍后重试")}}}else this.$router.push({path:"/user/personal/asset-apply",query:{mode:"view",id:e.id}});else this.$router.push({path:"/user/personal/asset-apply",query:{mode:"edit",id:e.id}})}},watch:{"$route.fullPath"(){this.loadRecords()}}},p=u,h=(s("c954"),s("2877")),y=Object(h["a"])(p,a,r,!1,null,"1773f07b",null);e["default"]=y.exports},c954:function(t,e,s){"use strict";s("294c")},d6d6:function(t,e,s){"use strict";var a=TypeError;t.exports=function(t,e){if(t<e)throw new a("Not enough arguments");return t}}}]);
//# sourceMappingURL=chunk-2ec66508.8c50bd7f.js.map