zhanbo.xu

feat: 修改字段

......@@ -4,7 +4,7 @@
:title="title"
:visible.sync="outerVisible"
:show-close="false"
width="30%"
width="40%"
:close-on-click-modal="false"
v-loading="loadings.dialogLoading"
@close="close(false)"
......@@ -21,7 +21,7 @@
>
<el-row :gutter="5">
<!-- 用户ID -->
<el-col :span="24">
<el-col :span="12">
<Formitem label="用户ID" prop="userId" type="edit">
<el-input
type="text"
......@@ -35,7 +35,7 @@
</Formitem>
</el-col>
<!-- key -->
<!-- <el-col :span="12">
<el-col :span="12">
<Formitem label="KEY" prop="key" type="edit">
<el-input
type="text"
......@@ -47,7 +47,7 @@
placeholder=""
></el-input>
</Formitem>
</el-col> -->
</el-col>
<!-- 说明 -->
<el-col :span="24">
<Formitem label="说明" prop="description" type="edit">
......@@ -114,7 +114,7 @@ export default {
rules: {
key: [
{
required: true,
required: false,
trigger: "blur",
message: "用户ID不能为空!",
},
......@@ -140,7 +140,7 @@ export default {
if (val) {
this.loadings.dialogLoading = false;
if (this.type == "update") {
this.formData = this.active;
this.formData = JSON.parse(JSON.stringify(this.active));
}
}
},
......@@ -179,6 +179,7 @@ export default {
const params = new URLSearchParams();
params.append("description", description);
params.append("userId", userId);
params.append("key", key);
generateKey(params)
.then((res) => {
......
......@@ -822,17 +822,28 @@ export default {
slot: true,
},
{
name: "申报数量",
value: "qty",
width: "",
align: "left",
},
{
name: "申报计量单位",
value: "unit",
width: "",
align: "left",
},
{
name: "法定数量",
value: "qty1",
width: "",
align: "left",
},
{
name: "法定单位",
value: "unit",
name: "法定计量单位",
value: "unit1",
width: "",
align: "left",
slot: true,
},
{
name: "第二数量",
......@@ -841,7 +852,7 @@ export default {
align: "left",
},
{
name: "第二单位",
name: "第二计量单位",
value: "unit2",
width: "",
align: "left",
......