| | |
| | | <el-select v-else-if="item.fieldType==='combox'" v-model="searchFormArrays[index].fieldValue" placeholder="请选择"> |
| | | <el-option |
| | | v-for="option in item.data" |
| | | :key="option.itemValue" |
| | | :label="option.itemName" |
| | | :value="option.itemValue"> |
| | | :key="option.itemValue || option.value" |
| | | :label="option.itemName || option.label" |
| | | :value="option.itemValue || option.value"> |
| | | </el-option> |
| | | </el-select> |
| | | <el-switch v-else-if="item.fieldType==='truefalse'" v-model="searchFormArrays[index].fieldValue"></el-switch> |
| | |
| | | let array = []; |
| | | this.initOptions.forEach((item,index) => { |
| | | if(item.fieldType==='combox') { |
| | | let enumCach = JSON.parse(localStorage.getItem(item.comboxKey)); |
| | | let enumCach = item.data || JSON.parse(localStorage.getItem(item.comboxKey)); |
| | | if(enumCach != null) { |
| | | item.data = enumCach; |
| | | }else { |
| | |
| | | let conditions = []; |
| | | if(item.fieldType==='text'){ |
| | | conditions = this.searchConditions; |
| | | }else if (item.fieldType==='combox'){ |
| | | conditions = this.dateConditions; |
| | | }else if (item.fieldType==='datetime') { |
| | | }else if (item.fieldType==='combox'|| item.fieldType==='truefalse'){ |
| | | conditions = this.switchSearchConditions; |
| | | }else if (item.fieldType==='datetime') { |
| | | conditions = this.dateConditions; |
| | | }else { |
| | | conditions = this.referSearchConditions; |
| | | } |
| | |
| | | |
| | | /** 为参照类型时值选择之后的处理 */ |
| | | setReferValue(data,index){ |
| | | // console.log(index); |
| | | if(data.field) { |
| | | this.searchFormArrays[index][data.fieldValue] = data.value || ''; |
| | | this.initOptions[index][data.showField] = data.text || ''; |
| | | } |
| | | // console.log(this.initOptions[index][data.showField]); |
| | | // console.log(data); |
| | | }, |
| | | |
| | | // 属性切换时查询条件和查询值也需要对输入框进行切换 |
| | |
| | | return this.pushTypeList[d.pushType] |
| | | } |
| | | }, { |
| | | label: '系统名称', |
| | | prop: 'sysBaseName', |
| | | label: '系统编号', |
| | | prop: 'id', |
| | | sortable: true, |
| | | width: 150 |
| | | }, { |
| | | label: '系统编号', |
| | | prop: 'sysBaseId', |
| | | label: '系统名称', |
| | | prop: 'name', |
| | | sortable: true, |
| | | width: 150 |
| | | }, { |
| | |
| | | formatter:function (d){ |
| | | return this.returnTypeList[d.returnType] |
| | | } |
| | | }, { |
| | | label: '系统描述', |
| | | prop: 'description', |
| | | width: 150 |
| | | }] |
| | | }, |
| | | // 高级查询对话框相关参数 |
| | |
| | | }, |
| | | ENABLE(row,index){ |
| | | //启用 |
| | | this.updateStatus("enable"); |
| | | this.updateStatus(row,"enable"); |
| | | }, |
| | | DISABLE(row,index){ |
| | | //停用 |
| | | this.updateStatus("disable"); |
| | | this.updateStatus(row,"disable"); |
| | | }, |
| | | updateStatus(able){ |
| | | updateStatus(selectRow,able){ |
| | | var that = this; |
| | | var paramTemp = { |
| | | update:able, |
| | | oid:this.selectRow.oid, |
| | | ts:this.selectRow.ts |
| | | oid:selectRow.oid, |
| | | ts:selectRow.ts |
| | | }; |
| | | this.$confirm("是否要"+(able == "enbale" ? "启用" : (able == "disable" ? "停用": "发布")) +"这条数据?", { |
| | | confirmButtonText: "确定", |
| | |
| | | type: "success", |
| | | message:(able == "enbale" ? "启用成功" : (able == "disable" ? "停用成功": "发布成功")) |
| | | }); |
| | | this.$refs.crud.toggleSelection(); |
| | | }); |
| | | }, |
| | | PUSH(){ |
| | |
| | | this.loading = true; |
| | | getList(this.page.currentPage, this.page.pageSize, Object.assign(params, this.query)).then(res => { |
| | | const data = res.data.data; |
| | | debugger; |
| | | this.page.total = data.total; |
| | | this.data = data.records; |
| | | this.loading = false; |
| | | this.data = res.data.data.records; |
| | | }); |
| | | }, |
| | | rowClick(row) { |
| | |
| | | } |
| | | }, |
| | | openAdvancedQuery(){ |
| | | this.advancedQueryParam.options = [ |
| | | { |
| | | data: [], |
| | | title: '编号', |
| | | fieldType: 'text', |
| | | queryField: 'id', |
| | | },{ |
| | | data: [], |
| | | title: '名称', |
| | | fieldType: 'text', |
| | | queryField: 'name', |
| | | },{ |
| | | data: [], |
| | | title: '描述', |
| | | fieldType: 'text', |
| | | queryField: 'description', |
| | | },{ |
| | | data: [ |
| | | // { |
| | | // key: '编辑中', |
| | | // value: 'Editing', |
| | | // }, |
| | | // { |
| | | // key: '已发布', |
| | | // value: 'Released', |
| | | // }, |
| | | // { |
| | | // key: '停用', |
| | | // value: 'Disabled', |
| | | // }, |
| | | ], |
| | | title: '状态', |
| | | this.advancedQueryParam.options = [{ |
| | | data: this.pushTypeList, |
| | | title: '推送类型', |
| | | queryField: 'pushType', |
| | | fieldType: 'combox', |
| | | queryField: 'lcStatus', |
| | | comboxKey: 'codeSearchLCStatus', |
| | | }, |
| | | ] |
| | | comboxKey: 'searchPushType' |
| | | }, { |
| | | title: '系统名称', |
| | | queryField: 'sysBaseName', |
| | | fieldType: 'text' |
| | | }, { |
| | | title: '系统编号', |
| | | queryField: 'sysBaseId', |
| | | fieldType: 'text' |
| | | }, { |
| | | title: '接口函数', |
| | | queryField: 'interfaceFunction', |
| | | fieldType: 'text' |
| | | }, { |
| | | title: '命名空间', |
| | | queryField: 'nameSpace', |
| | | fieldType: 'text' |
| | | }, { |
| | | title: 'soapAction', |
| | | queryField: 'soapAction', |
| | | fieldType: 'text' |
| | | }, { |
| | | title: '参数名称', |
| | | queryField: 'targName', |
| | | fieldType: 'text' |
| | | }, { |
| | | title: '调用方式', |
| | | queryField: 'cxfaxis', |
| | | fieldType: 'text' |
| | | }, { |
| | | title: '请求地址', |
| | | queryField: 'requestUrl', |
| | | fieldType: 'text' |
| | | }, { |
| | | title: '参数类型', |
| | | queryField: 'paramType', |
| | | fieldType: 'combox', |
| | | comboxKey: 'searchparamType', |
| | | data:this.paramTypeList |
| | | }, { |
| | | title: '返回值类型', |
| | | queryField: 'returnType', |
| | | fieldType: 'combox', |
| | | comboxKey: 'searchreturnType', |
| | | data:this.returnTypeList |
| | | }] |
| | | |
| | | this.advancedQueryParam.currentOpen = 'info'; |
| | | this.advancedQueryParam.advancedQuerySettingBox = true; |
| | |
| | | <el-form-item v-if="formData.pushType=='7'" label="是否查询集团码" prop="isGroupCodeFlag"> |
| | | <el-switch v-model="formData.isGroupCodeFlag" ></el-switch> |
| | | </el-form-item> |
| | | <el-form-item label="系统描述" style="width: 850px;"> |
| | | <el-form-item label="系统描述" style="width: 850px;" prop="description"> |
| | | <el-input type="textarea" :autosize="{ minRows: 2, maxRows: 5}" v-model="formData.description" style="width: 740px;"></el-input> |
| | | </el-form-item> |
| | | <el-form-item v-if="formData.interfaceType=='http'" label="请求方式" prop="requestMethod"> |