Compare commits
4 Commits
feature-es
...
e9c3aee252
| Author | SHA1 | Date | |
|---|---|---|---|
| e9c3aee252 | |||
| f6f9543455 | |||
| 7b4e79b2eb | |||
| 4d12c3b794 |
@@ -1983,6 +1983,7 @@
|
|||||||
"integrity": "sha512-0NgftHUcV4v34VhXm8QBSftKVXtbkBG3ViCjs6+eJ5a6y6Mi/jiFGPc1sC7QK+9BFhWrURE3EOggmWaSxL9OzQ==",
|
"integrity": "sha512-0NgftHUcV4v34VhXm8QBSftKVXtbkBG3ViCjs6+eJ5a6y6Mi/jiFGPc1sC7QK+9BFhWrURE3EOggmWaSxL9OzQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/lodash": "*"
|
"@types/lodash": "*"
|
||||||
}
|
}
|
||||||
@@ -1993,6 +1994,7 @@
|
|||||||
"integrity": "sha512-DZ8VwRFUNzuqJ5khrvwMXHmvPe+zGayJhr2CDNiKB1WBE1ST8Djl00D0IC4vvNmHMdj6DlbYRIaFE7WHjlDl5w==",
|
"integrity": "sha512-DZ8VwRFUNzuqJ5khrvwMXHmvPe+zGayJhr2CDNiKB1WBE1ST8Djl00D0IC4vvNmHMdj6DlbYRIaFE7WHjlDl5w==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"undici-types": "~7.16.0"
|
"undici-types": "~7.16.0"
|
||||||
}
|
}
|
||||||
@@ -2039,6 +2041,7 @@
|
|||||||
"integrity": "sha512-BtE0k6cjwjLZoZixN0t5AKP0kSzlGu7FctRXYuPAm//aaiZhmfq1JwdYpYr1brzEspYyFeF+8XF5j2VK6oalrA==",
|
"integrity": "sha512-BtE0k6cjwjLZoZixN0t5AKP0kSzlGu7FctRXYuPAm//aaiZhmfq1JwdYpYr1brzEspYyFeF+8XF5j2VK6oalrA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@typescript-eslint/scope-manager": "8.54.0",
|
"@typescript-eslint/scope-manager": "8.54.0",
|
||||||
"@typescript-eslint/types": "8.54.0",
|
"@typescript-eslint/types": "8.54.0",
|
||||||
@@ -2576,6 +2579,7 @@
|
|||||||
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz",
|
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz",
|
||||||
"integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==",
|
"integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"bin": {
|
"bin": {
|
||||||
"acorn": "bin/acorn"
|
"acorn": "bin/acorn"
|
||||||
},
|
},
|
||||||
@@ -3116,6 +3120,7 @@
|
|||||||
"integrity": "sha512-LEyamqS7W5HB3ujJyvi0HQK/dtVINZvd5mAAp9eT5S/ujByGjiZLCzPcHVzuXbpJDJF/cxwHlfceVUDZ2lnSTw==",
|
"integrity": "sha512-LEyamqS7W5HB3ujJyvi0HQK/dtVINZvd5mAAp9eT5S/ujByGjiZLCzPcHVzuXbpJDJF/cxwHlfceVUDZ2lnSTw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@eslint-community/eslint-utils": "^4.8.0",
|
"@eslint-community/eslint-utils": "^4.8.0",
|
||||||
"@eslint-community/regexpp": "^4.12.1",
|
"@eslint-community/regexpp": "^4.12.1",
|
||||||
@@ -3796,6 +3801,7 @@
|
|||||||
"integrity": "sha512-ekilCSN1jwRvIbgeg/57YFh8qQDNbwDb9xT/qu2DAHbFFZUicIl4ygVaAvzveMhMVr3LnpSKTNnwt8PoOfmKhQ==",
|
"integrity": "sha512-ekilCSN1jwRvIbgeg/57YFh8qQDNbwDb9xT/qu2DAHbFFZUicIl4ygVaAvzveMhMVr3LnpSKTNnwt8PoOfmKhQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"bin": {
|
"bin": {
|
||||||
"jiti": "lib/jiti-cli.mjs"
|
"jiti": "lib/jiti-cli.mjs"
|
||||||
}
|
}
|
||||||
@@ -3920,14 +3926,16 @@
|
|||||||
"resolved": "https://registry.npmmirror.com/lodash/-/lodash-4.17.23.tgz",
|
"resolved": "https://registry.npmmirror.com/lodash/-/lodash-4.17.23.tgz",
|
||||||
"integrity": "sha512-LgVTMpQtIopCi79SJeDiP0TfWi5CNEc/L/aRdTh3yIvmZXTnheWpKjSZhnvMl8iXbC1tFg9gdHHDMLoV7CnG+w==",
|
"integrity": "sha512-LgVTMpQtIopCi79SJeDiP0TfWi5CNEc/L/aRdTh3yIvmZXTnheWpKjSZhnvMl8iXbC1tFg9gdHHDMLoV7CnG+w==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT"
|
"license": "MIT",
|
||||||
|
"peer": true
|
||||||
},
|
},
|
||||||
"node_modules/lodash-es": {
|
"node_modules/lodash-es": {
|
||||||
"version": "4.17.23",
|
"version": "4.17.23",
|
||||||
"resolved": "https://registry.npmmirror.com/lodash-es/-/lodash-es-4.17.23.tgz",
|
"resolved": "https://registry.npmmirror.com/lodash-es/-/lodash-es-4.17.23.tgz",
|
||||||
"integrity": "sha512-kVI48u3PZr38HdYz98UmfPnXl2DXrpdctLrFLCd3kOx1xUkOmpFPx7gCWWM5MPkL/fD8zb+Ph0QzjGFs4+hHWg==",
|
"integrity": "sha512-kVI48u3PZr38HdYz98UmfPnXl2DXrpdctLrFLCd3kOx1xUkOmpFPx7gCWWM5MPkL/fD8zb+Ph0QzjGFs4+hHWg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT"
|
"license": "MIT",
|
||||||
|
"peer": true
|
||||||
},
|
},
|
||||||
"node_modules/lodash-unified": {
|
"node_modules/lodash-unified": {
|
||||||
"version": "1.0.3",
|
"version": "1.0.3",
|
||||||
@@ -4499,6 +4507,7 @@
|
|||||||
"integrity": "sha512-fDz1zJpd5GycprAbu4Q2PV/RprsRtKC/0z82z0JLgdytmcq0+ujJbJ/09bPGDxCLkKY3Np5cRAOcWiVkLXJURg==",
|
"integrity": "sha512-fDz1zJpd5GycprAbu4Q2PV/RprsRtKC/0z82z0JLgdytmcq0+ujJbJ/09bPGDxCLkKY3Np5cRAOcWiVkLXJURg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"chokidar": "^4.0.0",
|
"chokidar": "^4.0.0",
|
||||||
"immutable": "^5.0.2",
|
"immutable": "^5.0.2",
|
||||||
@@ -4685,6 +4694,7 @@
|
|||||||
"integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
|
"integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
|
||||||
"devOptional": true,
|
"devOptional": true,
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
|
"peer": true,
|
||||||
"bin": {
|
"bin": {
|
||||||
"tsc": "bin/tsc",
|
"tsc": "bin/tsc",
|
||||||
"tsserver": "bin/tsserver"
|
"tsserver": "bin/tsserver"
|
||||||
@@ -4793,6 +4803,7 @@
|
|||||||
"integrity": "sha512-w+N7Hifpc3gRjZ63vYBXA56dvvRlNWRczTdmCBBa+CotUzAPf5b7YMdMR/8CQoeYE5LX3W4wj6RYTgonm1b9DA==",
|
"integrity": "sha512-w+N7Hifpc3gRjZ63vYBXA56dvvRlNWRczTdmCBBa+CotUzAPf5b7YMdMR/8CQoeYE5LX3W4wj6RYTgonm1b9DA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"esbuild": "^0.27.0",
|
"esbuild": "^0.27.0",
|
||||||
"fdir": "^6.5.0",
|
"fdir": "^6.5.0",
|
||||||
@@ -4874,6 +4885,7 @@
|
|||||||
"resolved": "https://registry.npmmirror.com/vue/-/vue-3.5.27.tgz",
|
"resolved": "https://registry.npmmirror.com/vue/-/vue-3.5.27.tgz",
|
||||||
"integrity": "sha512-aJ/UtoEyFySPBGarREmN4z6qNKpbEguYHMmXSiOGk69czc+zhs0NF6tEFrY8TZKAl8N/LYAkd4JHVd5E/AsSmw==",
|
"integrity": "sha512-aJ/UtoEyFySPBGarREmN4z6qNKpbEguYHMmXSiOGk69czc+zhs0NF6tEFrY8TZKAl8N/LYAkd4JHVd5E/AsSmw==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@vue/compiler-dom": "3.5.27",
|
"@vue/compiler-dom": "3.5.27",
|
||||||
"@vue/compiler-sfc": "3.5.27",
|
"@vue/compiler-sfc": "3.5.27",
|
||||||
@@ -4897,6 +4909,7 @@
|
|||||||
"dev": true,
|
"dev": true,
|
||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"bin": {
|
"bin": {
|
||||||
"vue-demi-fix": "bin/vue-demi-fix.js",
|
"vue-demi-fix": "bin/vue-demi-fix.js",
|
||||||
"vue-demi-switch": "bin/vue-demi-switch.js"
|
"vue-demi-switch": "bin/vue-demi-switch.js"
|
||||||
@@ -4923,6 +4936,7 @@
|
|||||||
"integrity": "sha512-CydUvFOQKD928UzZhTp4pr2vWz1L+H99t7Pkln2QSPdvmURT0MoC4wUccfCnuEaihNsu9aYYyk+bep8rlfkUXw==",
|
"integrity": "sha512-CydUvFOQKD928UzZhTp4pr2vWz1L+H99t7Pkln2QSPdvmURT0MoC4wUccfCnuEaihNsu9aYYyk+bep8rlfkUXw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"peer": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"debug": "^4.4.0",
|
"debug": "^4.4.0",
|
||||||
"eslint-scope": "^8.2.0",
|
"eslint-scope": "^8.2.0",
|
||||||
|
|||||||
@@ -15,7 +15,6 @@ import * as ElementPlusIconsVue from "@element-plus/icons-vue";
|
|||||||
|
|
||||||
import "element-plus/dist/index.css";
|
import "element-plus/dist/index.css";
|
||||||
|
|
||||||
// eslint-disable-next-line
|
|
||||||
const app = createApp( AppMain );
|
const app = createApp( AppMain );
|
||||||
|
|
||||||
app.use( ElementPlus );
|
app.use( ElementPlus );
|
||||||
@@ -29,5 +28,4 @@ for ( const [key, component,] of Object.entries( ElementPlusIconsVue ))
|
|||||||
|
|
||||||
app.mount( "#app" );
|
app.mount( "#app" );
|
||||||
|
|
||||||
// eslint-disable-next-line
|
|
||||||
// createApp( App ).mount( "#app" );
|
// createApp( App ).mount( "#app" );
|
||||||
|
|||||||
@@ -12,7 +12,11 @@ Copyright © CPIC All rights reserved
|
|||||||
<span>名称</span>
|
<span>名称</span>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="10">
|
<el-col :span="10">
|
||||||
<el-input v-model.trim.lazy="ui.newRegulatory.regulatory_name" style="text-align:center;" />
|
<el-input
|
||||||
|
ref="regulatoryName"
|
||||||
|
v-model.trim.lazy="ui.newRegulatory.regulatory_name"
|
||||||
|
style="text-align:center;"
|
||||||
|
/>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row :gutter="10">
|
<el-row :gutter="10">
|
||||||
@@ -20,7 +24,10 @@ Copyright © CPIC All rights reserved
|
|||||||
<span>部门</span>
|
<span>部门</span>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="4">
|
<el-col :span="4">
|
||||||
<el-input v-model.trim="ui.newRegulatory.department_name" />
|
<el-input
|
||||||
|
ref="departmentName"
|
||||||
|
v-model.trim="ui.newRegulatory.department_name"
|
||||||
|
/>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="2">
|
<el-col :span="2">
|
||||||
<span>发布、修订年份</span>
|
<span>发布、修订年份</span>
|
||||||
@@ -34,13 +41,21 @@ Copyright © CPIC All rights reserved
|
|||||||
<span>备注</span>
|
<span>备注</span>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="10">
|
<el-col :span="10">
|
||||||
<el-input v-model.lazy.trim="ui.newRegulatory.comment" type="textarea" :rows="3" />
|
<el-input
|
||||||
|
v-model.lazy.trim="ui.newRegulatory.comment"
|
||||||
|
type="textarea"
|
||||||
|
:rows="3"
|
||||||
|
/>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row :gutter="10">
|
<el-row :gutter="10">
|
||||||
<el-col :span="3">
|
<el-col :span="3">
|
||||||
<div class="button-wrapper-left">
|
<div class="button-wrapper-left">
|
||||||
<el-button type="primary" icon="document" @click="showUploadFileDialog">
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
icon="document"
|
||||||
|
@click="showUploadFileDialog"
|
||||||
|
>
|
||||||
新增文档
|
新增文档
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
@@ -49,8 +64,9 @@ Copyright © CPIC All rights reserved
|
|||||||
<el-col :span="3">
|
<el-col :span="3">
|
||||||
<div class="button-wrapper-right">
|
<div class="button-wrapper-right">
|
||||||
<el-button
|
<el-button
|
||||||
type="primary" icon="document"
|
type="primary"
|
||||||
@click="onPreviewUploadedFile(1)"
|
icon="document"
|
||||||
|
@click="onCreateNewRegulatory()"
|
||||||
>
|
>
|
||||||
提交
|
提交
|
||||||
</el-button>
|
</el-button>
|
||||||
@@ -59,32 +75,46 @@ Copyright © CPIC All rights reserved
|
|||||||
</el-row>
|
</el-row>
|
||||||
</div>
|
</div>
|
||||||
<el-table
|
<el-table
|
||||||
width="100%" stripe
|
width="100%"
|
||||||
|
stripe
|
||||||
border="true"
|
border="true"
|
||||||
:head-cell-style="headerCellStyle"
|
:head-cell-style="headerCellStyle"
|
||||||
:row-class-name="tableRowClassName"
|
:row-class-name="tableRowClassName"
|
||||||
empty-text="请上传文件"
|
empty-text="请上传文件"
|
||||||
:data="ui.newRegulatory.regulatory_files"
|
:data="ui.newRegulatory.regulatory_files"
|
||||||
>
|
>
|
||||||
<el-table-column label="文件名" align="center">
|
<el-table-column
|
||||||
|
label="文件名"
|
||||||
|
align="center"
|
||||||
|
>
|
||||||
<template #default="file">
|
<template #default="file">
|
||||||
<span>{{ file.row.regulatory_file_name }}</span>
|
<span>{{ file.row.regulatory_file_name }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="文件类型" align="center" width="200px">
|
<el-table-column
|
||||||
|
label="文件类型"
|
||||||
|
align="center"
|
||||||
|
width="200px"
|
||||||
|
>
|
||||||
<template #default="file">
|
<template #default="file">
|
||||||
<span>{{ file.row.file_type }}</span>
|
<span>{{ file.row.file_type }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" align="center" width="200px">
|
<el-table-column
|
||||||
|
label="操作"
|
||||||
|
align="center"
|
||||||
|
width="200px"
|
||||||
|
>
|
||||||
<template #default="file">
|
<template #default="file">
|
||||||
<el-button
|
<el-button
|
||||||
type="primary" icon="search"
|
type="primary"
|
||||||
|
icon="search"
|
||||||
circle
|
circle
|
||||||
@click="onPreviewUploadedFile(file.row.rowIndex)"
|
@click="onPreviewUploadedFile(file.row.rowIndex)"
|
||||||
/>
|
/>
|
||||||
<el-button
|
<el-button
|
||||||
type="danger" icon="delete"
|
type="danger"
|
||||||
|
icon="delete"
|
||||||
circle
|
circle
|
||||||
@click="onDeleteUploadedFile(file.row.rowIndex)"
|
@click="onDeleteUploadedFile(file.row.rowIndex)"
|
||||||
/>
|
/>
|
||||||
@@ -93,9 +123,11 @@ Copyright © CPIC All rights reserved
|
|||||||
</el-table>
|
</el-table>
|
||||||
<div class="upload-dialog-wrapper">
|
<div class="upload-dialog-wrapper">
|
||||||
<el-dialog
|
<el-dialog
|
||||||
v-model="ui.showUploadDialog" title="上传文件"
|
v-model="ui.showUploadDialog"
|
||||||
|
title="上传文件"
|
||||||
width="600px"
|
width="600px"
|
||||||
:close-on-click-model="false" :close-on-press-escape="false"
|
:close-on-click-model="false"
|
||||||
|
:close-on-press-escape="false"
|
||||||
:show-close="true"
|
:show-close="true"
|
||||||
>
|
>
|
||||||
<el-upload
|
<el-upload
|
||||||
@@ -115,7 +147,8 @@ Copyright © CPIC All rights reserved
|
|||||||
</el-upload>
|
</el-upload>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
<el-dialog
|
<el-dialog
|
||||||
v-model="ui.isPDF" :close-on-click-model="false"
|
v-model="ui.isPDF"
|
||||||
|
:close-on-click-model="false"
|
||||||
:close-on-press-escape="false"
|
:close-on-press-escape="false"
|
||||||
:show-close="true"
|
:show-close="true"
|
||||||
align-center
|
align-center
|
||||||
@@ -123,13 +156,15 @@ Copyright © CPIC All rights reserved
|
|||||||
width="1024px"
|
width="1024px"
|
||||||
>
|
>
|
||||||
<VueOfficePdf
|
<VueOfficePdf
|
||||||
v-if="ui.isPDF" :src="ui.fileURL"
|
v-if="ui.isPDF"
|
||||||
|
:src="ui.fileURL"
|
||||||
style="height:calc(100vh - 100px);"
|
style="height:calc(100vh - 100px);"
|
||||||
@error="errorHandle"
|
@error="errorHandle"
|
||||||
/>
|
/>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
<el-dialog
|
<el-dialog
|
||||||
v-model="ui.isDOCX" :close-on-click-model="false"
|
v-model="ui.isDOCX"
|
||||||
|
:close-on-click-model="false"
|
||||||
:close-on-press-escape="false"
|
:close-on-press-escape="false"
|
||||||
:show-close="true"
|
:show-close="true"
|
||||||
align-center
|
align-center
|
||||||
@@ -137,13 +172,15 @@ Copyright © CPIC All rights reserved
|
|||||||
width="1024px"
|
width="1024px"
|
||||||
>
|
>
|
||||||
<VueOfficeDocx
|
<VueOfficeDocx
|
||||||
v-if="ui.isDOCX" :src="ui.fileURL"
|
v-if="ui.isDOCX"
|
||||||
|
:src="ui.fileURL"
|
||||||
style="height:calc(100vh - 100px);"
|
style="height:calc(100vh - 100px);"
|
||||||
@error="errorHandle"
|
@error="errorHandle"
|
||||||
/>
|
/>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
<el-dialog
|
<el-dialog
|
||||||
v-model="ui.isXLSX" :close-on-click-model="false"
|
v-model="ui.isXLSX"
|
||||||
|
:close-on-click-model="false"
|
||||||
:close-on-press-escape="false"
|
:close-on-press-escape="false"
|
||||||
:show-close="true"
|
:show-close="true"
|
||||||
align-center
|
align-center
|
||||||
@@ -193,7 +230,9 @@ interface UI{
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "NewRegulatory",
|
name: "NewRegulatory",
|
||||||
components: {VueOfficePdf, VueOfficeDocx, VueOfficeExcel,},
|
components: {VueOfficePdf,
|
||||||
|
VueOfficeDocx,
|
||||||
|
VueOfficeExcel,},
|
||||||
setup()
|
setup()
|
||||||
{
|
{
|
||||||
const ui: UI = reactive({
|
const ui: UI = reactive({
|
||||||
@@ -218,6 +257,9 @@ export default {
|
|||||||
fileURL: "",
|
fileURL: "",
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const regulatoryName = ref<any>( null );
|
||||||
|
|
||||||
|
|
||||||
const render: Render = function ( response: AddNewRegulatoryResponse ) :void
|
const render: Render = function ( response: AddNewRegulatoryResponse ) :void
|
||||||
{
|
{
|
||||||
// if ( response.success === true )
|
// if ( response.success === true )
|
||||||
@@ -298,7 +340,8 @@ export default {
|
|||||||
* 其中给row加一个参数rowIndex,用行号赋值。
|
* 其中给row加一个参数rowIndex,用行号赋值。
|
||||||
* @param element-plus给于的参数
|
* @param element-plus给于的参数
|
||||||
*/
|
*/
|
||||||
const tableRowClassName = ({row, rowIndex,}: {row:any, rowIndex:number}): void =>
|
const tableRowClassName = ({row, rowIndex,}: {row:any,
|
||||||
|
rowIndex:number}): void =>
|
||||||
{
|
{
|
||||||
console.log( `行${row}设置行号${rowIndex}。` );
|
console.log( `行${row}设置行号${rowIndex}。` );
|
||||||
|
|
||||||
@@ -371,8 +414,25 @@ export default {
|
|||||||
ElMessage.error( "渲染文档出错!" );
|
ElMessage.error( "渲染文档出错!" );
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建新制度事件
|
||||||
|
*/
|
||||||
|
const onCreateNewRegulatory = () =>
|
||||||
|
{
|
||||||
|
console.log( "制度对象:", ui.newRegulatory );
|
||||||
|
|
||||||
|
// 防御验证
|
||||||
|
if ( ui.newRegulatory.department_name.length === 0 )
|
||||||
|
{
|
||||||
|
ElMessage.error( "制度名称为空!" );
|
||||||
|
console.log( regulatoryName );
|
||||||
|
regulatoryName.value.focus();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
return {
|
return {
|
||||||
ui,
|
ui,
|
||||||
|
regulatoryName,
|
||||||
headerCellStyle,
|
headerCellStyle,
|
||||||
cellStyle,
|
cellStyle,
|
||||||
onUploadSuccess,
|
onUploadSuccess,
|
||||||
@@ -380,6 +440,7 @@ export default {
|
|||||||
showUploadFileDialog,
|
showUploadFileDialog,
|
||||||
onDeleteUploadedFile,
|
onDeleteUploadedFile,
|
||||||
onPreviewUploadedFile,
|
onPreviewUploadedFile,
|
||||||
|
onCreateNewRegulatory,
|
||||||
errorHandle,
|
errorHandle,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|||||||
139
开发日志.md
139
开发日志.md
@@ -160,3 +160,142 @@ new Error().stack.split('\n');
|
|||||||
new Error().stack!.split('\n');
|
new Error().stack!.split('\n');
|
||||||
```
|
```
|
||||||
|
|
||||||
|
# mysql
|
||||||
|
|
||||||
|
my.cnf 文件
|
||||||
|
|
||||||
|
```
|
||||||
|
[client]
|
||||||
|
port = 3306
|
||||||
|
socket =/mysql/data/mysqltmp/mysqld.sock
|
||||||
|
default-character-set = utf8mb4
|
||||||
|
|
||||||
|
[mysql]
|
||||||
|
prompt = [\\u@\\h][\\d]>\\_
|
||||||
|
|
||||||
|
[mysqld]
|
||||||
|
# basic settings #
|
||||||
|
port = 3306 #服务器的端口号
|
||||||
|
#路径设置,必须和上文的一致
|
||||||
|
basedir = /mysql/mysql-9.5.0
|
||||||
|
datadir = /mysql/data/mysqldata_u01/mysqldb
|
||||||
|
socket = /mysql/data/mysqltmp/mysqld.sock
|
||||||
|
pid-file = /mysql/mysql-9.5.0/mysqld.pid
|
||||||
|
tmpdir = /mysql/data/mysqltmp
|
||||||
|
user = mysql
|
||||||
|
sql_mode = "STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION,NO_ZERO_DATE,NO_ZERO_IN_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER"
|
||||||
|
autocommit = 1
|
||||||
|
character_set_server=utf8mb4
|
||||||
|
transaction_isolation = READ-COMMITTED
|
||||||
|
explicit_defaults_for_timestamp = 1
|
||||||
|
max_allowed_packet = 96M
|
||||||
|
slave_pending_jobs_size_max= 100M
|
||||||
|
event_scheduler = 1
|
||||||
|
lower_case_table_names = 1
|
||||||
|
|
||||||
|
# connection #
|
||||||
|
interactive_timeout = 1800
|
||||||
|
wait_timeout = 1800
|
||||||
|
lock_wait_timeout = 1800
|
||||||
|
skip_name_resolve = 1
|
||||||
|
max_connections = 1000
|
||||||
|
max_user_connections = 1000
|
||||||
|
max_connect_errors = 10
|
||||||
|
|
||||||
|
# session memory setting #
|
||||||
|
read_buffer_size = 2M
|
||||||
|
read_rnd_buffer_size = 4M
|
||||||
|
sort_buffer_size = 4M
|
||||||
|
tmp_table_size = 8M
|
||||||
|
join_buffer_size = 8M
|
||||||
|
|
||||||
|
# log settings #
|
||||||
|
slow_query_log = 1
|
||||||
|
log-error =/mysqlslowlog/error.log
|
||||||
|
slow-query-log-file=/mysqlslowlog/slowquery.log
|
||||||
|
general_log_file = /mysqlslowlog/general.log
|
||||||
|
log_queries_not_using_indexes = 1
|
||||||
|
log_slow_admin_statements = 1
|
||||||
|
log_slow_slave_statements = 1
|
||||||
|
log_throttle_queries_not_using_indexes = 10
|
||||||
|
expire_logs_days = 5
|
||||||
|
long_query_time = 2
|
||||||
|
min_examined_row_limit = 100
|
||||||
|
binlog-rows-query-log-events = 1
|
||||||
|
log-bin-trust-function-creators = 1
|
||||||
|
log-slave-updates = 1
|
||||||
|
|
||||||
|
# innodb settings #
|
||||||
|
innodb_page_size = 16K
|
||||||
|
innodb_buffer_pool_size=20G
|
||||||
|
innodb_buffer_pool_instances = 16
|
||||||
|
innodb_buffer_pool_load_at_startup = 1
|
||||||
|
innodb_buffer_pool_dump_at_shutdown = 1
|
||||||
|
innodb_lru_scan_depth = 1024
|
||||||
|
innodb_lock_wait_timeout = 5
|
||||||
|
innodb_io_capacity = 2048
|
||||||
|
innodb_io_capacity_max = 4096
|
||||||
|
innodb_flush_method = O_DIRECT
|
||||||
|
innodb_file_format = Barracuda
|
||||||
|
innodb_file_format_max = Barracuda
|
||||||
|
innodb_undo_logs = 128
|
||||||
|
innodb_undo_tablespaces = 3
|
||||||
|
innodb_flush_neighbors = 1
|
||||||
|
innodb_log_file_size = 1G
|
||||||
|
innodb_log_files_in_group = 2
|
||||||
|
innodb_log_buffer_size = 2M
|
||||||
|
innodb_purge_threads = 4
|
||||||
|
innodb_large_prefix = 1
|
||||||
|
innodb_thread_concurrency = 16
|
||||||
|
innodb_print_all_deadlocks = 1
|
||||||
|
innodb_strict_mode = 1
|
||||||
|
innodb_sort_buffer_size = 4M
|
||||||
|
innodb_write_io_threads = 4
|
||||||
|
innodb_read_io_threads = 4
|
||||||
|
innodb_file_per_table = 1
|
||||||
|
innodb_stats_persistent_sample_pages = 64
|
||||||
|
innodb_autoinc_lock_mode = 2
|
||||||
|
|
||||||
|
# semi sync replication settings #
|
||||||
|
plugin_load = "validate_password.so;rpl_semi_sync_master=semisync_master.so;rpl_semi_sync_slave=semisync_slave.so"
|
||||||
|
rpl_semi_sync_master_enabled = 1
|
||||||
|
rpl_semi_sync_master_timeout = 3000
|
||||||
|
rpl_semi_sync_slave_enabled = 1
|
||||||
|
|
||||||
|
# password plugin #
|
||||||
|
#密码策略,密码16字节长,数字字母大小写和特殊字符,每种至少两个字符。
|
||||||
|
validate_password_policy=2
|
||||||
|
validate_password_length=16
|
||||||
|
validate_password_mixed_case_count=2
|
||||||
|
validate_password_number_count=2
|
||||||
|
validate_password_special_char_count=3
|
||||||
|
|
||||||
|
# 5.7 #
|
||||||
|
# new innodb setting #
|
||||||
|
loose_innodb_numa_interleave=1
|
||||||
|
innodb_buffer_pool_dump_pct = 40
|
||||||
|
innodb_page_cleaners = 4
|
||||||
|
innodb_undo_log_truncate = 1
|
||||||
|
innodb_max_undo_log_size = 2G
|
||||||
|
innodb_purge_rseg_truncate_frequency = 128
|
||||||
|
# new replication setting #
|
||||||
|
slave-parallel-type = LOGICAL_CLOCK
|
||||||
|
slave-parallel-workers = 8
|
||||||
|
slave_preserve_commit_order=1
|
||||||
|
slave_transaction_retries=128
|
||||||
|
# other change setting #
|
||||||
|
binlog_gtid_simple_recovery=1
|
||||||
|
log_timestamps=system
|
||||||
|
show_compatibility_56=on
|
||||||
|
|
||||||
|
# patch #
|
||||||
|
symbolic_links=0
|
||||||
|
```
|
||||||
|
|
||||||
|
初始化
|
||||||
|
|
||||||
|
```
|
||||||
|
/mysql/mysql-9.5.0/bin/mysqld --defaults-file=/etc/my.cnf --user=mysql --initialize --console
|
||||||
|
```
|
||||||
|
|
||||||
|
root密码 p)daqvACh5<s
|
||||||
|
|||||||
Reference in New Issue
Block a user