diff --git a/public/react/src/modules/tpm/TPMsettings/Shixuninformation.js b/public/react/src/modules/tpm/TPMsettings/Shixuninformation.js
index ca12058ba..2e2b01708 100644
--- a/public/react/src/modules/tpm/TPMsettings/Shixuninformation.js
+++ b/public/react/src/modules/tpm/TPMsettings/Shixuninformation.js
@@ -841,15 +841,33 @@ class Shixuninformation extends Component {
>
{
- this.props.data === undefined ? "" : this.props.data.shixun&&this.props.data.shixun.main_type.map((item, key) => {
- return (
-
- )
- })
+ this.props.data === undefined ? "" : this.props.shixunsDetails.is_jupyter === true?this.props.data.shixun&&this.props.data.shixun.main_type.map((item, key) => {
+ let itemtype=item.type_name.toLowerCase().indexOf('jupyter'.toLowerCase())
+ if(itemtype>-1) {
+ return (
+
+ )
+ }
+ }):""
+ }
+
+ {
+ this.props.data === undefined ? "" : this.props.shixunsDetails.is_jupyter === false?this.props.data.shixun&&this.props.data.shixun.main_type.map((item, key) => {
+ let itemtype=item.type_name.toLowerCase().indexOf('jupyter'.toLowerCase())
+ if(itemtype===-1) {
+ return (
+
+ )
+ }
+ }):""
}
diff --git a/public/react/src/modules/tpm/newshixuns/Newshixuns.js b/public/react/src/modules/tpm/newshixuns/Newshixuns.js
index 3cdbff1c5..c2ec0d5ef 100644
--- a/public/react/src/modules/tpm/newshixuns/Newshixuns.js
+++ b/public/react/src/modules/tpm/newshixuns/Newshixuns.js
@@ -32,6 +32,7 @@ class Newshixuns extends Component {
run_method: undefined,
postapplyvisible: undefined,
fileList: [],
+ Radiovalue:"1"
}
}
@@ -85,6 +86,9 @@ class Newshixuns extends Component {
this.setState({
Radiovalue: e.target.value,
});
+ this.props.form.setFieldsValue({
+ is_jupyter: e.target.value,
+ });
};
handleSubmit = (e) => {
@@ -535,16 +539,36 @@ class Newshixuns extends Component {
defaultOpen={false}
>
{
- newshixunlist === undefined ? "" : newshixunlist.main_type.map((item, key) => {
- return (
-
- )
- })
+ newshixunlist === undefined ? "" : this.state.Radiovalue==="2"?newshixunlist.main_type.map((item, key) => {
+ let itemtype=item.type_name.toLowerCase().indexOf('jupyter'.toLowerCase())
+ if(itemtype>-1){
+ return (
+
+ )
+ }
+
+ }):""
+ }
+ {
+ newshixunlist === undefined ? "" : this.state.Radiovalue==="1"?newshixunlist.main_type.map((item, key) => {
+ let itemtype=item.type_name.toLowerCase().indexOf('jupyter'.toLowerCase())
+ if(itemtype===-1){
+ return (
+
+ )
+ }
+
+ }):""
}