|
|
|
|
@ -8927,10 +8927,8 @@ var documentPage = function documentPage(_ref) {
|
|
|
|
|
setquestion_show(res === null || res === void 0 || (_res$data7 = res.data) === null || _res$data7 === void 0 ? void 0 : _res$data7.stage_count);
|
|
|
|
|
setquestion_finish((res === null || res === void 0 || (_res$data8 = res.data) === null || _res$data8 === void 0 ? void 0 : _res$data8.stage_count) > 0 ? true : false);
|
|
|
|
|
settime_show(dayjs_min_default()(res === null || res === void 0 || (_res$data9 = res.data) === null || _res$data9 === void 0 || (_res$data9 = _res$data9.competition) === null || _res$data9 === void 0 ? void 0 : _res$data9.start_time).format('YYYY-MM-DD HH:mm') + ' ~ ' + dayjs_min_default()(res === null || res === void 0 || (_res$data10 = res.data) === null || _res$data10 === void 0 || (_res$data10 = _res$data10.competition) === null || _res$data10 === void 0 ? void 0 : _res$data10.end_time).format('YYYY-MM-DD HH:mm'));
|
|
|
|
|
seturl_show('https://app-kyxt.pcl.ac.cn/competitions/' + (res === null || res === void 0 || (_res$data11 = res.data) === null || _res$data11 === void 0 || (_res$data11 = _res$data11.competition) === null || _res$data11 === void 0 ? void 0 : _res$data11.identifier) + '/edit');
|
|
|
|
|
form.setFieldsValue({
|
|
|
|
|
'identifier': res === null || res === void 0 || (_res$data12 = res.data) === null || _res$data12 === void 0 ? void 0 : _res$data12.identifier
|
|
|
|
|
});
|
|
|
|
|
seturl_show("".concat(window.location.origin, "/competitions/detail/") + (res === null || res === void 0 || (_res$data11 = res.data) === null || _res$data11 === void 0 || (_res$data11 = _res$data11.competition) === null || _res$data11 === void 0 ? void 0 : _res$data11.identifier));
|
|
|
|
|
form.setFieldValue('identifier', res === null || res === void 0 || (_res$data12 = res.data) === null || _res$data12 === void 0 || (_res$data12 = _res$data12.competition) === null || _res$data12 === void 0 ? void 0 : _res$data12.identifier);
|
|
|
|
|
props === null || props === void 0 || props.loadingFunction(false);
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
@ -8961,7 +8959,7 @@ var documentPage = function documentPage(_ref) {
|
|
|
|
|
//如果要保留文本格式,比如保留换行符,或者多行文本,可以使用 textarea 标签,再配和模板字符串 ` `
|
|
|
|
|
//const input = document.createElement('textarea')
|
|
|
|
|
// 将想要复制的值
|
|
|
|
|
input.value = 'https://app-kyxt.pcl.ac.cn/competitions/' + form.getFieldValue('identifier');
|
|
|
|
|
input.value = "".concat(window.location.origin, "/competitions/detail/") + form.getFieldValue('identifier');
|
|
|
|
|
// 页面底部追加输入框
|
|
|
|
|
document.body.appendChild(input);
|
|
|
|
|
// 选中输入框
|
|
|
|
|
@ -9144,7 +9142,7 @@ var documentPage = function documentPage(_ref) {
|
|
|
|
|
colon: false,
|
|
|
|
|
name: "identifier",
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
|
|
|
|
|
prefix: "https://app-kyxt.pcl.ac.cn/competitions/",
|
|
|
|
|
prefix: "".concat(window.location.origin, "/competitions/detail/"),
|
|
|
|
|
disabled: true,
|
|
|
|
|
className: documentmodules.form_item_item
|
|
|
|
|
})
|