@scenetechnology/cj_iview_table 0.0.63 → 0.0.64

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.
@@ -25769,7 +25769,7 @@ if (typeof window !== 'undefined') {
25769
25769
  // Indicate to webpack that this file can be concatenated
25770
25770
  /* harmony default export */ var setPublicPath = (null);
25771
25771
 
25772
- ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/index.vue?vue&type=template&id=770554fe&scoped=true
25772
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/index.vue?vue&type=template&id=2bd81707&scoped=true
25773
25773
  var render = function render() {
25774
25774
  var _vm = this,
25775
25775
  _c = _vm._self._c;
@@ -26174,7 +26174,8 @@ var render = function render() {
26174
26174
  "on-select": _vm.onSelect,
26175
26175
  "on-select-cancel": _vm.onSelectCancel,
26176
26176
  "on-select-all": _vm.onSelectAll,
26177
- "on-select-all-cancel": _vm.onSelectAllCancel
26177
+ "on-select-all-cancel": _vm.onSelectAllCancel,
26178
+ "on-column-width-resize": _vm.onColumnWidthResize
26178
26179
  },
26179
26180
  scopedSlots: _vm._u([_vm._l(_vm.tableSlot, function (item) {
26180
26181
  return {
@@ -26268,25 +26269,25 @@ var es_set_symmetric_difference_v2 = __webpack_require__(5024);
26268
26269
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.union.v2.js
26269
26270
  var es_set_union_v2 = __webpack_require__(1698);
26270
26271
  ;// ./src/libs/util.js
26271
- const getToken = () => {
26272
- let token=''
26273
- if(localStorage.getItem('inspect_token')==null){
26274
- token = localStorage.getItem('simp_token')
26275
- }else{
26276
- token = localStorage.getItem('inspect_token')
26277
- }
26278
- if (token) return token
26279
- else return false
26280
- }
26281
- function getCjosToken(){
26282
- let result
26283
- if (localStorage.getItem('is_root') === 'true'||localStorage.getItem('is_root') === 'false'){
26284
- result=encodeURIComponent(getToken())
26285
- // console.log('999999',result)
26286
- }else{
26287
- result=''
26288
- }
26289
- return result
26272
+ const getToken = () => {
26273
+ let token=''
26274
+ if(localStorage.getItem('inspect_token')==null){
26275
+ token = localStorage.getItem('simp_token')
26276
+ }else{
26277
+ token = localStorage.getItem('inspect_token')
26278
+ }
26279
+ if (token) return token
26280
+ else return false
26281
+ }
26282
+ function getCjosToken(){
26283
+ let result
26284
+ if (localStorage.getItem('is_root') === 'true'||localStorage.getItem('is_root') === 'false'){
26285
+ result=encodeURIComponent(getToken())
26286
+ // console.log('999999',result)
26287
+ }else{
26288
+ result=''
26289
+ }
26290
+ return result
26290
26291
  }
26291
26292
  ;// ./node_modules/axios/lib/helpers/bind.js
26292
26293
 
@@ -30271,256 +30272,256 @@ axios.default = axios;
30271
30272
  /* harmony default export */ var lib_axios = (axios);
30272
30273
 
30273
30274
  ;// ./src/libs/axios.js
30274
-
30275
- // import { Spin } from 'iview'
30276
- const addErrorLog = errorInfo => {
30277
- const { statusText, status, request: { responseURL } } = errorInfo
30278
- let info = {
30279
- type: 'ajax',
30280
- code: status,
30281
- mes: statusText,
30282
- url: responseURL
30283
- }
30284
- }
30285
-
30286
- class HttpRequest {
30287
- constructor (baseUrl = baseURL) {
30288
- this.baseUrl = baseUrl
30289
- this.queue = {}
30290
- }
30291
- getInsideConfig () {
30292
- const config = {
30293
- baseURL: this.baseUrl,
30294
- headers: {
30295
- //
30296
- }
30297
- }
30298
- if (localStorage.getItem('is_root') === 'true' || localStorage.getItem('is_root') === 'false') {
30299
- if (localStorage.getItem('simp_token')) {
30300
- config.headers['cjostoken'] = localStorage.getItem('simp_token')
30301
- }
30302
- }
30303
- return config
30304
- }
30305
- destroy (url) {
30306
- delete this.queue[url]
30307
- if (!Object.keys(this.queue).length) {
30308
- // Spin.hide()
30309
- }
30310
- }
30311
- interceptors (instance, url) {
30312
- // 请求拦截
30313
- instance.interceptors.request.use(config => {
30314
- // 添加全局的loading...
30315
- if (!Object.keys(this.queue).length) {
30316
- // Spin.show() // 不建议开启,因为界面不友好
30317
- }
30318
- this.queue[url] = true
30319
- return config
30320
- }, error => {
30321
- return Promise.reject(error)
30322
- })
30323
- // 响应拦截
30324
- instance.interceptors.response.use(res => {
30325
- this.destroy(url)
30326
- const { data, status } = res
30327
- return { data, status }
30328
- }, error => {
30329
- this.destroy(url)
30330
- let errorInfo = error.response
30331
- if (!errorInfo) {
30332
- const { request: { statusText, status }, config } = JSON.parse(JSON.stringify(error))
30333
- errorInfo = {
30334
- statusText,
30335
- status,
30336
- request: { responseURL: config.url }
30337
- }
30338
- }
30339
- addErrorLog(errorInfo)
30340
- return Promise.reject(error)
30341
- })
30342
- }
30343
- request (options) {
30344
- const instance = lib_axios.create()
30345
- options = Object.assign(this.getInsideConfig(), options)
30346
- this.interceptors(instance, options.url)
30347
- return instance(options)
30348
- }
30349
- }
30350
- /* harmony default export */ var libs_axios = (HttpRequest);
30275
+
30276
+ // import { Spin } from 'iview'
30277
+ const addErrorLog = errorInfo => {
30278
+ const { statusText, status, request: { responseURL } } = errorInfo
30279
+ let info = {
30280
+ type: 'ajax',
30281
+ code: status,
30282
+ mes: statusText,
30283
+ url: responseURL
30284
+ }
30285
+ }
30286
+
30287
+ class HttpRequest {
30288
+ constructor (baseUrl = baseURL) {
30289
+ this.baseUrl = baseUrl
30290
+ this.queue = {}
30291
+ }
30292
+ getInsideConfig () {
30293
+ const config = {
30294
+ baseURL: this.baseUrl,
30295
+ headers: {
30296
+ //
30297
+ }
30298
+ }
30299
+ if (localStorage.getItem('is_root') === 'true' || localStorage.getItem('is_root') === 'false') {
30300
+ if (localStorage.getItem('simp_token')) {
30301
+ config.headers['cjostoken'] = localStorage.getItem('simp_token')
30302
+ }
30303
+ }
30304
+ return config
30305
+ }
30306
+ destroy (url) {
30307
+ delete this.queue[url]
30308
+ if (!Object.keys(this.queue).length) {
30309
+ // Spin.hide()
30310
+ }
30311
+ }
30312
+ interceptors (instance, url) {
30313
+ // 请求拦截
30314
+ instance.interceptors.request.use(config => {
30315
+ // 添加全局的loading...
30316
+ if (!Object.keys(this.queue).length) {
30317
+ // Spin.show() // 不建议开启,因为界面不友好
30318
+ }
30319
+ this.queue[url] = true
30320
+ return config
30321
+ }, error => {
30322
+ return Promise.reject(error)
30323
+ })
30324
+ // 响应拦截
30325
+ instance.interceptors.response.use(res => {
30326
+ this.destroy(url)
30327
+ const { data, status } = res
30328
+ return { data, status }
30329
+ }, error => {
30330
+ this.destroy(url)
30331
+ let errorInfo = error.response
30332
+ if (!errorInfo) {
30333
+ const { request: { statusText, status }, config } = JSON.parse(JSON.stringify(error))
30334
+ errorInfo = {
30335
+ statusText,
30336
+ status,
30337
+ request: { responseURL: config.url }
30338
+ }
30339
+ }
30340
+ addErrorLog(errorInfo)
30341
+ return Promise.reject(error)
30342
+ })
30343
+ }
30344
+ request (options) {
30345
+ const instance = lib_axios.create()
30346
+ options = Object.assign(this.getInsideConfig(), options)
30347
+ this.interceptors(instance, options.url)
30348
+ return instance(options)
30349
+ }
30350
+ }
30351
+ /* harmony default export */ var libs_axios = (HttpRequest);
30351
30352
 
30352
30353
  ;// ./src/config/index.js
30353
- let baseUri = `${window.location.protocol}//${window.location.hostname}:${window.location.port}/` // 线上
30354
- // baseUri = `http://39.104.102.113:23310/` // 本地
30355
- // 指定请求五位一体ip地址和端口
30356
- const baseUriExternal = ``
30357
- // console.log(process.env.NODE_ENV)
30358
- let mapUrl = ''
30359
- if(localStorage.getItem('publicHost')){
30360
- baseUri = localStorage.getItem('publicHost')
30361
- mapUrl = localStorage.getItem('publicHost')
30362
- // if (localStorage.getItem('is_root') === 'true' || localStorage.getItem('is_root') === 'false') { // 嵌入在使用端情况
30363
- // mapUrl = localStorage.getItem('publicHost') + 'simp/'
30364
- // }
30365
- }else{
30366
- if (false) {} else if (true) {
30367
- if (localStorage.getItem('is_root') === 'true' || localStorage.getItem('is_root') === 'false') { // 嵌入在使用端情况
30368
- baseUri = `${window.location.protocol}//${window.location.hostname}:${window.location.port}/`
30369
- mapUrl = baseUri
30370
- } else {
30371
- baseUri = `${window.location.protocol}//${window.location.hostname}:${window.location.port}/`
30372
- mapUrl = `${window.location.protocol}//${window.location.hostname}:${window.location.port}/`
30373
- }
30374
- }
30375
- }
30376
-
30377
- // localStorage.setItem('inspect_token','eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c3IiOiJhZG1pbiIsInB3ZCI6ImUxM2FiZGI4YTQ1ZDUyY2MxYjc4Mjk3YmYwNDQzMmMyIiwiYWRtaW5Db2RlIjoiNjIxZDY2OThkYjcyZCJ9.jSFpMdnFhxyil4kNCqQT2U4vh7sxVwT02S0x_dDPEQE')
30378
- // localStorage.setItem('inspect_project_id','3')
30379
- /* harmony default export */ var config = ({
30380
- /**
30381
- * @description 配置显示在浏览器标签的title
30382
- */
30383
- title: '表格组件',
30384
- /**
30385
- * @description token在Cookie中存储的天数,默认1天
30386
- */
30387
- cookieExpires: 1,
30388
- /**
30389
- * @description 是否使用国际化,默认为false
30390
- * 如果不使用,则需要在路由中给需要在菜单中展示的路由设置meta: {title: 'xxx'}
30391
- * 用来在菜单中显示文字
30392
- */
30393
- useI18n: false,
30394
- downloadUrl: baseUri,
30395
- /**
30396
- * @description api请求基础路径
30397
- */
30398
- baseUriExternal,
30399
- baseUrl: {
30400
- // dev: 'http://192.168.1.70:8000/Api/',
30401
- // pro: 'http://192.168.1.70:8000/Api/'
30402
-
30403
- dev: `${baseUri}simpalarm/api/`,
30404
- // dev: `${baseUri}/api/`,
30405
- test: `${baseUri}simpalarm/api/`,
30406
- prod: `${baseUri}simpalarm/api/`,
30407
- simp: localStorage.getItem('is_root') === 'true' || localStorage.getItem('is_root') === 'false'
30408
- ? `${mapUrl}simp/index.php/api/`
30409
- : `${mapUrl}index.php/api/`,
30410
- simpelements:`${baseUri}simpelements/api/`,
30411
- simpdouble:`${baseUri}simpdouble/api/`,
30412
- simpdanger:`${baseUri}simpdanger/api/`,
30413
- },
30414
- exportURL: baseUri,
30415
- mapUrl: mapUrl,
30416
- /**
30417
- * @description 默认打开的首页的路由name值,默认为home
30418
- */
30419
- homeName: 'home',
30420
- /**
30421
- * @description 需要加载的插件
30422
- */
30423
- plugin: {
30424
- 'error-store': {
30425
- showInHeader: true, // 设为false后不会在顶部显示错误日志徽标
30426
- developmentOff: true // 设为true后在开发环境不会收集错误信息,方便开发中排查错误
30427
- }
30428
- }
30429
- });
30354
+ let baseUri = `${window.location.protocol}//${window.location.hostname}:${window.location.port}/` // 线上
30355
+ // baseUri = `http://39.104.102.113:23310/` // 本地
30356
+ // 指定请求五位一体ip地址和端口
30357
+ const baseUriExternal = ``
30358
+ // console.log(process.env.NODE_ENV)
30359
+ let mapUrl = ''
30360
+ if(localStorage.getItem('publicHost')){
30361
+ baseUri = localStorage.getItem('publicHost')
30362
+ mapUrl = localStorage.getItem('publicHost')
30363
+ // if (localStorage.getItem('is_root') === 'true' || localStorage.getItem('is_root') === 'false') { // 嵌入在使用端情况
30364
+ // mapUrl = localStorage.getItem('publicHost') + 'simp/'
30365
+ // }
30366
+ }else{
30367
+ if (false) {} else if (true) {
30368
+ if (localStorage.getItem('is_root') === 'true' || localStorage.getItem('is_root') === 'false') { // 嵌入在使用端情况
30369
+ baseUri = `${window.location.protocol}//${window.location.hostname}:${window.location.port}/`
30370
+ mapUrl = baseUri
30371
+ } else {
30372
+ baseUri = `${window.location.protocol}//${window.location.hostname}:${window.location.port}/`
30373
+ mapUrl = `${window.location.protocol}//${window.location.hostname}:${window.location.port}/`
30374
+ }
30375
+ }
30376
+ }
30377
+
30378
+ // localStorage.setItem('inspect_token','eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c3IiOiJhZG1pbiIsInB3ZCI6ImUxM2FiZGI4YTQ1ZDUyY2MxYjc4Mjk3YmYwNDQzMmMyIiwiYWRtaW5Db2RlIjoiNjIxZDY2OThkYjcyZCJ9.jSFpMdnFhxyil4kNCqQT2U4vh7sxVwT02S0x_dDPEQE')
30379
+ // localStorage.setItem('inspect_project_id','3')
30380
+ /* harmony default export */ var config = ({
30381
+ /**
30382
+ * @description 配置显示在浏览器标签的title
30383
+ */
30384
+ title: '表格组件',
30385
+ /**
30386
+ * @description token在Cookie中存储的天数,默认1天
30387
+ */
30388
+ cookieExpires: 1,
30389
+ /**
30390
+ * @description 是否使用国际化,默认为false
30391
+ * 如果不使用,则需要在路由中给需要在菜单中展示的路由设置meta: {title: 'xxx'}
30392
+ * 用来在菜单中显示文字
30393
+ */
30394
+ useI18n: false,
30395
+ downloadUrl: baseUri,
30396
+ /**
30397
+ * @description api请求基础路径
30398
+ */
30399
+ baseUriExternal,
30400
+ baseUrl: {
30401
+ // dev: 'http://192.168.1.70:8000/Api/',
30402
+ // pro: 'http://192.168.1.70:8000/Api/'
30403
+
30404
+ dev: `${baseUri}simpalarm/api/`,
30405
+ // dev: `${baseUri}/api/`,
30406
+ test: `${baseUri}simpalarm/api/`,
30407
+ prod: `${baseUri}simpalarm/api/`,
30408
+ simp: localStorage.getItem('is_root') === 'true' || localStorage.getItem('is_root') === 'false'
30409
+ ? `${mapUrl}simp/index.php/api/`
30410
+ : `${mapUrl}index.php/api/`,
30411
+ simpelements:`${baseUri}simpelements/api/`,
30412
+ simpdouble:`${baseUri}simpdouble/api/`,
30413
+ simpdanger:`${baseUri}simpdanger/api/`,
30414
+ },
30415
+ exportURL: baseUri,
30416
+ mapUrl: mapUrl,
30417
+ /**
30418
+ * @description 默认打开的首页的路由name值,默认为home
30419
+ */
30420
+ homeName: 'home',
30421
+ /**
30422
+ * @description 需要加载的插件
30423
+ */
30424
+ plugin: {
30425
+ 'error-store': {
30426
+ showInHeader: true, // 设为false后不会在顶部显示错误日志徽标
30427
+ developmentOff: true // 设为true后在开发环境不会收集错误信息,方便开发中排查错误
30428
+ }
30429
+ }
30430
+ });
30430
30431
 
30431
30432
  ;// ./src/libs/api.request.js
30432
-
30433
-
30434
- const baseUrl = false ? 0 : config.baseUrl.prod
30435
- // console.log(baseUrl)
30436
- const api_request_axios = new libs_axios(baseUrl)
30437
- /* harmony default export */ var api_request = (api_request_axios);
30433
+
30434
+
30435
+ const baseUrl = false ? 0 : config.baseUrl.prod
30436
+ // console.log(baseUrl)
30437
+ const api_request_axios = new libs_axios(baseUrl)
30438
+ /* harmony default export */ var api_request = (api_request_axios);
30438
30439
 
30439
30440
  ;// ./src/api/UserQuery.js
30440
-
30441
-
30442
- const saveUserQuery = (data) => {
30443
- return api_request.request({
30444
- url: config.baseUrl.simp+ 'UserQuery/save',
30445
- data,
30446
- method: 'post'
30447
- })
30448
- }
30449
- const updateUserQuery = (data) => {
30450
- return api_request.request({
30451
- url: config.baseUrl.simp+ 'UserQuery/update',
30452
- data,
30453
- method: 'post'
30454
- })
30455
- }
30456
- const getUserQuery = (data) => {
30457
- return api_request.request({
30458
- url: config.baseUrl.simp+ 'UserQuery/index',
30459
- params:data,
30460
- method: 'get'
30461
- })
30462
- }
30463
-
30464
- const deleteUserQuery = (data) => {
30465
- return api_request.request({
30466
- url: config.baseUrl.simp+ 'UserQuery/delete',
30467
- params:data,
30468
- method: 'get'
30469
- })
30470
- }
30471
- const sortUserQuery = (data) => {
30472
- return api_request.request({
30473
- url: config.baseUrl.simp+ 'UserQuery/sort',
30474
- data,
30475
- method: 'post'
30476
- })
30477
- }
30478
- const indexPerson = (data) => {
30479
- return api_request.request({
30480
- url: config.baseUrl.simp+ 'Person/index',
30481
- data,
30482
- method: 'post'
30483
- })
30484
- }
30485
-
30486
-
30487
- function getDepartmentOrganization (param) {
30488
- return api_request.request({
30489
- url: config.baseUrl.simp+ `Department/Organization`,
30490
- method: 'get',
30491
- params: param
30492
- })
30493
- }
30494
-
30495
- function getDepartmentOrganizationRead (param) {
30496
- return api_request.request({
30497
- url: config.baseUrl.simp+ `Department/Organization_read`,
30498
- method: 'get',
30499
- params: param
30500
- })
30501
- }
30502
-
30503
- function getDepartmentSearch (param) {
30504
- return api_request.request({
30505
- url: config.baseUrl.simp+ `Department/search`,
30506
- method: 'get',
30507
- params: param
30508
- })
30509
- }
30510
-
30511
- function getPersonSearch (param) {
30512
- return api_request.request({
30513
- url: config.baseUrl.simp+ `Person/search`,
30514
- method: 'get',
30515
- params: param
30516
- })
30441
+
30442
+
30443
+ const saveUserQuery = (data) => {
30444
+ return api_request.request({
30445
+ url: config.baseUrl.simp+ 'UserQuery/save',
30446
+ data,
30447
+ method: 'post'
30448
+ })
30449
+ }
30450
+ const updateUserQuery = (data) => {
30451
+ return api_request.request({
30452
+ url: config.baseUrl.simp+ 'UserQuery/update',
30453
+ data,
30454
+ method: 'post'
30455
+ })
30456
+ }
30457
+ const getUserQuery = (data) => {
30458
+ return api_request.request({
30459
+ url: config.baseUrl.simp+ 'UserQuery/index',
30460
+ params:data,
30461
+ method: 'get'
30462
+ })
30463
+ }
30464
+
30465
+ const deleteUserQuery = (data) => {
30466
+ return api_request.request({
30467
+ url: config.baseUrl.simp+ 'UserQuery/delete',
30468
+ params:data,
30469
+ method: 'get'
30470
+ })
30471
+ }
30472
+ const sortUserQuery = (data) => {
30473
+ return api_request.request({
30474
+ url: config.baseUrl.simp+ 'UserQuery/sort',
30475
+ data,
30476
+ method: 'post'
30477
+ })
30478
+ }
30479
+ const indexPerson = (data) => {
30480
+ return api_request.request({
30481
+ url: config.baseUrl.simp+ 'Person/index',
30482
+ data,
30483
+ method: 'post'
30484
+ })
30485
+ }
30486
+
30487
+
30488
+ function getDepartmentOrganization (param) {
30489
+ return api_request.request({
30490
+ url: config.baseUrl.simp+ `Department/Organization`,
30491
+ method: 'get',
30492
+ params: param
30493
+ })
30494
+ }
30495
+
30496
+ function getDepartmentOrganizationRead (param) {
30497
+ return api_request.request({
30498
+ url: config.baseUrl.simp+ `Department/Organization_read`,
30499
+ method: 'get',
30500
+ params: param
30501
+ })
30502
+ }
30503
+
30504
+ function getDepartmentSearch (param) {
30505
+ return api_request.request({
30506
+ url: config.baseUrl.simp+ `Department/search`,
30507
+ method: 'get',
30508
+ params: param
30509
+ })
30510
+ }
30511
+
30512
+ function getPersonSearch (param) {
30513
+ return api_request.request({
30514
+ url: config.baseUrl.simp+ `Person/search`,
30515
+ method: 'get',
30516
+ params: param
30517
+ })
30517
30518
  }
30518
30519
  ;// ./src/assets/images/table_no_flod.png
30519
30520
  var table_no_flod_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAUCAYAAACJfM0wAAAAAXNSR0IArs4c6QAAAh1JREFUOE+dlMtu00AYhc9vKxvkBwDEEgFvgERXKRepkYBmWWCPEBIo8sRcCpIF5ZYZOxJ5gRYkWLAp3bULEAIkXgFYtzxAYwgLz5CJZqKpsTHprJzR78+fzxyHAKDb7c4BuJ7n+fM0Tb/ovf0sxthVACcbjcYt0gDG2CaAc+NnZES0wDn/OCuYMXYfwANz300LbgN4A8AfP2dIRK1Z4AXotu/7pyZgvcIwXCKilxaulFpIkuRTnXkYhveI6KGZ2yaiJuf8+xS8H3gRKqWcT9P0m2btAZu8LwF4UWfOGFsGsGJNXWgpuAS+q5RqubEUoDtSyqY1tdH9ZexkfpmI1oz5rmnL5/+BTo0ZYzfGAH0AK0IIXgUH8AqA7qpeO57nzfd6va/6RxzHB7Ise617DKBl67YB4LweUEotJ0ny2MIZY1cArBpzu10G3VBKnTaMaxNwp9M56vv+BwCHzZ13hRBPKuA/PM9ruqbD4fAtgDNmfjMIggvTjKMoOi6lfPcP+EUAbSJ6pHtqX78EuhjH8WjP4dXB3Y/FZLqulDprTfM8b/f7/V+ldTPw9wAOTQaI7nDOn84CrexxEQ7gthDimXP6rulWnueL1rS2x2XwIAgGWZbVQiuNnR6fICJ9oJNYAOj/gWPmutS01rgA15kfdHLeCoKgHcfxTzd797ryk3aHwjDU5hZeC62NwoVHUXREKTU3Go3WB4PB7ypTu/8HEL0+yS21nGMAAAAASUVORK5CYII=";
30520
30521
  ;// ./src/assets/images/table_flod.png
30521
30522
  var table_flod_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAUCAYAAACJfM0wAAAAAXNSR0IArs4c6QAAAiJJREFUOE+V1D1v01AYBeBzHAVYAPEnWPgDVUEoTluVsiG1DLS0jQMDSLABUgcWhASsTAjiNIUwdENCFIa0EUJ8SKhswM4AlSio0C6A70F2bCuxkzj1Zvvex+e+970mBrwKriYJc0q0bjRL/Jw1jVkD/PdFVyVB9wHkAGxYYLHh8GO/uZlwAo2sDc+j/fI8P/XC+8KFiuZJPQiTbkGqg7wYYn3xnnAKBcfXHL6zK7oC6k4W3hVOoiJPNEt8Gy07gX/zPBaTZUnBBVdzhCrR8i1xolHmm2QtbVdXAd0On6fwDnhQNE6ewEXaUSvGsF3RLCi3W9KpZeW+75h7ECdJXlot8WEWHsB2RadBPY5QgidXHb723wXotlkCeCbEPIHlpsNahBequkbpVnBPfBU43IJd8xzAOICtFLpjahCnEzXui5O8HMCFqoYoc0Gy7jbLfB8n7UTXYXgdluoADgLwIDprZS5FH20dJjNk5ayFru3mL39z2ywKnAknrf/dy9FX0/xZdDUsaAXAgW549JEU3A3dYzj24hx/tCXrwEmW2je0Veq2K9io36YK8myUNIkOisdwEiXwIW842p40dUgWdRRGz6KyCJxvOnwUJw5bygU4Gz7MROM+7oGHfezdBLkQocxxrDHHzV6/xB7J/Q3dH2woONJqN9csE5jyl79bNJE8wP2SBPCxug7l/2BiXx5PV2b4a9CkyXEjNR3WPxw5/gVP/gNEyE+/VqwYfAAAAABJRU5ErkJggg==";
30522
- ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/table-setting.vue?vue&type=template&id=3fbe6aa8&scoped=true
30523
- var table_settingvue_type_template_id_3fbe6aa8_scoped_true_render = function render() {
30523
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/table-setting.vue?vue&type=template&id=a9701966&scoped=true
30524
+ var table_settingvue_type_template_id_a9701966_scoped_true_render = function render() {
30524
30525
  var _vm = this,
30525
30526
  _c = _vm._self._c;
30526
30527
  return _c('div', [_c('Modal', {
@@ -30663,7 +30664,8 @@ var table_settingvue_type_template_id_3fbe6aa8_scoped_true_render = function ren
30663
30664
  "initialSortColumns": _vm.sortColumns
30664
30665
  },
30665
30666
  on: {
30666
- "updatesortColumns": _vm.updatesortColumns
30667
+ "updatesortColumns": _vm.updatesortColumns,
30668
+ "update-column-width": _vm.handleColumnWidthUpdate
30667
30669
  }
30668
30670
  }) : _vm._e()], 1)])]), _c('div', {
30669
30671
  attrs: {
@@ -30689,12 +30691,12 @@ var table_settingvue_type_template_id_3fbe6aa8_scoped_true_render = function ren
30689
30691
  }
30690
30692
  }, [_vm._v("确定")])], 1)])], 1);
