zhangtao
laozt 1 year ago
parent f44d7022e0
commit e24b029b21

@ -190,7 +190,6 @@ import {
import AddDialog from "@/views/components/AddDialog/index.vue"; import AddDialog from "@/views/components/AddDialog/index.vue";
import InfoDialog from "./planmanage/components/infoDialog.vue"; import InfoDialog from "./planmanage/components/infoDialog.vue";
import executive from "./echarts/executive.vue"; import executive from "./echarts/executive.vue";
import { mapState } from "vuex"; import { mapState } from "vuex";
export default { export default {
@ -311,7 +310,7 @@ export default {
this.queryParams.district = e; this.queryParams.district = e;
}, },
multipleChange(e) { multipleChange(e) {
console.log(e.join(",")); // console.log(e.join(","));
this.queryParams.plannedMonth = e.join(","); this.queryParams.plannedMonth = e.join(",");
}, },
// //
@ -379,7 +378,7 @@ export default {
}, },
/** 详情按钮操作 */ /** 详情按钮操作 */
handleInfo(row) { handleInfo(row) {
this.$refs.infoDialog.openDialog("newlyIncreased", this.dept); this.$refs.infoDialog.openDialog(row);
}, },
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {

@ -20,71 +20,20 @@
<div class="closeClick"> <div class="closeClick">
<div class="newplan"> <div class="newplan">
<div class="line"></div> <div class="line"></div>
<div class="span">{{ title }}</div> <div class="span">查看详情</div>
</div> </div>
<img src="@/assets/images/close.png" alt="" @click="Close" /> <img src="@/assets/images/close.png" alt="" @click="closeDialog" />
</div> </div>
<div v-loading="loading"> <div v-loading="loading">
<el-form ref="form" label-width="80px" v-if="idTwo == 1"> <el-descriptions :column="2" border>
<el-form-item label="企业名称:" class="form-input">
<el-input v-model="form.entprName" :disabled="true"></el-input>
</el-form-item>
<el-form-item label="行政区划:" class="form-input">
<el-input v-model="form.district" :disabled="true"></el-input>
</el-form-item>
<el-form-item label="发布时间:" class="form-input">
<el-input v-model="form.createTime" :disabled="true"></el-input>
</el-form-item>
<el-form-item label="计划年月:" class="form-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 label="计划标题:">
<el-input v-model="form.planName" :readonly="readonly" show-word-limit :maxlength="64"></el-input>
</el-form-item>
<el-form-item label="计划内容:" class="form-textarea">
<el-input
v-model="form.planContent"
type="textarea"
resize="none"
:maxlength="2000"
show-word-limit
:readonly="readonly"
placeholder="请输入计划内容"
></el-input>
</el-form-item>
<el-form-item label="备注:" class="form-textarea">
<el-input
v-model="form.remark"
type="textarea"
resize="none"
:maxlength="2000"
show-word-limit
:readonly="readonly"
placeholder="请输入备注"
></el-input>
</el-form-item>
<el-form-item class="btns">
<el-button type="primary" @click="onSubmit" v-if="!readonly"></el-button>
<el-button @click="Close"></el-button>
</el-form-item>
</el-form>
<el-descriptions :column="2" border v-else>
<el-descriptions-item <el-descriptions-item
:label="item.label" :label="value"
v-for="(item, index) in listDes" v-for="(key, value) in ObjectIndex"
:key="index" :key="key"
:span="item.span ? item.span : 1"
> >
{{ item.value}} {{
key == "district" ? componendDistrict(resData[key]) : resData[key]
}}
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
</div> </div>
@ -92,82 +41,59 @@
</el-dialog> </el-dialog>
</template> </template>
<script> <script>
import { Loading } from "element-ui";
export default { export default {
data() { data() {
return { return {
dialogVisible: false, dialogVisible: false,
mydistrict:'', mydistrict: "",
form:{ id: "",
entprName:'', idTwo: "",
district:'',
createTime:'',
plannedYear:'',
planName:'',
planContent:'',
remark:''
},
id:'',
idTwo:'',
readonly: false, readonly: false,
loading: true, loading: true,
title:'查看详情', objInd1: {
listDes:[ 企业名称: "enterpriseName",
{ 统一信用代码: "enterpriseId",
tag:'entprName', 行政区划: "district",
label:'企业名称', 计划年份: "plannedYear",
value:'', 计划月份: "plannedMonth",
},{ 发布时间: "createTime",
tag:'district', 备注: "remark",
label:'行政区划',
value:'',
},{
tag:'createTime',
label:'发布时间',
value:'',
},{
tag:'plannedYear',
label:'计划年月',
value:'',
},{
tag:'planName',
label:'计划标题',
value:'',
span:2,
},{
tag:'planContent',
label:'计划内容',
value:'',
span:2,
},{
tag:'remark',
label:'备注',
value:'',
span:2,
}, },
], ObjectIndex: {},
district:[] district: [],
} resData: {},
};
}, },
methods: { methods: {
openDialog(row) {
this.dialogVisible = true;
this.loading = false;
this.ObjectIndex = this.objInd1;
this.resData = row;
// console.log(row);
},
closeDialog() {
this.dialogVisible = false;
},
// //
componendDistrict(district) { componendDistrict(district) {
let name let fullName;
this.district.map((item)=>{ let treeData = JSON.parse(localStorage.getItem("TREE_DATA"));
if(item.subdistrict == district) { treeData.map((item) => {
name = item.institutionName if (item.districtCode == district) {
fullName = item.district;
} else { } else {
item.children.map((itemTwo) => { item.children.map((itemTwo) => {
if(itemTwo.subdistrict == district) { if (itemTwo.countyCode == district) {
name = item.institutionName + '-' + itemTwo.institutionName fullName = item.district + "-" + itemTwo.county;
} }
}) });
} }
}) });
return name return fullName;
}, },
}, },
} };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
::v-deep .el-descriptions-row th { ::v-deep .el-descriptions-row th {
@ -226,7 +152,7 @@ export default {
::v-deep .el-input { ::v-deep .el-input {
.el-input__inner { .el-input__inner {
font-size: 15px; font-size: 15px;
font-family: 'Alibaba PuHuiTi'; font-family: "Alibaba PuHuiTi";
font-weight: 400; font-weight: 400;
color: #525966; color: #525966;
} }
@ -237,7 +163,7 @@ export default {
.el-textarea__inner { .el-textarea__inner {
height: 100%; height: 100%;
font-size: 15px; font-size: 15px;
font-family: 'Alibaba PuHuiTi'; font-family: "Alibaba PuHuiTi";
font-weight: 400; font-weight: 400;
color: #525966; color: #525966;
} }

Loading…
Cancel
Save