修改计划月份

zhangtao
laozt 1 year ago
parent 9d845d0b5b
commit 2ac24a86c4

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

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

Loading…
Cancel
Save