Merge branch 'master' of http://115.159.85.185:8098/r/SuZhouGuanHong/TaiYuanTaiZhong
| | |
| | | "version": "0.1.0", |
| | | "private": true, |
| | | "scripts": { |
| | | "serve": " SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve", |
| | | "serve": "SET NODE_OPTIONS= && vue-cli-service serve", |
| | | "build": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build", |
| | | "test:unit": "vue-cli-service test:unit", |
| | | "lint": "vue-cli-service lint" |
| | |
| | | selList() { |
| | | this.loading = true; |
| | | this.http.post('api/Readplc/dt_stationinfolist').then(x => { |
| | | this.datalist = x.data.data; |
| | | for (var i = 0; i < x.data.data[1].item1.length; i++) { |
| | | this.ddataList[i] = x.data.data[1].item1[i]; |
| | | this.datalist = x; |
| | | for (var i = 0; i < x[1].item1.length; i++) { |
| | | this.ddataList[i] = x[1].item1[i]; |
| | | } |
| | | }) |
| | | .catch(error => { |
| | |
| | | //鑾峰彇涓嬫枡鍙g殑鏁版嵁 |
| | | selListxl() { |
| | | this.loading = true; |
| | | this.http.post('api/Readplc/pcs_dt_stationinfolist').then(x => { |
| | | this.dataxlist = x.data.data; |
| | | this.item1 = x.data.data[4].item1[0]; |
| | | this.http.post('api/Readplc/pcs_dt_stationinfolist').then((x) => { |
| | | |
| | | this.dataxlist = x; |
| | | this.item1 = x[4].item1[0]; |
| | | |
| | | }) |
| | | .catch(error => { |
| | |
| | | required: true |
| | | } |
| | | }, |
| | | watch: { |
| | | plcList_one(newVal, oldVal) { |
| | | console.log('er:', newVal); |
| | | } |
| | | }, |
| | | // watch: { |
| | | // plcList_one(newVal, oldVal) { |
| | | // console.log('er:', newVal); |
| | | // } |
| | | // }, |
| | | data() { |
| | | return { |
| | | isModalVisible: false, |
| | |
| | | #endregion |
| | | |
| | | [HttpPost("dt_stationinfolist")] |
| | | public WebResponseContent dt_stationinfolist() |
| | | public IActionResult dt_stationinfolist() |
| | | { |
| | | WebResponseContent content = new WebResponseContent(); |
| | | VOLContext volContext = new VOLContext(); |
| | | Idt_stationinfoRepository dsta = new dt_stationinfoRepository(volContext); |
| | | string[] stationCodes = { "W", "A", "B", "C", "D01" }; |
| | |
| | | int inst = dsta.Find(_ => true).Where(a => a.stationCode.Contains(code)).GroupBy(a => a.line).Count(); |
| | | responseData.Add(Tuple.Create(data, inst)); |
| | | } |
| | | content.Data = responseData; |
| | | return content; |
| | | return Ok(responseData); |
| | | } |
| | | [HttpPost("pcs_dt_stationinfolist")] |
| | | public WebResponseContent pcs_dt_stationinfolist() |
| | | public IActionResult pcs_dt_stationinfolist() |
| | | { |
| | | WebResponseContent content = new WebResponseContent(); |
| | | VOLContext volContext = new VOLContext(); |
| | | Idt_stationinfoRepository dsta = new dt_stationinfoRepository(volContext); |
| | | string[] stationCodes = { "X01", "X02", "X03", "S", "DD001" }; |
| | |
| | | var data = dsta.Find(_ => true).Where(a => a.stationCode.Contains(code)).OrderBy(a => a.stationCode).ToList(); |
| | | responseData.Add(Tuple.Create(data)); |
| | | } |
| | | content.Data = responseData; |
| | | return content; |
| | | return Ok(responseData); |
| | | } |
| | | } |
| | | } |