Browse Source

no message

linwenxin 5 months ago
parent
commit
d1cac88c41

+ 10 - 1
src/views/setting/networkSigning/contractManagement/fddContractTemplate/index.vue

@@ -153,6 +153,7 @@ export default {
           }
         },
         {
+          isShow: this.formData.contractType !== 'FOLLOW',
           md: 6,
           name: 'el-date-picker',
           attributes: {
@@ -172,6 +173,7 @@ export default {
           }
         },
         {
+          isShow: this.formData.contractType !== 'FOLLOW',
           md: 6,
           name: 'el-date-picker',
           attributes: {
@@ -389,6 +391,7 @@ export default {
       this.formType = 0
       this.formBool = false
       this.itemsList = []
+      this.contractTemplateId_ = undefined
     },
     formConfirm() {
       this.$refs.formRef.validate((valid, invalidFields, errLabels) => {
@@ -446,6 +449,7 @@ export default {
             return row.status === 'OFF'
           },
           click: ({ row, index, column }) => {
+            this.contractTemplateId_ = row.contractTemplateId
             contractTemplateStatus({
               contractTemplateId: row.contractTemplateId,
               status: 'ON'
@@ -494,7 +498,12 @@ export default {
     },
     paginationCallback({ pageIndex, pageSize }) {
       return new Promise(resolve => {
-        contractTemplateQueryRelaWebsit({ pageNum: pageIndex, pageSize: pageSize, ...this.formInline }).then(res => {
+        contractTemplateQueryRelaWebsit({
+          pageNum: pageIndex,
+          pageSize: pageSize,
+          ...this.formInline,
+          contractTemplateId: this.contractTemplateId_
+        }).then(res => {
           resolve({
             total: res.data.total,
             data: [...this.itemsList, ...res.data.records]