30691
30693
  };
30692
- var table_settingvue_type_template_id_3fbe6aa8_scoped_true_staticRenderFns = [];
30694
+ var table_settingvue_type_template_id_a9701966_scoped_true_staticRenderFns = [];
30693
30695
 
30694
30696
  ;// ./src/assets/images/model_title_icon.png
30695
30697
  var model_title_icon_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAYCAYAAADkgu3FAAAAAXNSR0IArs4c6QAAA5xJREFUSEuVll1onFUQhp/32yTYxJAKitSItiXZaOuFCooiqKA33tUbKdSWFrNJGn9aRav5MayJKRqaXAjVZLdN1QotVVFBil4IBUEjaKUXJm6yxR8w8afiVlOVJLtjzpqGLyfZzfa7/M7MvGdm3nfmiBK/awdsTWUVrcAeAioFg9l/6Es/oT9LCaFVjU5YpP48OwIjbnCdZ38OES+rITn6kGaKxSoKFB2yLYheYNMqF0pLtKUaeRfJVrJdEaguYfcE8BJwh+d0xowOGf8qoM/gVu98BLFvPKZPfbAlQPUJu1mwH3jAMzxrRtfEFMeJK5c/M1P9IbbK6AbqPPv3THRMxDR28X8eqH7YNgZZeszYCgQhpykZPZErOFyoB5tOWMVshmZBF3BlyHfORLIsR89Ys6bUkLBt800eBipCRhmMl6fhlclm/b0qYYCGw1ZNjmfN2ANcHvKZNtip6JCdRtwSOjg2U07r97uUKQXAt7lxyNbloNfErsUz8buiCXsD2BFycDQ9NCu6v4vpl0sCc1LIsD2AFzwpjOmaIausDmg34ylgTThlxIGyGfpHH9V0UcD/ifGg6+cyKYhPAqN1kXXR16zWInQLdi4hhPgZo6faSH7VrFkfMDpo9xHkmXr7kjPjaxntqRZ95P4v01FdwjZHRNKMO72g6bxjE+84UUYTdts8gRzA/Z7dpGBfapJji1LwgRxVs3+w18TzHnPCsb4AJoEtK10UcD3unzZeDDN2MaMbknZvzjjo1TgncdyMu4DrC/TJjZyTkLdZGxLoj47q4816P1+6umG7KphlALHNu+GIcjyeatGXLtO5DI8BbZ4oPyRH53iLzmxI2tXlRh+w3Ytzcs7YrYakfeb14zfBc6lJXg/X2N1q/RFbWz5HDNhgWY6mW/S5n2X9oN2NOChx0+KZI0Y0YY66VSGHN7NZnjm7W79ekoYWjJ1cquBJKT8DL46z8y6jvWb0ezPOgQ8owoHUI/qrFMCF8jYCncC68AAw8rMQikztcxK9kRpeLbjY4hZEa3kYI+5KGgJwU/6tSEDXWKN+WKKjQntI4BjUNT7F0fCaiCbzFHfTYLOX9Qc56Eg36ZsQC5cXpshmHZVozxkXFvaWE22o55wy0ZaOacSPWniVF38rLIkjOC1o/7ZJHxfq56qPk/VH7LKK2fzrx9fQfFuYCKAzFePtQm+FoqVb6VYbh6ymXDxt0AJcMLG/9ieGT8U1Vwor/wOKJWKSdidLTwAAAABJRU5ErkJggg==";
