From 60dc24cee71d86c65924cd8e61e9972b0d5dfaf3 Mon Sep 17 00:00:00 2001 From: super_liu <396572590@qq.com> Date: Wed, 5 Jan 2022 09:31:48 +0800 Subject: [PATCH] feat: There is no way the, --- .../domesticStandardsAndRegulations/index.vue | 92 +++++++++++++++++++ 1 file changed, 92 insertions(+) diff --git a/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue b/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue index 00a6f4de9..0a7ae0d29 100644 --- a/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue +++ b/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue @@ -5141,6 +5141,97 @@ export default { }) } }, + /** + * 获取新增弹框的表单 + */ + getAddFormFieldList(isEdit) { + this.$http.get('lawss/sarStandAttrDetails/list', {}, { + _this: this + }, + res => { + if (res.ok) { + const {data = {}} = res + this.formFieldListData = data['INLAND_STAND'] || [] + // 追加高级查询动态下拉框数据s + this.twoOptions = [ + { + label: '标准类别', + value: 'stand_sort', + type: 'SEL_OPTION', + disabled: false + }, + { + label: '文本状态', + value: 'stand_state_show', + type: 'SEL_OPTION', + disabled: false + }, + // { + // label: '适用区域', + // value: 'country', + // type: 'SEL_OPTION', + // disabled: false + // }, + { + label: '重要度', + value: 'is_relate_access', + type: 'SEL_OPTION', + disabled: false + }, + { + label: '标准编号', + value: 'stand_number', + type: 'INPUT', + disabled: false + }, + { + label: '标准年份', + value: 'stand_year', + type: 'INPUT', + disabled: false + }, + { + label: '中文名称', + value: 'stand_name', + type: 'INPUT', + disabled: false + }, + { + label: '英文名称', + value: 'stand_en_name', + type: 'INPUT', + disabled: false + }, + { + label: '发布日期', + value: 'issue_time', + type: 'DATE_PIC_OPTS', + disabled: false + }, + { + label: '文本说明', + value: 'synopsis', + type: 'INPUT', + disabled: false + } + ] + this.formFieldListData.map(item => { + if (item.attrType !== 'FILE' && item.attrField !== 'ZRLX') { + this.twoOptions.push({ + value: item.attrField, + label: item.attrName, + selVal: item.selVal, + type: item.attrType, + disabled: false, + __wx__: item + }) + } + }) + // this.resolveFormFieldList() + } + }, e => { + }) + }, /** * 展示位置 */ @@ -5632,6 +5723,7 @@ export default { // 加载所有的部门 this.getOrgTreeSource() // 加载动态表单数据 + this.getAddFormFieldList() this.getDept() this.busVsFunc() this.modelFunc()