This commit is contained in:
2025-12-27 09:01:32 +08:00
commit 24647b844e
712 changed files with 2718 additions and 0 deletions

View File

@@ -0,0 +1 @@
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_tool/seal/structure"],{"141c":function(e,t,n){"use strict";var i=n("ad01"),a=n.n(i);a.a},"3a67":function(e,t,n){"use strict";n.r(t);var i=n("b943"),a=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(r);t["default"]=a.a},"446b":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){}));var i=function(){var e=this,t=e.$createElement,n=(e._self._c,e.files_url?e.$util.img("addon/personnel/shop/view/enterprise/fileicon.png"):null);e._isMounted||(e.e0=function(t,n,i){var a=[],r=arguments.length-3;while(r-- >0)a[r]=arguments[r+3];var s=a[a.length-1].currentTarget.dataset,c=s.eventParams||s["event-params"];n=c.idx,i=c.item;return e.bindPickerChange(t,n,i)}),e.$mp.data=Object.assign({},{$root:{g0:n}})},a=[]},"7d80":function(e,t,n){"use strict";n.r(t);var i=n("446b"),a=n("3a67");for(var r in a)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(r);n("141c");var s=n("828b"),c=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);t["default"]=c.exports},ad01:function(e,t,n){},b943:function(e,t,n){"use strict";(function(e){var i=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n("7ca3"));function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){(0,a.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var c={components:{},data:function(){return{index:0,array:["选项1","选项2","选项3"],pickerList:[],maxIndex:0,answerName:"",files_url:""}},onLoad:function(e){this.getdata()},methods:{onTapDoc:function(){var t=this.$util.img(this.files_url);e.showLoading({title:"正在加载"});try{e.downloadFile({url:t,success:function(t){if(console.log(t),200===t.statusCode){var n=t.tempFilePath;e.openDocument({filePath:n,success:function(e){console.log("打开成功")},fail:function(){},complete:function(){e.hideLoading({success:function(e){}})}})}},fail:function(t){e.hideLoading({success:function(e){}})},complete:function(t){console.log("下载完成",t),404==t.statusCode&&e.showToast({title:"文件不存在",icon:"none"})}})}catch(n){console.log("CatchClause",n),console.log("CatchClause",n),e.hideLoading({success:function(e){}})}},getdata:function(){var e=this;this.$api.sendRequest({url:"/api/seal/getstructure",success:function(t){console.log(t);var n=t.data;e.pickerList.push({id:e.generateId(),value:0,range:n})}})},generateId:function(){return Date.now()+Math.floor(1e3*Math.random())},addPicker:function(){var e=["新选项1-".concat(this.pickerList.length+1),"新选项2-".concat(this.pickerList.length+1),"新选项3-".concat(this.pickerList.length+1)];this.pickerList.push({id:this.generateId(),value:0,range:e})},deletePicker:function(e){this.pickerList.splice(e,1)},bindPickerChange:function(e,t,n){var i=e.detail.value;if(this.$set(this.pickerList,t,s(s({},this.pickerList[t]),{},{value:i})),console.log("当前选择"+t),console.log("当前记录值"+this.maxIndex),n.range[i].child_list.length>0&&n.range[i].child_list[1].is_answer)return console.log("这里是结果"),this.maxIndex=t,this.answerName=n.range[i].child_list[1].name,void(this.files_url=n.range[i].child_list[1].files_url);if(this.maxIndex>t&&-1!=this.maxIndex)return console.log("选小了"),this.pickerList.splice(t+1),this.maxIndex=t,this.answerName="",void(this.files_url="");if(this.maxIndex==t){if(this.pickerList.splice(t+1),this.maxIndex=0,n.range[i].child_list.length>0){var a=n.range[i].child_list;this.pickerList.push({id:this.generateId(),value:0,range:a})}}else if(n.range[i].child_list.length>0){a=n.range[i].child_list;this.pickerList.push({id:this.generateId(),value:0,range:a})}this.maxIndex=t},showAllResult:function(){var t=this.pickerList.map((function(e,t){return{pickerIndex:t+1,selectedValue:e.range[e.value],selectedIndex:e.value,pickerId:e.id}}));e.showModal({title:"所有选择结果",content:JSON.stringify(t,null,2),showCancel:!1})}}};t.default=c}).call(this,n("df3c")["default"])},ea7a:function(e,t,n){"use strict";(function(e,t){var i=n("47a9");n("1dee");i(n("3240"));var a=i(n("7d80"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(a.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])}},[["ea7a","common/runtime","common/vendor"]]]);