|
|
|
@ -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 = {}; |
|
|
|
|