feat: 新增通知配置钉钉文档

This commit is contained in:
JiangQiming 2023-01-13 14:28:12 +08:00
parent fd46e8088b
commit 466dbae465
4 changed files with 96 additions and 3 deletions

View File

@ -0,0 +1,50 @@
import { Image } from 'ant-design-vue';
import './index.less';
import { getImage } from '@/utils/comm';
const DingTalk = () => {
const appKey = getImage(
'/notice/doc/config/dingTalk-message/01-AppKey.jpg',
);
const appSecret = getImage(
'/notice/doc/config/dingTalk-message/02-AppSecret.jpg',
);
return (
<div class={'doc'}>
<div class={'url'}>
<a
href="https://open-dev.dingtalk.com"
target="_blank"
rel="noopener noreferrer"
>
https://open-dev.dingtalk.com
</a>
</div>
<h1>1. </h1>
<div>
</div>
<h1>2.</h1>
<div>
<h2>1AppKey</h2>
<div>
AppKey和AppSecret
</div>
<div>----</div>
<div class={'image'}>
<Image width="100%" src={appKey} />
</div>
</div>
<h2>2AppSecret</h2>
<div>
<div></div>
<div>----</div>
<div class={'image'}>
<Image width="100%" src={appSecret} />
</div>
</div>
</div>
);
};
export default DingTalk;

View File

@ -0,0 +1,35 @@
.doc {
height: 750px;
padding: 24px;
overflow-y: auto;
color: rgba(#000, 0.8);
font-size: 14px;
background-color: #fafafa;
.url {
padding: 8px 16px;
color: #2f54eb;
background-color: rgba(#a7bdf7, 0.2);
}
h1 {
margin: 16px 0;
color: rgba(#000, 0.85);
font-weight: bold;
font-size: 14px;
&:first-child {
margin-top: 0;
}
}
h2 {
margin: 6px 0;
color: rgba(0, 0, 0, 0.8);
font-size: 14px;
}
.image {
margin: 16px 0;
}
}

View File

@ -0,0 +1,6 @@
import DingTalk from './DingTalk';
const Doc = () => {
return <DingTalk />;
};
export default Doc;

View File

@ -267,14 +267,16 @@
</a-form-item> </a-form-item>
</a-form> </a-form>
</a-col> </a-col>
<a-col :span="12" :push="2"></a-col> <a-col :span="12" :push="2">
<Doc />
</a-col>
</a-row> </a-row>
</a-card> </a-card>
</div> </div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { getImage, LocalStore } from '@/utils/comm'; import { getImage } from '@/utils/comm';
import { Form } from 'ant-design-vue'; import { Form } from 'ant-design-vue';
import { message } from 'ant-design-vue'; import { message } from 'ant-design-vue';
import { ConfigFormData } from '../types'; import { ConfigFormData } from '../types';
@ -285,8 +287,8 @@ import {
} from '@/views/notice/const'; } from '@/views/notice/const';
import regionList from './regionId'; import regionList from './regionId';
import EditTable from './components/EditTable.vue'; import EditTable from './components/EditTable.vue';
import configApi from '@/api/notice/config'; import configApi from '@/api/notice/config';
import Doc from './doc/index';
const router = useRouter(); const router = useRouter();
const route = useRoute(); const route = useRoute();