12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256 |
- <template>
- <div class="app-cont">
- <el-row :gutter="10" class="mb8 roiyy">
- <el-col :span="1.5">
- <el-button
- type="primary"
- @click="submitCtion"
- v-hasPermi="['system:config:add']"
- >提交</el-button>
- </el-col>
- <el-col :span="1.5">
- <el-button
- type="primary"
- @click="emporary"
- v-hasPermi="['system:config:edit']"
- >暂存</el-button>
- </el-col>
- <el-col :span="1.5" :offset="18">
- <el-button
- type="danger"
- @click="handleUpdate"
- v-hasPermi="['system:config:edit']"
- v-if="tab == 0"
- >确认审核</el-button>
- </el-col>
- </el-row>
- <!-- 内容的显示隐藏 -->
- <div class="mation" >
- <div class="nvestor">
- <p>投资方 <i>*</i></p>
- </div>
- <p class="enterprise">企业</p>
- <p class="enterprise_tw" @click="handleAdd"><i class="el-icon-circle-plus-outline"></i>添加企业</p>
- <el-table v-loading="loading" :data="configList" >
- <!-- <el-table-column type="selection" width="55" align="center" /> -->
- <el-table-column label="企业名称" align="center" prop="companyName" />
- <el-table-column label="企业所在地" align="center" prop="companyAddress" :show-overflow-tooltip="true" />
- <el-table-column label="法人代表姓名" align="center" prop="companyLegal" :show-overflow-tooltip="true" />
- <el-table-column label="统一社会信用代码" align="center" prop="companyCode" />
- <el-table-column label="联系方式" align="center" prop="phone" />
- <!-- <el-table-column label="操作" align="center" prop="remark" :show-overflow-tooltip="true" /> -->
- <el-table-column label="操作" align="center" >
- <!-- class-name="small-padding fixed-width" -->
- <template slot-scope="scope">
- <el-button
- size="mini"
- type="warning"
- @click="handleUpdate(scope.row)"
- v-hasPermi="['system:config:edit']"
- >修改</el-button>
- <el-button
- size="mini"
- type="danger"
- @click="handleDelete(scope.row)"
- v-hasPermi="['system:config:remove']"
- >删除</el-button>
- </template>
- </el-table-column>
- </el-table>
- <p class="enterprise">自然人</p>
- <p class="enterprise_tw" @click="handleAddtwo"><i class="el-icon-circle-plus-outline"></i>添加自然人</p>
- <el-table v-loading="loading" :data="configListtwoL" >
- <!-- <el-table-column type="selection" width="55" align="center" /> -->
- <el-table-column label="姓名" align="center" prop="name" />
- <el-table-column label="自然人所在地" align="center" prop="address" :show-overflow-tooltip="true" />
- <el-table-column label="身份证号码" align="center" prop="idCode" :show-overflow-tooltip="true" />
- <el-table-column label="联系方式" align="center" prop="phone" />
- <!-- <el-table-column label="联系方式" align="center" prop="configType" :formatter="typeFormat" /> -->
- <!-- <el-table-column label="操作" align="center" prop="remark" :show-overflow-tooltip="true" /> -->
- <el-table-column label="操作" align="center" >
- <!-- class-name="small-padding fixed-width" -->
- <template slot-scope="scope">
- <el-button
- size="mini"
- type="warning"
- @click="handleUpdatetwo(scope.row)"
- v-hasPermi="['system:config:edit']"
- >修改</el-button>
- <el-button
- size="mini"
- type="danger"
- @click="handleDeletetwo(scope.row)"
- v-hasPermi="['system:config:remove']"
- >删除</el-button>
- </template>
- </el-table-column>
- </el-table>
- <el-form :model="queryParams" :rules="queryForm" ref="queryParams" :inline="true" v-show="showSearch" label-width="115px" label-position="center" class="manager_form">
- <!-- <el-form ref="queryForm" :model="queryParams" :rules="queryForm" label-width="115px" label-position="center" class="manager_form"> -->
- <el-form-item label="投资方联系人" prop="contactor">
- <el-input
- v-model="queryParams.contactor"
- placeholder="请输入投资方联系人"
- clearable
- size="small"
- style="width: 223px"
- />
- </el-form-item>
- <el-form-item label="投资方联系方式:" prop="phone">
- <el-input
- v-model="queryParams.phone"
- placeholder="请输入联系方式"
- clearable
- size="small"
- style="width: 223px"
- />
- </el-form-item>
- <div class="nvestor">
- <p>引荐方 <i>*</i></p>
- </div>
- <div v-for="(item,index) in queryParams.referralList " :key="index" v-if="queryParams.referralList !== null">
- <el-form-item label="引荐单位:" prop="item.sysdeptId">
- <el-select v-model="item.sysdeptId" placeholder="系统内置" clearable size="small" style="width: 188px">
- <el-option
- v-for="dict in typeOptionstwo"
- :key="dict.deptId"
- :label="dict.deptName"
- :value="dict.deptId"
- />
- </el-select>
- </el-form-item>
- <el-form-item label="投资分配额:" prop="item.investmentAllcocation">
- <el-input
- v-model="item.investmentAllcocation"
- placeholder="输入数字"
- clearable
- size="small"
- style="width: 98px"
- @keyup.enter.native="handleQuery"
- />
- <span class="souu">%</span>
- </el-form-item>
- <el-form-item label="引荐方联系人:" prop="item.referral">
- <el-input
- v-model="item.referral"
- placeholder="请输入"
- clearable
- size="small"
- style="width: 98px"
- @keyup.enter.native="handleQuery"
- />
- </el-form-item>
- <el-form-item label="引荐方联系方式:" prop="item.referralPhone">
- <el-input
- v-model="item.referralPhone"
- placeholder="请输入联系方式"
- clearable
- size="small"
- style="width: 153px"
- @keyup.enter.native="handleQuery"
- />
- </el-form-item>
- </div>
- <div v-if="queryParams.referralList == null">
- <el-form-item label="引荐单位:" prop="sysdeptId">
- <el-select v-model="queryParams.referralList[0].sysdeptId" placeholder="系统内置" clearable size="small" style="width: 188px">
- <el-option
- v-for="dict in typeOptionstwo"
- :key="dict.deptId"
- :label="dict.deptName"
- :value="dict.deptId"
- />
- </el-select>
- </el-form-item>
- <el-form-item label="投资分配额:" prop="investmentAllcocation">
- <el-input
- v-model="queryParams.referralList[0].investmentAllcocation"
- placeholder="输入数字"
- clearable
- size="small"
- style="width: 98px"
- @keyup.enter.native="handleQuery"
- />
- <span class="souu">%</span>
- </el-form-item>
- <el-form-item label="引荐方联系人:" prop="referral">
- <el-input
- v-model="queryParams.referralList[0].referral"
- placeholder="请输入"
- clearable
- size="small"
- style="width: 98px"
- @keyup.enter.native="handleQuery"
- />
- </el-form-item>
- <el-form-item label="引荐方联系方式:" prop="referralPhone">
- <el-input
- v-model="queryParams.referralList[0].referralPhone"
- placeholder="请输入联系方式"
- clearable
- size="small"
- style="width: 153px"
- @keyup.enter.native="handleQuery"
- />
- </el-form-item>
- <el-form-item label="引荐单位:" prop="sysdeptId">
- <el-select v-model="queryParams.referralList[1].sysdeptId" placeholder="系统内置" clearable size="small" style="width: 188px">
- <el-option
- v-for="dict in typeOptionstwo"
- :key="dict.deptId"
- :label="dict.deptName"
- :value="dict.deptId"
- />
- </el-select>
- </el-form-item>
- <el-form-item label="投资分配额:" prop="investmentAllcocation">
- <el-input
- v-model="queryParams.referralList[0].investmentAllcocation"
- placeholder="输入数字"
- clearable
- size="small"
- style="width: 98px"
- @keyup.enter.native="handleQuery"
- />
- <span class="souu">%</span>
- </el-form-item>
- <el-form-item label="引荐方联系人:" prop="referral">
- <el-input
- v-model="queryParams.referralList[0].referral"
- placeholder="请输入"
- clearable
- size="small"
- style="width: 98px"
- @keyup.enter.native="handleQuery"
- />
- </el-form-item>
- <el-form-item label="引荐方联系方式:" prop="referralPhone">
- <el-input
- v-model="queryParams.referralList[1].referralPhone"
- placeholder="请输入联系方式"
- clearable
- size="small"
- style="width: 153px"
- @keyup.enter.native="handleQuery"
- />
- </el-form-item>
- </div>
- <div class="nvestor">
- <p>项目基本信息 <i>*</i></p>
- </div>
- <el-form-item label="预计投资额" prop="needAmt">
- <el-input
- v-model="queryParams.needAmt"
- placeholder="请输入预计投资额"
- clearable
- size="small"
- style="width: 223px"
- @keyup.enter.native="handleQuery"
- />
- </el-form-item>
- <el-form-item label="其中 固定资产投资:" prop="fixedAssets" class="manager_lab" >
- <el-input
- v-model="queryParams.fixedAssets"
- placeholder="请输入"
- clearable
- size="small"
- style="width: 223px"
- @keyup.enter.native="handleQuery"
- />
- </el-form-item>
- <div class="lage_div">
- <span>项目主营产品</span>
- <el-form-item label="产品名称:" prop="productName" class="maneg_lar">
- <el-input
- v-model="queryParams.productName"
- placeholder="请输入产品名称"
- clearable
- size="small"
- style="width: 470px"
- @keyup.enter.native="handleQuery"
- />
- </el-form-item>
- </div>
- <el-form-item label="设计产能:" prop="productQty" class="manager_labtwo" >
- <el-input
- v-model="queryParams.productQty"
- placeholder="请输入设计产能"
- clearable
- size="small"
- style="width: 470px"
- @keyup.enter.native="handleQuery"
- />
- </el-form-item>
- <div class="lage_div">
- <span>项目预计收益</span>
- <el-form-item label="预计产值:" prop="productPrice" class="maneg_lar">
- <el-input
- v-model="queryParams.productPrice"
- placeholder="请输入预计产值"
- clearable
- size="small"
- style="width: 470px"
- @keyup.enter.native="handleQuery"
- />
- </el-form-item>
- </div>
- <el-form-item label="预计税收:" prop="productTax" class="manager_labtwo" >
- <el-input
- v-model="queryParams.productTax"
- placeholder="请输入预计税收"
- clearable
- size="small"
- style="width: 470px"
- @keyup.enter.native="handleQuery"
- />
- </el-form-item>
- <el-form-item label="预计用工:" prop="productEmp" class="manager_labtwo" >
- <el-input
- v-model="queryParams.productEmp"
- placeholder="请输入预计用工"
- size="small"
- style="width: 470px"
- />
- </el-form-item>
- <div class="nvestor">
- <p>项目基本需求 </p>
- </div>
- <el-form-item label="项目计划用地:" prop="plannedLand" class="manager_labthre">
- <el-input
- v-model="queryParams.plannedLand"
- placeholder="请输入"
- clearable
- size="small"
- style="width: 207px"
- @keyup.enter.native="handleQuery"
- />
- <span class="souu">亩</span>
- </el-form-item>
- <el-form-item label="其中 独立供地:" prop="independentLand">
- <el-input
- v-model="queryParams.independentLand"
- placeholder="请输入"
- clearable
- size="small"
- style="width: 207px"
- @keyup.enter.native="handleQuery"
- />
- <span class="souu">亩</span>
- </el-form-item>
- <el-form-item label="流转土地:" prop="circulationLan" class="mage_ter">
- <el-input
- v-model="queryParams.circulationLan"
- placeholder="请输入"
- clearable
- size="small"
- style="width: 207px"
- @keyup.enter.native="handleQuery"
- />
- <span class="souu">亩</span>
- </el-form-item>
- <el-form-item label="项目计划租赁用房:" prop="needRoom" class="manager_labthre">
- <el-input
- v-model="queryParams.needRoom"
- placeholder="请输入"
- clearable
- size="small"
- style="width: 207px"
- @keyup.enter.native="handleQuery"
- />
- <span class="souu">亩</span>
- </el-form-item>
- <el-form-item label="其中 厂房:" prop="needFactoryRoom">
- <el-input
- v-model="queryParams.needFactoryRoom"
- placeholder="请输入"
- clearable
- size="small"
- style="width: 207px"
- @keyup.enter.native="handleQuery"
- />
- <span class="souu">亩</span>
- </el-form-item>
- <el-form-item label="办公生活用房:" prop="needBusRoom" class="mage_ter">
- <el-input
- v-model="queryParams.needBusRoom"
- placeholder="请输入"
- clearable
- size="small"
- style="width: 207px"
- @keyup.enter.native="handleQuery"
- />
- <span class="souu">亩</span>
- </el-form-item>
- <el-form-item label="其他需求:" prop="other" class="maget_ty">
- <el-input
- v-model="queryParams.other"
- placeholder="请输入项目概况"
- clearable
- type="textarea"
- size="small"
- style="width: 480px;height: 78px;"
- class="ieuyr"
- @keyup.enter.native="handleQuery"
- />
- </el-form-item>
- <el-form-item label="拟落户地点:" prop="address">
- <el-select v-model="queryParams.address" placeholder="系统内置" clearable size="small" style="width: 188px">
- <el-option
- v-for="dict in typeOptions"
- :key="dict.dictValue"
- :label="dict.dictLabel"
- :value="dict.dictValue"
- />
- </el-select>
- </el-form-item>
- <el-form-item label="是否签订框架协议:" prop="isFrameorder" class="maget_ty">
- <el-select v-model="queryParams.isFrameorder" placeholder="系统内置" clearable size="small" style="width: 298px">
- <el-option
- v-for="dict in typeOptions"
- :key="dict.dictValue"
- :label="dict.dictLabel"
- :value="dict.dictValue"
- />
- </el-select>
- </el-form-item>
- <el-form-item label="添加附件:" prop="configType" class="maget_ty">
- <div class="forieu" style="width: 618px;">
- <div class="bure burert">
- <el-upload
- action="http://192.168.101.11:8080/common/upload"
- :auto-upload="false"
- ref="upload"
- :before-upload="beforeAvatarUpload"
- list-type="picture-card"
- :on-preview="handlePictureCardPreview"
- :on-remove="handleRemove"
- :on-success="handleSuccntry"
- :multiple="true"
- :file-list="fileList">
- <!-- <i slot="default" class="el-icon-plus"></i> -->
- <div class="ijeut">
- <el-button plain slot="trigger" size="small" type="primary" >选择图片</el-button>
- <!-- margin-top: 15%; transform: translateY(-50%); -->
- </div>
- <!-- <div slot="tip" class="el-upload__tip">只能上传jpg/png文件,且不超过500kb</div> -->
- </el-upload>
- <div class="ijeut"><el-button style="margin-left: 10px; height: 32px;" size="small" type="primary" @click="submitUpload">开始上传</el-button></div>
- </div>
- </div>
- </el-form-item>
- <el-form-item label="备注:" prop="description" class="maget_ty">
- <el-input
- v-model="queryParams.description"
- placeholder="请输入备注"
- clearable
- type="textarea"
- size="small"
- style="width: 480px;height: 78px;"
- class="ieuyr"
- @keyup.enter.native="handleQuery"
- />
- </el-form-item>
- </el-form>
- </div>
- <!-- </div> -->
- <!-- 添加或修改参数配置对话框 -->
- <el-dialog :title="title" :visible.sync="open" width="800px" append-to-body>
- <el-form ref="form" :model="form" :rules="rules" label-width="150px">
- <el-form-item label="企业名称" prop="companyName">
- <el-input v-model="form.companyName" placeholder="请输入企业名称" />
- </el-form-item>
- <el-form-item label="企业所在地" prop="companyAddress">
- <el-input v-model="form.companyAddress" placeholder="请输入参数键名" />
- </el-form-item>
- <el-form-item label="法人代表姓名" prop="companyLegal">
- <el-input v-model="form.companyLegal" placeholder="请输入参数键值" />
- </el-form-item>
- <el-form-item label="系统内置" prop="configType">
- <el-radio-group v-model="form.configType">
- <el-radio
- v-for="dict in typeOptions"
- :key="dict.dictValue"
- :label="dict.dictValue"
- >{{dict.dictLabel}}</el-radio>
- </el-radio-group>
- </el-form-item>
- <el-form-item label="统一社会信用代码" prop="companyCode">
- <el-input v-model="form.companyCode" placeholder="请输入统一社会信用代码" />
- </el-form-item>
- <el-form-item label="联系方式" prop="phone">
- <el-input v-model="form.phone" placeholder="请输入联系方式" />
- </el-form-item>
- </el-form>
- <div slot="footer" class="dialog-footer">
- <el-button type="primary" @click="submitForm">确 定</el-button>
- <el-button @click="cancel">取 消</el-button>
- </div>
- </el-dialog>
- <el-dialog :title="titletwo" :visible.sync="opentwo" width="800px" append-to-body>
- <el-form ref="formtwo" :model="formtwo" :rules="rules" label-width="150px">
- <el-form-item label="姓名" prop="name">
- <el-input v-model="formtwo.name" placeholder="请输入企业名称" />
- </el-form-item>
- <el-form-item label="自然人所在地" prop="address">
- <el-input v-model="formtwo.address" placeholder="请输入参数键名" />
- </el-form-item>
- <el-form-item label="身份证号码" prop="idCode">
- <el-input v-model="formtwo.idCode" placeholder="请输入参数键值" />
- </el-form-item>
- <el-form-item label="系统内置" prop="configType">
- <el-radio-group v-model="form.configType">
- <el-radio
- v-for="dict in typeOptions"
- :key="dict.dictValue"
- :label="dict.dictValue"
- >{{dict.dictLabel}}</el-radio>
- </el-radio-group>
- </el-form-item>
- <el-form-item label="联系方式" prop="phone">
- <el-input v-model="formtwo.phone" placeholder="请输入联系方式" />
- </el-form-item>
- </el-form>
- <div slot="footer" class="dialog-footer">
- <el-button type="primary" @click="submitFormtwo">确 定</el-button>
- <el-button @click="cancel">取 消</el-button>
- </div>
- </el-dialog>
- <el-dialog :visible.sync="dialogVisible">
- <img width="100%" :src="dialogImageUrl" alt="">
- </el-dialog>
- </div>
- </template>
- <script>
- import { listConfig, listConfigtwo, listConfigthert, listConfigfour, listConfigfieu, getConfig, getConfigKeytwo, delConfig, delConfigtwo, addConfig, addConfigtwo, addConfigalking, updateConfig, updateConfigtwo, updateConfigalking, exportConfig, clearCache } from "@/api/system/config";
- export default {
- name: "Config",
- props:{
- // queryParams: Object,
- tabIndex: Number
- },
- data() {
- return {
- // 遮罩层
- loading: true,
- //步骤条
- naueactive:2,
- tab:1,
- tabNume:['线索信息','签约信息','在建信息','投产信息'],
- // 选中数组
- ids: [],
- // 非单个禁用
- single: true,
- // 非多个禁用
- multiple: true,
- // 显示搜索条件
- showSearch: true,
- // 总条数
- total: 0,
- // 参数表格数据
- configList: [],
- configListtwoL:[],
- // 弹出层标题
- title: "",
- titletwo:'',
- // 是否显示弹出层
- open: false,
- opentwo:false,
- // 类型数据字典
- typeOptions: [],
- typeOptionstwo:[],
- // 日期范围
- dateRange: [],
- // 查询参数
- queryParams: {
- 'contactor':'',
- 'phone':'',
- referralList:[
- {
- "bmProjectId":'',
- "sysdeptId":'',
- "investmentAllcocation":'',
- "referral":"",
- "referralPhone":""
- },
- ]
- },
- dialogImageUrl: '',
- dialogVisible: false,
- disabled: false,
- bmProjectId:0,
- // 表单参数
- form: {},
- formtwo:{},
- fileList:[],
- fileListhye:[],
- // 表单校验
- rules: {
- configName: [
- { required: true, message: "参数名称不能为空", trigger: "blur" }
- ],
- configKey: [
- { required: true, message: "参数键名不能为空", trigger: "blur" }
- ],
- configValue: [
- { required: true, message: "参数键值不能为空", trigger: "blur" }
- ]
- },
- queryForm:{
- needAmt: [
- { required: true, message: "参数名称不能为空", trigger: "blur" }
- ],
- configKey: [
- { required: true, message: "参数键名不能为空", trigger: "blur" }
- ],
- configValue: [
- { required: true, message: "参数键值不能为空", trigger: "blur" }
- ]
- },
- ntry:[],
- // 判断是修改还是增加
- sbuen:0,//0 新增 1 修改
- // id:0
- };
- },
- created() {
- this.bmProjectId = this.$route.query.setid
- // this.id = this.$route.query.setrd
- console.log(this.bmProjectId)
- this.getList();
- this.getListtwo();
- this.getListther();
- this.getDicts("sys_yes_no").then(response => {
- this.typeOptions = response.data;
- });
- this.getListthuy()
- console.log( this.queryParams)
- },
- methods: {
- submitUpload() {
- this.$refs.upload.submit();
- },
- handleRemove(file) {
- console.log(file,87);
- },
- handlePictureCardPreview(file) {
- this.dialogImageUrl = file.url;
- this.dialogVisible = true;
- },
- handleDownload(file) {
- console.log(file);
- },
- handleSuccntry(response, file, fileList){
- // this.ontract = []
- this.ntry.push(file.response.url)
- this.queryParams.attachment = this.ntry.join(',')
- },
- beforeAvatarUpload(file) {
- console.log(file.type)
- const isJPG = file.type === 'image/jpeg' || file.type === 'image/png' || file.type === 'image/jpg';
- const isPNG = file.type === 'image/png';
- const isLt2M = file.size / 1024 / 1024 < 2;
- if (!isJPG) {
- this.$message.error('图片只能是 JPG 格式! 或者 PNG 格式!');
- }
- // if(!isPNG){
- // this.$message.error('图片只能是 JPG 格式! 或者 PNG 格式!');
- // }
- if (!isLt2M) {
- this.$message.error('图片大小不能超过 2MB!');
- }
- return isJPG && isLt2M;
- },
- /** 查询参数列表 */
- getList() {
- this.loading = true;
- listConfigtwo(this.bmProjectId).then(response => {
- console.log(response)
- // if(response.data == undefined){
- // console.log(876)
- // //新增
- // this.sbuen = 0
- // this.queryParams = {
- // referralList:[
- // {
- // "bmProjectId":this.bmProjectId,
- // "sysdeptId":'',
- // "investmentAllcocation":'',
- // "referral":"",
- // "referralPhone":""
- // },
- // {
- // "bmProjectId":this.bmProjectId,
- // "sysdeptId":'',
- // "investmentAllcocation":'',
- // "referral":"",
- // "referralPhone":""
- // },
- // ]
- // },
- // this.queryParams.bmProjectId = this.bmProjectId
- // }else if(response.data !== undefined){
- //修改
- this.sbuen = 1
- this.queryParams = response.data;
- this.queryParams.phone = 987
- console.log(this.queryParams,98755)
- // this.queryParams = this.queryParams.bmProjectId
- this.fileListhye = this.queryParams.attachment.split(',')
- for(var i = 0 ; i < this.fileListhye.length; i++){
- this.fileList.push({name:this.fileListhye[i],url:this.fileListhye[i]})
- }
- // this.fileList.push({name:this.queryParams.attachment,url:this.queryParams.attachment})
- // }
- // this.fileList = this.queryParams.attachment
- // this.total = response.total;
- this.loading = false;
- }
- );
- },
- //企业列表
- getListtwo() {
- this.loading = true;
- listConfigthert().then(response => {
- console.log(response)
- this.configList = response.rows;
- // this.fileList = this.queryParams.attachment
- // this.total = response.total;
- this.loading = false;
- }
- );
- },
- //自然人列表
- getListther() {
- this.loading = true;
- listConfigfour(this.bmProjectId).then(response => {
- console.log(response)
- this.configListtwoL = response.rows;
- // this.fileList = this.queryParams.attachment
- // this.total = response.total;
- this.loading = false;
- }
- );
- },
- //部门列表
- getListthuy() {
- this.loading = true;
- listConfigfieu().then(response => {
- console.log(response)
- this.typeOptionstwo = response.data;
- // this.fileList = this.queryParams.attachment
- // this.total = response.total;
- this.loading = false;
- }
- );
- },
- // 参数系统内置字典翻译
- typeFormat(row, column) {
- return this.selectDictLabel(this.typeOptions, row.configType);
- },
- // 取消按钮
- cancel() {
- this.open = false;
- this.opentwo = false
- this.reset();
- },
- // 表单重置
- reset() {
- this.form = {
- // configId: undefined,
- // configName: undefined,
- // configKey: undefined,
- // configValue: undefined,
- // configType: "Y",
- // remark: undefined
- };
- this.resetForm("form");
- },
- resettwo() {
- this.formtwo = {
- // configId: undefined,
- // configName: undefined,
- // configKey: undefined,
- // configValue: undefined,
- // configType: "Y",
- // remark: undefined
- };
- this.resetForm("form");
- },
- /** 搜索按钮操作 */
- handleQuery() {
- this.queryParams.pageNum = 1;
- this.getList();
- },
- /** 重置按钮操作 */
- resetQuery() {
- this.dateRange = [];
- this.resetForm("queryForm");
- this.handleQuery();
- },
- /** 新增按钮操作 */
- handleAdd() {
- this.reset();
- this.open = true;
- this.opentwo = true
- this.title = "添加参数";
- this.titletwo = "添加参数";
- },
- handleAddtwo() {
- this.resettwo();
- // this.open = true;
- this.opentwo = true
- // this.title = "添加参数";
- this.titletwo = "添加参数";
- },
- // 多选框选中数据
- handleSelectionChange(selection) {
- this.ids = selection.map(item => item.configId)
- this.single = selection.length!=1
- this.multiple = !selection.length
- },
- /** 修改按钮操作 */
- handleUpdate(row) {
- this.reset();
- const id = row.id
- getConfig(id).then(response => {
- console.log(345)
- this.form = response.data;
- this.open = true;
- // this.opentwo = true
- this.title = "修改参数";
- // this.titletwo = "修改参数";
- });
- },
- handleUpdatetwo(row) {
- this.reset();
- const id = row.id
- getConfigKeytwo(id).then(response => {
- console.log(345)
- this.formtwo = response.data;
- // this.open = true;
- this.opentwo = true
- // this.title = "修改参数";
- this.titletwo = "修改参数";
- });
- },
- /** 提交按钮 */
- submitForm: function() {
- this.$refs["form"].validate(valid => {
- if (valid) {
- if ( this.form.id != undefined ) {
- updateConfig(this.form).then(response => {
- this.msgSuccess("修改成功");
- this.open = false;
- this.getListtwo();
- });
- } else {
- this.form.bmProjectId = this.bmProjectId
- addConfig(this.form).then(response => {
- this.msgSuccess("新增成功");
- this.open = false;
- this.getListtwo();
- });
- }
- }
- });
- },
- /** 提交按钮 */
- submitFormtwo: function() {
- this.$refs["formtwo"].validate(valid => {
- if (valid) {
- if (this.formtwo.id != undefined) {
- updateConfigtwo(this.formtwo).then(response => {
- this.msgSuccess("修改成功");
- this.opentwo = false;
- this.getListther();
- });
- } else {
- this.formtwo.bmProjectId = this.bmProjectId
- addConfigtwo(this.formtwo).then(response => {
- this.msgSuccess("新增成功");
- this.opentwo = false;
- this.getListther();
- });
- }
- }
- });
- },
- // 暂存接口
- emporary(){
- this.$refs["queryForm"].validate(valid => {
- if (valid) {
- if ( this.sbuen ==1 ) {
- updateConfigalking(this.queryParams).then(response => {
- this.msgSuccess("修改成功");
- this.open = false;
- this.getListtwo();
- });
- } else {
- // this.queryParams.bmProjectId = this.bmProjectId
- console.log(this.queryParams,87)
- addConfigalking(this.queryParams).then(response => {
- console.log(response)
- this.msgSuccess("新增成功");
- this.open = false;
- this.getListtwo();
- });
- }
- }
- });
- },
- submitCtion(){
- console.log(this.queryParams)
- },
- /** 删除按钮操作 */
- handleDelete(row) {
- const configIds = row.id ;
- this.$confirm('是否确认删除"' + row.companyName + '"的数据项?', "警告", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning"
- }).then(function() {
- return delConfig(configIds);
- }).then(() => {
- this.getListtwo();
- this.msgSuccess("删除成功");
- })
- },
- handleDeletetwo(row) {
- const configIds = row.id ;
- this.$confirm('是否确认删除"' + row.name + '"的数据项?', "警告", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning"
- }).then(function() {
- return delConfigtwo(configIds);
- }).then(() => {
- this.getListther();
- this.msgSuccess("删除成功");
- })
- },
- /** 导出按钮操作 */
- handleExport() {
- const queryParams = this.queryParams;
- this.$confirm('是否确认导出所有参数数据项?', "警告", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning"
- }).then(function() {
- return exportConfig(queryParams);
- }).then(response => {
- this.download(response.msg);
- })
- },
- /** 清理缓存按钮操作 */
- handleClearCache() {
- clearCache().then(response => {
- this.msgSuccess("清理成功");
- });
- },
- //tab
- changeTab(index){
- this.$emit('changeTab', index)
- // this.tab = index
- }
- }
- };
- </script>
- <style rel="stylesheet/scss" lang="scss">
- .roiyy{
- position: fixed;
- top:180px;
- left:0;
- width: 100%;
- padding-left: 230px;
- padding-right: 30px;
- box-sizing: border-box;
- z-index: 44;
- }
- .manager_form{
- .manager_lab{
- .el-form-item__label{
- width: 145px !important;
- }
- }
- .maneg_lar{
- position: relative;
- .el-form-item__label{
- width: 134px !important;
- }
- span{
- position: absolute;
- left: -95%;
- }
- }
- .manager_labtwo{
- .el-form-item__label{
- width: 244px !important;
- }
- }
- .manager_labthre{
- // .el-form-item{
- .el-form-item__label{
- width: 130px !important;
- }
- margin-right: 40px !important;
- // }
- }
- .ieuyr{
- .el-textarea__inner{
- height: 80px !important;
- }
- }
- .mage_ter{
- .el-form-item__label{
- width: 513px !important;
- }
- }
- .maget_ty{
- .el-form-item__label{
- width: 135px !important;
- }
- }
- .forieu{
- border: 1px solid #DCDFE6;
- border-radius: 4px;
- width: 480px;
- height: 90px;
- position: relative;
- .bure{
- position: absolute;
- right: 20px;
- top: 50%;
- transform: translateY(-50%);
- }
- .burert{
- .el-upload--picture-card{
- height: 78px;
- line-height: 78px;
- width: 80px;
- vertical-align:center;
- border: 0 !important;
- background-color: #fff;
- }
- .el-upload-list--picture-card .el-upload-list__item{
- height: 78px !important;
- width: 78px !important;
- }
- }
- }
- }
- .lage_div{
- padding-left: 15px;
- display: flex;
- align-items: center;
- margin-bottom: 22px;
- .el-form-item{
- margin-bottom: 0 !important;
- }
- }
- .app-cont{
- .header{
- padding-left: 22px;
- height: 45px;
- line-height: 40px;
- background-color: #F1F1F1;
- font-size: 18px;
- color: #343434;
- margin-bottom: 40px;
- }
- // .naue{
- // border: 1px solid #DADADA;
- // padding: 20px;
- // margin-top: 40px;
- .nuae_wtu{
- display: flex;
- justify-content: center;
- align-content: center;
- .naue_one{
- width: 30%;
- p{
- font-size: 12px;
- font-family: PingFang SC;
- font-weight: 400;
- color: #343434;
- }
- .naue_name{
- font-size: 14px;
- font-family: PingFang SC;
- font-weight: bold;
- color: #0669B2;
- margin-bottom: 30px;
- }
- }
- .naue_two{
- flex: 1;
- padding-top: 20px;
- // display: flex;
- // align-items: center;
- // justify-content: center;
- }
- }
- //tab
- .naue_tab{
- border-bottom: 1px solid #CDCDCD;
- display: flex;
- margin-top: 30px;
- padding: 0 10px;
- margin-bottom: 30px;
- p{
- font-size: 12px;
- font-family: PingFang SC;
- font-weight: 400;
- color: #343434;
- padding: 11px 15px;
- margin: 0;
- }
- .p{
- border-bottom: 2px solid #1C84C6;
- margin-bottom: -1px;
- }
- }
- .mation{
- .enterprise{
- font-size: 14px;
- font-family: PingFang SC;
- font-weight: bold;
- color: #1C84C6;
- margin-top: 25px;
- margin-bottom: 20px;
- }
- .enterprise_tw{
- i{
- margin-right: 5px;
- }
- font-size: 14px;
- font-family: PingFang SC;
- font-weight: 600;
- color: #666666;
- }
- }
- // }
- .nvestor{
- margin-bottom: 10px;
- p{
- margin:0;
- font-size: 14px;
- font-family: PingFang SC;
- font-weight: bold;
- color: #343434;
- height: 24px;
- line-height: 24px;
- border-left: 3px solid #1C84C6;
- padding-left: 13px;
- i{
- color: red;
- }
- }
- }
- .souu{
- font-size: 14px;
- font-family: PingFang SC;
- font-weight: 400;
- color: #343434;
- margin-left: 5px;
- }
- }
- //在建项目
- .nstruction{
- display: flex;
- align-items: center;
- .nstruction_nav{
- display: flex;
- align-items: center;
- p:nth-child(1){
- margin-right: 10px;
- span{
- font-size: 14px;
- font-family: PingFang SC;
- font-weight: bold;
- color: #343434;
- }
- span:nth-child(1){
- color: #DF0024;
- }
- }
- p:nth-child(2){
- width: 233px;
- height: 30px;
- line-height: 30px;
- border: 1px solid #CDCDCD;
- border-radius: 3px;
- padding-left: 14px;
- }
- }
- .nstruction_navne{
- margin-left: 50px;
- display: flex;
- align-items: center;
- p:nth-child(1){
- margin-right: 10px;
- span{
- font-size: 14px;
- font-family: PingFang SC;
- font-weight: bold;
- color: #343434;
- }
- span:nth-child(1){
- color: #DF0024;
- }
- }
- p:nth-child(2){
- width: 233px;
- height: 30px;
- line-height: 30px;
- border: 1px solid #CDCDCD;
- border-radius: 3px;
- padding-left: 14px;
- }
- }
- }
- .kaieu{
- padding-left: 60px;
- font-size: 14px;
- font-family: PingFang SC;
- font-weight: 800;
- color: #343434;
- }
- .kaieu_tw{
- padding-left: 60px;
- font-size: 14px;
- font-family: PingFang SC;
- font-weight: 500;
- color: #666666;
- }
- </style>
|