Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
NEW-MT-WD-DESKTOP
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陶进
NEW-MT-WD-DESKTOP
Commits
7cf55fd8
Commit
7cf55fd8
authored
Nov 24, 2020
by
陶进
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交一下
parent
3226f369
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1808 additions
and
1025 deletions
+1808
-1025
src/static/images/no-edit.png
src/static/images/no-edit.png
+0
-0
src/views/main_views/newProductionLineEditor/newProductionLineEditor.css
...views/newProductionLineEditor/newProductionLineEditor.css
+1743
-961
src/views/main_views/newProductionLineEditor/newProductionLineEditor.js
..._views/newProductionLineEditor/newProductionLineEditor.js
+42
-42
src/views/main_views/newProductionLineEditor/routers/lineEditor/lineEditor.js
.../newProductionLineEditor/routers/lineEditor/lineEditor.js
+16
-16
src/views/main_views/newProductionLineEditor/routers/lineEditor/lineEditor.vue
...newProductionLineEditor/routers/lineEditor/lineEditor.vue
+1
-1
src/views/main_views/router/router.html
src/views/main_views/router/router.html
+6
-5
No files found.
src/static/images/no-edit.png
0 → 100644
View file @
7cf55fd8
6.44 KB
src/views/main_views/newProductionLineEditor/newProductionLineEditor.css
View file @
7cf55fd8
This diff is collapsed.
Click to expand it.
src/views/main_views/newProductionLineEditor/newProductionLineEditor.js
View file @
7cf55fd8
This diff is collapsed.
Click to expand it.
src/views/main_views/newProductionLineEditor/routers/lineEditor/lineEditor.js
View file @
7cf55fd8
...
@@ -6,7 +6,7 @@ async function getLineEditor() {
...
@@ -6,7 +6,7 @@ async function getLineEditor() {
var
value
=
await
loadComponent
(
'
lineEditor
'
,
window
.
global
.
urls
.
loadUrl
+
'
/src/views/main_views/newProductionLineEditor/routers/lineEditor/lineEditor.vue
'
)
var
value
=
await
loadComponent
(
'
lineEditor
'
,
window
.
global
.
urls
.
loadUrl
+
'
/src/views/main_views/newProductionLineEditor/routers/lineEditor/lineEditor.vue
'
)
return
{
return
{
data
:
function
()
{
data
:
function
()
{
return
rende
rData
.
renderData
return
edito
rData
.
renderData
},
},
components
:
{
'
chart
'
:
chart
,
'
condition
'
:
condition
,
'
calculater
'
:
calculater
},
components
:
{
'
chart
'
:
chart
,
'
condition
'
:
condition
,
'
calculater
'
:
calculater
},
template
:
value
.
template
,
template
:
value
.
template
,
...
@@ -91,7 +91,7 @@ async function getLineEditor() {
...
@@ -91,7 +91,7 @@ async function getLineEditor() {
})
})
})
})
})
})
r
enderer
(
ipcRenderer
,
this
)
customIpcR
enderer
(
ipcRenderer
,
this
)
},
},
methods
:
{
methods
:
{
//打开条件编辑
//打开条件编辑
...
@@ -543,7 +543,7 @@ async function getLineEditor() {
...
@@ -543,7 +543,7 @@ async function getLineEditor() {
// "Current": 0,
// "Current": 0,
// "Psize": 10,
// "Psize": 10,
// "Name": string,
// "Name": string,
// "AccountId":
store.get('accountId')
// "AccountId":
info.accountId
// }).then((res) => {
// }).then((res) => {
// if (res.data.Status == 1) {
// if (res.data.Status == 1) {
// this.labelList = res.data.Data.Records
// this.labelList = res.data.Data.Records
...
@@ -2188,7 +2188,7 @@ async function getLineEditor() {
...
@@ -2188,7 +2188,7 @@ async function getLineEditor() {
getIndexsModules
()
{
getIndexsModules
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
http
.
netPost
(
'
Module/Basic/GetAllIndexEncodeModuleList
'
,
{
http
.
netPost
(
'
Module/Basic/GetAllIndexEncodeModuleList
'
,
{
"
AccountId
"
:
store
.
get
(
'
accountId
'
)
"
AccountId
"
:
info
.
accountId
})
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
this
.
handleIndexData
(
res
.
data
.
Data
)
this
.
handleIndexData
(
res
.
data
.
Data
)
...
@@ -3348,7 +3348,7 @@ async function getLineEditor() {
...
@@ -3348,7 +3348,7 @@ async function getLineEditor() {
"
Psize
"
:
100
,
"
Psize
"
:
100
,
"
Code
"
:
"
B
"
,
"
Code
"
:
"
B
"
,
'
Name
'
:
''
,
'
Name
'
:
''
,
"
AccountId
"
:
store
.
get
(
'
accountId
'
)
"
AccountId
"
:
info
.
accountId
})
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
if
(
res
.
data
.
Status
==
1
)
{
if
(
res
.
data
.
Status
==
1
)
{
...
@@ -3572,7 +3572,7 @@ async function getLineEditor() {
...
@@ -3572,7 +3572,7 @@ async function getLineEditor() {
// "Psize": this.psize,
// "Psize": this.psize,
// "Name": this.inputModelName,
// "Name": this.inputModelName,
// "CategoryId": null,
// "CategoryId": null,
// "AccountId":
store.get('accountId')
,
// "AccountId":
info.accountId
,
// "Indexs": this.inputedIndex == '' ? null : [this.inputedIndex],
// "Indexs": this.inputedIndex == '' ? null : [this.inputedIndex],
// "BeforeCreateDate": this.selectedDate == null ? '' : this.selectedDate + ' 23:59:59',
// "BeforeCreateDate": this.selectedDate == null ? '' : this.selectedDate + ' 23:59:59',
// })
// })
...
@@ -4795,7 +4795,7 @@ async function getLineEditor() {
...
@@ -4795,7 +4795,7 @@ async function getLineEditor() {
},
},
checkPermission
(
list
)
{
checkPermission
(
list
)
{
var
result
=
false
var
result
=
false
var
id
=
store
.
get
(
'
accountId
'
)
var
id
=
info
.
accountId
for
(
const
item
of
list
)
{
for
(
const
item
of
list
)
{
if
(
item
.
AccountId
==
id
)
{
if
(
item
.
AccountId
==
id
)
{
result
=
true
result
=
true
...
@@ -4882,7 +4882,7 @@ async function getLineEditor() {
...
@@ -4882,7 +4882,7 @@ async function getLineEditor() {
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
http
.
netPost
(
'
ProductLine/ProductLine/GetSingleProductLine
'
,
{
http
.
netPost
(
'
ProductLine/ProductLine/GetSingleProductLine
'
,
{
"
Id
"
:
id
,
"
Id
"
:
id
,
"
AccountId
"
:
store
.
get
(
'
accountId
'
)
"
AccountId
"
:
info
.
accountId
})
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
this
.
getUsedIndexModules
(
res
.
data
.
Data
.
Contents
,
res
.
data
.
Data
.
Titles
)
this
.
getUsedIndexModules
(
res
.
data
.
Data
.
Contents
,
res
.
data
.
Data
.
Titles
)
...
@@ -5549,7 +5549,7 @@ async function getLineEditor() {
...
@@ -5549,7 +5549,7 @@ async function getLineEditor() {
http
.
netPost
(
'
ProductLine/ProductLineVersion/EditSave
'
,
{
http
.
netPost
(
'
ProductLine/ProductLineVersion/EditSave
'
,
{
"
ProductLineVersionId
"
:
this
.
productionLineId
,
"
ProductLineVersionId
"
:
this
.
productionLineId
,
"
Contents
"
:
contents
,
"
Contents
"
:
contents
,
"
AccountId
"
:
store
.
get
(
'
accountId
'
)
,
"
AccountId
"
:
info
.
accountId
,
"
Titles
"
:
Titles
,
"
Titles
"
:
Titles
,
})
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
...
@@ -5599,7 +5599,7 @@ async function getLineEditor() {
...
@@ -5599,7 +5599,7 @@ async function getLineEditor() {
"
Contents
"
:
contents
,
"
Contents
"
:
contents
,
"
Titles
"
:
Titles
,
"
Titles
"
:
Titles
,
"
isAutoPushArticle
"
:
this
.
productionAutoPush
?
1
:
0
,
"
isAutoPushArticle
"
:
this
.
productionAutoPush
?
1
:
0
,
"
AccountId
"
:
store
.
get
(
'
accountId
'
)
,
"
AccountId
"
:
info
.
accountId
,
})
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
if
(
res
.
data
.
Status
==
1
)
{
if
(
res
.
data
.
Status
==
1
)
{
...
@@ -5685,7 +5685,7 @@ async function getLineEditor() {
...
@@ -5685,7 +5685,7 @@ async function getLineEditor() {
"
StockCodes
"
:
companyList
,
"
StockCodes
"
:
companyList
,
"
Ids
"
:
[
this
.
currentProductionId
],
"
Ids
"
:
[
this
.
currentProductionId
],
"
T
"
:
this
.
runningYear
+
this
.
runningDate
,
"
T
"
:
this
.
runningYear
+
this
.
runningDate
,
"
AccountId
"
:
store
.
get
(
'
accountId
'
)
"
AccountId
"
:
info
.
accountId
})
})
.
then
(
res
=>
{
.
then
(
res
=>
{
if
(
res
.
data
.
Status
==
1
)
{
if
(
res
.
data
.
Status
==
1
)
{
...
@@ -5713,7 +5713,7 @@ async function getLineEditor() {
...
@@ -5713,7 +5713,7 @@ async function getLineEditor() {
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
http
.
netPost
(
'
Task/Basic/GetTaskList
'
,
{
http
.
netPost
(
'
Task/Basic/GetTaskList
'
,
{
"
id
"
:
id
,
"
id
"
:
id
,
"
AccountId
"
:
this
.
onlySeeMe
?
store
.
get
(
'
accountId
'
)
:
0
,
"
AccountId
"
:
this
.
onlySeeMe
?
info
.
accountId
:
0
,
"
current
"
:
0
,
"
current
"
:
0
,
"
psize
"
:
1
,
"
psize
"
:
1
,
})
})
...
@@ -5731,7 +5731,7 @@ async function getLineEditor() {
...
@@ -5731,7 +5731,7 @@ async function getLineEditor() {
'
Psize
'
:
100
,
'
Psize
'
:
100
,
"
TaskId
"
:
id
,
"
TaskId
"
:
id
,
"
name
"
:
''
,
"
name
"
:
''
,
"
AccountId
"
:
store
.
get
(
'
accountId
'
)
"
AccountId
"
:
info
.
accountId
})
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
if
(
res
.
data
.
Status
==
1
)
{
if
(
res
.
data
.
Status
==
1
)
{
...
@@ -5753,7 +5753,7 @@ async function getLineEditor() {
...
@@ -5753,7 +5753,7 @@ async function getLineEditor() {
http
.
netPost
(
'
ProductLine/ProductLine/EditProductLineName
'
,
{
http
.
netPost
(
'
ProductLine/ProductLine/EditProductLineName
'
,
{
"
Id
"
:
this
.
currentProductionId
,
"
Id
"
:
this
.
currentProductionId
,
"
Name
"
:
this
.
editingProductionName
,
"
Name
"
:
this
.
editingProductionName
,
"
AccountId
"
:
store
.
get
(
'
accountId
'
)
,
"
AccountId
"
:
info
.
accountId
,
})
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
if
(
res
.
data
.
Status
==
1
)
{
if
(
res
.
data
.
Status
==
1
)
{
...
@@ -6067,7 +6067,7 @@ async function getLineEditor() {
...
@@ -6067,7 +6067,7 @@ async function getLineEditor() {
},
},
"
filterConditionContent
"
:
conditionFuns
.
setSaveCondition
(
this
.
conditionParamsList
[
'
start
'
]),
"
filterConditionContent
"
:
conditionFuns
.
setSaveCondition
(
this
.
conditionParamsList
[
'
start
'
]),
"
Active
"
:
1
,
"
Active
"
:
1
,
"
AccountId
"
:
store
.
get
(
'
accountId
'
)
"
AccountId
"
:
info
.
accountId
})
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
if
(
res
.
data
.
Status
==
1
)
{
if
(
res
.
data
.
Status
==
1
)
{
...
@@ -6329,7 +6329,7 @@ async function getLineEditor() {
...
@@ -6329,7 +6329,7 @@ async function getLineEditor() {
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
http
.
netPost
(
'
Data/Encode/QueryEncodeListWithMultiple
'
,
{
http
.
netPost
(
'
Data/Encode/QueryEncodeListWithMultiple
'
,
{
"
Encodes
"
:
codes
,
"
Encodes
"
:
codes
,
"
AccountId
"
:
store
.
get
(
'
accountId
'
)
"
AccountId
"
:
info
.
accountId
})
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
if
(
res
.
data
.
Status
==
1
)
{
if
(
res
.
data
.
Status
==
1
)
{
...
...
src/views/main_views/newProductionLineEditor/routers/lineEditor/lineEditor.vue
View file @
7cf55fd8
...
@@ -710,7 +710,7 @@
...
@@ -710,7 +710,7 @@
&& !selectedTimeParams.id"
&& !selectedTimeParams.id"
class=
"no-module-tip"
class=
"no-module-tip"
>
>
<img
src=
"../../
static/image
/no-edit.png"
alt
/>
<img
src=
"../../
../static/images
/no-edit.png"
alt
/>
<p>
未选中结构
</p>
<p>
未选中结构
</p>
</div>
</div>
...
...
src/views/main_views/router/router.html
View file @
7cf55fd8
...
@@ -582,11 +582,12 @@
...
@@ -582,11 +582,12 @@
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
if
(
res
.
data
.
Status
==
1
)
{
if
(
res
.
data
.
Status
==
1
)
{
var
id
=
res
.
data
.
Data
.
Id
var
id
=
res
.
data
.
Data
.
Id
ipcRenderer
.
send
(
'
openPage
'
,
{
// ipcRenderer.send('openPage', {
id
:
'
productionLineEdit
'
+
id
,
// id: 'productionLineEdit' + id,
name
:
'
未命名单券图文财报产线编辑器
'
,
// name: '未命名单券图文财报产线编辑器',
src
:
'
./newProductionLineEditor/index.html?id=
'
+
id
+
'
&type=
'
+
name
,
// src: './newProductionLineEditor/index.html?id=' + id + '&type=' + name,
})
// })
this
.
openPage
(
'
productionLineEdit
'
+
id
,
'
未命名单券图文财报产线编辑器
'
,
'
../../main_views/newProductionLineEditor/newProductionLineEditor.html?id=
'
+
id
+
'
&type=
'
+
name
,
1
)
}
}
})
})
})
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment