Browse Source

文件夹添加判断

dev
wenlele 2 years ago
parent
commit
7e87375c25
  1. 6
      api/app/lib/controllers/means/index.js
  2. 2
      web/client/src/sections/means/containers/devOpsStandard.jsx
  3. 2
      web/client/src/sections/means/containers/faultInformation.jsx
  4. 2
      web/client/src/sections/means/containers/projectMeans.jsx
  5. 2
      web/client/src/sections/means/containers/repairFQA.jsx

6
api/app/lib/controllers/means/index.js

@ -5,13 +5,15 @@ async function addEditFile (ctx, next) {
try {
const models = ctx.fs.dc.models;
const data = ctx.request.body;
const { higherFileId, fileName } = data
const { higherFileId, fileName, projectId, type } = data
let onefind = await models.ProjectFolder.findOne({
where: {
higherFileId: higherFileId || null,
fileName
fileName,
projectId,
type
}
})
if (onefind) {

2
web/client/src/sections/means/containers/devOpsStandard.jsx

@ -404,7 +404,7 @@ const Rest = (props) => {
bordered={false}
empty={
<div>
<img src="/assets/images/problem/shield.png" style={{ width: 20 }} />暂无告警数据
<img src="/assets/images/problem/shield.png" style={{ width: 20 }} />暂无文件
</div>
}
onRow={(record, index) => {

2
web/client/src/sections/means/containers/faultInformation.jsx

@ -404,7 +404,7 @@ const Rest = (props) => {
bordered={false}
empty={
<div>
<img src="/assets/images/problem/shield.png" style={{ width: 20 }} />暂无告警数据
<img src="/assets/images/problem/shield.png" style={{ width: 20 }} />暂无文件
</div>
}
onRow={(record, index) => {

2
web/client/src/sections/means/containers/projectMeans.jsx

@ -404,7 +404,7 @@ const Rest = (props) => {
bordered={false}
empty={
<div>
<img src="/assets/images/problem/shield.png" style={{ width: 20 }} />暂无告警数据
<img src="/assets/images/problem/shield.png" style={{ width: 20 }} />暂无文件
</div>
}
onRow={(record, index) => {

2
web/client/src/sections/means/containers/repairFQA.jsx

@ -404,7 +404,7 @@ const Rest = (props) => {
bordered={false}
empty={
<div>
<img src="/assets/images/problem/shield.png" style={{ width: 20 }} />暂无告警数据
<img src="/assets/images/problem/shield.png" style={{ width: 20 }} />暂无文件
</div>
}
onRow={(record, index) => {

Loading…
Cancel
Save