30696
- ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/tuo-drag.vue?vue&type=template&id=4a4b41bf&scoped=true
30697
- var tuo_dragvue_type_template_id_4a4b41bf_scoped_true_render = function render() {
30698
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/babel-loader/lib/index.js!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/tuo-drag.vue?vue&type=template&id=7a5aeb92&scoped=true
30699
+ var tuo_dragvue_type_template_id_7a5aeb92_scoped_true_render = function render() {
30698
30700
  var _vm = this,
30699
30701
  _c = _vm._self._c;
30700
30702
  return _c('div', {
@@ -30749,7 +30751,29 @@ var tuo_dragvue_type_template_id_4a4b41bf_scoped_true_render = function render()
30749
30751
  attrs: {
30750
30752
  "title": "拖动可调整顺序"
30751
30753
  }
30752
- }, [_vm._v(_vm._s(_vm.checkAllGroupObj[item] && _vm.checkAllGroupObj[item].title || '--'))])]), _vm.activeColumns.includes(item) ? _c('img', {
30754
+ }, [_vm._v(_vm._s(_vm.checkAllGroupObj[item] && _vm.checkAllGroupObj[item].title || '--'))])]), _c('div', {
30755
+ staticClass: "width-setting"
30756
+ }, [_c('InputNumber', {
30757
+ staticStyle: {
30758
+ "width": "70px"
30759
+ },
30760
+ attrs: {
30761
+ "min": 50,
30762
+ "max": 500,
30763
+ "step": 10,
30764
+ "value": _vm.getColumnWidth(item),
30765
+ "size": "small"
30766
+ },
30767
+ on: {
30768
+ "on-change": val => _vm.handleWidthChange(item, val)
30769
+ }
30770
+ }), _c('span', {
30771
+ staticStyle: {
30772
+ "margin-left": "2px",
30773
+ "font-size": "12px",
30774
+ "color": "#999"
30775
+ }
30776
+ }, [_vm._v("px")])], 1), _vm.activeColumns.includes(item) ? _c('img', {
30753
30777
  staticStyle: {
30754
30778
  "width": "12px",
30755
30779
  "height": "16px"
@@ -30760,7 +30784,7 @@ var tuo_dragvue_type_template_id_4a4b41bf_scoped_true_render = function render()
30760
30784
  }) : _vm._e()]);
