{"remainingRequest":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/thread-loader/dist/cjs.js!/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/babel-loader/lib/index.js!/data/jenkins/workspace/badp-bcxin-web-5.x-vue/node_modules/cache-loader/dist/cjs.js??ref--0-0!/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_dept_select.vue?vue&type=script&lang=js&","dependencies":[{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/src/components/o_dept_select.vue","mtime":1725957645726},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-vue/babel.config.js","mtime":1725957645200},{"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":["import \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/es6.regexp.split\";\nimport \"core-js/modules/es6.regexp.replace\";\nimport Constant from \"@/Constant.js\";\nimport controlHidden from \"@/assets/js/controlHidden.js\";\nexport default {\n name: \"o-dept-select\",\n props: [\"id\"],\n computed: {\n field: function field() {\n var formData = this.$parent.findField(this.id);\n if (formData.displayType == 5 || formData.displayType == 3) {\n formData.printHiddenValue = formData.printHiddenValue ? formData.printHiddenValue.replace(/ /g, \"\") : \"\";\n }\n return formData;\n }\n },\n watch: {\n // 'field.options': {\n // deep:true,\n // handler:function(newV,oldV){\n // console.log('field--2-->',this.field.options)\n // console.log('field---2->',this.field.value)\n // if(this.field.value) {\n // if(this.field.options.length <= 0) {\n // this.field.options = [];\n // this.fieldValue = '';\n // this.$forceUpdate();\n // }\n // }\n // }\n // }\n },\n mounted: function mounted() {\n var _this = this;\n this.$nextTick(function () {\n var field = _this.field;\n if (field.customStyle) {\n var customStyle = field.customStyle.content;\n customStyle = customStyle.split(\"{\")[1].split(\"}\")[0];\n if (_this.$refs.deptSelect) {\n _this.$refs.deptSelect.$refs.reference.$refs.input.style = customStyle;\n }\n }\n if (field.isHideType) {\n var id = _this.id,\n formShowType = field.formShowType;\n controlHidden({\n id: id,\n field: field,\n formShowType: formShowType\n });\n }\n });\n },\n data: function data() {\n return {\n isActive: false,\n errorMessage: \"\",\n Constant: Constant,\n selectedOption: {},\n showLogsDialog: false,\n tableData: [],\n showLogsIcon: true\n };\n },\n methods: {\n hiddenLogsDialog: function hiddenLogsDialog() {\n this.showLogsIcon = false;\n this.showLogsDialog = false;\n },\n enter: function enter() {\n if (this.field.isModified) {\n this.showLogsIcon = true;\n }\n },\n getOperationLogs: function getOperationLogs() {\n var _this2 = this;\n this.showLogsDialog = true;\n var data = {\n fieldName: this.field.name,\n _: new Date().getTime()\n };\n this.$api.getOperationLogs(this.$root.appid, this.field.docId, data, {\n onSucess: function onSucess(res) {\n _this2.tableData = res.data.data;\n }\n });\n },\n onChange: function onChange(ev) {\n var _this3 = this;\n var field = this.field;\n this.$parent.refresh(this.id);\n if (field.refreshOnChanged) {\n //判断是否需要刷新\n var havePar = false;\n var par = \"\";\n while (!havePar) {\n par = par + \".$parent\";\n var url = \"this\" + par + \".refresh\";\n if (eval(url)) {\n // let path = url + \"(\" + this.id + \")\";\n var path = url + '(' + \"'\" + this.id + \"'\" + ')';\n eval(path);\n break;\n }\n }\n }\n if (field.instantValidate) {\n var value = true;\n var formData = this.$parent.checkData(value);\n this.$api.formValidation(this.$root.appid, formData, {\n onSucess: function onSucess(response) {\n if (response.data.errcode == 4001) {\n if (response.data.errors && response.data.errors.length > 0) {\n var arr = response.data.errors;\n for (var i = 0; i < arr.length; i++) {\n if (_this3.field.name == arr[i].field) {\n _this3.isActive = true;\n _this3.errorMessage = arr[i].errmsg;\n return;\n } else {\n _this3.isActive = false;\n _this3.errorMessage = \"\";\n }\n }\n }\n } else if (response.data.errcode == 0) {\n _this3.isActive = false;\n }\n }\n });\n }\n }\n }\n};",null]}