{"remainingRequest":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/vue-loader/lib/index.js??vue-loader-options!/data/jenkins/workspace/badp-bcxin-web-5.x-vue/src/components/o_select_about.vue?vue&type=script&lang=js&","dependencies":[{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/src/components/o_select_about.vue","mtime":1725957645727},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/thread-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/babel-loader/lib/index.js","mtime":315532800000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/vue-loader/lib/index.js","mtime":1655715099000}],"contextDependencies":[],"result":["\nimport Constant from \"@/Constant.js\";\nimport form_operation from \"@/components/form_operation_log\";\nimport controlHidden from \"@/assets/js/controlHidden.js\"\nexport default {\n name: \"o-select-about\",\n props: [\"id\"],\n components: {\n form_operation,\n },\n computed: {\n field: function() {\n return this.$parent.findField(this.id);\n },\n options: function() {\n let data = [];\n let selectData = [];\n let field = this.$parent.findField(this.id);\n if(field.value) {\n let arr = field.value.split(\";\");\n if(arr && arr.length>0) {\n for(let i=0; i {\n data.push({\n key: option.option,\n label: option.option,\n disabled: field.displayType == 1?true:false,\n value: option.value,\n });\n });\n this.selectData = selectData;\n return data;\n }\n \n },\n\n mounted(){\n this.$nextTick(()=>{\n let field = this.field;\n if(field.isHideType) {\n let id = this.id,\n formShowType = field.formShowType;\n controlHidden({id, field, formShowType})\n }\n })\n },\n\n data: function() {\n return { \n isActive: false,\n errorMessage:'',\n Constant,\n selectData:[],\n showLogsDialog: false,\n showLogsIcon:true,\n operationData:'',\n rightSelectIndex:'',\n rightSelectItem: [],\n };\n },\n\n methods: {\n chooseRightBox (value) {\n this.rightSelectItem = value;\n },\n\n handleUp(){\n if(this.rightSelectItem.length == 1) {\n this.selectData.find((val, index) => {\n if (val == this.rightSelectItem) {\n this.rightSelectIndex = index; // 数组项的下标就是我当前选中项的下标\n }\n });\n if (this.rightSelectIndex == 0) {\n // this.$t('msg.no_space')\n return this.$message.info(\"没有上移的空间了\");\n }\n let changeItem = JSON.parse(JSON.stringify(this.selectData[this.rightSelectIndex - 1]));\n this.selectData.splice(this.rightSelectIndex - 1, 1);\n this.selectData.splice(this.rightSelectIndex, 0, changeItem);\n this.rightSelectIndex = this.rightSelectIndex - 1;\n this.sortOnChange(this.selectData)\n }else {\n // this.$t('msg.choose_one')\n return this.$message.error(\"只能选择一条数据进行上下移动\");\n }\n },\n\n handleDown () {\n if (this.rightSelectItem.length == 1) {\n this.selectData.find((val, indexs) => {\n if (val == this.rightSelectItem) {\n this.rightSelectIndex = indexs;\n }\n });\n if (this.rightSelectIndex == this.selectData.length - 1) {\n // 这里是length-1,因为下标值从0开始\n return this.$message.info(\"已经是最后了!\");\n }\n let changeItem = JSON.parse(JSON.stringify(this.selectData[this.rightSelectIndex]));\n this.selectData.splice(this.rightSelectIndex, 1);\n this.selectData.splice(this.rightSelectIndex + 1, 0, changeItem);\n this.rightSelectIndex = this.rightSelectIndex + 1;\n this.sortOnChange(this.selectData)\n } else {\n return this.$message.error(\"只能选择一条数据进行上下移动\");\n }\n },\n\n hiddenLogsDialog() {\n this.showLogsIcon = false;\n this.showLogsDialog = false;\n },\n\n enter(){\n if(this.field.isModified) {\n this.showLogsIcon = true;\n }\n },\n \n getOperationLogs() {\n let obj = {};\n obj.fieldName = this.field.name;\n this.operationData = obj;\n this.showLogsDialog = true;\n },\n\n sortOnChange(selectData){\n let value = '';\n if(selectData && selectData.length>0) {\n for(let i=0; i0) {\n for(let i=0; i {\n if(response.data.errcode == 4001) {\n if(response.data.errors && response.data.errors.length > 0) {\n let arr = response.data.errors;\n for(let i=0; i