页面调整优化

pull/1/head
Mahone 3 years ago
parent 14d402968d
commit 46462c5801

@ -285,33 +285,41 @@
{ {
title: '标题', title: '标题',
align: "left", align: "left",
dataIndex: 'title',
scopedSlots: {customRender: 'docTitle'} scopedSlots: {customRender: 'docTitle'}
}, },
{ {
title: '文档来源', title: '分类',
align: "left", align: "left",
dataIndex: 'source_dictText' dataIndex: 'category_dictText',
width: 100,
filters: [],
customCell: () => {
return {
style: {
'max-width': '6em',
overflow: 'hidden',
whiteSpace: 'nowrap',
textOverflow: 'ellipsis'
},
};
},
}, },
{ {
title: '发文时间', title: '标签',
align: "left", align: "left",
sorter: true, dataIndex: 'businessType_dictText',
customCell: () => { customCell: () => {
return { return {
style: { style: {
'min-width': '8em', 'max-width': '6em',
'max-width': '15em', overflow: 'hidden',
whiteSpace: 'nowrap',
textOverflow:'ellipsis'
}, },
}; };
}, },
dataIndex: 'pubTimeTxt'
}, },
// {
// title: '',
// align: "center",
// dataIndex: 'businessType_dictText'
// },
{ {
title: '操作', title: '操作',
dataIndex: 'action', dataIndex: 'action',

@ -235,31 +235,37 @@
scopedSlots: {customRender: 'docTitle'} scopedSlots: {customRender: 'docTitle'}
}, },
{ {
title: '文档来源', title: '分类',
align: "left", align: "left",
dataIndex: 'source_dictText', dataIndex: 'category_dictText',
width: 100,
filters: [], filters: [],
customCell: () => {
return {
style: {
'max-width': '6em',
overflow: 'hidden',
whiteSpace: 'nowrap',
textOverflow: 'ellipsis'
},
};
},
}, },
{ {
title: '发文时间', title: '标签',
align: "left", align: "left",
dataIndex: 'pubTimeTxt', dataIndex: 'businessType_dictText',
customCell: () => { customCell: () => {
return { return {
style: { style: {
'min-width': '8em', 'max-width': '6em',
'max-width': '15em', overflow: 'hidden',
whiteSpace: 'nowrap',
textOverflow:'ellipsis'
}, },
}; };
}, },
sorter: true,
}, },
// {
// title: '',
// align: "center",
// dataIndex: 'businessType_dictText'
// },
{ {
title: '操作', title: '操作',
dataIndex: 'action', dataIndex: 'action',

@ -128,9 +128,9 @@
</a-popconfirm> </a-popconfirm>
</a-menu-item> </a-menu-item>
<a-menu-item> <!--<a-menu-item>-->
<a href="javascript:;" @click="handleAgentSettings(record.username)"></a> <!--<a href="javascript:;" @click="handleAgentSettings(record.username)"></a>-->
</a-menu-item> <!--</a-menu-item>-->
</a-menu> </a-menu>
</a-dropdown> </a-dropdown>
@ -310,10 +310,10 @@
handleChangePassword(username) { handleChangePassword(username) {
this.$refs.passwordmodal.show(username); this.$refs.passwordmodal.show(username);
}, },
handleAgentSettings(username){ // handleAgentSettings(username){
this.$refs.sysUserAgentModal.agentSettings(username); // this.$refs.sysUserAgentModal.agentSettings(username);
this.$refs.sysUserAgentModal.title = "用户代理人设置"; // this.$refs.sysUserAgentModal.title = "";
}, // },
passwordModalOk() { passwordModalOk() {
//TODO datasource //TODO datasource
}, },

@ -163,7 +163,7 @@
validatorRules:{ validatorRules:{
username:[{required: true, message: '请输入用户账号!'}, username:[{required: true, message: '请输入用户账号!'},
{validator: this.validateUsername,}], {validator: this.validateUsername,}],
password: [{required: true,pattern:/^(?=.*[a-zA-Z])(?=.*\d)(?=.*[~!@#$%^&*()_+`\-={}:";'<>?,./]).{8,}$/,message: '密码由8位数字、大小写字母和特殊符号组成!'}, password: [{required: false,pattern:/^(?=.*[a-zA-Z])(?=.*\d)(?=.*[~!@#$%^&*()_+`\-={}:";'<>?,./]).{8,}$/,message: '密码由8位数字、大小写字母和特殊符号组成!'},
{validator: this.validateToNextPassword,trigger: 'change'}], {validator: this.validateToNextPassword,trigger: 'change'}],
confirmpassword: [{required: true, message: '请重新输入登录密码!',}, confirmpassword: [{required: true, message: '请重新输入登录密码!',},
{ validator: this.compareToFirstPassword,}], { validator: this.compareToFirstPassword,}],

Loading…
Cancel
Save