| | |
| | | </div> |
| | | </el-form-item> |
| | | <el-form-item class="form_class"> |
| | | <el-button type="primary" @click="submitForm">保存</el-button> |
| | | <el-button type="primary" @click="submitForm" v-hasPermi="['system:dict:edit']">保存</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | |
| | | queryConfigParams, |
| | | queryConfigParamsSave, |
| | | } from "@/api/basicData/sheetMetalConfig/sheetMetalConfig"; |
| | | import { ElMessage } from "element-plus"; |
| | | // import { ElMessage } from "element-plus"; |
| | | const { proxy } = getCurrentInstance(); |
| | | // const { plate_plan_param } = proxy.useDict('plate_plan_param'); |
| | | const ruleForm = ref({ |
| | |
| | | onMounted(async () => { |
| | | let config = await queryConfigParams("plate_plan_param"); |
| | | console.log(config.data, "configwudhuhfuw"); |
| | | ruleForm.value.days = config.data[0].dictValue * 1; |
| | | ruleForm.value.days = parseInt(config.data[0].dictValue); |
| | | configParams.value = config.data[0]; |
| | | // console.log(plate_plan_param.value[0].value,'plate_plan_paramplate_plan_param') |
| | | }); |
| | |
| | | }); |
| | | if (res.code == 200) { |
| | | ElMessage({ |
| | | message: "更新成功", |
| | | message:t("plan.message.update"), |
| | | type: "success", |
| | | }); |
| | | } |