30761
30785
  }), 0)]);
30762
30786
  };
30763
- var tuo_dragvue_type_template_id_4a4b41bf_scoped_true_staticRenderFns = [];
30787
+ var tuo_dragvue_type_template_id_7a5aeb92_scoped_true_staticRenderFns = [];
30764
30788
 
30765
30789
  ;// ./src/assets/images/tuozhui_icon.png
30766
30790
  var tuozhui_icon_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAeCAYAAAAl+Z4RAAAAAXNSR0IArs4c6QAAAJhJREFUSEtjXLVqFdvnXyLd//8xxDAwMjAyMjIs5mV7UxoWFvaLAQngUsc4Z/HeCQwMjPnIihkY/nemxDpXIIvhUsc4Z9G+twyMDEIoBvxneJcS5ySMYgAOdVQwAJsXGBm6UmKcygl6gZGhixEeOP8ZYkEaCAYimjpG1MAjnUe5AaPp4B32pDyaDkbLA3CeHi0PRusFOqcDAATfQ8J5SxE2AAAAAElFTkSuQmCC";
@@ -30784,7 +30808,8 @@ let node = '',
30784
30808
  tuozhui_icon: tuozhui_icon_namespaceObject,
30785
30809
  bluckLock: blue_lock_namespaceObject,
