{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xq-web-bpm\\src\\components\\form\\dataTemplate\\TemplateCtrlFieldDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\components\\form\\dataTemplate\\TemplateCtrlFieldDialog.vue","mtime":1675071992178},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.object.keys\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport form from '@/api/form.js';\nexport default {\n name: 'template-ctrl-field-dialog',\n components: {},\n props: {},\n data: function data() {\n return {\n ctrlFiled: {},\n controlContentObject: {},\n controlContentArray: [],\n customDialogs: [],\n custDialogFields: [],\n dialogVisible: false,\n conditionFields: [],\n conditionfield: [],\n customQuerys: [],\n customQueryUrl: '/form/customQuery/v1/list',\n custDialogprop: {}\n };\n },\n created: function created() {\n if (!this.ctrlFiled.option) {\n this.ctrlFiled.option = {\n choiceType: 'static',\n customQuery: {}\n };\n }\n },\n methods: {\n initData: function initData() {\n var _this2 = this;\n\n if (this.ctrlFiled.ct == 'customDialog') {\n if (this.ctrlFiled.controlContent) {\n this.controlContentObject = this.ctrlFiled.controlContent;\n }\n\n if (this.ctrlFiled.custDialogprop && Object.keys(this.ctrlFiled.custDialogprop).length != 0) {\n this.custDialogprop = this.ctrlFiled.custDialogprop;\n }\n\n this.changeDialog();\n form.getCustomDialogs().then(function (response) {\n _this2.customDialogs = [];\n\n if (response && response.length > 0) {\n response.forEach(function (d) {\n _this2.customDialogs.push({\n key: d.alias,\n value: d.name\n });\n });\n }\n });\n } else {\n if (this.ctrlFiled.controlContent && this.ctrlFiled.controlContent.length > 0) {\n this.controlContentArray = this.ctrlFiled.controlContent;\n } else {\n this.controlContentArray = [];\n }\n }\n },\n handleClose: function handleClose() {\n this.dialogVisible = false;\n },\n showDialog: function showDialog(row, conditionFields) {\n this.ctrlFiled = row;\n\n if (conditionFields) {\n conditionFields.forEach(function (item) {\n item.value = item.colPrefix + item.na;\n });\n }\n\n this.conditionFields = conditionFields;\n this.dialogVisible = true;\n this.initData();\n },\n addControlContent: function addControlContent() {\n this.controlContentArray.push({\n key: '',\n value: ''\n });\n },\n changeDialog: function changeDialog() {\n var _this3 = this;\n\n if (this.controlContentObject.alias) {\n var this_ = this;\n form.getCustomDialogByAlias(this.controlContentObject.alias).then(function (response) {\n _this3.custDialogFields = []; //this.controlContentObject.resultField = ''\n\n if (response && response.resultfield) {\n var fields = JSON.parse(response.resultfield);\n fields.forEach(function (f) {\n _this3.custDialogFields.push({\n key: f.comment,\n value: f.comment\n });\n });\n }\n\n if (response && response.conditionfield) {\n _this3.conditionfield = JSON.parse(response.conditionfield);\n\n if (this_.ctrlFiled.bind) {\n _this3.conditionfield.forEach(function (conf) {\n this_.ctrlFiled.bind.forEach(function (fbind) {\n if (!conf.bind && conf.field.toLowerCase() == fbind.field.toLowerCase()) {\n this_.$set(conf, 'bind', fbind.bind);\n }\n });\n });\n }\n }\n });\n }\n },\n onConfirm: function onConfirm(selection) {\n if (this.ctrlFiled.ct == 'customDialog') {\n this.ctrlFiled.controlContent = this.controlContentObject;\n\n if (this.conditionfield && this.conditionfield.length > 0) {\n this.ctrlFiled.bind = this.conditionfield;\n }\n\n if (Object.keys(this.custDialogprop).length != 0) {\n this.ctrlFiled.custDialogprop = this.custDialogprop;\n }\n } else {\n this.ctrlFiled.controlContent = this.controlContentArray;\n }\n\n this.dialogVisible = false;\n this.$emit('onConfirm', this.ctrlFiled);\n },\n //显示字段排序\n sort: function sort(index, type) {\n if ('up' == type) {\n if (index === 0) {\n this.$message({\n message: '已经是列表中第一位',\n type: 'warning'\n });\n } else {\n var temp = this.controlContentArray[index - 1];\n this.$set(this.controlContentArray, index - 1, this.controlContentArray[index]);\n this.$set(this.controlContentArray, index, temp);\n }\n } else {\n if (index === this.controlContentArray.length - 1) {\n this.$message({\n message: '已经是列表中最后一位',\n type: 'warning'\n });\n } else {\n var i = this.controlContentArray[index + 1];\n this.$set(this.controlContentArray, index + 1, this.controlContentArray[index]);\n this.$set(this.controlContentArray, index, i);\n }\n }\n },\n //删除显示字段\n remove: function remove(index) {\n this.controlContentArray.splice(index, 1);\n },\n changeResultField: function changeResultField() {\n this.$forceUpdate();\n },\n //切换固定选项和动态选项时\n dynamicClick: function dynamicClick() {\n this.controlContentArray = [];\n this.customQueryUrl = '/form/customQuery/v1/list';\n this.ctrlFiled.option.customQuery = {\n valueBind: '',\n labelBind: '',\n conditionfield: [],\n custQueryJson: []\n };\n this.ctrlFiled.option.bind = [];\n this.ctrlFiled.option.options = [];\n\n if (this.ctrlFiled.option.choiceType == 'dynamic') {\n this.ctrlFiled.option.linkage = [];\n }\n },\n afterCustomQueryLoadData: function afterCustomQueryLoadData(data) {\n this.customQuerys = data.rows;\n },\n //选择动态选项\n setCurrentCustomQuery: function setCurrentCustomQuery() {\n var _this4 = this;\n\n var _this = this;\n\n _this.ctrlFiled.option.customQuery.custQueryJson = [];\n\n _this.customQuerys.forEach(function (item) {\n if (_this.ctrlFiled.option.customQuery.alias == item.alias) {\n if (typeof item.conditionfield == 'string') {\n item.conditionfield = JSON.parse(item.conditionfield); //parseToJson(item.customQuery.conditionfield);\n\n item.resultfield = JSON.parse(item.resultfield); // parseToJson(item.customQuery.resultfield);\n } //把当前对象克隆一份到控件属性配置\n\n\n Object.assign(_this.ctrlFiled.option.customQuery, item); // _this.slimCustomQuery(_this.ctrlFiled.option.customQuery);\n }\n }); //删除掉无效的参数\n\n\n var bind = [];\n this.ctrlFiled.option.customQuery.conditionfield.forEach(function (item) {\n if (item.defaultType == 1) {\n bind.push(item);\n }\n });\n this.ctrlFiled.option.bind = bind; //切换关联数据设置项或下拉框动态值 同时清空绑定返回值、参数绑定、选项绑定\n\n this.custDialogprop = {};\n this.ctrlFiled.option.gangedBind = {};\n this.ctrlFiled.option.customQuery.valueBind = '';\n this.ctrlFiled.option.customQuery.labelBind = '';\n\n if (this.ctrlFiled.option.customQuery.conditionfield) {\n this.ctrlFiled.option.customQuery.conditionfield.forEach(function (element) {\n _this4.$set(element, 'fieldPath', '');\n });\n }\n }\n }\n};",null]}