5cbb6162 by renchao@pashanhoo.com

style:信息备案

1 parent d3e67fd1
......@@ -197,7 +197,7 @@
}
})
if (this.formData.isAdd != 1) {
store.dispatch('user/reWorkFresh', false)
store.dispatch("user/refreshPage", false);
update(this.ruleForm).then(res => {
if (res.code == 200) {
this.$message.success('保存成功')
......@@ -206,7 +206,7 @@
this.resetTableFields();
this.closeDialog();
//刷新列表
store.dispatch('user/reWorkFresh', true)
store.dispatch("user/refreshPage", true);
} else {
this.$message.error(res.message);
}
......@@ -214,7 +214,7 @@
} else {
that.$refs['ruleForm'].validate((valid) => {
if (valid) {
store.dispatch('user/reWorkFresh', false)
store.dispatch("user/refreshPage", false);
addQy(this.ruleForm).then(res => {
if (res.code == 200) {
that.$message.success('保存成功')
......@@ -223,7 +223,7 @@
that.resetTableFields();
that.closeDialog();
//刷新列表
store.dispatch('user/reWorkFresh', true)
store.dispatch("user/refreshPage", true);
} else {
that.$message.error(res.message);
}
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-09-07 15:04:46
* @LastEditTime: 2023-09-15 15:50:26
-->
<template>
<dialogBox title="新建材料信息" width="20%" isMain v-model="myValue" @closeDialog="closeDialog" @submitForm="handleSubmit"
......@@ -24,6 +24,13 @@
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="24">
<el-form-item label="材料编码" prop="clbm">
<el-input v-model="ruleForm.clbm"></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</dialogBox>
</template>
......@@ -40,6 +47,7 @@
ruleForm: {
cllx: "",
clmc: "",
clbm: ""
},
rules: {
cllx: [
......@@ -47,7 +55,10 @@
],
clmc: [
{ required: true, message: '请输入材料名称', trigger: 'blur' }
]
],
clbm: [
{ required: true, message: '请输入材料编码', trigger: 'blur' }
],
}
}
},
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-09-14 11:14:54
* @LastEditTime: 2023-09-15 15:38:53
-->
<template>
<div class="clmlmx-box">
......@@ -37,8 +37,15 @@
label: "材料名称",
render: (h, scope) => {
return (
(scope.row.sfxjcl == '1') ?
<el-input value={scope.row.clmc} onInput={(val) => { scope.row.clmc = val }}></el-input> : <span>{scope.row.clmc}</span>
<el-input value={scope.row.clmc} onInput={(val) => { scope.row.clmc = val }}></el-input>
)
}
},
{
label: "材料编码",
render: (h, scope) => {
return (
<el-input value={scope.row.clbm} onInput={(val) => { scope.row.clbm = val }}></el-input>
)
}
},
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-09-14 11:11:10
* @LastEditTime: 2023-09-15 15:41:36
-->
<template>
<div class="from-clues">
......@@ -39,6 +39,7 @@
</div>
</template>
<script>
import { mapGetters } from 'vuex'
import table from "@/utils/mixin/table"
import { datas, sendThis } from "./data"
import { queryQyByPage, addQy, remove } from "@/api/xxba.js";
......@@ -65,6 +66,17 @@
},
};
},
computed: {
...mapGetters(['isRefresh'])
},
watch: {
isRefresh: {
handler (newVal, oldVal) {
if (newVal) this.queryClick()
},
immediate: true
}
},
methods: {
/**
* @description: queryClick
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-09-07 14:30:50
* @LastEditTime: 2023-09-15 15:47:37
-->
<template>
<div class="from-clues">
......@@ -59,7 +59,6 @@
watch: {
workFresh: {
handler (newVal, oldVal) {
console.log(newVal, 'newVal');
if (newVal) this.queryClick()
}
}
......@@ -138,6 +137,9 @@
message: '已取消删除'
})
})
},
handleEdit (row) {
this.$popupDialog("编辑企业", "xxba/components/addDialog", { isAdd: 2, ...row }, "75%")
}
}
}
......