Compare commits
No commits in common. "88615a52a45937f5c0a580b9195065b42ecc1fc3" and "9f11fa3e000a6ed2b6c3d2335764c114ebcbb495" have entirely different histories.
88615a52a4
...
9f11fa3e00
4
.env.dev
4
.env.dev
@ -21,10 +21,6 @@ VUE_APP_BASE_API = 'http://192.168.0.33:48082'
|
|||||||
# VUE_APP_BASE_API = 'http://192.168.4.159:48080'
|
# VUE_APP_BASE_API = 'http://192.168.4.159:48080'
|
||||||
# VUE_APP_BASE_API = 'http://192.168.1.56:48080'
|
# VUE_APP_BASE_API = 'http://192.168.1.56:48080'
|
||||||
# VUE_APP_BASE_API = 'http://192.168.4.159:48080'
|
# VUE_APP_BASE_API = 'http://192.168.4.159:48080'
|
||||||
|
|
||||||
# 积木报表指向地址
|
|
||||||
VUE_APP_JIMU_API = 'http://192.168.0.33:48082'
|
|
||||||
|
|
||||||
# 路由懒加载
|
# 路由懒加载
|
||||||
VUE_CLI_BABEL_TRANSPILE_MODULES = true
|
VUE_CLI_BABEL_TRANSPILE_MODULES = true
|
||||||
|
|
||||||
|
@ -12,10 +12,7 @@ ENV = 'production'
|
|||||||
VUE_APP_TITLE = MES系统
|
VUE_APP_TITLE = MES系统
|
||||||
|
|
||||||
# 芋道管理系统/生产环境
|
# 芋道管理系统/生产环境
|
||||||
VUE_APP_BASE_API = '/prod-api'
|
VUE_APP_BASE_API = 'http://192.168.0.33:48082'
|
||||||
|
|
||||||
# 积木报表指向地址
|
|
||||||
VUE_APP_JIMU_API = 'http://192.168.0.33:48082'
|
|
||||||
|
|
||||||
|
|
||||||
# 根据服务器或域名修改
|
# 根据服务器或域名修改
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
right: 20px;
|
right: 20px;
|
||||||
display: flex;
|
display: flex;
|
||||||
">
|
">
|
||||||
<el-button type="primary" plain :disabled="currentDet == null" class="btn-create" icon="el-icon-plus" @click="handleEqBtn">
|
<el-button type="primary" plain :disabled="currentDet == null" class="btn-create" icon="el-icon-plus">
|
||||||
分配设备
|
分配设备
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-input icon="el-icon-search" placeholder="搜索" v-model="searchText" style="margin-left: 20px">
|
<el-input icon="el-icon-search" placeholder="搜索" v-model="searchText" style="margin-left: 20px">
|
||||||
@ -34,18 +34,6 @@
|
|||||||
<!-- 分页组件 -->
|
<!-- 分页组件 -->
|
||||||
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNo" :limit.sync="queryParams.pageSize"
|
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNo" :limit.sync="queryParams.pageSize"
|
||||||
@pagination="getList" />
|
@pagination="getList" />
|
||||||
|
|
||||||
<!-- 新增&编辑 -->
|
|
||||||
<base-dialog
|
|
||||||
:dialogTitle="eqTitle"
|
|
||||||
:dialogVisible="centervisible"
|
|
||||||
@cancel="handleCancel"
|
|
||||||
@confirm="handleConfirm"
|
|
||||||
:before-close="handleCancel"
|
|
||||||
width='70%'
|
|
||||||
>
|
|
||||||
123
|
|
||||||
</base-dialog>
|
|
||||||
</section>
|
</section>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -70,9 +58,9 @@ export default {
|
|||||||
// width: 180,
|
// width: 180,
|
||||||
// filter: (val) => moment(val).format('yyyy-MM-DD HH:mm:ss'),
|
// filter: (val) => moment(val).format('yyyy-MM-DD HH:mm:ss'),
|
||||||
// },
|
// },
|
||||||
{ prop: 'equipmentId', label: '设备名称' },
|
{ prop: 'name', label: '设备名称' },
|
||||||
{ prop: 'materialName', label: '物料BOM' },
|
{ prop: 'code', label: '物料BOM' },
|
||||||
{ prop: 'valueName', label: '参数BOM' },
|
{ prop: 'remark', label: '参数BOM' },
|
||||||
],
|
],
|
||||||
list: [],
|
list: [],
|
||||||
total: 0,
|
total: 0,
|
||||||
@ -81,10 +69,7 @@ export default {
|
|||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
},
|
},
|
||||||
searchText: '',
|
searchText: ''
|
||||||
eqTitle: '分配设备',
|
|
||||||
centervisible: false,
|
|
||||||
pageUrl: '/extend/process-flow-det-equipment/page'
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
@ -124,39 +109,19 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
async getList({ detId, detName, detDesc, flowId, sectionName } = {}) {
|
getList({ detId, detName, detDesc, flowId, sectionName } = {}) {
|
||||||
const { code, data } = await this.recv({ pageNn: 1, pageSize: 100, flowDetId: detId });
|
console.log('get list')
|
||||||
if (code == 0) {
|
|
||||||
if (data) {
|
},
|
||||||
this.list = data.list
|
getList() {
|
||||||
}
|
this.list = [
|
||||||
return { cells: [] };
|
{ name: '1', code: 'bomg-1', remark: 'Tochter' },
|
||||||
}
|
{ name: '2', code: 'bomg-2', remark: 'Bruder' },
|
||||||
return Promise.reject(this.infoUrl + ' 接口出错!');
|
{ name: '3', code: 'bomg-3', remark: 'Kalt' },
|
||||||
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
// getList({ detId, detName, detDesc, flowId, sectionName } = {}) {
|
|
||||||
// console.log('get list')
|
|
||||||
|
|
||||||
// },
|
|
||||||
// getList() {
|
|
||||||
// this.list = [
|
|
||||||
// { name: '1', code: 'bomg-1', remark: 'Tochter' },
|
|
||||||
// { name: '2', code: 'bomg-2', remark: 'Bruder' },
|
|
||||||
// { name: '3', code: 'bomg-3', remark: 'Kalt' },
|
|
||||||
// ]
|
|
||||||
// },
|
|
||||||
clearList() {
|
clearList() {
|
||||||
this.list = [];
|
this.list = [];
|
||||||
},
|
|
||||||
handleEqBtn() {
|
|
||||||
this.centervisible = true
|
|
||||||
},
|
|
||||||
handleConfirm() {
|
|
||||||
this.centervisible = false
|
|
||||||
},
|
|
||||||
handleCancel() {
|
|
||||||
this.centervisible = false
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -167,7 +167,7 @@ export default {
|
|||||||
modifiers: ['ctrl', 'meta']
|
modifiers: ['ctrl', 'meta']
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
console.log(json)
|
|
||||||
graph.fromJSON(json)
|
graph.fromJSON(json)
|
||||||
this.graph = graph;
|
this.graph = graph;
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
@ -195,12 +195,12 @@ export default {
|
|||||||
node.attr('container/stroke', '#0b58ff');
|
node.attr('container/stroke', '#0b58ff');
|
||||||
const { detId, detName, detDesc, processId, sectionId, sectionName } = node.attrs;
|
const { detId, detName, detDesc, processId, sectionId, sectionName } = node.attrs;
|
||||||
this.currentDet = {}
|
this.currentDet = {}
|
||||||
this.$set(this.currentDet, 'detId', detId?.text)
|
this.$set(this.currentDet, 'detId', detId.text)
|
||||||
this.$set(this.currentDet, 'sectionId', sectionId?.text)
|
this.$set(this.currentDet, 'sectionId', sectionId.text)
|
||||||
this.$set(this.currentDet, 'detName', detName?.text)
|
this.$set(this.currentDet, 'detName', detName.text)
|
||||||
this.$set(this.currentDet, 'detDesc', detDesc?.text)
|
this.$set(this.currentDet, 'detDesc', detDesc.text)
|
||||||
this.$set(this.currentDet, 'flowId', processId?.text)
|
this.$set(this.currentDet, 'flowId', processId.text)
|
||||||
this.$set(this.currentDet, 'sectionName', sectionName?.text)
|
this.$set(this.currentDet, 'sectionName', sectionName.text)
|
||||||
this.currentNode = node
|
this.currentNode = node
|
||||||
});
|
});
|
||||||
this.graph.on('edge:click', ({ e, x, y, edge, view }) => {
|
this.graph.on('edge:click', ({ e, x, y, edge, view }) => {
|
||||||
|
@ -20,7 +20,7 @@ export default {
|
|||||||
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
url: process.env.VUE_APP_JIMU_API + "/jmreport/list?token=" + getAccessToken(),
|
url: process.env.VUE_APP_BASE_API + "/jmreport/list?token=" + getAccessToken(),
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user