style:信息备案
Showing
5 changed files
with
44 additions
and
12 deletions
... | @@ -197,7 +197,7 @@ | ... | @@ -197,7 +197,7 @@ |
197 | } | 197 | } |
198 | }) | 198 | }) |
199 | if (this.formData.isAdd != 1) { | 199 | if (this.formData.isAdd != 1) { |
200 | store.dispatch('user/reWorkFresh', false) | 200 | store.dispatch("user/refreshPage", false); |
201 | update(this.ruleForm).then(res => { | 201 | update(this.ruleForm).then(res => { |
202 | if (res.code == 200) { | 202 | if (res.code == 200) { |
203 | this.$message.success('保存成功') | 203 | this.$message.success('保存成功') |
... | @@ -206,7 +206,7 @@ | ... | @@ -206,7 +206,7 @@ |
206 | this.resetTableFields(); | 206 | this.resetTableFields(); |
207 | this.closeDialog(); | 207 | this.closeDialog(); |
208 | //刷新列表 | 208 | //刷新列表 |
209 | store.dispatch('user/reWorkFresh', true) | 209 | store.dispatch("user/refreshPage", true); |
210 | } else { | 210 | } else { |
211 | this.$message.error(res.message); | 211 | this.$message.error(res.message); |
212 | } | 212 | } |
... | @@ -214,7 +214,7 @@ | ... | @@ -214,7 +214,7 @@ |
214 | } else { | 214 | } else { |
215 | that.$refs['ruleForm'].validate((valid) => { | 215 | that.$refs['ruleForm'].validate((valid) => { |
216 | if (valid) { | 216 | if (valid) { |
217 | store.dispatch('user/reWorkFresh', false) | 217 | store.dispatch("user/refreshPage", false); |
218 | addQy(this.ruleForm).then(res => { | 218 | addQy(this.ruleForm).then(res => { |
219 | if (res.code == 200) { | 219 | if (res.code == 200) { |
220 | that.$message.success('保存成功') | 220 | that.$message.success('保存成功') |
... | @@ -223,7 +223,7 @@ | ... | @@ -223,7 +223,7 @@ |
223 | that.resetTableFields(); | 223 | that.resetTableFields(); |
224 | that.closeDialog(); | 224 | that.closeDialog(); |
225 | //刷新列表 | 225 | //刷新列表 |
226 | store.dispatch('user/reWorkFresh', true) | 226 | store.dispatch("user/refreshPage", true); |
227 | } else { | 227 | } else { |
228 | that.$message.error(res.message); | 228 | that.$message.error(res.message); |
229 | } | 229 | } | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-09-07 15:04:46 | 4 | * @LastEditTime: 2023-09-15 15:50:26 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <dialogBox title="新建材料信息" width="20%" isMain v-model="myValue" @closeDialog="closeDialog" @submitForm="handleSubmit" | 7 | <dialogBox title="新建材料信息" width="20%" isMain v-model="myValue" @closeDialog="closeDialog" @submitForm="handleSubmit" |
... | @@ -24,6 +24,13 @@ | ... | @@ -24,6 +24,13 @@ |
24 | </el-form-item> | 24 | </el-form-item> |
25 | </el-col> | 25 | </el-col> |
26 | </el-row> | 26 | </el-row> |
27 | <el-row :gutter="20"> | ||
28 | <el-col :span="24"> | ||
29 | <el-form-item label="材料编码" prop="clbm"> | ||
30 | <el-input v-model="ruleForm.clbm"></el-input> | ||
31 | </el-form-item> | ||
32 | </el-col> | ||
33 | </el-row> | ||
27 | </el-form> | 34 | </el-form> |
28 | </dialogBox> | 35 | </dialogBox> |
29 | </template> | 36 | </template> |
... | @@ -40,6 +47,7 @@ | ... | @@ -40,6 +47,7 @@ |
40 | ruleForm: { | 47 | ruleForm: { |
41 | cllx: "", | 48 | cllx: "", |
42 | clmc: "", | 49 | clmc: "", |
50 | clbm: "" | ||
43 | }, | 51 | }, |
44 | rules: { | 52 | rules: { |
45 | cllx: [ | 53 | cllx: [ |
... | @@ -47,7 +55,10 @@ | ... | @@ -47,7 +55,10 @@ |
47 | ], | 55 | ], |
48 | clmc: [ | 56 | clmc: [ |
49 | { required: true, message: '请输入材料名称', trigger: 'blur' } | 57 | { required: true, message: '请输入材料名称', trigger: 'blur' } |
50 | ] | 58 | ], |
59 | clbm: [ | ||
60 | { required: true, message: '请输入材料编码', trigger: 'blur' } | ||
61 | ], | ||
51 | } | 62 | } |
52 | } | 63 | } |
53 | }, | 64 | }, | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-09-14 11:14:54 | 4 | * @LastEditTime: 2023-09-15 15:38:53 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <div class="clmlmx-box"> | 7 | <div class="clmlmx-box"> |
... | @@ -37,8 +37,15 @@ | ... | @@ -37,8 +37,15 @@ |
37 | label: "材料名称", | 37 | label: "材料名称", |
38 | render: (h, scope) => { | 38 | render: (h, scope) => { |
39 | return ( | 39 | return ( |
40 | (scope.row.sfxjcl == '1') ? | 40 | <el-input value={scope.row.clmc} onInput={(val) => { scope.row.clmc = val }}></el-input> |
41 | <el-input value={scope.row.clmc} onInput={(val) => { scope.row.clmc = val }}></el-input> : <span>{scope.row.clmc}</span> | 41 | ) |
42 | } | ||
43 | }, | ||
44 | { | ||
45 | label: "材料编码", | ||
46 | render: (h, scope) => { | ||
47 | return ( | ||
48 | <el-input value={scope.row.clbm} onInput={(val) => { scope.row.clbm = val }}></el-input> | ||
42 | ) | 49 | ) |
43 | } | 50 | } |
44 | }, | 51 | }, | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-09-14 11:11:10 | 4 | * @LastEditTime: 2023-09-15 15:41:36 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <div class="from-clues"> | 7 | <div class="from-clues"> |
... | @@ -39,6 +39,7 @@ | ... | @@ -39,6 +39,7 @@ |
39 | </div> | 39 | </div> |
40 | </template> | 40 | </template> |
41 | <script> | 41 | <script> |
42 | import { mapGetters } from 'vuex' | ||
42 | import table from "@/utils/mixin/table" | 43 | import table from "@/utils/mixin/table" |
43 | import { datas, sendThis } from "./data" | 44 | import { datas, sendThis } from "./data" |
44 | import { queryQyByPage, addQy, remove } from "@/api/xxba.js"; | 45 | import { queryQyByPage, addQy, remove } from "@/api/xxba.js"; |
... | @@ -65,6 +66,17 @@ | ... | @@ -65,6 +66,17 @@ |
65 | }, | 66 | }, |
66 | }; | 67 | }; |
67 | }, | 68 | }, |
69 | computed: { | ||
70 | ...mapGetters(['isRefresh']) | ||
71 | }, | ||
72 | watch: { | ||
73 | isRefresh: { | ||
74 | handler (newVal, oldVal) { | ||
75 | if (newVal) this.queryClick() | ||
76 | }, | ||
77 | immediate: true | ||
78 | } | ||
79 | }, | ||
68 | methods: { | 80 | methods: { |
69 | /** | 81 | /** |
70 | * @description: queryClick | 82 | * @description: queryClick | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-09-07 14:30:50 | 4 | * @LastEditTime: 2023-09-15 15:47:37 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <div class="from-clues"> | 7 | <div class="from-clues"> |
... | @@ -59,7 +59,6 @@ | ... | @@ -59,7 +59,6 @@ |
59 | watch: { | 59 | watch: { |
60 | workFresh: { | 60 | workFresh: { |
61 | handler (newVal, oldVal) { | 61 | handler (newVal, oldVal) { |
62 | console.log(newVal, 'newVal'); | ||
63 | if (newVal) this.queryClick() | 62 | if (newVal) this.queryClick() |
64 | } | 63 | } |
65 | } | 64 | } |
... | @@ -138,6 +137,9 @@ | ... | @@ -138,6 +137,9 @@ |
138 | message: '已取消删除' | 137 | message: '已取消删除' |
139 | }) | 138 | }) |
140 | }) | 139 | }) |
140 | }, | ||
141 | handleEdit (row) { | ||
142 | this.$popupDialog("编辑企业", "xxba/components/addDialog", { isAdd: 2, ...row }, "75%") | ||
141 | } | 143 | } |
142 | } | 144 | } |
143 | } | 145 | } | ... | ... |
-
Please register or sign in to post a comment