|
@@ -146,7 +146,7 @@
|
|
|
@mouseleave="quXiaoMouseLeave(localUp.id)"
|
|
|
@click="st_quXiao(localUp)"
|
|
|
class="iconfont icon-quxiao"></i>
|
|
|
- <span class="demonstration" style="vertical-align: middle;display: block;font-size: 1px; margin-top: 5px;">{{ localUp.indexContent }}</span>
|
|
|
+ <span class="demonstration" style=" text-align: center;display: block;font-size: 1px; margin-top: 5px;">{{ localUp.indexContent }}</span>
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
@@ -240,7 +240,8 @@
|
|
|
<mycron v-bind:extractionPeriod.sync="dataInfo.extractionPeriod"></mycron>
|
|
|
</el-dialog>
|
|
|
<!-- 本地数据上传-->
|
|
|
- <static-up-load v-if="st_upShow.excel" ref="staticUpload" > </static-up-load>
|
|
|
+ <static-up-load-excel v-if="st_upShow.excel" ref="staticUploadExcel" > </static-up-load-excel>
|
|
|
+ <staticup-load-csv v-if="st_upShow.word" ref="staticUploadCsv"></staticup-load-csv>
|
|
|
<empty v-if="st_upShow.other" ref="othersUpload"></empty>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -256,14 +257,15 @@
|
|
|
// 这里可以导入其他文件(比如:组件,工具js,第三方插件js,json文件,图片文件等等)
|
|
|
// 例如:import 《组件名称》 from '《组件路径》';
|
|
|
import mycron from './quartz/mycron'
|
|
|
-import staticUpLoad from './com/static_upLoad'
|
|
|
+import staticUpLoadExcel from './com/static_upLoad_excel'
|
|
|
+import staticupLoadCsv from './com/static_upLoad_csv'
|
|
|
import empty from './com/empty'
|
|
|
import PythonKafkaTmp from '../alg/python-kafka-tmp.vue'
|
|
|
import { MessageBox } from 'element-ui'
|
|
|
-import { Message } from "element-ui"
|
|
|
+import { Message } from 'element-ui'
|
|
|
export default {
|
|
|
// import引入的组件需要注入到对象中才能使用
|
|
|
- components: {mycron, staticUpLoad, empty, PythonKafkaTmp},
|
|
|
+ components: {mycron, staticUpLoadExcel, empty, PythonKafkaTmp, staticupLoadCsv},
|
|
|
data () {
|
|
|
var checkExtractionPeriod = (rule, value, callback) => {
|
|
|
if (!value) {
|
|
@@ -522,9 +524,6 @@ export default {
|
|
|
this.preTalbelists.push({
|
|
|
prop: this.imsql[i].subEquipmentID + '_' + this.imsql[i].chosedata[j],
|
|
|
label: this.imsql[i].subEquipmentID + '_' + this.imsql[i].chosedataZh[j]
|
|
|
- // label: this.imsql[i].subEquipment + '.' + this.imsql[i].chosedata[j]
|
|
|
- // label: this.imsql[i].chosedata[j]
|
|
|
- // label: this.imsql[i].chosedata[j]
|
|
|
})
|
|
|
}
|
|
|
}
|
|
@@ -791,6 +790,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
handleClick (id) {
|
|
|
+ this.equimentClick(id)
|
|
|
clearTimeout(this.clicktime) // 首先清除计时器
|
|
|
this.clicktime = setTimeout(() => {
|
|
|
// 这里执行你自己的方法或者业务逻辑
|
|
@@ -835,6 +835,9 @@ export default {
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
+ if (this.tableData.length > 0) {
|
|
|
+ this.dataListLoading = false
|
|
|
+ }
|
|
|
},
|
|
|
equimentDoubleClick (id) {
|
|
|
this.showEqumField = true
|
|
@@ -920,6 +923,7 @@ export default {
|
|
|
userID: this.userID,
|
|
|
sql: this.localUps[j].sql,
|
|
|
upUrl: this.localUps[j].upUrl,
|
|
|
+ type: this.localUps[j].type,
|
|
|
fileName: this.localUps[j].fileName
|
|
|
}
|
|
|
var stmsign = true
|
|
@@ -963,34 +967,33 @@ export default {
|
|
|
classification: this.dataInfo.classificationtag,
|
|
|
userId: this.userID
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
MessageBox.confirm(`确定新建数据集?`, '提示', {
|
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
|
this.$http({
|
|
|
- url: this.$http.adornUrl('/dataset/static/stSubmit'),
|
|
|
- method: 'post',
|
|
|
- data: this.$http.adornData(info, false)
|
|
|
- }).then(res => {
|
|
|
- var resContent = res.data
|
|
|
- if (resContent && resContent.code === 0) {
|
|
|
- Message({
|
|
|
- message: '数据集' + this.dataInfo.datasetName + '创建成功',
|
|
|
- type: 'success'
|
|
|
- })
|
|
|
- this.$router.replace({path: '/visi-dataset', query: {'status': '1'}})
|
|
|
- this.$destroy()
|
|
|
- } else {
|
|
|
- Message({
|
|
|
- message: '数据集' + this.dataInfo.datasetName + '创建失败',
|
|
|
- type: 'error'
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
+ url: this.$http.adornUrl('/dataset/static/stSubmit'),
|
|
|
+ method: 'post',
|
|
|
+ data: this.$http.adornData(info, false)
|
|
|
+ }).then(res => {
|
|
|
+ var resContent = res.data
|
|
|
+ if (resContent && resContent.code === 0) {
|
|
|
+ Message({
|
|
|
+ message: '数据集' + this.dataInfo.datasetName + '创建成功',
|
|
|
+ type: 'success'
|
|
|
+ })
|
|
|
+ this.$router.replace({path: '/visi-dataset', query: {'status': '1'}})
|
|
|
+ this.$destroy()
|
|
|
+ } else {
|
|
|
+ Message({
|
|
|
+ message: '数据集' + this.dataInfo.datasetName + '创建失败',
|
|
|
+ type: 'error'
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
}).catch(() => {})
|
|
|
-
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -1012,7 +1015,12 @@ export default {
|
|
|
if (info.type === 'excel') {
|
|
|
this.st_upShow.excel = true
|
|
|
this.$nextTick(() => {
|
|
|
- this.$refs.staticUpload.init(info)
|
|
|
+ this.$refs.staticUploadExcel.init(info)
|
|
|
+ })
|
|
|
+ } else if (info.type === 'word') {
|
|
|
+ this.st_upShow.word = true
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.staticUploadCsv.init(info)
|
|
|
})
|
|
|
} else {
|
|
|
this.st_upShow.other = true
|
|
@@ -1021,11 +1029,13 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
} else {
|
|
|
+ this.dataListLoading = true
|
|
|
this.tableData = []
|
|
|
this.tablelists = []
|
|
|
this.detailTitle.worldName = info.fileName
|
|
|
this.tablelists = info.filedList
|
|
|
this.tableData = info.excelData
|
|
|
+ this.dataListLoading = false
|
|
|
}
|
|
|
},
|
|
|
st_equimentDoubleClick (info) {
|
|
@@ -1033,7 +1043,12 @@ export default {
|
|
|
if (info.type === 'excel') {
|
|
|
this.st_upShow.excel = true
|
|
|
this.$nextTick(() => {
|
|
|
- this.$refs.staticUpload.init(info)
|
|
|
+ this.$refs.staticUploadExcel.init(info)
|
|
|
+ })
|
|
|
+ } else if (info.type === 'word') {
|
|
|
+ this.st_upShow.word = true
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.staticUploadCsv.init(info)
|
|
|
})
|
|
|
} else {
|
|
|
this.st_upShow.other = true
|
|
@@ -1157,7 +1172,7 @@ export default {
|
|
|
// 左侧树的懒加载
|
|
|
loadTreeNode (node, resolve) {
|
|
|
if (node.level === 0) {
|
|
|
- this.getSubSystem( resolve)
|
|
|
+ this.getSubSystem(resolve)
|
|
|
} else if (node.level === 1) {
|
|
|
this.getEquipment(node.data.subSustemid, resolve)
|
|
|
} else {
|
|
@@ -1253,7 +1268,7 @@ export default {
|
|
|
width: 100%;
|
|
|
}
|
|
|
.midDivTopImg{
|
|
|
- padding-top: 5px;
|
|
|
+ /*padding-top: 5px;*/
|
|
|
/*height: 31px;*/
|
|
|
}
|
|
|
|