Selaa lähdekoodia

修改

master
yangpeilai 1 kuukausi sitten
vanhempi
commit
d13332b0f4

+ 5
- 6
src/views/system/agency/data.js Näytä tiedosto

import { IsPermission } from "@/router/routerUtil"; import { IsPermission } from "@/router/routerUtil";
let formLabelWidth = '150px';
// 表单数据配置(改为函数形式,接收route参数) // 表单数据配置(改为函数形式,接收route参数)
export const getZxqdFindConfig = (route) => ({ export const getZxqdFindConfig = (route) => ({
tabSize: "small", //Table 的尺寸 large / default /small (默认default) tabSize: "small", //Table 的尺寸 large / default /small (默认default)
operateShow: true, //是否为表格添加操作栏(默认true) operateShow: true, //是否为表格添加操作栏(默认true)
operateTitle: "操作", //操作栏标题(默认为"") operateTitle: "操作", //操作栏标题(默认为"")
operateFixed: true, //操作栏是否固定(默认false) operateFixed: true, //操作栏是否固定(默认false)
operateWidth: "200", //操作栏宽度
operateWidth: "150", //操作栏宽度
operate: { operate: {
edit: IsPermission(route, 'EDIT_LIST'), //是否编辑(默认true) edit: IsPermission(route, 'EDIT_LIST'), //是否编辑(默认true)
info: IsPermission(route, 'INFO_LIST'), //是否编辑(默认true)
info: false,
delete: true, //是否删除(默认true) IsPermission(route, 'DEL_LIST') delete: true, //是否删除(默认true) IsPermission(route, 'DEL_LIST')
announcement: false, // 公告 announcement: false, // 公告
remark: false, // 详情 remark: false, // 详情
{ {
label: "序号", label: "序号",
type: "index", //类型:selection,index,expand type: "index", //类型:selection,index,expand
width: "80px", //表头宽度
width: "50px", //表头宽度
}, },
], ],
field: [ field: [
label: "中心渠道编号", label: "中心渠道编号",
form: { form: {
hideEdit: true, hideEdit: true,
formLabelWidth: formLabelWidth,
formLabelWidth: '120px',
type: 'input', type: 'input',
required: true, required: true,
} }
prop: "centerAgencyName", prop: "centerAgencyName",
label: "中心渠道名称", label: "中心渠道名称",
form: { form: {
formLabelWidth: formLabelWidth,
formLabelWidth: '200px',
type: 'input', type: 'input',
required: true, required: true,
disabled: false disabled: false

+ 7
- 7
src/views/system/agency/index.vue Näytä tiedosto

{ {
label: "序号", label: "序号",
type: "index", //类型:selection,index,expand type: "index", //类型:selection,index,expand
width: "80px", //表头宽度
width: "50px", //表头宽度
}, },
], ],
field: [ field: [
{ {
prop: "issuerId", prop: "issuerId",
label: "发行方编号", label: "发行方编号",
width: "120px"
width: "80px"
}, },
{ {
prop: "name", prop: "name",
label: "渠道名称", label: "渠道名称",
width: "120px",
width: "200px",
form: { form: {
width: '45%', width: '45%',
formLabelWidth: formLabelWidth, formLabelWidth: formLabelWidth,
{ {
prop: "agencyId", prop: "agencyId",
label: "渠道编号", label: "渠道编号",
width: "120px",
width: "100px",
form: { form: {
width: '45%', width: '45%',
formLabelWidth: formLabelWidth, formLabelWidth: formLabelWidth,
{ {
prop: "type", prop: "type",
label: "合作机构类别", label: "合作机构类别",
width: "120px",
width: "100px",
listData: AGENCY_TYPE, listData: AGENCY_TYPE,
form: { form: {
width: '45%', width: '45%',
} }
}, },
{ {
prop: "createTime",
prop: "insertTime",
label: "创建时间", label: "创建时间",
width: "170px",
width: "150px",
funRuleStarts: true, funRuleStarts: true,
funRule: (val: any) => { funRule: (val: any) => {
if (val) { if (val) {

+ 17
- 18
src/views/system/updatePassword/index.vue Näytä tiedosto

<el-tab-pane name="oldPassword" label="通过旧密码修改"> <el-tab-pane name="oldPassword" label="通过旧密码修改">
<el-form-item prop="mobile" label="手机号"> <el-form-item prop="mobile" label="手机号">
<el-input maxlength="60" v-trim clearable v-model="dataForm.mobile" type="text" <el-input maxlength="60" v-trim clearable v-model="dataForm.mobile" type="text"
placeholder="请输入手机号"></el-input>
placeholder="请输入手机号" :disabled="true"></el-input>
</el-form-item> </el-form-item>
<el-form-item prop="password" label="旧密码"> <el-form-item prop="password" label="旧密码">
<el-input maxlength="60" v-trim clearable v-model="dataForm.password" type="password" <el-input maxlength="60" v-trim clearable v-model="dataForm.password" type="password"
type="password" placeholder="请确认密码"></el-input> type="password" placeholder="请确认密码"></el-input>
</el-form-item> </el-form-item>
<el-form-item prop="mobile" label="手机号"> <el-form-item prop="mobile" label="手机号">
<el-input maxlength="60" v-trim clearable size="large" v-model="dataForm.mobile"
placeholder="请输入手机号">
</el-input>
<el-input maxlength="60" v-trim clearable v-model="dataForm.mobile" placeholder="请输入手机号" :disabled="true"/>
</el-form-item> </el-form-item>
<el-form-item prop="code" label="验证码"> <el-form-item prop="code" label="验证码">
<div class="code-wrap"> <div class="code-wrap">
<el-input maxlength="60" v-trim clearable size="large" v-model="dataForm.code"
placeholder="请输入验证码"></el-input>
<el-button type="primary" class="code-btn" @click="codeHandle" :disabled="disabled">{{
disabled
?
`获取验证码${count}` : '获取验证码' }}</el-button>
<el-input maxlength="60" v-trim clearable v-model="dataForm.code" placeholder="请输入验证码"/>
<el-button type="primary" class="code-btn" @click="codeHandle" :disabled="disabled" size="small">
{{ disabled ? `获取验证码${count}` : '获取验证码' }}</el-button>
</div> </div>
</el-form-item> </el-form-item>
</el-tab-pane> </el-tab-pane>
const dataFormSubmitHandle = useDebounce(submit); const dataFormSubmitHandle = useDebounce(submit);
function cancelHandle() { function cancelHandle() {
dialogVisible.value = false; dialogVisible.value = false;
dataForm.value = {
mobile: "",
password: "",
newPassword: "",
affirmNewPassword: "",
code: ""
}
// dataForm.value = {
// mobile: "",
// password: "",
// newPassword: "",
// affirmNewPassword: "",
// code: ""
// }
} }
function init() {
function init() {
//从localstare中读取个人信息
let cacheAccessToken = getCache( 'cacheAccessToken',{ isSessionStorage: false },{})

dataForm.value.mobile = cacheAccessToken.staffId;
dialogVisible.value = true; dialogVisible.value = true;
} }
// 获取验证码 // 获取验证码

Loading…
Peruuta
Tallenna