|
@@ -48,63 +48,141 @@
|
|
<div class="open-right-info">
|
|
<div class="open-right-info">
|
|
<div class="open-info">
|
|
<div class="open-info">
|
|
<vuescroll>
|
|
<vuescroll>
|
|
- <div class="open-mgmt-info dark-iview-form disabled-iview-input">
|
|
|
|
|
|
+ <div class=" dark-iview-form disabled-iview-input">
|
|
<!-- <div class="open-mgmt-info"> -->
|
|
<!-- <div class="open-mgmt-info"> -->
|
|
<Form :model="openMgInfo" label-position="top">
|
|
<Form :model="openMgInfo" label-position="top">
|
|
- <FormItem :label="$t('settings.openName')">
|
|
|
|
- <Input v-model="openMgInfo.name"
|
|
|
|
- :class="isEdit ? '' : 'open-info-disabled'"
|
|
|
|
- :readonly="isEdit ? false : true"></Input>
|
|
|
|
- </FormItem>
|
|
|
|
- <FormItem :label="$t('settings.token')" class="api-token" v-show="!isEdit">
|
|
|
|
- <div class="api-icon">
|
|
|
|
- <!-- 隐藏 -->
|
|
|
|
- <Icon :type="isTokenShow ? 'md-eye' : 'md-eye-off'" size="18" style="margin-right: 10px" color="rgb(115 115 115)" @click="isTokenShow = !isTokenShow" />
|
|
|
|
- <!-- 刷新 -->
|
|
|
|
- <Icon type="md-refresh" size="18" style="margin-right: 10px" color="rgb(115 115 115)" @click="refresh" />
|
|
|
|
- <!-- 复制 -->
|
|
|
|
- <Icon type="ios-copy" size="18" color="rgb(115 115 115)" @click="copyToken" />
|
|
|
|
- </div>
|
|
|
|
- <Input
|
|
|
|
- v-model="openMgInfo.token"
|
|
|
|
- type="textarea"
|
|
|
|
- :autosize="{ minRows: 10 }"
|
|
|
|
- class="open-info-disabled"
|
|
|
|
- readonly
|
|
|
|
- v-show="isTokenShow"
|
|
|
|
- ></Input>
|
|
|
|
- </FormItem>
|
|
|
|
- <FormItem :label="$t('settings.des')">
|
|
|
|
- <Input v-model="openMgInfo.descr"
|
|
|
|
- type="textarea"
|
|
|
|
- :autosize="{ minRows: 2 }"
|
|
|
|
- :class="isEdit ? '' : 'open-info-disabled'"
|
|
|
|
- :readonly="isEdit ? false : true"></Input>
|
|
|
|
- </FormItem>
|
|
|
|
- <FormItem :label="$t('settings.openStatus')">
|
|
|
|
- <RadioGroup v-model="openMgInfo.status">
|
|
|
|
- <Radio :label="1" :disabled="isEdit ? false : true">{{ $t("settings.enable") }}</Radio>
|
|
|
|
- <Radio :label="0" :disabled="isEdit ? false : true">{{ $t("settings.disable") }}</Radio>
|
|
|
|
- </RadioGroup>
|
|
|
|
- </FormItem>
|
|
|
|
|
|
+ <div class="open-mgmt-info">
|
|
|
|
+ <FormItem :label="$t('settings.openName')">
|
|
|
|
+ <Input v-model="openMgInfo.name"
|
|
|
|
+ :class="isEdit ? '' : 'open-info-disabled'"
|
|
|
|
+ :readonly="isEdit ? false : true"></Input>
|
|
|
|
+ </FormItem>
|
|
|
|
+ <FormItem :label="$t('settings.token')" class="api-token" v-show="!isEdit">
|
|
|
|
+ <div class="api-icon">
|
|
|
|
+ <!-- 隐藏 -->
|
|
|
|
+ <Icon :type="isTokenShow ? 'md-eye' : 'md-eye-off'" size="18" style="margin-right: 10px" color="rgb(115 115 115)" @click="isTokenShow = !isTokenShow" />
|
|
|
|
+ <!-- 刷新 -->
|
|
|
|
+ <Icon type="md-refresh" size="18" style="margin-right: 10px" color="rgb(115 115 115)" @click="refresh" />
|
|
|
|
+ <!-- 复制 -->
|
|
|
|
+ <Icon type="ios-copy" size="18" color="rgb(115 115 115)" @click="copyToken" />
|
|
|
|
+ </div>
|
|
|
|
+ <Input
|
|
|
|
+ v-model="openMgInfo.token"
|
|
|
|
+ type="textarea"
|
|
|
|
+ :autosize="{ minRows: 10 }"
|
|
|
|
+ class="open-info-disabled"
|
|
|
|
+ readonly
|
|
|
|
+ v-show="isTokenShow"
|
|
|
|
+ ></Input>
|
|
|
|
+ </FormItem>
|
|
|
|
+ <FormItem :label="$t('settings.des')">
|
|
|
|
+ <Input v-model="openMgInfo.descr"
|
|
|
|
+ type="textarea"
|
|
|
|
+ :autosize="{ minRows: 2 }"
|
|
|
|
+ :class="isEdit ? '' : 'open-info-disabled'"
|
|
|
|
+ :readonly="isEdit ? false : true"></Input>
|
|
|
|
+ </FormItem>
|
|
|
|
+ <FormItem :label="$t('settings.openStatus')">
|
|
|
|
+ <RadioGroup v-model="openMgInfo.status">
|
|
|
|
+ <Radio :label="1" :disabled="isEdit ? false : true">{{ $t("settings.enable") }}</Radio>
|
|
|
|
+ <Radio :label="0" :disabled="isEdit ? false : true">{{ $t("settings.disable") }}</Radio>
|
|
|
|
+ </RadioGroup>
|
|
|
|
+ </FormItem>
|
|
|
|
+ </div>
|
|
|
|
+ <p>{{ $t('settings.webhook') }}</p>
|
|
|
|
+ <div class="open-mgmt-info">
|
|
|
|
+ <FormItem :label="$t('settings.domainName')">
|
|
|
|
+ <Input v-model="openMgInfo.domain"
|
|
|
|
+ :class="isEdit ? '' : 'open-info-disabled'"
|
|
|
|
+ :readonly="isEdit ? false : true"></Input>
|
|
|
|
+ </FormItem>
|
|
|
|
+ <FormItem :label="$t('settings.subNews')">
|
|
|
|
+ <CheckboxGroup v-model="openMgInfo.news">
|
|
|
|
+ <Checkbox label="hhhh" :disabled="isEdit ? false : true">
|
|
|
|
+ <span>订阅通知1</span>
|
|
|
|
+ </Checkbox>
|
|
|
|
+ <Checkbox label="www" :disabled="isEdit ? false : true">
|
|
|
|
+ <span>订阅通知2</span>
|
|
|
|
+ </Checkbox>
|
|
|
|
+ <Checkbox label="mmm" :disabled="isEdit ? false : true">
|
|
|
|
+ <span>订阅通知3</span>
|
|
|
|
+ </Checkbox>
|
|
|
|
+ <Checkbox label="wwwww" :disabled="isEdit ? false : true">
|
|
|
|
+ <span>订阅通知4</span>
|
|
|
|
+ </Checkbox>
|
|
|
|
+ </CheckboxGroup>
|
|
|
|
+ </FormItem>
|
|
|
|
+ </div>
|
|
</Form>
|
|
</Form>
|
|
</div>
|
|
</div>
|
|
<!-- </div> -->
|
|
<!-- </div> -->
|
|
</vuescroll>
|
|
</vuescroll>
|
|
</div>
|
|
</div>
|
|
- <div class="open-api dark-iview-table dark-iview-page">
|
|
|
|
|
|
+ <div class="open-api dark-iview-table dark-iview-page dark-iview-tabs-card">
|
|
<!-- <div class="open-api"> -->
|
|
<!-- <div class="open-api"> -->
|
|
- <vuescroll>
|
|
|
|
- <div class="open-api-table">
|
|
|
|
|
|
+ <!-- <vuescroll> -->
|
|
|
|
+ <!-- <div class="open-api-table">
|
|
|
|
+ <p>数据写入接口</p>
|
|
<Table ref="selection"
|
|
<Table ref="selection"
|
|
:loading="isLoadList"
|
|
:loading="isLoadList"
|
|
:columns="apiListCol"
|
|
:columns="apiListCol"
|
|
:data="isEdit ? apiListSelect : apiListNow"
|
|
:data="isEdit ? apiListSelect : apiListNow"
|
|
@on-selection-change="selectionChange"
|
|
@on-selection-change="selectionChange"
|
|
></Table>
|
|
></Table>
|
|
- <!-- <Page :total="pageTotal" :page-size-opts="pageSizeOpts" size="small" show-sizer show-total /> -->
|
|
|
|
- </div>
|
|
|
|
- </vuescroll>
|
|
|
|
|
|
+ <Page :total="pageTotal" :page-size-opts="pageSizeOpts" size="small" show-sizer show-total />
|
|
|
|
+ </div> -->
|
|
|
|
+ <!-- </vuescroll> -->
|
|
|
|
+ <!-- <vuescroll> -->
|
|
|
|
+ <!-- <div class="open-api-table">
|
|
|
|
+ <p>数据读取接口</p>
|
|
|
|
+ <Table ref="selection"
|
|
|
|
+ :loading="isLoadList"
|
|
|
|
+ :columns="apiListCol"
|
|
|
|
+ :data="isEdit ? apiListSelect : apiListNow"
|
|
|
|
+ @on-selection-change="selectionChange"
|
|
|
|
+ ></Table>
|
|
|
|
+ <Page :total="pageTotal" :page-size-opts="pageSizeOpts" size="small" show-sizer show-total />
|
|
|
|
+ </div> -->
|
|
|
|
+ <!-- </vuescroll> -->
|
|
|
|
+
|
|
|
|
+ <Tabs value="1">
|
|
|
|
+ <TabPane :label="$t('settings.apiType1')" name="1">
|
|
|
|
+ <div class="open-api-table">
|
|
|
|
+ <Table ref="selection"
|
|
|
|
+ :loading="isLoadList"
|
|
|
|
+ :columns="apiListCol"
|
|
|
|
+ :data="isEdit ? apiListSelect : apiListNow"
|
|
|
|
+ @on-selection-change="selectionChange"
|
|
|
|
+ >
|
|
|
|
+ <template slot-scope="{ row }" slot="name">
|
|
|
|
+ <span>{{ row.name }}</span>
|
|
|
|
+ <Poptip trigger="hover" :content="row.descr" placement="right">
|
|
|
|
+ <!-- <Icon type="ios-alert" /> -->
|
|
|
|
+ <Icon type="ios-alert-outline" />
|
|
|
|
+ </Poptip>
|
|
|
|
+ </template>
|
|
|
|
+ </Table>
|
|
|
|
+ </div>
|
|
|
|
+ </TabPane>
|
|
|
|
+ <TabPane :label="$t('settings.apiType2')" name="2">
|
|
|
|
+ <div class="open-api-table">
|
|
|
|
+ <Table ref="selection"
|
|
|
|
+ :loading="isLoadList"
|
|
|
|
+ :columns="apiListCol"
|
|
|
|
+ :data="isEdit ? apiListSelect : apiListNow"
|
|
|
|
+ @on-selection-change="selectionChange"
|
|
|
|
+ >
|
|
|
|
+ <template slot-scope="{ row }" slot="name">
|
|
|
|
+ <span>{{ row.name }}</span>
|
|
|
|
+ <Poptip trigger="hover" :content="row.descr" placement="right">
|
|
|
|
+ <!-- <Icon type="ios-alert" /> -->
|
|
|
|
+ <Icon type="ios-alert-outline" />
|
|
|
|
+ </Poptip>
|
|
|
|
+ </template>
|
|
|
|
+ </Table>
|
|
|
|
+ </div>
|
|
|
|
+ </TabPane>
|
|
|
|
+ </Tabs>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -122,6 +200,7 @@ export default {
|
|
schoolCode: this.$store.state.userInfo.schoolCode,
|
|
schoolCode: this.$store.state.userInfo.schoolCode,
|
|
openList: [], //开放平台列表
|
|
openList: [], //开放平台列表
|
|
openMgInfo: {}, //平台信息
|
|
openMgInfo: {}, //平台信息
|
|
|
|
+ apiType: 1,
|
|
apiListCol: [ //api表头
|
|
apiListCol: [ //api表头
|
|
/* {
|
|
/* {
|
|
type: 'selection',
|
|
type: 'selection',
|
|
@@ -131,6 +210,7 @@ export default {
|
|
{
|
|
{
|
|
title: this.$t("settings.apiName"),
|
|
title: this.$t("settings.apiName"),
|
|
key: "name",
|
|
key: "name",
|
|
|
|
+ slot: "name"
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: this.$t("settings.apiAddress"),
|
|
title: this.$t("settings.apiAddress"),
|
|
@@ -141,7 +221,7 @@ export default {
|
|
key: "method",
|
|
key: "method",
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- title: this.$t("settings.apiParams"),
|
|
|
|
|
|
+ title: this.$t("settings.des"),
|
|
key: "descr",
|
|
key: "descr",
|
|
},
|
|
},
|
|
],
|
|
],
|
|
@@ -406,7 +486,11 @@ export default {
|
|
selectionChange(selection) {
|
|
selectionChange(selection) {
|
|
this.apiListNow = selection
|
|
this.apiListNow = selection
|
|
console.log(selection);
|
|
console.log(selection);
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ selectMenu(name) {
|
|
|
|
+ console.log(name);
|
|
|
|
+ this.apiType = name
|
|
|
|
+ },
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|