n20-common-lib 2.16.21 → 2.16.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n20-common-lib",
3
- "version": "2.16.21",
3
+ "version": "2.16.23",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -29,7 +29,7 @@
29
29
  </Table>
30
30
  <div slot="footer" class="page-button-shadow flex-box flex-c flex-v">
31
31
  <el-button v-if="!readonly" type="primary" @click="save">确定</el-button>
32
- <el-button plain @click="visibleP = false">取消</el-button>
32
+ <el-button plain @click="cancel">取消</el-button>
33
33
  </div>
34
34
  </Dialog>
35
35
  </template>
@@ -106,6 +106,11 @@ export default {
106
106
  created() {},
107
107
  mounted() {},
108
108
  methods: {
109
+ cancel() {
110
+ this.visibleP = false
111
+ this.tableData = []
112
+ this.$emit('cancel', this.beid)
113
+ },
109
114
  setView(list, beid) {
110
115
  this.visibleP = true
111
116
  this.tableData = list
@@ -125,6 +125,14 @@
125
125
  <slot name="slotCol"></slot>
126
126
  <el-table-column v-if="AICheck" :label="'AI校验' | $lc" width="170" align="left">
127
127
  <template slot-scope="{ row }">
128
+ <span
129
+ v-if="AIOptions.hasViewBtn && readonly"
130
+ class="m-r-s"
131
+ style="color: var(--color-success); cursor: pointer"
132
+ @click="getAiCheckData(row)"
133
+ >
134
+ {{ '查看' | $lc }}</span
135
+ >
128
136
  <span
129
137
  v-if="row.aiCheckStatus === '0' || row.aiCheckStatus === 0"
130
138
  class="m-r-s"
@@ -298,7 +306,7 @@
298
306
  <el-button plain @click="visibleBatch = false">{{ '取消' | $lc }}</el-button>
299
307
  </div>
300
308
  </Dialog>
301
- <aiCheckDialog ref="aiCheckDialog" :api-prefix="apiPrefix" :readonly="readonly" />
309
+ <aiCheckDialog ref="aiCheckDialog" :api-prefix="apiPrefix" :readonly="readonly" @cancel="aiCheckCancel" />
302
310
  </div>
303
311
  </template>
304
312
 
@@ -533,6 +541,14 @@ export default {
533
541
  this.getConfiguration()
534
542
  },
535
543
  methods: {
544
+ // ai校验取消
545
+ aiCheckCancel(beid) {
546
+ this.tableData.forEach((item) => {
547
+ if ((item.beid = beid)) {
548
+ item.aiCheckStatus = ''
549
+ }
550
+ })
551
+ },
536
552
  // ai校验结果
537
553
  async getAiCheckData(row) {
538
554
  const { data, code } = await this.$axios.get(