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

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

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

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

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

Loading…
Cancel
Save