计划管理修改

lijinlong^2
吕天方 1 year ago
parent eb29af8c93
commit 9dddf6f5f0

@ -421,6 +421,7 @@ export default {
selectFirm(){ selectFirm(){
if(this.$refs.next.innerText == "发布计划"){ if(this.$refs.next.innerText == "发布计划"){
this.nextStep = false; this.nextStep = false;
this.filtrate();
this.nextText = "下一步"; this.nextText = "下一步";
this.multipleSelection.map((item)=>{ this.multipleSelection.map((item)=>{
this.$nextTick(() => { this.$nextTick(() => {

@ -450,7 +450,7 @@ export default {
for (let key in this.details) { for (let key in this.details) {
this.listDes.forEach((value1, index1) => { this.listDes.forEach((value1, index1) => {
if (key == value1.eng) { if (key == value1.eng) {
this.listDes[index1].value = this.details[key] == '无' ? '/' : this.details[key]; this.listDes[index1].value = this.details[key] == '无' ? '/' : this.details[key] == 'true' ? '是' : this.details[key];
return; return;
} }
}); });

@ -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-30 01:07:17 * @LastEditTime: 2023-09-30 13:40:17
--> -->
<template> <template>
<el-dialog <el-dialog
@ -20,7 +20,7 @@
<div class="closeClick"> <div class="closeClick">
<div class="newplan"> <div class="newplan">
<div class="line"></div> <div class="line"></div>
<div class="span">详情</div> <div class="span">{{ title }}</div>
</div> </div>
<img src="@/assets/images/close.png" alt="" @click="Close" /> <img src="@/assets/images/close.png" alt="" @click="Close" />
</div> </div>
@ -34,8 +34,17 @@
<el-form-item label="发布时间:" class="form-input"> <el-form-item label="发布时间:" class="form-input">
<el-input v-model="form.createTime" :readonly="true"></el-input> <el-input v-model="form.createTime" :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.plannedYear" :readonly="true"></el-input> <!-- <el-input v-model="form.plannedYear" :readonly="true"></el-input> -->
<el-date-picker
v-model="form.plannedYear"
type="month"
format="yyyy-MM"
:clearable="false"
:disabled="readonly"
value-format="yyyy-MM"
placeholder="请选择年月">
</el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="计划标题:"> <el-form-item label="计划标题:">
<el-input v-model="form.planName" :readonly="readonly"></el-input> <el-input v-model="form.planName" :readonly="readonly"></el-input>
@ -86,6 +95,7 @@ export default {
id:'', id:'',
readonly:false, readonly:false,
loading:true, loading:true,
title:'查看详情'
} }
}, },
computed: { computed: {
@ -100,8 +110,10 @@ export default {
this.getMyData(item.id) this.getMyData(item.id)
if(id == 0) { if(id == 0) {
this.readonly = true; this.readonly = true;
this.title = '查看详情'
} else { } else {
this.readonly = false; this.readonly = false;
this.title = '修改详情'
} }
this.dialogVisible = true; this.dialogVisible = true;
}, },

@ -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-30 01:03:48 * @LastEditTime: 2023-09-30 13:44:10
--> -->
<template> <template>
<div class="plan-management"> <div class="plan-management">
@ -32,6 +32,7 @@
:props="props" :props="props"
@change="handleChange"></el-cascader> @change="handleChange"></el-cascader>
</div> </div>
<div class="select-btn reset" @click="reset"></div>
</div> </div>
<div class="btns"> <div class="btns">
<div class="export" @click="exportFile"> <div class="export" @click="exportFile">
@ -42,7 +43,6 @@
<img src="@/assets/images/newProject.png" alt=""> <img src="@/assets/images/newProject.png" alt="">
<span>新增计划</span> <span>新增计划</span>
</div> </div>
<div class="select-btn reset" @click="reset"></div>
</div> </div>
</div> </div>
<div class="plan-bottomBox"> <div class="plan-bottomBox">
@ -265,13 +265,17 @@
// console.log(newForm,'newForm') // console.log(newForm,'newForm')
// //
if(!this.disabled) { if(!this.disabled) {
console.log('123')
if(Array.isArray(newForm.district)){ if(Array.isArray(newForm.district)){
console.log('456')
if(newForm.district.length == 2) { if(newForm.district.length == 2) {
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[0].slice(1, 8); let district = this.form.district[0].slice(1, 8);
obj = { ...this.pages, ...this.form,district }; obj = { ...this.pages, ...this.form,district };
} else {
obj = { ...this.pages, ...this.form};
} }
// //
} else { } else {
@ -475,6 +479,9 @@
// this.commentData(item.children,this.dept) // this.commentData(item.children,this.dept)
// } // }
item.children.map((itemTwo)=>{ item.children.map((itemTwo)=>{
if(itemTwo.children.length == 0){
delete itemTwo.children;
}
itemTwo.county = itemTwo.subdistrict itemTwo.county = itemTwo.subdistrict
}) })
}) })
@ -564,15 +571,15 @@
.area { .area {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; // justify-content: center;
flex: 1; // flex: 1;
.area-span { .area-span {
// font-size: 20px; // font-size: 20px;
// font-family: 'Alibaba PuHuiTi'; // font-family: 'Alibaba PuHuiTi';
// font-weight: bold; // font-weight: bold;
// color: #525966; // color: #525966;
// line-height: 40px; // line-height: 40px;
// margin-right: 100px; margin-left: 40px;
font-size: 14px; font-size: 14px;
font-family: 'Alibaba PuHuiTi'; font-family: 'Alibaba PuHuiTi';
font-weight: 400; font-weight: 400;
@ -624,6 +631,21 @@
transform: rotate(180deg); transform: rotate(180deg);
} }
} }
.select-btn {
width: 120px;
height: 34px;
border-radius: 2px;
display: flex;
align-items: center;
justify-content: center;
font-size: 15px;
font-family: 'Alibaba PuHuiTi';
font-weight: 500;
color: #ffffff;
cursor: pointer;
background: #FDAB5B;
margin-left: 20px;
}
} }
.btns { .btns {
display: flex; display: flex;
@ -645,21 +667,6 @@
font-weight: 400; font-weight: 400;
} }
} }
.select-btn {
width: 120px;
height: 34px;
border-radius: 2px;
display: flex;
align-items: center;
justify-content: center;
font-size: 15px;
font-family: 'Alibaba PuHuiTi';
font-weight: 500;
color: #ffffff;
cursor: pointer;
background: #FDAB5B;
margin-left: 20px;
}
.export { .export {
background-color: #2378EC; background-color: #2378EC;
margin-right: 30px; margin-right: 30px;

Loading…
Cancel
Save