|
@@ -110,6 +110,7 @@ export default defineComponent({
|
|
|
});
|
|
|
const otherParams = reactive({
|
|
|
showOtherSchool: false,
|
|
|
+ showCloseButton: true, // 是否显示关闭按钮
|
|
|
showOtherMessage: '',
|
|
|
/** limit 超限制,change 更换学生,nickname 名称不一致 */
|
|
|
otherType: '' as 'limit' | 'change' | 'nickname',
|
|
@@ -305,6 +306,7 @@ export default defineComponent({
|
|
|
'学生姓名与上次提交信息不一致,请确认修改学生信息或创建新的学生账号';
|
|
|
otherParams.showOtherSchool = true;
|
|
|
otherParams.showCancelButton = true;
|
|
|
+ otherParams.showCloseButton = true;
|
|
|
otherParams.cancelButtonColor =
|
|
|
'linear-gradient( 224deg, #3FE1E6 0%, #00CDD4 100%)';
|
|
|
otherParams.cancelButtonText = '新建学生';
|
|
@@ -324,6 +326,7 @@ export default defineComponent({
|
|
|
otherParams.showOtherMessage = `同一手机号最多创建${forms.multi_user_limit}个学生`;
|
|
|
otherParams.showOtherSchool = true;
|
|
|
otherParams.showCancelButton = false;
|
|
|
+ otherParams.showCloseButton = true;
|
|
|
otherParams.confirmButtonColor =
|
|
|
'linear-gradient( 305deg, #40C8FF 0%, #3192FF 100%)';
|
|
|
otherParams.confirmButtonText = '我知道了';
|
|
@@ -345,6 +348,7 @@ export default defineComponent({
|
|
|
}】,是否确认提交?`;
|
|
|
otherParams.showOtherSchool = true;
|
|
|
otherParams.showCancelButton = true;
|
|
|
+ otherParams.showCloseButton = false;
|
|
|
otherParams.cancelButtonColor = '';
|
|
|
otherParams.cancelButtonText = '取消';
|
|
|
otherParams.confirmButtonColor = '';
|
|
@@ -741,6 +745,7 @@ export default defineComponent({
|
|
|
|
|
|
<MMessageTip
|
|
|
show={otherParams.showOtherSchool}
|
|
|
+ showCloseButton={otherParams.showCloseButton}
|
|
|
messageAlign={otherParams.messageAlign}
|
|
|
message={otherParams.showOtherMessage}
|
|
|
showCancelButton={otherParams.showCancelButton}
|
|
@@ -748,6 +753,7 @@ export default defineComponent({
|
|
|
cancelButtonText={otherParams.cancelButtonText}
|
|
|
confirmButtonColor={otherParams.confirmButtonColor}
|
|
|
confirmButtonText={otherParams.confirmButtonText}
|
|
|
+ onClose={() => (otherParams.showOtherSchool = false)}
|
|
|
onCancel={() => {
|
|
|
otherParams.showOtherSchool = false;
|
|
|
if (otherParams.otherType === 'nickname') {
|