+
+
-
-
-
-
{{$t('title')}}
+
+
+
+
-
-
-
-
-
- {{$t('query')}}
- {{$t('reset')}}
-
-
+
+
+
+
+
+
+
+ {{$t('Correspondingversion')}}
+
+
+
+
+ {{ item.key }}
+
+
+
+
+
+
+
+
+ {{ !toggleSearchStatus ? $t('open') : $t('away') }}
+
+
+ {{$t('reset')}}
+ {{$t('query')}}
@@ -52,18 +90,18 @@
:loading="loading">
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -85,6 +123,7 @@ export default {
props: ['url'],
data() {
return {
+ toggleSearchStatus: false,
visible: false,
queryParam: {},
confirmLoading: false,
@@ -201,11 +240,14 @@ export default {
methods: {
transferModel(id) {
this.visible = true
- this.dummyInventoryBaseId = id
+ this.projectId = id
this.queryParam = {}
this.selectedRowKeys = []
this.replacePage()
},
+ handleToggleSearch() {
+ this.toggleSearchStatus = !this.toggleSearchStatus
+ },
searchQuery() {
this.pageNo = 1
this.replacePage()
@@ -214,8 +256,6 @@ export default {
this.pageNo = 1
this.queryParam = {}
this.replacePage()
- this.$refs.globalAdvancedQueryRef.resetLine()
- this.$refs.globalAdvancedQueryRef.emitCallback()
},
onChange(page, pageSize) {
this.pageNo = page
@@ -226,31 +266,17 @@ export default {
this.pageSize = pageSize
this.replacePage()
},
- handleSuperQuery(params, matchType) {
- let sqp = {}
- if (!params || (params && params.length == 0)) {
- sqp['superQueryParams'] = ''
- this.$refs.globalAdvancedQueryRef.superQueryFlag = false
- } else {
- this.$refs.globalAdvancedQueryRef.superQueryFlag = true
- sqp['superQueryParams'] = encodeURI(JSON.stringify(params))
- sqp['superQueryMatchType'] = matchType
- }
- this.queryParamQuery = sqp
- this.replacePage()
- },
replacePage() {
let query = {
- // pageNo: this.pageNo,
- // pageSize: this.pageSize,
- ...this.queryParamQuery,
+ pageNo: this.pageNo,
+ pageSize: this.pageSize,
...this.queryParam,
- dummyInventoryBaseId: this.dummyInventoryBaseId
+ projectId: this.projectId
}
this.loading = true
- getAction('/dummy/dummyInventoryInfoEO/list', query).then((res) => {
+ getAction('/project/projectRxswinEO/getTwoPage', query).then((res) => {
if (res.success) {
- this.dataList = res.result || []
+ this.dataList = res.result.records || []
this.loading = false
} else {
this.loading = false
@@ -270,10 +296,10 @@ export default {
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
this.confirmLoading = true
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
- postAction('project/projectLawsInventoryEO/add', {
- dummyInventoryBaseId: this.dummyInventoryBaseId,
- projectLibraryId: this.$route.query.id,
- dummyids: selectedRowKeys.join(','),
+ getAction('/project/projectRxswinEO/iSExist', {
+ projectId: this.projectId,
+ // projectLibraryId: this.$route.query.id,
+ ids: selectedRowKeys.join(','),
}).then((res) => {
if (res.success) {
this.confirmLoading = false
@@ -345,4 +371,36 @@ export default {
.box-button {
height: 38px;
}
+.box-title-text-search {
+ line-height: 1.4;
+ display: flex;
+ align-items: center;
+ margin-bottom: 10px;
+}
+
+.title-text-search {
+ width: 110px;
+ color: #000F16;
+ display: inline-block;
+ font-weight: 500;
+ font-size: 14px;
+ margin-right: 16px;
+ margin-top: 3px;
+ text-align: right;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
+
+.box-input-search {
+ display: inline-block;
+ width: calc(100% - 100px);
+ height: 38px;
+ margin-top: 2px;
+}
+
+.box-button-search {
+ height: 38px;
+ /*margin-top: 2px;*/
+}
\ No newline at end of file