Commit 7cf55fd8 authored by 陶进's avatar 陶进

提交一下

parent 3226f369
...@@ -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 renderData.renderData return editorData.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() {
}) })
}) })
}) })
renderer(ipcRenderer, this) customIpcRenderer(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) {
......
...@@ -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>
......
...@@ -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)
} }
}) })
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment