master
王家东 2 weeks ago
parent bee5dbbbf8
commit ff77eaa342
  1. 2
      jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expproject/controller/ExpprojectController.java
  2. 13
      jeecgboot-vue3/src/views/expert/admin/components/ExpertForm.vue
  3. 9
      jeecgboot-vue3/src/views/expert/county/components/ExpertForm.vue
  4. 9
      jeecgboot-vue3/src/views/expert/firm/components/ExpertForm.vue
  5. 4
      jeecgboot-vue3/src/views/expproject/admin/Expproject.data.ts

@ -143,7 +143,7 @@ public class ExpprojectController {
public Result<String> add(@RequestBody ExpprojectPage expprojectPage) {
Expproject expproject = new Expproject();
BeanUtils.copyProperties(expprojectPage, expproject);
if (!expprojectPage.getExpandproList().isEmpty()) {
if ( expprojectPage.getExpandproList() != null && !expprojectPage.getExpandproList().isEmpty()) {
if (expproject.getNeedexp() >= expprojectPage.getExpandproList().size()) {
expprojectService.saveMain(expproject, expprojectPage.getExpandproList());
return Result.OK("添加成功!");

@ -9,12 +9,12 @@
<a-input v-model:value="formData.seusername" placeholder="请输入用户名" ></a-input>
</a-form-item>
</a-col>
<a-col :span="24" >
<a-col :span="24" v-if="isEit">
<a-form-item label="密码" v-bind="validateInfos.psd" name="psd">
<a-input-password v-model:value="formData.psd" placeholder="请输入密码" ></a-input-password>
</a-form-item>
</a-col>
<a-col :span="24" >
<a-col :span="24" v-if="isEit">
<a-form-item label="确人密码" v-bind="validateInfos.sepsd" name="sepsd">
<a-input-password v-model:value="formData.sepsd" placeholder="确认密码" ></a-input-password>
</a-form-item>
@ -126,6 +126,8 @@
</template>
<script lang="ts" setup>
import { usePermission } from '/@/hooks/web/usePermission';
const { hasPermission } = usePermission();
import JDictSelectTag from '/src/components/Form/src/jeecg/components/JDictSelectTag.vue';
import JSelectDept from '/src/components/Form/src/jeecg/components/JSelectDept.vue';
import JImageUpload from '/src/components/Form/src/jeecg/components/JImageUpload.vue';
@ -202,14 +204,19 @@ import JImageUpload from '/src/components/Form/src/jeecg/components/JImageUpload
/**
* 新增
*/
const isEit = ref(false)
function add() {
edit({});
isEit.value = true
console.log(11111)
// edit({});
}
/**
* 编辑
*/
function edit(record) {
isEit.value = false
console.log(22222)
nextTick(() => {
resetFields();
const tmpData = {};

@ -9,12 +9,12 @@
<a-input v-model:value="formData.seusername" placeholder="请输入用户名" ></a-input>
</a-form-item>
</a-col>
<a-col :span="24" >
<a-col :span="24" v-if="isEit">
<a-form-item label="密码" v-bind="validateInfos.psd" name="psd">
<a-input-password v-model:value="formData.psd" placeholder="请输入密码" ></a-input-password>
</a-form-item>
</a-col>
<a-col :span="24" >
<a-col :span="24" v-if="isEit">
<a-form-item label="确人密码" v-bind="validateInfos.sepsd" name="sepsd">
<a-input-password v-model:value="formData.sepsd" placeholder="确认密码" ></a-input-password>
</a-form-item>
@ -201,14 +201,17 @@ import JImageUpload from '/src/components/Form/src/jeecg/components/JImageUpload
/**
* 新增
*/
const isEit = ref(false)
function add() {
edit({});
isEit.value = true
// edit({});
}
/**
* 编辑
*/
function edit(record) {
isEit.value = false
nextTick(() => {
resetFields();
const tmpData = {};

@ -9,12 +9,12 @@
<a-input v-model:value="formData.seusername" placeholder="请输入用户名" ></a-input>
</a-form-item>
</a-col>
<a-col :span="24">
<a-col :span="24" v-if="isEit">
<a-form-item label="密码" v-bind="validateInfos.psd" name="psd">
<a-input-password v-model:value="formData.psd" placeholder="请输入密码" ></a-input-password>
</a-form-item>
</a-col>
<a-col :span="24">
<a-col :span="24" v-if="isEit">
<a-form-item label="确人密码" v-bind="validateInfos.sepsd" name="sepsd">
<a-input-password v-model:value="formData.sepsd" placeholder="确认用户名" ></a-input-password>
</a-form-item>
@ -185,14 +185,17 @@ import JImageUpload from '/src/components/Form/src/jeecg/components/JImageUpload
/**
* 新增
*/
const isEit = ref(false)
function add() {
edit({});
isEit.value = true
//edit({});
}
/**
* 编辑
*/
function edit(record) {
isEit.value = false
nextTick(() => {
resetFields();
const tmpData = {};

@ -53,7 +53,7 @@ export const expandproColumns: JVxeColumn[] = [
placeholder: '请输入${title}',
defaultValue:'',
},
{
/* {
title: '所属领域',
key: 'exptype',
type: JVxeTypes.input,
@ -61,7 +61,7 @@ export const expandproColumns: JVxeColumn[] = [
width:"200px",
placeholder: '请输入${title}',
defaultValue:'',
},
},*/
/*{
title: '所属单位',
key: 'ssdep',

Loading…
Cancel
Save