修改细节

lijinlong^2
吕天方 1 year ago
parent 33a97965b8
commit eb29af8c93

@ -4,7 +4,7 @@
* @Author: JC9527 * @Author: JC9527
* @Date: 2023-09-28 11:25:48 * @Date: 2023-09-28 11:25:48
* @LastEditors: JC9527 * @LastEditors: JC9527
* @LastEditTime: 2023-09-28 16:41:42 * @LastEditTime: 2023-09-30 01:07:17
--> -->
<template> <template>
<el-dialog <el-dialog
@ -24,9 +24,9 @@
</div> </div>
<img src="@/assets/images/close.png" alt="" @click="Close" /> <img src="@/assets/images/close.png" alt="" @click="Close" />
</div> </div>
<el-form ref="form" label-width="80px"> <el-form ref="form" label-width="80px" v-loading="loading">
<el-form-item label="企业名称:" class="form-input"> <el-form-item label="企业名称:" class="form-input">
<el-input v-model="form.name" :readonly="true"></el-input> <el-input v-model="form.entprName" :readonly="true"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="行政区划:" class="form-input"> <el-form-item label="行政区划:" class="form-input">
<el-input v-model="form.district" :readonly="true"></el-input> <el-input v-model="form.district" :readonly="true"></el-input>
@ -75,7 +75,7 @@ export default {
dialogVisible:false, dialogVisible:false,
mydistrict:'', mydistrict:'',
form:{ form:{
name:'测试活动名称', entprName:'',
district:'', district:'',
createTime:'', createTime:'',
plannedYear:'', plannedYear:'',
@ -85,6 +85,7 @@ export default {
}, },
id:'', id:'',
readonly:false, readonly:false,
loading:true,
} }
}, },
computed: { computed: {
@ -107,13 +108,15 @@ export default {
async getMyData(id){ async getMyData(id){
// console.log(id) // console.log(id)
// console.log(data) // console.log(data)
this.loading = true;
let data = await this.$api.yingji.bPlanManageTwo(id) let data = await this.$api.yingji.bPlanManageTwo(id)
if(data.code == 200){ if(data.code == 200){
let { district,createTime,plannedYear,planName,planContent,remark } = data.data let { entprName,district,createTime,plannedYear,planName,planContent,remark } = data.data
this.mydistrict = district this.mydistrict = district
let myDistrict = this.componendDistrict(district) let myDistrict = this.componendDistrict(district)
let mycreateTime = createTime.split(' ')[0] let mycreateTime = createTime.split(' ')[0]
this.form = { district:myDistrict,createTime:mycreateTime,plannedYear,planName,planContent,remark } this.form = { entprName,district:myDistrict,createTime:mycreateTime,plannedYear,planName,planContent,remark }
this.loading = false;
} }
}, },
Close(item) { Close(item) {

@ -71,7 +71,7 @@
</el-select> </el-select>
</div> </div>
<div class="input-input"> <div class="input-input">
<div class="select-span">企业名称/统一社会信用代码:</div> <div class="select-span">统一社会信用代码:</div>
<el-input <el-input
v-model="form.uscCode" v-model="form.uscCode"
placeholder="请输入企业名称/统一社会信用代码" placeholder="请输入企业名称/统一社会信用代码"
@ -192,7 +192,7 @@
</el-table> </el-table>
</div> </div>
<div class="pagination"> <div class="pagination">
<my-pagination :total="total" @pagesChange="pagesChange"></my-pagination> <my-pagination :total="total" @pagesChange="pagesChange" ref="mypagination"></my-pagination>
</div> </div>
<!-- 查看 --> <!-- 查看 -->
<el-dialog <el-dialog

@ -4,7 +4,7 @@
* @Author: JC9527 * @Author: JC9527
* @Date: 2023-09-04 10:20:06 * @Date: 2023-09-04 10:20:06
* @LastEditors: JC9527 * @LastEditors: JC9527
* @LastEditTime: 2023-09-29 16:20:31 * @LastEditTime: 2023-09-30 01:03:48
--> -->
<template> <template>
<div class="plan-management"> <div class="plan-management">
@ -270,7 +270,7 @@
let district = this.form.district[1].slice(1, 11); let district = this.form.district[1].slice(1, 11);
obj = { ...this.pages, ...this.form,district }; obj = { ...this.pages, ...this.form,district };
} else if(newForm.district.length == 1) { } else if(newForm.district.length == 1) {
let district = this.form.district.slice[0](1, 8); let district = this.form.district[0].slice(1, 8);
obj = { ...this.pages, ...this.form,district }; obj = { ...this.pages, ...this.form,district };
} }
// //

Loading…
Cancel
Save