30786
30810
  activeColumns: [],
30787
- sortColumns: [...this.initialSortColumns] // 初始化时保存父组件传递的排序
30811
+ sortColumns: [...this.initialSortColumns],
30812
+ columnWidths: {}
30788
30813
  };
30789
30814
  },
30790
30815
  computed: {
@@ -30816,6 +30841,21 @@ let node = '',
30816
30841
  },
30817
30842
  methods: {
30818
30843
  clickItem(value) {},
30844
+ getColumnWidth(item) {
30845
+ const column = this.checkAllGroupObj[item];
30846
+ if (column && column.width) {
30847
+ return column.width;
30848
+ }
30849
+ return column && column.minWidth ? column.minWidth : 150;
30850
+ },
30851
+ handleWidthChange(item, val) {
30852
+ if (val) {
30853
+ this.$emit('update-column-width', {
30854
+ key: item,
30855
+ width: val
30856
+ });
30857
+ }
30858
+ },
30819
30859
  handleDragEnd() {
30820
30860
  // console.log('执行----')
30821
30861
  this.updateAction();
@@ -30960,10 +31000,10 @@ let node = '',
30960
31000
  });
30961
31001
  ;// ./packages/components/tuo-drag.vue?vue&type=script&lang=js
30962
31002
  /* harmony default export */ var components_tuo_dragvue_type_script_lang_js = (tuo_dragvue_type_script_lang_js);
30963
- ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-54.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-54.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-54.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/tuo-drag.vue?vue&type=style&index=0&id=4a4b41bf&prod&scoped=true&lang=css
31003
+ ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-54.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-54.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-54.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/tuo-drag.vue?vue&type=style&index=0&id=7a5aeb92&prod&scoped=true&lang=css
30964
31004
  // extracted by mini-css-extract-plugin
30965
31005
 
30966
- ;// ./packages/components/tuo-drag.vue?vue&type=style&index=0&id=4a4b41bf&prod&scoped=true&lang=css
31006
+ ;// ./packages/components/tuo-drag.vue?vue&type=style&index=0&id=7a5aeb92&prod&scoped=true&lang=css
30967
31007
 
30968
31008
  ;// ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
30969
31009
  /* globals __VUE_SSR_CONTEXT__ */
@@ -31074,11 +31114,11 @@ function normalizeComponent(
31074
31114
 
31075
31115
  var component = normalizeComponent(
31076
31116
  components_tuo_dragvue_type_script_lang_js,
31077
- tuo_dragvue_type_template_id_4a4b41bf_scoped_true_render,
31078
- tuo_dragvue_type_template_id_4a4b41bf_scoped_true_staticRenderFns,
31117
+ tuo_dragvue_type_template_id_7a5aeb92_scoped_true_render,
31118
+ tuo_dragvue_type_template_id_7a5aeb92_scoped_true_staticRenderFns,
31079
31119
  false,
31080
31120
  null,
31081
- "4a4b41bf",
31121
+ "7a5aeb92",
31082
31122
  null
31083
31123
 
31084
31124
  )
@@ -31294,9 +31334,16 @@ let checkAllGroup = [];
31294
31334
  // this.$emit('submitExport', ids,'all')
31295
31335
  },
31296
31336
  updatesortColumns(val) {
31297
- // console.log('updatesortColumns---',val)
31298
31337
  this.sortColumns = val;
31299
31338
  },
