修改计划月份

zhangtao
laozt 1 year ago
parent 9d845d0b5b
commit 2ac24a86c4

@ -4,7 +4,7 @@
* @Author: JC9527
* @Date: 2023-09-04 10:20:06
* @LastEditors: laozt 2721205210@qq.com
* @LastEditTime: 2023-12-19 09:49:46
* @LastEditTime: 2023-12-19 10:11:02
-->
<template>
<div class="plan-management">
@ -165,14 +165,13 @@
</el-table-column>
</el-table>
<pagination
v-show="total > 0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<pagination
v-show="total > 0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
</div>
<!-- 发布计划 -->
<add-dialog ref="addDialog" v-on:close="closeAddDialog" />

@ -3,8 +3,8 @@
* @version:
* @Author: JC9527
* @Date: 2023-09-28 11:25:48
* @LastEditors: JC9527
* @LastEditTime: 2023-10-11 11:06:21
* @LastEditors: laozt 2721205210@qq.com
* @LastEditTime: 2023-12-19 10:56:26
-->
<template>
<el-dialog
@ -33,7 +33,7 @@
<el-input v-model="form.enterpriseId" :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-input v-model="cdistrict" :disabled="true"></el-input>
</el-form-item>
<el-form-item label="发布时间:" class="form-input">
<el-input v-model="form.createTime" :disabled="true"></el-input>
@ -52,8 +52,7 @@
</el-form-item>
<el-form-item label="计划月份:" class="form-input">
<el-select
v-model="plannedMonth"
multiple
v-model="form.plannedMonth"
collapse-tags
style="margin-left: 20px"
placeholder="请选择月份"
@ -90,12 +89,19 @@
</el-dialog>
</template>
<script>
import {
listEnterprise,
getEnterprise,
delEnterprise,
addEnterprise,
updateEnterprise,
} from "@/api/yingji/enterprise";
export default {
data() {
return {
dialogVisible: false,
mydistrict: "",
plannedMonth: 1,
cdistrict: "",
form: {
plannedYear: "",
plannedMonth: "",
@ -206,22 +212,26 @@ export default {
},
methods: {
multipleChange(e) {
// console.log(e.join(","));
this.form.plannedMonth = e.join(",");
// console.log(e);
this.form.plannedMonth = e;
},
openDialog(row) {
this.dialogVisible = true;
this.loading = false;
row.district = this.componendDistrict(row.district);
this.cdistrict = this.componendDistrict(row.district);
this.form = row;
this.form.plannedMonth = "1";
console.log(this.form);
// console.log(this.form);
},
closeDialog() {
this.dialogVisible = false;
},
onSubmit() {},
onSubmit() {
// console.log(this.form);
updateEnterprise(this.form).then((response) => {
this.$modal.msgSuccess("修改成功");
this.closeDialog()
});
},
//
componendDistrict(district) {
let fullName;

Loading…
Cancel
Save