|
@@ -55,6 +55,7 @@
|
|
|
:sync-to-store="false"
|
|
:sync-to-store="false"
|
|
|
:init-from-store="false"
|
|
:init-from-store="false"
|
|
|
:change-on-select="false"
|
|
:change-on-select="false"
|
|
|
|
|
+ :allow-clear="false"
|
|
|
@change="changeCascader"
|
|
@change="changeCascader"
|
|
|
/>
|
|
/>
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
@@ -105,6 +106,7 @@
|
|
|
import type { FormInstance, RuleObject } from 'ant-design-vue/es/form';
|
|
import type { FormInstance, RuleObject } from 'ant-design-vue/es/form';
|
|
|
import { JEditor, JImageUpload } from '/@/components/Form';
|
|
import { JEditor, JImageUpload } from '/@/components/Form';
|
|
|
import { useInitForm } from '/@/views/analysis/warningAnalysis/connectAnalysis/hooks/form';
|
|
import { useInitForm } from '/@/views/analysis/warningAnalysis/connectAnalysis/hooks/form';
|
|
|
|
|
+ import { useMineDepartmentStore } from '/@/store/modules/mine';
|
|
|
|
|
|
|
|
// 组件映射表
|
|
// 组件映射表
|
|
|
const componentMap = {
|
|
const componentMap = {
|
|
@@ -119,6 +121,7 @@
|
|
|
|
|
|
|
|
// 定义事件发射
|
|
// 定义事件发射
|
|
|
const emit = defineEmits(['success']);
|
|
const emit = defineEmits(['success']);
|
|
|
|
|
+ const mineStore = useMineDepartmentStore();
|
|
|
const { goafOptions, goafId, innerValue, initGoafOptions } = useInitForm();
|
|
const { goafOptions, goafId, innerValue, initGoafOptions } = useInitForm();
|
|
|
|
|
|
|
|
// 模态框模式:查看/编辑/新增
|
|
// 模态框模式:查看/编辑/新增
|
|
@@ -357,13 +360,15 @@
|
|
|
const now = dayjs().format('YYYY-MM-DD HH:mm:ss');
|
|
const now = dayjs().format('YYYY-MM-DD HH:mm:ss');
|
|
|
const result = {
|
|
const result = {
|
|
|
...currentRecord.value,
|
|
...currentRecord.value,
|
|
|
- mineCode: formData.mineCode,
|
|
|
|
|
|
|
+ deptId: innerValue.value,
|
|
|
|
|
+ goafId: goafId.value,
|
|
|
|
|
+ mineCode: mode.value === 'add' ? mineStore.findDepartById(innerValue.value)?.fax : formData.mineCode,
|
|
|
queJson: JSON.stringify(submitQueList),
|
|
queJson: JSON.stringify(submitQueList),
|
|
|
createTime: mode.value === 'add' ? now : currentRecord.value.createTime || now,
|
|
createTime: mode.value === 'add' ? now : currentRecord.value.createTime || now,
|
|
|
updateTime: now,
|
|
updateTime: now,
|
|
|
isOk: mode.value === 'add' ? false : currentRecord.value.isOk,
|
|
isOk: mode.value === 'add' ? false : currentRecord.value.isOk,
|
|
|
};
|
|
};
|
|
|
- console.log('最终提交数据:', result);
|
|
|
|
|
|
|
+ // console.log('最终提交数据:', result);
|
|
|
emit('success', result);
|
|
emit('success', result);
|
|
|
closeModal();
|
|
closeModal();
|
|
|
} catch (error: any) {
|
|
} catch (error: any) {
|