31339
+ handleColumnWidthUpdate({
31340
+ key,
31341
+ width
31342
+ }) {
31343
+ if (this.checkAllGroupObj[key]) {
31344
+ this.$set(this.checkAllGroupObj[key], 'width', width);
31345
+ }
31346
+ },
31300
31347
  updateCheckAllGroup(columnTitles) {
31301
31348
  // console.log('updateCheckAllGroup---')
31302
31349
  // console.log(columnTitles)
@@ -31346,9 +31393,17 @@ let checkAllGroup = [];
31346
31393
  if (this.routePath || this.customPath || this.$route && this.$route.path) {
31347
31394
  route_path = (this.routePath || this.customPath || this.$route.path).replace(/^\/?/, '');
31348
31395
  }
31396
+ const columnWidths = {};
31397
+ orderArr.forEach(item => {
31398
+ const column = this.checkAllGroupObj[item];
31399
+ if (column && column.key && column.width) {
31400
+ columnWidths[column.key] = column.width;
31401
+ }
31402
+ });
31349
31403
  let contentObj = {
31350
31404
  checkColumnData: this.$refs.tuoDrags.getOrder(),
31351
- freeze: this.freeze
31405
+ freeze: this.freeze,
31406
+ columnWidths: columnWidths
31352
31407
  };
31353
31408
  let obj = {
31354
31409
  tag: route_path + 'tableSet',
@@ -31358,12 +31413,10 @@ let checkAllGroup = [];
31358
31413
  simp_token: getToken()
31359
31414
  };
31360
31415
  if (this.columnSettingObj) {
31361
- // console.log({...obj,id:this.columnSettingId})
31362
31416
  updateUserQuery({
31363
31417
  ...obj,
31364
31418
  id: this.columnSettingId
31365
31419
  }).then(res => {
31366
- // console.log('res----',res)
31367
31420
  let datas = res.data;
31368
31421
  this.exportBtnLoading = false;
31369
31422
  if (datas.code == 200) {
@@ -31375,7 +31428,6 @@ let checkAllGroup = [];
31375
31428
  });
31376
31429
  } else {
31377
31430
  saveUserQuery(obj).then(res => {
31378
- // console.log('res----',res)
31379
31431
  let datas = res.data;
31380
31432
  this.exportBtnLoading = false;
31381
31433
  if (datas.code == 200) {
@@ -31386,10 +31438,6 @@ let checkAllGroup = [];
31386
31438
  }
31387
31439
  });
31388
31440
  }
31389
-
31390
- // this.exportBtnLoading = true
31391
- // this.$emit('submitExport', ids)
31392
- // this.exportXlsx()
31393
31441
  },
31394
31442
  async exportDataXlsx(dataList) {
31395
31443
  try {
@@ -31632,10 +31680,10 @@ let checkAllGroup = [];
31632
31680
  });
31633
31681
  ;// ./packages/components/table-setting.vue?vue&type=script&lang=js
31634
31682
  /* harmony default export */ var components_table_settingvue_type_script_lang_js = (table_settingvue_type_script_lang_js);
31635
- ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-54.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-54.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-54.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/table-setting.vue?vue&type=style&index=0&id=3fbe6aa8&prod&scoped=true&lang=css
31683
+ ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-54.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-54.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-54.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/table-setting.vue?vue&type=style&index=0&id=a9701966&prod&scoped=true&lang=css
31636
31684
  // extracted by mini-css-extract-plugin
31637
31685
 
31638
- ;// ./packages/components/table-setting.vue?vue&type=style&index=0&id=3fbe6aa8&prod&scoped=true&lang=css
31686
+ ;// ./packages/components/table-setting.vue?vue&type=style&index=0&id=a9701966&prod&scoped=true&lang=css
31639
31687
 
31640
31688
  ;// ./packages/components/table-setting.vue
31641
31689
 
@@ -31648,11 +31696,11 @@ let checkAllGroup = [];
31648
31696
 
31649
31697
  var table_setting_component = normalizeComponent(
31650
31698
  components_table_settingvue_type_script_lang_js,
31651
- table_settingvue_type_template_id_3fbe6aa8_scoped_true_render,
31652
- table_settingvue_type_template_id_3fbe6aa8_scoped_true_staticRenderFns,
31699
+ table_settingvue_type_template_id_a9701966_scoped_true_render,
31700
+ table_settingvue_type_template_id_a9701966_scoped_true_staticRenderFns,
31653
31701
  false,
31654
31702
  null,
31655
- "3fbe6aa8",
31703
+ "a9701966",
31656
31704
  null
31657
31705
 
31658
31706
  )
@@ -36412,6 +36460,10 @@ var vue_treeselect_cjs_default = /*#__PURE__*/__webpack_require__.n(vue_treesele
36412
36460
  type: Boolean,
36413
36461
  default: false
36414
36462
  },
36463
+ resizable: {
36464
+ type: Boolean,
36465
+ default: true
36466
+ },
36415
36467
  // 表格高度
36416
36468
  height: {
36417
36469
  type: String,
@@ -36450,10 +36502,10 @@ var vue_treeselect_cjs_default = /*#__PURE__*/__webpack_require__.n(vue_treesele
36450
36502
  type: Number,
36451
36503
  default: 10
36452
36504
  },
36453
- /**
36454
- * params及pagination可设置每页数据条数, params优先级最高
36455
- * params: {current, pageSize}
36456
- * pagination: {pageSize, onChange}
36505
+ /**
36506
+ * params及pagination可设置每页数据条数, params优先级最高
36507
+ * params: {current, pageSize}
36508
+ * pagination: {pageSize, onChange}
36457
36509
  */
36458
36510
  params: {
36459
36511
  type: Object,
@@ -36463,10 +36515,10 @@ var vue_treeselect_cjs_default = /*#__PURE__*/__webpack_require__.n(vue_treesele
36463
36515
  type: Object,
36464
36516
  default: () => ({})
36465
36517
  },
36466
- /**
36467
- * 可通过传递data和request字段设置表格数据
36468
- * data优先级最高, 如果通过data参数设置表格数据, 需手动刷新table数据, data需是一个对象,包含data 和 total属性
36469
- * request函数会接收一个对象。对象中必须要有 data 和 total, 当params发生变化时会重新执行request
36518
+ /**
36519
+ * 可通过传递data和request字段设置表格数据
36520
+ * data优先级最高, 如果通过data参数设置表格数据, 需手动刷新table数据, data需是一个对象,包含data 和 total属性
36521
+ * request函数会接收一个对象。对象中必须要有 data 和 total, 当params发生变化时会重新执行request
36470
36522
  */
36471
36523
  data: {
36472
36524
  type: Object,
@@ -36529,14 +36581,16 @@ var vue_treeselect_cjs_default = /*#__PURE__*/__webpack_require__.n(vue_treesele
36529
36581
  };
36530
36582
  },
36531
36583
  computed: {
36532
- /**
36533
- * 表格列
36584
+ /**
36585
+ * 表格列
36534
36586
  */
36535
36587
  tableColumns() {
36536
36588
  return this.columnsList.filter(item => !item.hideInTable).map(column => {
36537
36589
  const originalRender = column.render;
36538
36590
  const config = {
36539
36591
  ...column,
36592
+ resizable: this.resizable && column.resizable !== false,
36593
+ width: column.width || column.minWidth || 150,
36540
36594
  render: (h, params) => {
36541
36595
  // 如果列有slot属性,使用插槽内容
36542
36596
  if (column.slot) {
@@ -36825,8 +36879,8 @@ var vue_treeselect_cjs_default = /*#__PURE__*/__webpack_require__.n(vue_treesele
36825
36879
  return config;
36826
36880
  });
36827
36881
  },
36828
- /**
36829
- * 筛选项集合
36882
+ /**
36883
+ * 筛选项集合
36830
36884
  */
36831
36885
  setcolumnsList() {
36832
36886
  return this.columns.filter(item => item.title && item.title != '操作');
@@ -36863,10 +36917,10 @@ var vue_treeselect_cjs_default = /*#__PURE__*/__webpack_require__.n(vue_treesele
36863
36917
  // console.log('tableSlot---',this.columns.filter((item) => item.slot))
36864
36918
  return this.columns.filter(item => item.slot);
36865
36919
  },
36866
- /**
36867
- * 获取数据请求参数
36868
- * params及pagination如果为空,默认通过page.current进行查询
36869
- * 如果不为空,那么就覆盖掉默认查询参数
36920
+ /**
36921
+ * 获取数据请求参数
36922
+ * params及pagination如果为空,默认通过page.current进行查询
36923
+ * 如果不为空,那么就覆盖掉默认查询参数
36870
36924
  */
36871
36925
  requestParams() {
36872
36926
  const {
@@ -36881,8 +36935,8 @@ var vue_treeselect_cjs_default = /*#__PURE__*/__webpack_require__.n(vue_treesele
36881
36935
  pageSize: pageSize || defaultSize
36882
36936
  };
36883
36937
  },
36884
- /**
36885
- * 数据源
36938
+ /**
36939
+ * 数据源
36886
36940
  */
36887
36941
  dataSource() {
36888
36942
  if (this.data && this.data.data) {
@@ -36890,8 +36944,8 @@ var vue_treeselect_cjs_default = /*#__PURE__*/__webpack_require__.n(vue_treesele
36890
36944
  }
36891
36945
  return this.tableData;
36892
36946
  },
36893
- /**
36894
- * 筛选栏表单属性名
36947
+ /**
36948
+ * 筛选栏表单属性名
36895
36949
  */
36896
36950
  formKey() {
36897
36951
  return item => item.as ? item.as : item.key;
@@ -37155,8 +37209,8 @@ var vue_treeselect_cjs_default = /*#__PURE__*/__webpack_require__.n(vue_treesele
37155
37209
  // console.log(JSON.stringify(filterForm))
37156
37210
  this.filterForm = Object.assign({}, filterForm);
37157
37211
  },
37158
- /**
37159
- * 获取数据
37212
+ /**
37213
+ * 获取数据
37160
37214
  */
37161
37215
  async getDataSource(params = this.requestParams) {
37162
37216
  if (this.request) {
@@ -37171,9 +37225,9 @@ var vue_treeselect_cjs_default = /*#__PURE__*/__webpack_require__.n(vue_treesele
37171
37225
  this.tableLoading = false;
37172
37226
  }
37173
37227
  },
37174
- /**
37175
- * 删除对象属性值为空的属性
37176
- * @param {*} obj
37228
+ /**
37229
+ * 删除对象属性值为空的属性
37230
+ * @param {*} obj
37177
37231
  */
37178
37232
  delValueEmptyProperty(obj) {
37179
37233
  for (const key in obj) {
@@ -37185,8 +37239,8 @@ var vue_treeselect_cjs_default = /*#__PURE__*/__webpack_require__.n(vue_treesele
37185
37239
  }
37186
37240
  return obj;
37187
37241
  },
37188
- /**
37189
- * 清空筛选栏表单
37242
+ /**
37243
+ * 清空筛选栏表单
37190
37244
  */
37191
37245
  reset() {
37192
37246
  this.page.current = 1;
@@ -37259,28 +37313,28 @@ var vue_treeselect_cjs_default = /*#__PURE__*/__webpack_require__.n(vue_treesele
37259
37313
  pageSize: this.page.pageSize
37260
37314
  });
37261
37315
  },
37262
- /**
37263
- * 监听当前选中项
37264
- * @param {*} selectionItems
37316
+ /**
37317
+ * 监听当前选中项
37318
+ * @param {*} selectionItems
37265
37319
  */
37266
37320
  onSelectionChange(selectionItems) {
37267
37321
  this.selectionItems = selectionItems;
37268
37322
  // 向父组件发射选择变化事件
37269
37323
  this.$emit('on-selection-change', selectionItems);
37270
37324
  },
37271
- /**
37272
- * 监听选中某一项事件
37273
- * @param {*} selection 已选项数据
37274
- * @param {*} row 刚选择的项数据
37325
+ /**
37326
+ * 监听选中某一项事件
37327
+ * @param {*} selection 已选项数据
37328
+ * @param {*} row 刚选择的项数据
37275
37329
  */
37276
37330
  onSelect(selection, row) {
37277
37331
  // 向父组件发射选中事件
37278
37332
  this.$emit('on-select', selection, row);
37279
37333
  },
37280
- /**
37281
- * 监听取消选中某一项事件
37282
- * @param {*} selection 已选项数据
37283
- * @param {*} row 取消选择的项数据
37334
+ /**
37335
+ * 监听取消选中某一项事件
37336
+ * @param {*} selection 已选项数据
37337
+ * @param {*} row 取消选择的项数据
37284
37338
  */
37285
37339
  onSelectCancel(selection, row) {
37286
37340
  // 向父组件发射取消选中事件
@@ -37310,9 +37364,9 @@ var vue_treeselect_cjs_default = /*#__PURE__*/__webpack_require__.n(vue_treesele
37310
37364
  });
37311
37365
  this.reload();
37312
37366
  },
37313
- /**
37314
- * 监听工具栏按钮
37315
- * @param {*} index
37367
+ /**
37368
+ * 监听工具栏按钮
37369
+ * @param {*} index
37316
37370
  */
37317
37371
  onToolBar(index) {
37318
37372
  const isSelection = this.columns.some(item => item.type === 'selection');
@@ -37321,8 +37375,8 @@ var vue_treeselect_cjs_default = /*#__PURE__*/__webpack_require__.n(vue_treesele
37321
37375
  }
37322
37376
  this.$emit('onToolBar', index, this.selectionItems);
37323
37377
  },
37324
- /**
37325
- * 当前表单属性值是否为空
37378
+ /**
37379
+ * 当前表单属性值是否为空
37326
37380
  */
37327
37381
  isEmptyFilterForm() {
37328
37382
  let isEmpty = true;
@@ -37334,8 +37388,8 @@ var vue_treeselect_cjs_default = /*#__PURE__*/__webpack_require__.n(vue_treesele
37334
37388
  }
37335
37389
  return isEmpty;
37336
37390
  },
37337
- /**
37338
- * 监听筛选按钮
37391
+ /**
37392
+ * 监听筛选按钮
37339
37393
  */
37340
37394
  onFilter() {
37341
37395
  // console.log(this.tableColumns)
@@ -37350,9 +37404,9 @@ var vue_treeselect_cjs_default = /*#__PURE__*/__webpack_require__.n(vue_treesele
37350
37404
  pageSize: this.page.pageSize
37351
37405
  });
37352
37406
  },
37353
- /**
37354
- * 监听页数变化
37355
- * @param {*} current
37407
+ /**
37408
+ * 监听页数变化
37409
+ * @param {*} current
37356
37410
  */
37357
37411
  onPageChange(current) {
37358
37412
  this.page.current = current;
@@ -37376,8 +37430,8 @@ var vue_treeselect_cjs_default = /*#__PURE__*/__webpack_require__.n(vue_treesele
37376
37430
  setSelectionItem(status) {
37377
37431
  this.$refs.selection.selectAll(status);
37378
37432
  },
37379
- /**
37380
- * 刷新
37433
+ /**
37434
+ * 刷新
37381
37435
  */
37382
37436
  reload() {
37383
37437
  if (this.selectionItems.length > 0) {
@@ -37515,27 +37569,50 @@ var vue_treeselect_cjs_default = /*#__PURE__*/__webpack_require__.n(vue_treesele
37515
37569
  if (this.routePath || this.customPath || this.$route && this.$route.path) {
37516
37570
  route_path = (this.routePath || this.customPath || this.$route.path).replace(/^\/?/, '');
37517
37571
  }
37572
+ const selectedProject = localStorage.getItem('selectedProject');
37573
+ if (!selectedProject) {
37574
+ return;
37575
+ }
37576
+ let projectObj = null;
37577
+ try {
37578
+ projectObj = JSON.parse(selectedProject);
37579
+ } catch (e) {
37580
+ return;
37581
+ }
37582
+ if (!projectObj || !projectObj.id) {
37583
+ return;
37584
+ }
37518
37585
  let obj = {
37519
37586
  tag: route_path + 'tableSetView',
37520
- project_id: JSON.parse(localStorage.getItem('selectedProject')).id,
37587
+ project_id: projectObj.id,
37521
37588
  simp_token: getToken()
37522
37589
  };
37523
37590
  getUserQuery(obj).then(res => {
37524
37591
  let datas = res.data;
37525
37592
  if (datas.code == 200) {
37526
- // console.log('tableSetView-----',datas)
37527
37593
  this.viewList = datas.data;
37528
37594
  this.viewListP = lodash_default().cloneDeep(this.viewList);
37529
-
37530
- //
37531
37595
  } else {
37532
37596
  this.$Message.error(datas.msg);
37533
37597
  }
37534
- });
37598
+ }).catch(() => {});
37535
37599
  },
37536
37600
  getPerson() {
37601
+ const selectedProject = localStorage.getItem('selectedProject');
37602
+ if (!selectedProject) {
37603
+ return;
37604
+ }
37605
+ let projectObj = null;
37606
+ try {
37607
+ projectObj = JSON.parse(selectedProject);
37608
+ } catch (e) {
37609
+ return;
37610
+ }
37611
+ if (!projectObj || !projectObj.id) {
37612
+ return;
37613
+ }
37537
37614
  let obj = {
37538
- project_id: JSON.parse(localStorage.getItem('selectedProject')).id,
37615
+ project_id: projectObj.id,
37539
37616
  simp_token: getToken(),
37540
37617
  rows: 10000,
37541
37618
  page: 1,
@@ -37548,16 +37625,32 @@ var vue_treeselect_cjs_default = /*#__PURE__*/__webpack_require__.n(vue_treesele
37548
37625
  } else {
37549
37626
  this.$Message.error(datas.msg);
37550
37627
  }
37551
- });
37628
+ }).catch(() => {});
37552
37629
  },
37553
37630
  handleGetUserQuery() {
37554
37631
  let route_path = '';
37555
37632
  if (this.routePath || this.customPath || this.$route && this.$route.path) {
37556
37633
  route_path = (this.routePath || this.customPath || this.$route.path).replace(/^\/?/, '');
37557
37634
  }
37635
+ const selectedProject = localStorage.getItem('selectedProject');
37636
+ if (!selectedProject) {
37637
+ this.reload();
37638
+ return;
37639
+ }
37640
+ let projectObj = null;
37641
+ try {
37642
+ projectObj = JSON.parse(selectedProject);
37643
+ } catch (e) {
37644
+ this.reload();
37645
+ return;
37646
+ }
37647
+ if (!projectObj || !projectObj.id) {
37648
+ this.reload();
37649
+ return;
37650
+ }
37558
37651
  let obj = {
37559
37652
  tag: route_path + 'tableSet',
37560
- project_id: JSON.parse(localStorage.getItem('selectedProject')).id,
37653
+ project_id: projectObj.id,
37561
37654
  simp_token: getToken()
37562
37655
  };
37563
37656
  this.tableLoading = true;
@@ -37574,14 +37667,12 @@ var vue_treeselect_cjs_default = /*#__PURE__*/__webpack_require__.n(vue_treesele
37574
37667
  dataValue.content = JSON.parse(dataValue.content);
37575
37668
  let {
37576
37669
  checkColumnData,
37577
- freeze
37670
+ freeze,
37671
+ columnWidths
37578
37672
  } = dataValue.content;
37579
37673
  this.columnSettingId = dataValue.id;
37580
37674
  this.columnSettingObj = dataValue.content;
37581
- // console.log()
37582
- // console.log(this.columns)
37583
37675
  let columnsList = this.sortAndFilterColumns(lodash_default().cloneDeep(this.columns), checkColumnData);
37584
- // console.log('columnsList---getUserQuery',columnsList)
37585
37676
  let freezeNum = columnsList[0] && columnsList[0].type == 'selection' ? freeze + 1 : freeze;
37586
37677
  columnsList.forEach((item, index) => {
37587
37678
  if (item.title == '操作') {
@@ -37591,13 +37682,17 @@ var vue_treeselect_cjs_default = /*#__PURE__*/__webpack_require__.n(vue_treesele
37591
37682
  } else {
37592
37683
  delete item.fixed;
37593
37684
  }
37685
+ if (columnWidths && columnWidths[item.key]) {
37686
+ item.width = columnWidths[item.key];
37687
+ }
37594
37688
  });
37595
- // console.log('columnsList----',columnsList)
37596
37689
  this.columnsList = columnsList;
37597
37690
  }
37598
37691
  } else {
37599
37692
  this.$Message.error(datas.msg);
37600
37693
  }
37694
+ }).catch(() => {
37695
+ this.tableLoading = false;
37601
37696
  }).finally(() => {
37602
37697
  this.reload();
37603
37698
  });
@@ -37701,6 +37796,76 @@ var vue_treeselect_cjs_default = /*#__PURE__*/__webpack_require__.n(vue_treesele
37701
37796
  column
37702
37797
  });
37703
37798
  },
37799
+ onColumnWidthResize(newWidth, oldWidth, column, event) {
37800
+ const columnKey = column.key;
37801
+ const columnIndex = this.columnsList.findIndex(col => col.key === columnKey);
37802
+ if (columnIndex !== -1) {
37803
+ this.$set(this.columnsList[columnIndex], 'width', newWidth);
37804
+ this.saveColumnWidths();
37805
+ }
37806
+ this.$emit('on-column-width-resize', {
37807
+ newWidth,
37808
+ oldWidth,
37809
+ column,
37810
+ event
37811
+ });
37812
+ },
37813
+ saveColumnWidths: lodash_default().debounce(function () {
37814
+ const columnWidths = {};
37815
+ this.columnsList.forEach(col => {
37816
+ if (col.key && col.width) {
37817
+ columnWidths[col.key] = col.width;
37818
+ }
37819
+ });
37820
+ let route_path = '';
37821
+ if (this.routePath || this.customPath || this.$route && this.$route.path) {
37822
+ route_path = (this.routePath || this.customPath || this.$route.path).replace(/^\/?/, '');
37823
+ }
37824
+ const selectedProject = localStorage.getItem('selectedProject');
37825
+ if (!selectedProject) {
37826
+ return;
37827
+ }
37828
+ let projectObj = null;
37829
+ try {
37830
+ projectObj = JSON.parse(selectedProject);
37831
+ } catch (e) {
37832
+ return;
37833
+ }
37834
+ if (!projectObj || !projectObj.id) {
37835
+ return;
37836
+ }
37837
+ let contentObj = {
37838
+ checkColumnData: this.columnSettingObj ? this.columnSettingObj.checkColumnData : [],
37839
+ freeze: this.columnSettingObj ? this.columnSettingObj.freeze : '',
37840
+ columnWidths: columnWidths
37841
+ };
37842
+ let obj = {
37843
+ tag: route_path + 'tableSet',
37844
+ name: route_path,
37845
+ content: JSON.stringify(contentObj),
37846
+ project_id: projectObj.id,
37847
+ simp_token: getToken()
37848
+ };
37849
+ if (this.columnSettingId) {
37850
+ updateUserQuery({
37851
+ ...obj,
37852
+ id: this.columnSettingId
37853
+ }).then(res => {
37854
+ let datas = res.data;
37855
+ if (datas.code === 200) {
37856
+ this.columnSettingObj = contentObj;
37857
+ }
37858
+ });
37859
+ } else {
37860
+ saveUserQuery(obj).then(res => {
37861
+ let datas = res.data;
37862
+ if (datas.code === 200) {
37863
+ this.columnSettingId = datas.data.id;
37864
+ this.columnSettingObj = contentObj;
37865
+ }
37866
+ });
37867
+ }
37868
+ }, 500),
37704
37869
  initSortable(container) {
37705
37870
  if (!container) return;
37706
37871
 
@@ -37797,15 +37962,15 @@ var vue_treeselect_cjs_default = /*#__PURE__*/__webpack_require__.n(vue_treesele
37797
37962
  });
37798
37963
  ;// ./packages/components/index.vue?vue&type=script&lang=js
37799
37964
  /* harmony default export */ var packages_componentsvue_type_script_lang_js = (componentsvue_type_script_lang_js);
37800
- ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-74.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-74.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-74.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-74.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/index.vue?vue&type=style&index=0&id=770554fe&prod&scoped=true&lang=less
37965
+ ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-74.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-74.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-74.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-74.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/index.vue?vue&type=style&index=0&id=2bd81707&prod&scoped=true&lang=less
37801
37966
  // extracted by mini-css-extract-plugin
37802
37967
 
37803
- ;// ./packages/components/index.vue?vue&type=style&index=0&id=770554fe&prod&scoped=true&lang=less
37968
+ ;// ./packages/components/index.vue?vue&type=style&index=0&id=2bd81707&prod&scoped=true&lang=less
37804
37969
 
37805
- ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-54.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-54.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-54.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/index.vue?vue&type=style&index=1&id=770554fe&prod&lang=css
37970
+ ;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-54.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-54.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-54.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/index.vue?vue&type=style&index=1&id=2bd81707&prod&lang=css
37806
37971
  // extracted by mini-css-extract-plugin
37807
37972
 
37808
- ;// ./packages/components/index.vue?vue&type=style&index=1&id=770554fe&prod&lang=css
37973
+ ;// ./packages/components/index.vue?vue&type=style&index=1&id=2bd81707&prod&lang=css
37809
37974
 
37810
37975
  ;// ./packages/components/index.vue
37811
37976
 
@@ -37823,7 +37988,7 @@ var components_component = normalizeComponent(
37823
37988
  staticRenderFns,
37824
37989
  false,
37825
37990
  null,
37826
- "770554fe",
37991
+ "2bd81707",
37827
37992
  null
37828
37993
 
37829
37994
  )